(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8520],{8619:function(t,n,r){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(t){for(var n,r=1,e=arguments.length;r-1}},34893:function(t){t.exports=function(t,n,r){for(var e=-1,i=null==t?0:t.length;++e=120&&d.length>=120)?new e(p&&d):void 0}d=t[0];var O=-1,D=v[0];t:for(;++O1&&void 0!==arguments[1]?arguments[1]:l;this.locales=t,this.unit="second",this.style=n.style||a.styles.LONG,this.isTimer=this.style===a.styles.TIMER,this._format=n.format||(this.isTimer?"{minutes}:{seconds}":"{seconds}"),this.formatUnits=n.formatUnits||l.formatUnits,this.formatDuration=n.formatDuration||l.formatDuration,this.shouldRound=!0===n.round}a.units={DAY:"day",HOUR:"hour",MINUTE:"minute",SECOND:"second"},a.styles={CUSTOM:"custom",TIMER:"timer",LONG:"long",SHORT:"short",NARROW:"narrow"},a.prototype.format=function(t){return this.formatToParts(t).map((function(t){return t.value})).join("")},a.prototype.formatToParts=function(t){var n=this,r=new u.ZP(this._format,this.locales).formatToParts({second:{unit:a.units.SECOND},seconds:{unit:a.units.SECOND},minute:{unit:a.units.MINUTE},minutes:{unit:a.units.MINUTE},hour:{unit:a.units.HOUR},hours:{unit:a.units.HOUR},day:{unit:a.units.DAY},days:{unit:a.units.DAY}}),e=function(t,n,r,e){var i=t*c[n];if(e){var u=[a.units.SECOND,a.units.MINUTE,a.units.HOUR,a.units.DAY].find((function(t){return h(r,t)})),o=i%c[u];2*o>=c[u]&&(i+=c[u]-o)}var s={};return[a.units.DAY,a.units.HOUR,a.units.MINUTE,a.units.SECOND].forEach((function(t){h(r,t)&&(s[t]=Math.floor(i/c[t]),i-=s[t]*c[t])})),s}(t,this.unit,r,this.shouldRound),i=r.reduce((function(t,r){return t.concat(n._formatToken(r,e))}),[]);return this._trimOutput(i,r)},a.prototype._formatToken=function(t,n){var r=t.value;if(r.unit){var e=n[r.unit];return e||this.isTimer?this._formatDurationToParts(r.unit,e):[]}return r?[{type:"literal",value:r}]:[]},a.prototype._formatDurationToParts=function(t,n){var r,e=this;return this.isTimer?[{type:t,value:this._formatValue(n)}]:(r=this.style,[a.styles.LONG,a.styles.SHORT,a.styles.NARROW].includes(r)?new Intl.NumberFormat(this.locales,{style:"unit",unit:t,unitDisplay:this.style}).formatToParts(n).map((function(n){return{type:"integer"===n.type?t:n.type,value:n.value}})):this.formatDuration.split(f).map((function(r){if("{value}"===r)return{type:t,value:e._formatValue(n)};if("{unit}"===r){var i=e.formatUnits[t]||"{value}";return{type:"unit",value:new u.ZP(i,e.locales).format({value:n})}}return r?{type:"literal",value:r}:void 0})).filter(Boolean))},a.prototype._formatValue=function(t){return this.isTimer?t.toString().padStart(2,"0"):t.toString()},a.prototype._trimOutput=function(t,n){var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=s(s(t).reverse()).reverse();if(n){var e=r.find((function(t){return"literal"!==t.type}));e.value=e.value.replace(o,"")}return r}(t,this.isTimer);if(!r.find((function(t){return"literal"!==t.type}))){var e=[a.units.SECOND,a.units.MINUTE,a.units.HOUR,a.units.DAY].find((function(t){return h(n,t)}));return this._formatDurationToParts(e,0)}return r};var l={formatDuration:"{value} {unit}",formatUnits:(e={},(0,i.Z)(e,a.units.DAY,"{value, plural, one {day} other {days}}"),(0,i.Z)(e,a.units.HOUR,"{value, plural, one {hour} other {hours}}"),(0,i.Z)(e,a.units.MINUTE,"{value, plural, one {minute} other {minutes}}"),(0,i.Z)(e,a.units.SECOND,"{value, plural, one {second} other {seconds}}"),e),style:a.styles.LONG},f=/(\{value\}|\{unit\})/,c={day:86400,hour:3600,minute:60,second:1};function h(t,n){return!!t.find((function(t){return t.value.unit===n}))}n.Z=a}}]);