1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9558],{6857:function(t,e,n){n.d(e,{Z:function(){return s}});var o=n(3024),r=n(6381),i=n(568);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if((0,i.Z)(2,arguments),!e||"object"!==a(e))return new Date(NaN);var n=e.years?(0,o.Z)(e.years):0,s=e.months?(0,o.Z)(e.months):0,u=e.weeks?(0,o.Z)(e.weeks):0,c=e.days?(0,o.Z)(e.days):0,l=e.hours?(0,o.Z)(e.hours):0,p=e.minutes?(0,o.Z)(e.minutes):0,f=e.seconds?(0,o.Z)(e.seconds):0,m=(0,r.Z)(t),d=s||n?function(t,e){(0,i.Z)(2,arguments);var n=(0,r.Z)(t),a=(0,o.Z)(e);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),u=new Date(n.getTime());return(u.setMonth(n.getMonth()+a+1,0),s>=u.getDate())?u:(n.setFullYear(u.getFullYear(),u.getMonth(),s),n)}(m,s+12*n):m;return new Date((c||u?function(t,e){(0,i.Z)(2,arguments);var n=(0,r.Z)(t),a=(0,o.Z)(e);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}(d,c+7*u):d).getTime()+1e3*(f+60*(p+60*l)))}},8130:function(t,e,n){var o=n(7294),r=n(5697);function i(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,o=c(t);return n=e?Reflect.construct(o,arguments,c(this).constructor):o.apply(this,arguments),n&&("object"==typeof n||"function"==typeof n)?n:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function m(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=String(t);if(0===n)return o;var r=o.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",a=r?r[3]:"",s=r?r[2]:o,u=s.length>=n?s:(((function(t){if(Array.isArray(t))return f(t)})(e=Array(n))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return f(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(){return"0"}).join("")+s).slice(-1*n);return"".concat(i).concat(u).concat(a)}var d={daysInHours:!1,zeroPadTime:2},h=function(t){u(n,t);var e=p(n);function n(){var t;return i(this,n),t=e.apply(this,arguments),t.state={count:t.props.count||3},t.startCountdown=function(){t.interval=window.setInterval(function(){0==t.state.count-1?(t.stopCountdown(),t.props.onComplete&&t.props.onComplete()):t.setState(function(t){return{count:t.count-1}})},1e3)},t.stopCountdown=function(){clearInterval(t.interval)},t.addTime=function(e){t.stopCountdown(),t.setState(function(t){return{count:t.count+e}},t.startCountdown)},t}
1return s(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,o.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(o.Component);h.propTypes={count:r.number,children:r.element,onComplete:r.func};var y=function(t){u(n,t);var e=p(n);function n(t){var r;if(i(this,n),(r=e.call(this,t)).mounted=!1,r.initialTimestamp=r.calcOffsetStartTimestamp(),r.offsetStartTimestamp=r.props.autoStart?0:r.initialTimestamp,r.offsetTime=0,r.legacyMode=!1,r.legacyCountdownRef=(0,o.createRef)(),r.tick=function(){var t=r.calcTimeDelta(),e=t.completed&&!r.props.overtime?void 0:r.props.onTick;r.setTimeDeltaState(t,void 0,e)},r.start=function(){if(!r.isStarted()){var t=r.offsetStartTimestamp;r.offsetStartTimestamp=0,r.offsetTime+=t?r.calcOffsetStartTimestamp()-t:0;var e=r.calcTimeDelta();r.setTimeDeltaState(e,"STARTED",r.props.onStart),r.props.controlled||e.completed&&!r.props.overtime||(r.clearTimer(),r.interval=window.setInterval(r.tick,r.props.intervalDelay))}},r.pause=function(){r.isPaused()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.setTimeDeltaState(r.state.timeDelta,"PAUSED",r.props.onPause))},r.stop=function(){r.isStopped()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.offsetTime=r.offsetStartTimestamp-r.initialTimestamp,r.setTimeDeltaState(r.calcTimeDelta(),"STOPPED",r.props.onStop))},r.isStarted=function(){return r.isStatus("STARTED")},r.isPaused=function(){return r.isStatus("PAUSED")},r.isStopped=function(){return r.isStatus("STOPPED")},r.isCompleted=function(){return r.isStatus("COMPLETED")},t.date){var a=r.calcTimeDelta();r.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else r.legacyMode=!0;return r}return s(n,[{key:"componentDidMount",value:function(){!this.legacyMode&&(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(t){this.legacyMode||this.props.date===t.date||(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var t=this.props,e=t.date,n=t.now,o=t.precision,r=t.controlled,i=t.overtime;return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.now,r=void 0===o?Date.now:o,i=n.precision,a=n.controlled,s=n.offsetTime,u=n.overtime;e="string"==typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,a||(e+=void 0===s?0:s);var c=a?e:e-r(),l=Math.round(1e3*parseFloat(((u?c:Math.max(0,c))/1e3).toFixed(Math.min(20,Math.max(0,void 0===i?0:i))))),p=Math.abs(l)/1e3;return{total:l,days:Math.floor(p/86400),hours:Math.floor(p/3600%24),minutes:Math.floor(p/60%60),seconds:Math.floor(p%60),milliseconds:Number((p%1*1e3).toFixed()),completed:l<=0}}(e,{now:n,precision:o,controlled:r,offsetTime:this.offsetTime,overtime:i})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(t){this.legacyCountdownRef.current.addTime(t)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(t){return this.state.status===t}},{key:"setTimeDeltaState",value:function(t,e,n){var o=this;if(this.mounted){var r=t.completed&&!this.state.timeDelta.completed,i=t.completed&&"STARTED"===e;return r&&!this.props.overtime&&this.clearTimer(),this.setState(function(n){var r=e||n.status;return t.completed&&!o.props.overtime?r="COMPLETED":e||"COMPLETED"!==r||(r="STOPPED"),{timeDelta:t,status:r}},function(){n&&n(o.state.timeDelta),o.props.onComplete&&(r||i)&&o.props.onComplete(t,i)})}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var t,e,n,o,r,i,a,s,u,c,l,p,f=this.props,h=f.daysInHours,y=f.zeroPadTime,v=f.zeroPadDays,T=this.state.timeDelta;return Object.assign(Object.assign({},T),{api:this.getApi(),props:this.props,formatted:(t={daysInHours:h,zeroPadTime:y,zeroPadDays:v},e=T.days,n=T.hours,o=T.minutes,r=T.seconds,a=(i=Object.assign(Object.assign({},d),t)).daysInHours,s=i.zeroPadTime,c=void 0===(u=i.zeroPadDays)?s:u,l=Math.min(2,s),p=a?m(n+24*e,s):m(n,l),{days:a?"":m(e,c),hours:p,minutes:m(o,l),seconds:m(r,l)})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,n=t.children,r=t.onComplete;return(0,o.createElement)(h,{ref:this.legacyCountdownRef,count:e,onComplete:r},n)}var i=this.props,a=i.className,s=i.overtime,u=i.children,c=i.renderer,l=this.getRenderProps();if(c)return c(l);
1if(u&&this.state.timeDelta.completed&&!s)return(0,o.cloneElement)(u,{countdown:l});var p=l.formatted,f=p.days,m=p.hours,d=p.minutes,y=p.seconds;return(0,o.createElement)("span",{className:a},l.total<0?"-":"",f,f?":":"",m,":",d,":",y)}}]),n}(o.Component);y.defaultProps=Object.assign(Object.assign({},d),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),y.propTypes={date:(0,r.oneOfType)([(0,r.instanceOf)(Date),r.string,r.number]),daysInHours:r.bool,zeroPadTime:r.number,zeroPadDays:r.number,controlled:r.bool,intervalDelay:r.number,precision:r.number,autoStart:r.bool,overtime:r.bool,className:r.string,children:r.element,renderer:r.func,now:r.func,onMount:r.func,onStart:r.func,onPause:r.func,onStop:r.func,onTick:r.func,onComplete:r.func},e.ZP=y}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.