1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1517],{8763:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(67294);class i{constructor(){this.subscriptions=new Set,this.emit=t=>{for(const e of this.subscriptions)e(t)},this.useSubscription=t=>{const e=(0,r.useRef)();e.current=t,(0,r.useEffect)((()=>{function t(t){e.current&&e.current(t)}return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}),[])}}}function o(){const t=(0,r.useRef)();return t.current||(t.current=new i),t.current}},11382:function(t,e,n){var r=n(87462),i=n(4942),o=n(15671),a=n(43144),s=n(60136),c=n(29388),u=n(67294),l=n(94184),p=n.n(l),f=n(98423),m=n(23279),d=n.n(m),h=n(59844),v=n(93355),y=n(96159),S=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},T=((0,v.b)("small","default","large"),null);var g=function(t){(0,s.Z)(n,t);var e=(0,c.Z)(n);function n(t){var a;(0,o.Z)(this,n),(a=e.call(this,t)).debouncifyUpdateSpinning=function(t){var e=(t||a.props).delay;e&&(a.cancelExistingSpin(),a.updateSpinning=d()(a.originalUpdateSpinning,e))},a.updateSpinning=function(){var t=a.props.spinning;a.state.spinning!==t&&a.setState({spinning:t})},a.renderSpin=function(t){var e,n=t.getPrefixCls,o=t.direction,s=a.props,c=s.prefixCls,l=s.className,m=s.size,d=s.tip,h=s.wrapperClassName,v=s.style,g=S(s,["prefixCls","className","size","tip","wrapperClassName","style"]),b=a.state.spinning,D=n("spin",c),O=p()(D,(e={},(0,i.Z)(e,"".concat(D,"-sm"),"small"===m),(0,i.Z)(e,"".concat(D,"-lg"),"large"===m),(0,i.Z)(e,"".concat(D,"-spinning"),b),(0,i.Z)(e,"".concat(D,"-show-text"),!!d),(0,i.Z)(e,"".concat(D,"-rtl"),"rtl"===o),e),l),P=(0,f.Z)(g,["spinning","delay","indicator"]),w=u.createElement("div",(0,r.Z)({},P,{style:v,className:O}),function(t,e){var n=e.indicator,r="".concat(t,"-dot");return null===n?null:(0,y.l$)(n)?(0,y.Tm)(n,{className:p()(n.props.className,r)}):(0,y.l$)(T)?(0,y.Tm)(T,{className:p()(T.props.className,r)}):u.createElement("span",{className:p()(r,"".concat(t,"-dot-spin"))},u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}))}(D,a.props),d?u.createElement("div",{className:"".concat(D,"-text")},d):null);if(a.isNestedPattern()){var E=p()("".concat(D,"-container"),(0,i.Z)({},"".concat(D,"-blur"),b));return u.createElement("div",(0,r.Z)({},P,{className:p()("".concat(D,"-nested-loading"),h)}),b&&u.createElement("div",{key:"loading"},w),u.createElement("div",{className:E,key:"container"},a.props.children))}return w};var s=t.spinning,c=function(t,e){return!!t&&!!e&&!isNaN(Number(e))}(s,t.delay);return a.state={spinning:s&&!c},a.originalUpdateSpinning=a.updateSpinning,a.debouncifyUpdateSpinning(t),a}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var t=this.updateSpinning;t&&t.cancel&&t.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||"undefined"===typeof this.props.children)}},{key:"render",value:function(){return u.createElement(h.C,null,this.renderSpin)}}],[{key:"setDefaultIndicator",value:function(t){T=t}}]),n}(u.Component);g.defaultProps={spinning:!0,size:"default",wrapperClassName:""},e.Z=g},98130:function(t,e,n){var r=n(67294),i=n(45697);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function c(t,e){if("function"!==typeof e&&null!==e)throw new 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 u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function p(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(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,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function m(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(t);if(0===e)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",o=r?r[3]:"",a=r?r[2]:n,s=a.length>=e?a:(m(Array(e)).map((function(){return"0"})).join("")+a).slice(-1*e);
1return"".concat(i).concat(s).concat(o)}var v={daysInHours:!1,zeroPadTime:2};function y(t,e){var n=t.days,r=t.hours,i=t.minutes,o=t.seconds,a=Object.assign(Object.assign({},v),e),s=a.daysInHours,c=a.zeroPadTime,u=a.zeroPadDays,l=void 0===u?c:u,p=Math.min(2,c),f=s?h(r+24*n,c):h(r,p);return{days:s?"":h(n,l),hours:f,minutes:h(i,p),seconds:h(o,p)}}var S=function(t){c(n,t);var e=f(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).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}return s(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,r.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(r.Component);S.propTypes={count:i.number,children:i.element,onComplete:i.func};var T=function(t){c(n,t);var e=f(n);function n(t){var i;if(o(this,n),(i=e.call(this,t)).mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=(0,r.createRef)(),i.tick=function(){var t=i.calcTimeDelta(),e=t.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(t,void 0,e)},i.start=function(){if(!i.isStarted()){var t=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=t?i.calcOffsetStartTimestamp()-t:0;var e=i.calcTimeDelta();i.setTimeDeltaState(e,"STARTED",i.props.onStart),i.props.controlled||e.completed&&!i.props.overtime||(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},i.handleOnComplete=function(t){i.props.onComplete&&i.props.onComplete(t)},t.date){var a=i.calcTimeDelta();i.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}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,r=t.precision,i=t.controlled,o=t.overtime;return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,i=void 0===r?Date.now:r,o=n.precision,a=void 0===o?0:o,s=n.controlled,c=n.offsetTime,u=void 0===c?0:c,l=n.overtime;e="string"===typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,s||(e+=u);var p=s?e:e-i(),f=Math.min(20,Math.max(0,a)),m=Math.round(1e3*parseFloat(((l?p:Math.max(0,p))/1e3).toFixed(f))),d=Math.abs(m)/1e3;return{total:m,days:Math.floor(d/86400),hours:Math.floor(d/3600%24),minutes:Math.floor(d/60%60),seconds:Math.floor(d%60),milliseconds:Number((d%1*1e3).toFixed()),completed:m<=0}}(e,{now:n,precision:r,controlled:i,offsetTime:this.offsetTime,overtime:o})}},{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 r=this;if(this.mounted){var i;
1!this.state.timeDelta.completed&&t.completed&&(this.props.overtime||this.clearTimer(),i=this.handleOnComplete);return this.setState((function(n){var i=e||n.status;return t.completed&&!r.props.overtime?i="COMPLETED":e||"COMPLETED"!==i||(i="STOPPED"),{timeDelta:t,status:i}}),(function(){n&&n(r.state.timeDelta),i&&i(r.state.timeDelta)}))}}},{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=this.props,e=t.daysInHours,n=t.zeroPadTime,r=t.zeroPadDays,i=this.state.timeDelta;return Object.assign(Object.assign({},i),{api:this.getApi(),props:this.props,formatted:y(i,{daysInHours:e,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,n=t.children,i=t.onComplete;return(0,r.createElement)(S,{ref:this.legacyCountdownRef,count:e,onComplete:i},n)}var o=this.props,a=o.className,s=o.overtime,c=o.children,u=o.renderer,l=this.getRenderProps();if(u)return u(l);if(c&&this.state.timeDelta.completed&&!s)return(0,r.cloneElement)(c,{countdown:l});var p=l.formatted,f=p.days,m=p.hours,d=p.minutes,h=p.seconds;return(0,r.createElement)("span",{className:a},l.total<0?"-":"",f,f?":":"",m,":",d,":",h)}}]),n}(r.Component);T.defaultProps=Object.assign(Object.assign({},v),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),T.propTypes={date:(0,i.oneOfType)([(0,i.instanceOf)(Date),i.string,i.number]),daysInHours:i.bool,zeroPadTime:i.number,zeroPadDays:i.number,controlled:i.bool,intervalDelay:i.number,precision:i.number,autoStart:i.bool,overtime:i.bool,className:i.string,children:i.element,renderer:i.func,now:i.func,onMount:i.func,onStart:i.func,onPause:i.func,onStop:i.func,onTick:i.func,onComplete:i.func},e.ZP=T}}]);
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.