vendor: 18,900 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4146],{50840:function(e,t,n){var r;!function(i,s,o,a){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=s.createElement("div"),h=Math.round,p=Math.abs,f=Date.now;function d(e,t,n){return setTimeout(w(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function g(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=i.console&&(i.console.warn||i.console.log);return s&&s.call(i.console,r,n),e.apply(this,arguments)}}u="function"!==typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var y=g((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===a)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),T=g((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function w(e,t){return function(){return e.apply(t,arguments)}}function E(e,t){return"function"==typeof e?e.apply(t&&t[0]||a,t):e}function I(e,t){return e===a?t:e}function k(e,t,n){v(O(t),(function(t){e.addEventListener(t,n,!1)}))}function M(e,t,n){v(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function C(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function A(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function x(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function S(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var r=[],i=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];x(i,o)<0&&r.push(e[s]),i[s]=o,s++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function P(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),s=0;s<c.length;){if((r=(n=c[s])?n+i:t)in e)return r;s++}return a}var L=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var _="ontouchstart"in i,D=P(i,"PointerEvent")!==a,j=_&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),z="touch",X="mouse",Y=24,F=["x","y"],q=["clientX","clientY"];function W(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){E(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,s=1&t&&r-i===0,o=12&t&&r-i===0;n.isFirst=!!s,n.isFinal=!!o,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=Z(t));i>1&&!n.firstMultiple?n.firstMultiple=Z(t):1===i&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,u=o?o.center:s.center,c=t.center=H(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=G(u,c),t.distance=B(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},s=e.prevInput||{};1!==t.eventType&&4!==s.eventType||(i=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=$(t.deltaX,t.deltaY);var l=V(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,t.scale=o?(h=o.pointers,d=r,B(d[0],d[1],q)/B(h[0],h[1],q)):1,t.rotation=o?function(e,t){return G(t[1],t[0],q)+G(e[1],e[0],q)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,s,o=e.lastInterval||t,u=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(u>25||o.velocity===a)){var c=t.deltaX-o.deltaX,l=t.deltaY-o.deltaY,h=V(u,c,l);r=h.x,i=h.y,n=p(h.x)>p(h.y)?h.x:h.y,s=$(c,l),e.lastInterval=t}else n=o.velocity,r=o.velocityX,i=o.velocityY,s=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=s}(n,t);var h,d;var m=e.element;C(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function Z(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function V(e,t,n){return{x:t/e||0,y:n/e||0}}function $(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function B(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(N(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4},K="mousedown",Q="mousemove mouseup";function ee(){this.evEl=K,this.evWin=Q,this.pressed=!1,W.apply(this,arguments)}b(ee,W,{handler:function(e){var t=J[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:X,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:z,3:"pen",4:X,5:"kinect"},re="pointerdown",ie="pointermove pointerup pointercancel";function se(){this.evEl=re,this.evWin=ie,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(re="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),b(se,W,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=te[r],s=ne[e.pointerType]||e.pointerType,o=s==z,a=x(t,e.pointerId,"pointerId");1&i&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):12&i&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",ue="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=ae,this.evWin=ue,this.started=!1,W.apply(this,arguments)}function le(e,t){var n=S(e.touches),r=S(e.changedTouches);return 12&t&&(n=R(n.concat(r),"identifier",!0)),[n,r]}b(ce,W,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=le.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:e})}}});var he={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pe="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=pe,this.targetIds={},W.apply(this,arguments)}function de(e,t){var n=S(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,s,o=S(e.changedTouches),a=[],u=this.target;if(s=n.filter((function(e){return C(e.target,u)})),1===t)for(i=0;i<s.length;)r[s[i].identifier]=!0,i++;for(i=0;i<o.length;)r[o[i].identifier]&&a.push(o[i]),12&t&&delete r[o[i].identifier],i++;return a.length?[R(s.concat(a),"identifier",!0),a]:void 0}b(fe,W,{handler:function(e){var t=he[e.type],n=de.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:e})}});function me(){W.apply(this,arguments);var e=w(this.handler,this);this.touch=new fe(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ve(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ye(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],s=Math.abs(t-i.x),o=Math.abs(n-i.y);if(s<=25&&o<=25)return!0}return!1}b(me,W,{handler:function(e,t,n){var r=n.pointerType==z,i=n.pointerType==X;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ve.call(this,t,n);else if(i&&ye.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Te=P(l.style,"touchAction"),be=Te!==a,we="compute",Ee="auto",Ie="manipulation",ke="none",Me="pan-x",Ce="pan-y",Ae=function(){if(!be)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Oe(e,t){this.manager=e,this.set(t)}Oe.prototype={set:function(e){e==we&&(e=this.compute()),be&&this.manager.element.style&&Ae[e]&&(this.manager.element.style[Te]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,(function(t){E(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(A(e,ke))return ke;var t=A(e,Me),n=A(e,Ce);if(t&&n)return ke;if(t||n)return t?Me:Ce;if(A(e,Ie))return Ie;return Ee}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=A(r,ke)&&!Ae.none,s=A(r,Ce)&&!Ae["pan-y"],o=A(r,Me)&&!Ae["pan-x"];if(i){var a=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(a&&u&&c)return}if(!o||!s)return i||s&&6&n||o&&n&Y?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var xe=32;function Se(e){this.options=u({},this.defaults,e||{}),this.id=L++,this.manager=null,this.options.enable=I(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Pe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Le(e,t){var n=t.manager;return n?n.get(e):e}function Ne(){Se.apply(this,arguments)}function _e(){Ne.apply(this,arguments),this.pX=null,this.pY=null}function De(){Ne.apply(this,arguments)}function je(){Se.apply(this,arguments),this._timer=null,this._input=null}function ze(){Ne.apply(this,arguments)}function Xe(){Ne.apply(this,arguments)}function Ye(){Se.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Fe(e,t){return(t=t||{}).recognizers=I(t.recognizers,Fe.defaults.preset),new qe(e,t)}Se.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Le(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Le(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===x(t,e=Le(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Le(e,this);var t=x(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Re(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=xe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!E(this.options.enable,[this,t]))return this.reset(),void(this.state=xe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(Ne,Se,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:xe}}),b(_e,Ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ce),e&Y&&t.push(Me),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,s=e.deltaX,o=e.deltaY;return i&t.direction||(6&t.direction?(i=0===s?1:s<0?2:4,n=s!=this.pX,r=Math.abs(e.deltaX)):(i=0===o?1:o<0?8:16,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Ne.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Pe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(De,Ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ke]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),b(je,Se,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ee]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return xe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),b(ze,Ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ke]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(Xe,Ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return _e.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&Y&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Pe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Ye,Se,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ie]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var s=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||B(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&s?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return xe},failTimeout:function(){return this._timer=d((function(){this.state=xe}),this.options.interval,this),xe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Fe.VERSION="2.0.7",Fe.defaults={domEvents:!1,touchAction:we,enable:!0,inputTarget:null,inputClass:null,preset:[[ze,{enable:!1}],[De,{enable:!1},["rotate"]],[Xe,{direction:6}],[_e,{direction:6},["swipe"]],[Ye],[Ye,{event:"doubletap",taps:2},["tap"]],[je]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function qe(e,t){var n;this.options=u({},Fe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(D?se:j?fe:_?me:ee))(n,U),this.touchAction=new Oe(this,this.options.touchAction),We(this,!0),v(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function We(e,t){var n,r=e.element;r.style&&(v(e.options.cssProps,(function(i,s){n=P(r.style,s),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}qe.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var s=0;s<r.length;)n=r[s],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),s++}},get:function(e){if(e instanceof Se)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=x(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var n=this.handlers;return v(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==a){var n=this.handlers;
1return v(O(e),(function(e){t?n[e]&&n[e].splice(x(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=s.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&We(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Fe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:xe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:Y,DIRECTION_ALL:30,Manager:qe,Input:W,TouchAction:Oe,TouchInput:fe,MouseInput:ee,PointerEventInput:se,TouchMouseInput:me,SingleTouchInput:ce,Recognizer:Se,AttrRecognizer:Ne,Tap:Ye,Pan:_e,Swipe:Xe,Pinch:De,Rotate:ze,Press:je,on:k,off:M,each:v,merge:T,extend:y,assign:u,inherit:b,bindFn:w,prefixed:P}),("undefined"!==typeof i?i:"undefined"!==typeof self?self:{}).Hammer=Fe,(r=function(){return Fe}.call(t,n,t,e))===a||(e.exports=r)}(window,document)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),i=n(89607),s=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},27561:function(e,t,n){var r=n(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(u){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),i=n(7771),s=n(14841),o=Math.max,a=Math.min;e.exports=function(e,t,n){var u,c,l,h,p,f,d=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=c;return u=c=void 0,d=t,h=e.apply(r,n)}function T(e){return d=e,p=setTimeout(w,t),m?y(e):h}function b(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-d>=l}function w(){var e=i();if(b(e))return E(e);p=setTimeout(w,function(e){var n=t-(e-f);return v?a(n,l-(e-d)):n}(e))}function E(e){return p=void 0,g&&u?y(e):(u=c=void 0,h)}function I(){var e=i(),n=b(e);if(u=arguments,c=this,f=e,n){if(void 0===p)return T(f);if(v)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),h}return t=s(t)||0,r(n)&&(m=!!n.leading,l=(v="maxWait"in n)?o(s(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),I.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=f=c=p=void 0},I.flush=function(){return void 0===p?h:E(i())},I}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),i=n(13218),s=n(33448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}}
1,9008:function(e,t,n){e.exports=n(16505)},4298:function(e,t,n){e.exports=n(97829)},88460:function(e,t,n){"use strict";n.d(t,{Yp:function(){return k}});var r,i,s=n(67294),o=(n(85893),Object.create),a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=(r=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,i=2*r,s=new WeakMap,o=function(e,t){return function(s){var o=t.get(s),a=void 0===o?s.size:o<i?o+1:0;if(!s.has(a))return e(s,a);if(s.size<r){for(;s.has(a);)a=Math.floor(Math.random()*i);return e(s,a)}if(s.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;s.has(a);)a=Math.floor(Math.random()*n);return e(s,a)}}((t=s,function(e,n){return t.set(e,n),n}),s),a=function(e){return function(t){var n=e(t);return t.add(n),n}}(o);e.addUniqueNumber=a,e.generateUniqueNumber=o},"object"==typeof e&&typeof t<"u"?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})},()=>(i||r((i={exports:{}}).exports,i),i.exports));var f=((e,t,n)=>(n=null!=e?o(l(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))!h.call(e,i)&&i!==n&&a(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)))(p()),d=(((e,t)=>{let n=null})((e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",(({data:e})=>{if((e=>void 0!==e.method&&"call"===e.method)(e)){let{params:{timerId:i,timerType:s}}=e;if("interval"===s){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof e<"u"))throw new Error("The timer is in an undefined state.");e()}}else if("timeout"===s){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof e<"u"))throw new Error("The timer is in an undefined state.");e(),n.delete(i)}}}else{if(!(e=>null===e.error&&"number"==typeof e.id)(e)){let{error:{message:t}}=e;throw new Error(t)}{let{id:i}=e,s=r.get(i);if(void 0===s)throw new Error("The timer is in an undefined state.");let{timerId:o,timerType:a}=s;r.delete(i),"interval"===a?t.delete(o):n.delete(o)}}})),{clearInterval:e=>{let n=(0,f.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,f.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,f.generateUniqueNumber)(t);return t.set(r,(()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})})),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,f.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}}),'(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'),"object"==(typeof window>"u"?"undefined":typeof window)),m={setTimeout:d?setTimeout.bind(window):setTimeout,clearTimeout:d?clearTimeout.bind(window):clearTimeout,setInterval:d?setInterval.bind(window):setInterval,clearInterval:d?clearInterval.bind(window):clearInterval};var v={},g=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,v[e]=v[e]||[],v[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),m.setTimeout((()=>{window.localStorage.removeItem(n)}),500),v[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=v[this.name].indexOf(this);v[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}
1dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function y(){return Math.random().toString(36).substring(2)}var T=d?document:null,b=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function w(e,t){let n=0;return function(...r){let i=(new Date).getTime();if(!(i-n<t))return n=i,e(...r)}}var E=()=>Date.now(),I=2147483647;function k({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=T,events:i=b,timers:o,immediateEvents:a=[],onPresenceChange:u=(()=>{}),onPrompt:c=(()=>{}),onIdle:l=(()=>{}),onActive:h=(()=>{}),onAction:p=(()=>{}),onMessage:f=(()=>{}),debounce:v=0,throttle:k=0,eventsThrottle:M=200,startOnMount:C=!0,startManually:A=!1,stopOnIdle:O=!1,crossTab:x=!1,name:S="idle-timer",syncTimers:R=0,leaderElection:P=!1,disabled:L=!1}={}){let N=(0,s.useRef)(E()),_=(0,s.useRef)(E()),D=(0,s.useRef)(null),j=(0,s.useRef)(null),z=(0,s.useRef)(0),X=(0,s.useRef)(0),Y=(0,s.useRef)(0),F=(0,s.useRef)(0),q=(0,s.useRef)(!1),W=(0,s.useRef)(!1),U=(0,s.useRef)(!1),Z=(0,s.useRef)(!0),H=(0,s.useRef)(!1),V=(0,s.useRef)(null),$=(0,s.useRef)(null),B=(0,s.useRef)(e),G=(0,s.useRef)(0);(0,s.useEffect)((()=>{if(t&&console.warn("\u26a0\ufe0f IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("\u274c Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated
1in a future version.");if(e>=I)throw new Error(`\u274c The value for the timeout property must fit in a 32 bit signed integer, ${I}.`);if(t>=I)throw new Error(`\u274c The value for the promptTimeout property must fit in a 32 bit signed integer, ${I}.`);if(n>=I)throw new Error(`\u274c The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${I}.`);if(n>=e)throw new Error(`\u274c The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(B.current=e-n,G.current=n):(B.current=e,G.current=t),!Z.current){if(A||L)return;q.current&&(se.current(null,Ye),$.current&&$.current.active()),be()}}),[e,t,n,A,L]);let J=(0,s.useRef)(O);(0,s.useEffect)((()=>{J.current=O}),[O]);let K=(0,s.useRef)(a),Q=(0,s.useRef)(r),ee=(0,s.useRef)([...new Set([...i,...a]).values()]),te=(0,s.useRef)(L);(0,s.useEffect)((()=>{te.current=L,!Z.current&&(L?Ie():A||be())}),[L]);let ne=(0,s.useRef)(u);(0,s.useEffect)((()=>{ne.current=u}),[u]);let re=(0,s.useRef)(c);(0,s.useEffect)((()=>{re.current=c}),[c]);let ie=(0,s.useRef)(l);(0,s.useEffect)((()=>{ie.current=l}),[l]);let se=(0,s.useRef)(h);(0,s.useEffect)((()=>{se.current=h}),[h]);let oe=(0,s.useRef)(p);(0,s.useEffect)((()=>{oe.current=p}),[p]);let ae=(0,s.useRef)(f);(0,s.useEffect)((()=>{ae.current=f}),[f]);let ue=(0,s.useMemo)((()=>{let e=(e,t)=>oe.current(e,t);return v>0?function(e,t){let n;function r(...r){n&&clearTimeout(n),n=setTimeout((()=>{e(...r),n=null}),t)}return r.cancel=function(){clearTimeout(n)},r}(e,v):k>0?w(e,k):e}),[k,v]),ce=(0,s.useRef)();(0,s.useEffect)((()=>{x&&R&&(ce.current=w((()=>{$.current.active()}),R))}),[x,R]);let le=()=>{null!==V.current&&(m.clearTimeout(V.current),V.current=null)},he=(e,t=!0)=>{le(),V.current=m.setTimeout(me,e||B.current),t&&(j.current=E())},pe=e=>{!W.current&&!q.current&&(re.current(e,Ye),ne.current({type:"active",prompted:!0},Ye)),F.current=0,Y.current=E(),W.current=!0,he(G.current,!1)},fe=()=>{le(),q.current||(ie.current(null,Ye),ne.current({type:"idle"},Ye)),q.current=!0,D.current=E(),J.current?Te():W.current&&(Y.current=0,W.current=!1)},de=e=>{le(),(q.current||W.current)&&(se.current(e,Ye),ne.current({type:"active",prompted:!1},Ye)),W.current=!1,Y.current=0,q.current=!1,z.current+=E()-D.current,X.current+=E()-D.current,ye(),he()},me=e=>{if(!q.current){ue.cancel&&ue.cancel();let t=E()-j.current;return B.current+G.current<t||!(G.current>0)||W.current?void($.current?$.current.idle():fe()):void($.current?$.current.prompt():pe(e))}$.current?$.current.active():de(e)},ve=e=>{if(!C&&!j.current&&(j.current=E(),se.current(null,Ye)),ue(e,Ye),W.current)return;if(le(),!q.current&&K.current.includes(e.type))return void me(e);let t=E()-j.current;q.current&&!O||!q.current&&t>=B.current?me(e):(U.current=!1,F.current=0,Y.current=0,he(),x&&R&&ce.current())},ge=(0,s.useRef)(ve);(0,s.useEffect)((()=>{let e=H.current;e&&Te(),ge.current=M>0?w(ve,M):ve,e&&ye()}),[M,k,v,oe,x,R]);let ye=()=>{d&&Q.current&&(H.current||(ee.current.forEach((e=>{Q.current.addEventListener(e,ge.current,{capture:!0,passive:!0})})),H.current=!0))},Te=(e=!1)=>{d&&Q.current&&(H.current||e)&&(ee.current.forEach((e=>{Q.current.removeEventListener(e,ge.current,{capture:!0})})),H.current=!1)},be=(0,s.useCallback)((e=>!te.current&&(le(),ye(),q.current=!1,W.current=!1,U.current=!1,F.current=0,Y.current=0,$.current&&!e&&$.current.start(),he(),!0)),[V,q,te,B,$]),we=(0,s.useCallback)((e=>!te.current&&(le(),ye(),_.current=E(),z.current+=E()-D.current,X.current+=E()-D.current,z.current=0,q.current=!1,W.current=!1,U.current=!1,F.current=0,Y.current=0,$.current&&!e&&$.current.reset(),A||he(),!0)),[V,q,B,A,te,$]),Ee=(0,s.useCallback)((e=>!te.current&&(le(),ye(),(q.current||W.current)&&de(),q.current=!1,W.current=!1,U.current=!1,F.current=0,Y.current=0,_.current=E(),$.current&&!e&&$.current.activate(),he(),!0)),[V,q,W,te,B,$]),Ie=(0,s.useCallback)(((e=!1)=>!te.current&&!U.current&&(F.current=Re(),U.current=!0,Te(),le(),$.current&&!e&&$.current.pause(),!0)),[V,te,$]),ke=(0,s.useCallback)(((e=!1)=>!(te.current||!U.current)&&(U.current=!1,W.current||ye(),q.current||he(F.current),Y.current&&(Y.current=E()),$.current&&!e&&$.current.resume(),!0)),[V,B,te,F,$]),Me=(0,s.useCallback)(((e,t)=>($.current?(t&&ae.current(e,Ye),$.current.message(e)):t&&ae.current(e,Ye),!0)),[f]),Ce=(0,s.useCallback)((()=>q.current),[q]),Ae=(0,s.useCallback)((()=>W.current),[W]),Oe=(0,s.useCallback)((()=>$.current?$.current.isLeader:null),[$]),xe=(0,s.useCallback)((()=>$.current?$.current.isLastActive:null),[$]),Se=(0,s.useCallback)((()=>$.current?$.current.token:null),[$]),Re=(0,s.useCallback)((()=>
1{if(U.current)return F.current;let e=F.current?F.current:G.current+B.current,t=j.current?E()-j.current:0,n=Math.floor(e-t);return n<0?0:Math.abs(n)}),[B,G,W,F,j]),Pe=(0,s.useCallback)((()=>Math.round(E()-_.current)),[_]),Le=(0,s.useCallback)((()=>Math.round(E()-N.current)),[N]),Ne=(0,s.useCallback)((()=>D.current?new Date(D.current):null),[D]),_e=(0,s.useCallback)((()=>j.current?new Date(j.current):null),[j]),De=(0,s.useCallback)((()=>q.current?Math.round(E()-D.current+z.current):Math.round(z.current)),[D,z]),je=(0,s.useCallback)((()=>q.current?Math.round(E()-D.current+X.current):Math.round(X.current)),[D,X]),ze=(0,s.useCallback)((()=>{let e=Math.round(Pe()-De());return e>=0?e:0}),[D,z]),Xe=(0,s.useCallback)((()=>{let e=Math.round(Le()-je());return e>=0?e:0}),[D,z]);(0,s.useEffect)((()=>{if(v>0&&k>0)throw new Error("\u274c onAction can either be throttled or debounced, not both.");o&&function(e){m.setTimeout=e.setTimeout,m.clearTimeout=e.clearTimeout,m.setInterval=e.setInterval,m.clearInterval=e.clearInterval}(o);let e=()=>{$.current&&$.current.close(),ue.cancel&&ue.cancel(),le(),Te(!0)};return d&&window.addEventListener("beforeunload",e),()=>{d&&window.removeEventListener("beforeunload",e),$.current&&$.current.close(),ue.cancel&&ue.cancel(),le(),Te(!0)}}),[]),(0,s.useEffect)((()=>{$.current&&$.current.close(),$.current=x?new class{channel;options;elector;token=y();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new g(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new class{options;channel;token=y();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>m.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((n=>{let r=()=>{if(e)return;e=!0;try{m.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=m.setInterval((()=>{this.apply().then((()=>{this.isLeader&&r()}))}),this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&r()}))};this.channel.addEventListener("message",i)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>m.clearInterval(e)))}catch{}}}}(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('\u274c Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}
1send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}}({channelName:S,leaderElection:P,onPrompt:()=>{pe()},onIdle:()=>{fe()},onActive:()=>{de()},onMessage:e=>{ae.current(e,Ye)},start:be,reset:we,activate:Ee,pause:Ie,resume:ke}):null}),[x,S,P,re,ie,se,ae,be,we,Ie,ke]),(0,s.useEffect)((()=>{Z.current||(le(),Te(!0)),!A&&!L&&(C?be():ye())}),[A,C,L,Z]),(0,s.useEffect)((()=>{if(!Z.current){let e=[...new Set([...i,...a]).values()];if(Te(),ee.current=e,Q.current=r,K.current=a,A||L)return;C?be():ye()}}),[r,JSON.stringify(i),JSON.stringify(a),Z,L,A,C]),(0,s.useEffect)((()=>{Z.current&&(Z.current=!1)}),[Z]);let Ye={message:Me,start:be,reset:we,activate:Ee,pause:Ie,resume:ke,isIdle:Ce,isPrompted:Ae,isLeader:Oe,isLastActiveTab:xe,getTabId:Se,getRemainingTime:Re,getElapsedTime:Pe,getTotalElapsedTime:Le,getLastIdleTime:Ne,getLastActiveTime:_e,getIdleTime:De,getTotalIdleTime:je,getActiveTime:ze,getTotalActiveTime:Xe,setOnPresenceChange:e=>{u=e,ne.current=e},setOnPrompt:e=>{c=e,re.current=e},setOnIdle:e=>{l=e,ie.current=e},setOnActive:e=>{h=e,se.current=e},setOnAction:e=>{p=e,oe.current=e},setOnMessage:e=>{f=e,ae.current=e}};return Ye}var M=(0,s.createContext)(null);M.Consumer},97975:function(e,t,n){"use strict";var r=n(87462),i=n(63366),s=n(97326),o=n(94578),a=n(67294),u=n(45697),c=n.n(u),l=n(93967),h=n.n(l),p=n(23663),f=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],d={active:c().bool,"aria-label":c().string,block:c().bool,color:c().string,disabled:c().bool,outline:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),onClick:c().func,size:c().string,children:c().node,className:c().string,cssModule:c().object,close:c().bool},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind((0,s.Z)(n)),n}(0,o.Z)(t,e);var n=t.prototype;return n.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},n.render=function(){var e=this.props,t=e.active,n=e["aria-label"],s=e.block,o=e.className,u=e.close,c=e.cssModule,l=e.color,d=e.outline,m=e.size,v=e.tag,g=e.innerRef,y=(0,i.Z)(e,f);u&&"undefined"===typeof y.children&&(y.children=a.createElement("span",{"aria-hidden":!0},"\xd7"));var T="btn"+(d?"-outline":"")+"-"+l,b=(0,p.mx)(h()(o,{close:u},u||"btn",u||T,!!m&&"btn-"+m,!!s&&"btn-block",{active:t,disabled:this.props.disabled}),c);y.href&&"button"===v&&(v="a");var w=u?"Close":null;return a.createElement(v,(0,r.Z)({type:"button"===v&&y.onClick?"button":void 0},y,{className:b,ref:g,onClick:this.onClick,"aria-label":n||w}))},t}(a.Component);m.propTypes=d,m.defaultProps={color:"secondary",tag:"button"},t.Z=m},97985:function(e,t,n){"use strict";var r=n(87462),i=n(63366),s=n(67294),o=n(45697),a=n.n(o),u=n(93967),c=n.n(u),l=n(23663),h=["className","cssModule","tag"],p={tag:l.iC,className:a().string,cssModule:a().object},f=function(e){var t=e.className,n=e.cssModule,o=e.tag,a=(0,i.Z)(e,h),u=(0,l.mx)(c()(t,"modal-footer"),n);return s.createElement(o,(0,r.Z)({},a,{className:u}))};f.propTypes=p,f.defaultProps={tag:"div"},t.Z=f},92777:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},82262:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return i}})},37247:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},22641:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:function(){return i}})},72179:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(14027);function i(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}}}]);
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.