-1,b=v.isContentEditable;if(m||b){if(c||p===v)return!1;if(p&&b&&p.isContentEditable&&p.contains(v))return!1}else if((l||"touchstart"===e.type)&&p){var w=p.tagName;(p.isContentEditable||g.indexOf(w)>-1)&&p.blur()}if(r.clientStores=[new h(u(e))],r.flag=!0,r.isDrag=!1,r.datas={},A&&(3===e.which||2===e.button))return r.initDrag(),!1;r.doubleFlag=Object(i.N)()-r.prevTime<200,!1===r.emit("dragStart",s({datas:r.datas,inputEvent:e,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()))&&r.initDrag(),r.flag&&l&&e.preventDefault()}if(!r.flag)return!1;var E=0;if(d&&f&&a&&(E=setTimeout((function(){Object(i.q)(o,"touchstart",r.onDragStart,{passive:!1})}))),!d&&f&&a&&Object(i.P)(o,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(E),d&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}},r.onDrag=function(e,t){if(r.flag){var n=u(e),i=r.moveClients(n,e,!1);(r.pinchFlag||i.deltaX||i.deltaY)&&r.emit("drag",s({},i,{isScroll:!!t,inputEvent:e})),r.pinchFlag&&r.onPinch(e,n),r.getCurrentStore().addClients(n)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container;r.isTouch&&n&&Object(i.P)(o,"touchstart",r.onDragStart),r.flag=!1;var a=r.getCurrentStore().getPosition(),A=Object(i.N)(),l=!r.isDrag&&r.doubleFlag;r.prevTime=r.isDrag||l?0:A,r.emit("dragEnd",s({datas:r.datas,isDouble:l,isDrag:r.isDrag,inputEvent:e},a)),r.pinchFlag&&r.onPinchEnd(e),r.clientStores=[]}},r.onBlur=function(){r.onDragEnd()};var o=[].concat(t);r.options=s({checkInput:!1,container:o.length>1?window:o[0],preventRightClick:!0,preventDefault:!0,checkWindowBlur:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,A=a.container,l=a.events,c=a.checkWindowBlur;if(r.isTouch=l.indexOf("touch")>-1,r.isMouse=l.indexOf("mouse")>-1,r.targets=o,r.isMouse&&(o.forEach((function(e){Object(i.q)(e,"mousedown",r.onDragStart)})),Object(i.q)(A,"mousemove",r.onDrag),Object(i.q)(A,"mouseup",r.onDragEnd),Object(i.q)(A,"contextmenu",r.onDragEnd)),c&&Object(i.q)(window,"blur",r.onBlur),r.isTouch){var f={passive:!1};o.forEach((function(e){Object(i.q)(e,"touchstart",r.onDragStart,f)})),Object(i.q)(A,"touchmove",r.onDrag,f),Object(i.q)(A,"touchend",r.onDragEnd,f),Object(i.q)(A,"touchcancel",r.onDragEnd,f)}return r}!function(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},n.isDragging=function(){return this.isDrag},n.isFlag=function(){return this.flag},n.isPinchFlag=function(){return this.pinchFlag},n.isDoubleFlag=function(){return this.doubleFlag},n.isPinching=function(){return this.isPinch},n.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},n.move=function(e,t){var n=e[0],r=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map((function(e){var t=e.clientX,i=e.clientY;return{clientX:t+n,clientY:i+r,originalClientX:t,originalClientY:i}})),t,!0)},n.triggerDragStart=function(e){this.onDragStart(e,!1)},n.setEventDatas=function(e){var t=this.datas;for(var n in e)t[n]=e[n];return this},n.getEventDatas=function(){return this.datas},n.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),Object(i.P)(window,"blur",this.onBlur),this.isMouse&&(t.forEach((function(t){Object(i.P)(t,"mousedown",e.onDragStart)})),Object(i.P)(n,"mousemove",this.onDrag),Object(i.P)(n,"mouseup",this.onDragEnd),Object(i.P)(n,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach((function(t){Object(i.P)(t,"touchstart",e.onDragStart)})),Object(i.P)(n,"touchstart",this.onDragStart),Object(i.P)(n,"touchmove",this.onDrag),Object(i.P)(n,"touchend",this.onDragEnd),Object(i.P)(n,"touchcancel",this.onDragEnd))},n.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var n=new h(u(e));this.pinchFlag=!0,this.clientStores.splice(0,0,n),!1===this.emit("pinchStart",s({datas:this.datas,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition(),{inputEvent:e}))&&(this.pinchFlag=!1)}},n.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",s({datas:this.datas,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t),{inputEvent:e}))}},n.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",s({datas:this.datas,isPinch:t,touches:n.getPositions()},n.getPosition(),{inputEvent:e})),this.isPinch=!1,this.pinchFlag=!1}},n.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},n.getCurrentStore=function(){return this.clientStores[0]},n.moveClients=function(e,t,n){var r=this.getCurrentStore()[n?"addClients":"getPosition"](e);return this.isDrag=!0,s({datas:this.datas},r,{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},t}(a);var B=n(28),m=n(15),b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function w(e){var t=e.container;return[t.scrollLeft,t.scrollTop]}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startRect=null,t.startPos=[],t.prevTime=0,t.timer=0,t}!function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.dragStart=function(e,t){var n=t.container.getBoundingClientRect(),r=n.top,i=n.left,o=n.width,a=n.height;this.startPos=[e.clientX,e.clientY],this.startRect={top:r,left:i,width:o,height:a}},n.drag=function(e,t){var n=this,r=e.clientX,o=e.clientY,a=t.container,A=t.threshold,s=void 0===A?0:A,l=t.throttleTime,u=void 0===l?0:l,c=t.getScrollPosition,f=void 0===c?w:c,d=this.startRect,p=this.startPos,h=Object(i.N)(),g=Math.max(u+this.prevTime-h,0),v=[0,0];if(d.top>o-s?(p[1]>d.top||op[1])&&(v[1]=1),d.left>r-s?(p[0]>d.left||r
p[0])&&(v[0]=1),clearTimeout(this.timer),!v[0]&&!v[1])return!1;if(g>0)return this.timer=window.setTimeout((function(){n.drag(e,t)}),g),!1;this.prevTime=h;var B=f({container:a,direction:v});this.trigger("scroll",{container:a,direction:v,inputEvent:e});var m=f({container:a,direction:v}),b=m[0]-B[0],E=m[1]-B[1];return!(!b&&!E)&&(this.trigger("move",{offsetX:v[0]?b:0,offsetY:v[1]?E:0,inputEvent:e}),u&&(this.timer=window.setTimeout((function(){n.drag(e,t)}),u)),!0)},n.dragEnd=function(){clearTimeout(this.timer)},t}(m.a),y=n(25),C=n(16),Q=n(24),x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function F(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){var f=Math.sqrt((a*a+s*s)/(1+t*t));a=(a>=0?1:-1)*(t*f),s=(s>=0?1:-1)*f}var d=Math.abs(a),p=Math.abs(s),h=a<0?u-n.left:n.right-u,g=s<0?c-n.top:n.bottom-c;a=(a>=0?1:-1)*(d=(r=Object(i.t)([d,p],[0,0],[h,g],!!t))[0]),s=(s>=0?1:-1)*(p=r[1]);var v=u+Math.min(0,a),B=c+Math.min(0,s);return{left:v,top:B,right:v+d,bottom:B+p,width:d,height:p}}function T(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,i=t.width,o=t.height;return{pos1:[n,r],pos2:[n+i,r],pos3:[n,r+o],pos4:[n+i,r+o]}}function N(e,t){var n=Object(B.b)(e,t),r=n.list,i=n.prevList,o=n.added,a=n.removed;return o.map((function(e){return r[e]})).concat(a.map((function(e){return i[e]})))}var _=Object(Q.a)("\n:host {\n position: fixed;\n display: none;\n border: 1px solid #4af;\n background: rgba(68, 170, 255, 0.5);\n z-index: 100;\n}\n"),M="selecto-selection "+_.className,R=["boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","toggleContinueSelect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside"],D=function(){for(var e=0,t=0,n=arguments.length;t-1);)m=m.parentElement;B=m?[m]:[]}var b=B.length>0,w=!u&&b;if(w&&!c)return e.stop(),!1;var E=A.type,y="mousedown"===E||"touchstart"===E;if(!(!(!e.isClick&&y)||n.trigger("dragStart",U({},e))))return e.stop(),!1;if(l?(B=N(n.selectedTargets,B),r.startPassedTargets=n.selectedTargets):r.startPassedTargets=[],n.select(n.selectedTargets,B,v,A,!0),r.startX=o,r.startY=a,r.selectFlag=!1,r.preventDragFromInside=!1,r.boundsArea=n.target.style.cssText+="left:0px;top:0px;transform: translate("+o+"px, "+a+"px)",w&&c)A.preventDefault(),p&&(n.selectEnd(r.startSelectedTargets,r.startPassedTargets,v,e),r.preventDragFromInside=!0);else{r.selectFlag=!0,"touchstart"===E&&A.preventDefault();var C=n.options.scrollOptions;C&&C.container&&n.dragScroll.dragStart(e,C)}return!0},n.onDrag=function(e){if(e.datas.selectFlag){var t=n.options.scrollOptions;if(t&&t.container&&n.dragScroll.drag(e,t))return}n.check(e)},n.onDragEnd=function(e){var t=e.datas,r=e.inputEvent,i=H(e,n.options.ratio),o=t.selectFlag;r&&!e.isClick&&n.trigger("dragEnd",U(U({isDouble:!!e.isDouble,isDrag:!1,isSelect:o},e),{rect:i})),n.target.style.cssText+="display: none;",o&&(t.selectFlag=!1,n.dragScroll.dragEnd()),t.preventDragFromInside||n.selectEnd(t.startSelectedTargets,t.startPassedTargets,i,e)},n.onKeyDown=function(e){n.sameCombiKey(e)&&(n.continueSelect=!0,n.trigger("keydown",{}))},n.onKeyUp=function(e){n.sameCombiKey(e,!0)&&(n.continueSelect=!1,n.trigger("keyup",{}))},n.onBlur=function(){n.toggleContinueSelect&&n.continueSelect&&(n.continueSelect=!1,n.trigger("keyup",{}))},n.onDocumentSelectStart=function(e){if(n.gesto.isFlag()){var t=n.dragContainer;t===window&&(t=document.documentElement);var r=t instanceof Element?[t]:[].slice.call(t),i=e.target;r.some((function(t){if(t===i||t.contains(i))return e.preventDefault(),!0}))}},n.target=t.target,n.container=t.container||document.body,n.options=U({target:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,hitRate:100,continueSelect:!1,toggleContinueSelect:null,keyContainer:null,scrollOptions:void 0,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,getElementRect:T,cspNonce:"",ratio:0},t),n.initElement(),n.initDragScroll(),n.setKeyController(),n}F(t,e);var n,r,o=t.prototype;return o.setSelectedTargets=function(e){return this.selectedTargets=e,this},o.getSelectedTargets=function(){return this.selectedTargets},o.setKeyContainer=function(e){var t=this,n=this.options;O(n.keyContainer,e,(function(){n.keyContainer=e,t.setKeyController()}))},o.setToggleContinueSelect=function(e){var t=this,n=this.options;O(n.toggleContinueSelect,e,(function(){n.toggleContinueSelect=e,t.setKeyEvent()}))},o.setPreventDefault=function(e){this.gesto.options.preventDefault=e},o.setCheckInput=function(e){this.gesto.options.checkInput=e},o.triggerDragStart=function(e){return this.gesto.triggerDragStart(e),this},o.destroy=function(){this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),Object(i.P)(document,"selectstart",this.onDocumentSelectStart),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},o.getElementPoints=function(e){var t=this.getElementRect,n=t(e),r=[n.pos1,n.pos2,n.pos4,n.pos3];if(t!==T){var i=e.getBoundingClientRect();return Object(C.a)(r,i)}return r},o.findSelectableTargets=function(e){var t=this;void 0===e&&(e=this.gesto.getEventDatas());var n=this.getSelectableTargets(),r=n.map((function(e){return t.getElementPoints(e)}));e.selectableTargets=n,e.selectablePoints=r},o.clickTarget=function(e,t){var n=function(e){if("touches"in e){var t=e.touches[0]||e.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}}return{clientX:e.clientX,clientY:e.clientY}}(e),r={datas:{selectFlag:!1},clientX:n.clientX,clientY:n.clientY,inputEvent:e,isClick:!0,stop:function(){return!1}};return this.onDragStart(r,t)&&this.onDragEnd(r),this},o.setKeyController=function(){var e=this.options,t=e.keyContainer,n=e.toggleContinueSelect;this.keycon&&(this.keycon.destroy(),this.keycon=null),n&&(this.keycon=new y.a(t||window),this.keycon.keydown(this.onKeyDown).keyup(this.onKeyUp).on("blur",this.onBlur))},o.setKeyEvent=function(){this.options.toggleContinueSelect&&!this.keycon&&this.setKeyController()},o.initElement=function(){this.target=function e(t,n,r){var o=t.tag,a=t.children,A=t.attributes,s=t.className,l=t.style,u=n||document.createElement(o);for(var c in A)u.setAttribute(c,A[c]);var f=u.children;if(a.forEach((function(t,n){e(t,f[n],u)})),s&&s.split(" ").forEach((function(e){Object(i.G)(u,e)||Object(i.p)(u,e)})),l){var d=u.style;for(var c in l)d[c]=l[c]}return!n&&r&&r.appendChild(u),u}(function(e,t){for(var n=[],r=2;r=Math.min(100,A)}))},o.initDragScroll=function(){var e=this;this.dragScroll.on("scroll",(function(t){var n=t.container,r=t.direction;e.trigger("scroll",{container:n,direction:r})})).on("move",(function(t){var n=t.offsetX,r=t.offsetY,i=t.inputEvent,o=i.datas;o.startX-=n,o.startY-=r,o.selectablePoints.forEach((function(e){e.forEach((function(e){e[0]-=n,e[1]-=r}))})),e.gesto.scrollBy(n,r,i.inputEvent,!1),i.distX+=n,i.distY+=r,e.check(i)}))},o.getSelectableTargets=function(){var e=[];return this.options.selectableTargets.forEach((function(t){Object(i.K)(t)?e.push(t):[].slice.call(document.querySelectorAll(t)).forEach((function(t){e.push(t)}))})),e},o.select=function(e,t,n,r,i){var o=Object(B.b)(e,t),a=o.added,A=o.removed,s=o.prevList,l=o.list;this.selectedTargets=t,i&&this.trigger("selectStart",{selected:t,added:a.map((function(e){return l[e]})),removed:A.map((function(e){return s[e]})),rect:n,inputEvent:r}),(a.length||A.length)&&this.trigger("select",{selected:t,added:a.map((function(e){return l[e]})),removed:A.map((function(e){return s[e]})),rect:n,inputEvent:r})},o.selectEnd=function(e,t,n,r){var i=r.inputEvent,o=r.isDouble,a=Object(B.b)(e,this.selectedTargets),A=a.added,s=a.removed,l=a.prevList,u=a.list,c=Object(B.b)(t,this.selectedTargets),f=c.added,d=c.removed,p=c.prevList,h=c.list,g=i&&i.type,v="mousedown"===g||"touchstart"===g;this.trigger("selectEnd",{selected:this.selectedTargets,added:A.map((function(e){return u[e]})),removed:s.map((function(e){return l[e]})),afterAdded:f.map((function(e){return h[e]})),afterRemoved:d.map((function(e){return p[e]})),isDragStart:v,isDouble:!!o,rect:n,inputEvent:i})},o.check=function(e,t){void 0===t&&(t=H(e,this.options.ratio));var n=e.datas,r=e.inputEvent,i=t.top,o=t.left,a=t.width,A=t.height,s=n.selectFlag,l=[],u=[];if(s){this.target.style.cssText+="display: block;left:0px;top:0px;transform: translate("+o+"px, "+i+"px);width:"+a+"px;height:"+A+"px;";var c=this.hitTest(t,n.startX,n.startY,n.selectableTargets,n.selectablePoints);l=this.selectedTargets,u=N(n.startPassedTargets,c),this.selectedTargets=u}this.trigger("drag",U(U({},e),{isSelect:s,rect:t})),s&&this.select(l,u,t,r)},o.sameCombiKey=function(e,t){var n=[].concat(this.options.toggleContinueSelect),r=Object(y.b)(e.inputEvent,e.key),o=Object(i.H)(n[0])?n:[n];if(t){var a=e.key;return o.some((function(e){return e.some((function(e){return e===a}))}))}return o.some((function(e){return e.every((function(e){return r.indexOf(e)>-1}))}))},t=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var A=e.length-1;A>=0;A--)(i=e[A])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([(n=R,r=function(e,t){var n={enumerable:!0,configurable:!0,get:function(){return this.options[t]}},r=Object(i.u)("set "+t);e[r]?n.set=function(e){this[r](e)}:n.set=function(e){this.options[t]=e},Object.defineProperty(e,t,n)},function(e){var t=e.prototype;n.forEach((function(e){r(t,e)}))})],t)}(a)),K=n(10),L=function(e,t){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;A--)(i=e[A])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([Object(K.e)(k)],t.prototype,"selecto",void 0),t}(r.PureComponent);t.a=X},function(e,t,n){"use strict";var r=n(1),i=n(15),o=n(0),a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0?i:i+2*Math.PI}([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function l(e){return e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r-1,b=v.isContentEditable;if(m||b){if(c||g===v)return!1;if(g&&b&&g.isContentEditable&&g.contains(v))return!1}else if((u||"touchstart"===e.type)&&g){var w=g.tagName;(g.isContentEditable||h.indexOf(w)>-1)&&g.blur()}if(r.clientStores=[new p(l(e))],r.flag=!0,r.isDrag=!1,r.datas={},s&&(3===e.which||2===e.button))return r.initDrag(),!1;r.doubleFlag=Object(o.N)()-r.prevTime<200,!1===r.emit("dragStart",A({datas:r.datas,inputEvent:e,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()))&&r.initDrag(),r.flag&&u&&e.preventDefault()}if(!r.flag)return!1;var E=0;if(d&&f&&a&&(E=setTimeout((function(){Object(o.q)(i,"touchstart",r.onDragStart,{passive:!1})}))),!d&&f&&a&&Object(o.P)(i,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(E),d&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}},r.onDrag=function(e,t){if(r.flag){var n=l(e),i=r.moveClients(n,e,!1);(r.pinchFlag||i.deltaX||i.deltaY)&&r.emit("drag",A({},i,{isScroll:!!t,inputEvent:e})),r.pinchFlag&&r.onPinch(e,n),r.getCurrentStore().addClients(n)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,i=t.container;r.isTouch&&n&&Object(o.P)(i,"touchstart",r.onDragStart),r.flag=!1;var a=r.getCurrentStore().getPosition(),s=Object(o.N)(),l=!r.isDrag&&r.doubleFlag;r.prevTime=r.isDrag||l?0:s,r.emit("dragEnd",A({datas:r.datas,isDouble:l,isDrag:r.isDrag,inputEvent:e},a)),r.pinchFlag&&r.onPinchEnd(e),r.clientStores=[]}},r.onBlur=function(){r.onDragEnd()};var i=[].concat(t);r.options=A({checkInput:!1,container:i.length>1?window:i[0],preventRightClick:!0,preventDefault:!0,checkWindowBlur:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,s=a.container,u=a.events,c=a.checkWindowBlur;if(r.isTouch=u.indexOf("touch")>-1,r.isMouse=u.indexOf("mouse")>-1,r.targets=i,r.isMouse&&(i.forEach((function(e){Object(o.q)(e,"mousedown",r.onDragStart)})),Object(o.q)(s,"mousemove",r.onDrag),Object(o.q)(s,"mouseup",r.onDragEnd),Object(o.q)(s,"contextmenu",r.onDragEnd)),c&&Object(o.q)(window,"blur",r.onBlur),r.isTouch){var f={passive:!1};i.forEach((function(e){Object(o.q)(e,"touchstart",r.onDragStart,f)})),Object(o.q)(s,"touchmove",r.onDrag,f),Object(o.q)(s,"touchend",r.onDragEnd,f),Object(o.q)(s,"touchcancel",r.onDragEnd,f)}return r}!function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},n.isDragging=function(){return this.isDrag},n.isFlag=function(){return this.flag},n.isPinchFlag=function(){return this.pinchFlag},n.isDoubleFlag=function(){return this.doubleFlag},n.isPinching=function(){return this.isPinch},n.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},n.move=function(e,t){var n=e[0],r=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map((function(e){var t=e.clientX,i=e.clientY;return{clientX:t+n,clientY:i+r,originalClientX:t,originalClientY:i}})),t,!0)},n.triggerDragStart=function(e){this.onDragStart(e,!1)},n.setEventDatas=function(e){var t=this.datas;for(var n in e)t[n]=e[n];return this},n.getEventDatas=function(){return this.datas},n.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),Object(o.P)(window,"blur",this.onBlur),this.isMouse&&(t.forEach((function(t){Object(o.P)(t,"mousedown",e.onDragStart)})),Object(o.P)(n,"mousemove",this.onDrag),Object(o.P)(n,"mouseup",this.onDragEnd),Object(o.P)(n,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach((function(t){Object(o.P)(t,"touchstart",e.onDragStart)})),Object(o.P)(n,"touchstart",this.onDragStart),Object(o.P)(n,"touchmove",this.onDrag),Object(o.P)(n,"touchend",this.onDragEnd),Object(o.P)(n,"touchcancel",this.onDragEnd))},n.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var n=new p(l(e));this.pinchFlag=!0,this.clientStores.splice(0,0,n),!1===this.emit("pinchStart",A({datas:this.datas,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition(),{inputEvent:e}))&&(this.pinchFlag=!1)}},n.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",A({datas:this.datas,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t),{inputEvent:e}))}},n.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",A({datas:this.datas,isPinch:t,touches:n.getPositions()},n.getPosition(),{inputEvent:e})),this.isPinch=!1,this.pinchFlag=!1}},n.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},n.getCurrentStore=function(){return this.clientStores[0]},n.moveClients=function(e,t,n){var r=this.getCurrentStore()[n?"addClients":"getPosition"](e);return this.isDrag=!0,A({datas:this.datas},r,{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},t}(i.a);var v=n(24),B=n(34),m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function b(e,t){function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn?"block":"none",o=this.isHorizontal?["X","width"]:["Y","height"],a=o[0],A=o[1];this.barElement.style.cssText="display: "+i+";",this.thumbElement.style.cssText+=A+": "+n*n/r+"px;transform: translate"+a+"("+t/r*n+"px)"},n.destroy=function(){Object(o.P)(this.barElement,"wheel",this.onWheel),this.gesto.off(),this.off()},t}(i.a),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t}(function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;return i.containerElement=t,i.viewportElement=n,i.offsetX=0,i.offsetY=0,i.containerWidth=0,i.containerHeight=0,i.viewportWidth=0,i.viewportHeight=0,i.scrollLeft=0,i.scrollTop=0,i.timer=0,i.tempScale=1,i.dragFlag=!1,i.isLoop=!1,i.resize=function(){var e=i.containerElement,t=e.offsetWidth,n=e.offsetHeight,r=i.viewportElement,o=r.offsetWidth,a=r.offsetHeight;i.containerWidth=t,i.containerHeight=n,i.viewportWidth=o,i.viewportHeight=a},i.onScroll=function(){var e=i.wrapperElement,t=e.scrollLeft,n=e.scrollTop,r=i.zoom,o=void 0===r?x.zoom:r,a=t-i.scrollLeft,A=n-i.scrollTop,s=i.getScrollLeft(),l=i.getScrollTop();i.isLoop&&(i.isLoop=!1),i.scrollLeft=t,i.scrollTop=n,i.scrollTo(s+a/o,l+A/o)},i.onWheel=function(e){var t=i.options;if(e.ctrlKey){var n=-e.deltaY,r=Math.max(1+n*(t.wheelScale||.01),1e-6);i.trigger("pinch",{distance:n,scale:r,rotation:0,zoom:i.zoom*r,inputEvent:e})}else{if(!y&&!t.useForceWheel)return;var o=i.zoom,a=e.deltaX,A=e.deltaY;e.shiftKey&&!a&&(a=A,A=0),i.scrollBy(a/o,A/o)}e.preventDefault()},i.onGestureStart=function(e){i.tempScale=i.zoom,e.preventDefault()},i.onGestureChange=function(e){if(e.preventDefault(),!i.gesto.isFlag()&&i.tempScale){var t=e.scale;i.trigger("pinch",{distance:0,scale:t,rotation:e.rotation,zoom:i.tempScale*t,inputEvent:e})}else i.tempScale=0},i.options=w(w({},x),r),i.init(),i}b(t,e);var n,r,i=t.prototype;return i.getContainer=function(){return this.containerElement},i.getViewport=function(){return this.viewportElement},i.getWrapper=function(){return this.wrapperElement},i.destroy=function(){this.off(),this.gesto.unset(),this.verticalScrollbar.destroy(),this.horizontalScrollbar.destroy(),this.injectResult.destroy();var e=this.containerElement;Object(o.P)(window,"resize",this.resize),Object(o.P)(this.wrapperElement,"scroll",this.onScroll),Object(o.P)(e,"wheel",this.onWheel),Object(o.P)(e,"tgesturestart",this.onGestureStart),Object(o.P)(e,"gesturechange",this.onGestureChange),this.gesto=null,this.injectResult=null,this.containerElement=null,this.viewportElement=null,this.options=null},i.getScrollTop=function(e){return this.scrollTop/this.zoom+this.offsetY+(e?N(this.getRangeY()[0]):0)},i.getScrollLeft=function(e){return this.scrollLeft/this.zoom+this.offsetX+(e?N(this.getRangeX()[0]):0)},i.getScrollWidth=function(e){var t=this.getRangeX(e);return this.containerWidth+N(t[0])+N(t[1])},i.getScrollHeight=function(e){var t=this.getRangeY(e);return this.containerHeight+N(t[0])+N(t[1])},i.scrollCenter=function(){this.resize();var e=this.zoom,t=-(this.containerWidth/e-this.viewportWidth)/2,n=-(this.containerHeight/e-this.viewportHeight)/2;return this.scrollTo(t,n)},i.scrollBy=function(e,t){return this.scrollTo(this.getScrollLeft()+e,this.getScrollTop()+t)},i.scrollTo=function(e,t){var n=this,r=this,i=r.zoom,o=void 0===i?x.zoom:i,a=r.margin,A=void 0===a?x.margin:a,s=r.threshold,l=void 0===s?x.threshold:s,u=r.scrollLeft,c=r.scrollTop,f=this.getRangeX(!0,!0),d=f[0],p=f[1],h=this.getRangeY(!0,!0),g=h[0],v=h[1],B=u,m=c,b=this.getScrollAreaWidth(),w=this.getScrollAreaHeight(),E=e*o,y=t*o;if(E-l<=d){var C=Math.max(0,E-d);B=C,e=(d+C)/o}else if(E+l>=p){var Q=Math.max(0,p-E);B=b-Q,e=(p-Q)/o}else Bb-l&&(B-=A);if(y-l<=g){C=Math.max(0,y-g);m=C,t=(g+C)/o}else if(y+l>=v){Q=Math.max(0,v-y);m=w-Q,t=(v-Q)/o}else mw-l&&(m-=A);B=Math.round(B),m=Math.round(m),this.scrollLeft=B,this.scrollTop=m,this.offsetX=e-B/o,this.offsetY=t-m/o,this.render();var F=this.getScrollLeft(),U=this.getScrollTop();return this.trigger("scroll",{scrollLeft:F,scrollTop:U}),u===B&&c===m||(this.isLoop=!0,this.move(B,m),requestAnimationFrame((function(){if(n.isLoop){n.isLoop=!1;var e=n.wrapperElement,t=e.scrollLeft,r=e.scrollTop;n.scrollLeft=t,n.scrollTop=r,B===t&&m===r||n.scrollTo(F,U)}})),!1)},i.setZoom=function(e){var t=this,n=t.containerWidth,r=t.containerHeight,i=t.zoomOffsetX,a=void 0===i?x.zoomOffsetX:i,A=t.zoomOffsetY,s=void 0===A?x.zoomOffsetY:A,l=t.zoom,u=this.getScrollLeft(),c=this.getScrollTop();this.options.zoom=e;var f=this.getScrollLeft(),d=this.getScrollTop(),p=Object(o.w)(""+a,n),h=Object(o.w)(""+s,r),g=u+p/l,v=c+h/l,B=f+p/e,m=d+h/e;this.scrollBy(g-B,v-m),this.render()},i.getRangeX=function(e,t){var n=this.rangeX,r=void 0===n?x.rangeX:n,i=this.margin,o=void 0===i?x.margin:i,a=this.zoom,A=void 0===a?x.zoom:a,s=this.threshold,l=_(this.getScrollLeft(),o,r,s,t);return e?[l[0]*A,Math.max(this.viewportWidth*A-this.containerWidth,l[1]*A)]:l},i.getRangeY=function(e,t){var n=this.rangeY,r=void 0===n?x.rangeY:n,i=this.margin,o=void 0===i?x.margin:i,a=this.zoom,A=void 0===a?x.zoom:a,s=this.threshold,l=_(this.getScrollTop(),o,r,s,t);return e?[l[0]*A,Math.max(this.viewportHeight*A-this.containerHeight,l[1]*A)]:l},i.init=function(){var e=this,t=this.containerElement,n=this.options;Object(o.p)(t,F);var r=n.wrapperElement||t.querySelector(".infinite-viewer-wrapper"),i=n.scrollAreaElement||t.querySelector(".infinite-viewer-scroll-area"),a=n.horizontalScrollElement||t.querySelector(".infinite-viewer-horizontal-scroll-bar"),A=n.verticalScrollElement||t.querySelector(".infinite-viewer-vertical-scroll-bar");r||(r=document.createElement("div"),Object(o.p)(r,"infinite-viewer-wrapper"),r.insertBefore(this.viewportElement,null),t.insertBefore(r,null)),this.wrapperElement=r,i||(i=document.createElement("div"),Object(o.p)(i,"infinite-viewer-scroll-area"),r.insertBefore(i,r.firstChild)),this.scrollAreaElement=i,this.horizontalScrollbar=new M("horizontal",a),this.verticalScrollbar=new M("vertical",A),this.horizontalScrollbar.on("scroll",(function(t){e.scrollBy(t.delta/e.zoom,0)})),this.verticalScrollbar.on("scroll",(function(t){e.scrollBy(0,t.delta/e.zoom)})),this.horizontalScrollbar.isAppend&&t.insertBefore(this.horizontalScrollbar.barElement,null),this.verticalScrollbar.isAppend&&t.insertBefore(this.verticalScrollbar.barElement,null),Object(o.p)(t,F),this.injectResult=Q.inject(t,{nonce:this.options.cspNonce}),this.gesto=new g(t,{container:document.body,events:["touch"]}).on("dragStart",(function(t){var n=t.inputEvent,r=t.datas,i=t.stop;e.pauseAnimation(),e.dragFlag=!1,!1!==e.trigger("dragStart",{inputEvent:n})?(n.preventDefault(),r.startEvent=n):i()})).on("drag",(function(t){if(!e.options.usePinch||t.isPinch){e.trigger("drag",{inputEvent:t.inputEvent}),function(e){var t=e.deltaX,n=e.deltaY,r=e.datas,i=Date.now(),o=r.speed;if(!o)return r.speed=[0,0],void(r.time=i);var a=i-r.time;r.speed=[o[0]/2+t/a,o[1]/2+n/a]}(t);var r=e.zoom;e.scrollBy(-t.deltaX/r,-t.deltaY/r)}else!e.dragFlag&&t.movement>n.pinchThreshold&&(e.dragFlag=!0,e.trigger("abortPinch",{inputEvent:t.datas.startEvent||t.inputEvent}))})).on("dragEnd",(function(t){e.trigger("dragEnd",{isDrag:t.isDrag,isDouble:t.isDouble,inputEvent:t.inputEvent}),e.startAnimation(t.datas.speed)})).on("pinchStart",(function(t){var n=t.inputEvent,r=t.datas,i=t.stop;n.preventDefault(),e.pauseAnimation(),r.startZoom=e.zoom,!1===e.trigger("pinchStart",{inputEvent:n})&&i()})).on("pinch",(function(t){e.trigger("pinch",{rotation:t.rotation,distance:t.distance,scale:t.scale,zoom:t.datas.startZoom*t.scale,inputEvent:t.inputEvent})})),Object(o.q)(r,"scroll",this.onScroll),Object(o.q)(window,"resize",this.resize),Object(o.q)(t,"wheel",this.onWheel,{passive:!1}),Object(o.q)(t,"gesturestart",this.onGestureStart,{passive:!1}),Object(o.q)(t,"gesturechange",this.onGestureChange,{passive:!1}),this.resize(),this.render(),this.scrollTo(0,0)},i.render=function(){var e=this.offsetX,t=this.offsetY,n=this.zoom,r=void 0===n?x.zoom:n,i=this.translateZ,o=void 0===i?0:i,a=-e*r,A=-t*r;this.scrollAreaElement.style.cssText="width:calc(100% + "+this.getScrollAreaWidth()+"px);height:calc(100% + "+this.getScrollAreaHeight()+"px);",this.viewportElement.style.cssText+="transform-origin: 0 0;transform:translate3d("+a+"px, "+A+"px, "+o+"px) scale("+r+");",this.renderScroll()},i.renderScroll=function(){var e=this.containerWidth,t=this.containerHeight,n=this.zoom,r=this.getScrollLeft(!0)*n,i=this.getScrollTop(!0)*n,o=this.getScrollWidth(!0),a=this.getScrollHeight(!0);this.horizontalScrollbar.render(this.displayHorizontalScroll,r,e,o),this.verticalScrollbar.render(this.displayVerticalScroll,i,t,a)},i.move=function(e,t){var n=this.wrapperElement;n.scrollLeft=e,n.scrollTop=t},i.startAnimation=function(e){var t=this;if(e&&(e[0]||e[1])){var n=-6e-4,r=function(e){return 1-Math.pow(1-e,3)},i=T(e,n),o=function(e,t){var n=T(e,t);return[e[0]/2*n,e[1]/2*n]}(e,n),a=Date.now(),A=a;this.timer=requestAnimationFrame((function e(){var n=Date.now(),s=n-a;i=i||(t.timer=requestAnimationFrame(e))}))}},i.pauseAnimation=function(){cancelAnimationFrame(this.timer)},i.getScrollAreaWidth=function(){var e=this.getRangeX(!0),t=e[0],n=e[1];return t||n?2*this.margin:0},i.getScrollAreaHeight=function(){var e=this.getRangeY(!0),t=e[0],n=e[1];return t||n?2*this.margin:0},t=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var A=e.length-1;A>=0;A--)(i=e[A])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([(n=U,r=function(e,t){var n={enumerable:!0,configurable:!0,get:function(){return this.options[t]}},r=Object(o.u)("set "+t);e[r]?n.set=function(e){this[r](e)}:n.set=function(e){this.options[t]=e},Object.defineProperty(e,t,n)},function(e){var t=e.prototype;n.forEach((function(e){r(t,e)}))})],t)}(i.a)),D=n(10),P=function(e,t){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;A--)(i=e[A])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([Object(D.e)(H)],t.prototype,"infiniteViewer",void 0),t}(r.PureComponent);t.a=K},function(e,t,n){"use strict";var r=n(0),i=n(15),o=function(){function e(e){this.separator=e,this.orderMap={}}var t=e.prototype;return t.getFullName=function(e){return e.join(this.separator)},t.get=function(e){return this.orderMap[this.getFullName(e)]},t.gets=function(e,t){void 0===t&&(t=!0);var n=[],r=this;return function e(t,i){var o=r.get(t);if(o)return o.forEach((function(r){var o=i.concat([r]),a=e(t.concat([r]),o);a&&a.length||n.push(i.concat([r]))})),o}(e,t?e:[]),n},t.set=function(e,t){var n=this;return e.forEach((function(t,r){n.addName(e.slice(0,r),t)})),this.orderMap[this.getFullName(e)]=t,t},t.add=function(e){var t=e.length;return t?this.addName(e.slice(0,-1),e[t-1]):[]},t.addName=function(e,t){var n=this.get(e)||this.set(e,[]);return-1===n.indexOf(t)&&n.push(t),n},t.findIndex=function(e,t){var n=this.orderMap[this.getFullName(e)];return n?n.indexOf(t):-1},t.remove=function(e){var t=this.getFullName(e),n=this.orderMap;for(var r in n)0===r.indexOf(t)&&delete n[r];var i=e.length;if(i){var o=e.slice(0,-1),a=e[i-1];this.splice(o,this.findIndex(o,a),1)}return this},t.filter=function(t,n,r){void 0===r&&(r=!0);var i=this.gets(t,r).filter(n),o=new e(this.separator),a=r?[]:t;return i.forEach((function(e){o.add(a.concat(e))})),o},t.splice=function(e,t,n){for(var r=[],i=3;i.001;){if(i=l(e,t,r)-n,Math.abs(i)<.001)return r;r-=i/2}return r}(e,n,Object(r.s)(o,0,1));return l(t,i,a)};return o.easingName="cubic-bezier("+e+","+t+","+n+","+i+")",o}function c(e,t){var n=function(n){var r=1/e;return n>=1?1:("start"===t?r:0)+Math.floor(n/r)*r};return n.easingName="steps("+e+", "+t+")",n}var f,d=c(1,"start"),p=c(1,"end"),h=u(0,0,1,1),g=u(.25,.1,.25,1),v=u(.42,0,1,1),B=u(0,0,.58,1),m=u(.42,0,.58,1),b="animation-timing-function",w={transform:{},filter:{},attribute:{},html:!0},E={easing:[b]},y=((f={})[b]=!0,f.contents=!0,f.html=!0,f),C="delay",Q={linear:h,ease:g,"ease-in":v,"ease-out":B,"ease-in-out":m,"step-start":d,"step-end":p},x=["duration","fillMode","direction","iterationCount",C,"easing","playSpeed"],F=function(){function e(e,t){this.prefix="",this.suffix="",this.model="",this.type="",this.separator=",",t&&this.setOptions(t),this.value=Object(r.L)(e)?e.split(this.separator):e}var t=e.prototype;return t.setOptions=function(e){for(var t in e)this[t]=e[t];return this},t.size=function(){return this.value.length},t.get=function(e){return this.value[e]},t.set=function(e,t){return this.value[e]=t,this},t.clone=function(){var t=this,n=t.separator,r=t.prefix,i=t.suffix,o=t.model,a=t.type;return new e(this.value.map((function(t){return t instanceof e?t.clone():t})),{separator:n,prefix:r,suffix:i,model:o,type:a})},t.toValue=function(){return this.prefix+this.join()+this.suffix},t.join=function(){return this.value.map((function(t){return t instanceof e?t.toValue():t})).join(this.separator)},t.forEach=function(e){return this.value.forEach(e),this},e}();function U(e){for(var t=Object(r.V)(e,";"),n={},i=t.length,o=i,a=0;a1?O(n.map((function(e){return H(e)})),","):(n=Object(r.U)(e)).length>1?O(n.map((function(e){return H(e)}))," "):(n=/^(['"])([^'"]*)(['"])$/g.exec(e))&&n[1]===n[3]?new F([H(n[2])],{prefix:n[1],suffix:n[1]}):-1!==e.indexOf("(")?function(e){var t=Object(r.S)(e),n=t.prefix,i=t.value,o=t.suffix;if("undefined"===typeof i)return e;if(r.d.indexOf(n)>-1)return S(Object(r.X)(e));var a=H(i,n),A=[i],s=",",l=n+"(",u=")"+o;return a instanceof F&&(s=a.separator,A=a.value,l+=a.prefix,u=a.suffix+u),new F(A,{separator:s,model:n,prefix:l,suffix:u})}(e):"#"===e.charAt(0)&&"url"!==t?function(e){var t=Object(r.X)(e);return t?S(t):e}(e):e}function T(e,t){void 0===t&&(t={});var n=e.model;if(n){e.setOptions({model:"",suffix:"",prefix:""});var r=e.size()>1?e:e.get(0);t[n]=r}else e.forEach((function(e){T(e,t)}));return t}function N(e){return e instanceof F}function _(e){var t=typeof e;if(t===r.j){if(Object(r.H)(e))return r.c;if(N(e))return r.k}else if(t===r.m||t===r.i)return"value";return t}function M(e){return Object(r.K)(e)&&e.constructor===Object}function R(e,t){var n=[];if(M(e))for(var r in e)t.push(r),n=n.concat(R(e[r],t)),t.pop();else n.push(t.slice());return n}function D(e){return Math.round(1e6*e)/1e6}function P(e,t,n){void 0===n&&(n=e.length);for(var i=t,o=0;o=1?"alternate-reverse":"alternate"):n===(e%2>=1?"alternate":"alternate-reverse"))}var j=["id","iterationCount",C,"fillMode","direction","playSpeed","duration","playSpeed","iterationTime","playState"],X=s(j,["easing","easingName"]);i.a;function G(e,t){if(void 0===t&&(t=[]),!e)return"";var n=[],i=Object(r.D)(e);return Object(r.R)(i,t),i.forEach((function(t){n.push(t.replace(/\d$/g,"")+"("+e[t]+")")})),n.join(" ")}function V(e,t){return void 0===t&&(t=!1),Y({},e,t)}function Y(e,t,n){for(var i in void 0===n&&(n=!1),t){var o=t[i],a=_(o);a===r.k?e[i]=n?o.toValue():o.clone():a===r.f?e[i]=n?J([i],o):o:a===r.c?e[i]=o.slice():a===r.j?Object(r.K)(e[i])&&!N(e[i])?Y(e[i],o,n):e[i]=V(o,n):e[i]=t[i]}return e}function W(e){return e[0]in E?E[e[0]]:e}function J(e,t){var n=_(t);if(n===r.k)return t.toValue();if(n===r.f){if(e[0]!==b)return J(e,t())}else if(n===r.j)return V(t,!0);return t}var q=function(){function e(e){void 0===e&&(e={}),this.properties={},this.orderMap=new o("_///_"),this.properties={},this.set(e)}var t=e.prototype;return t.get=function(){for(var e=[],t=0;tO.length&&O.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var A=typeof t;"undefined"!==A&&"boolean"!==A||(t=null);var s=!1;if(null===t)s=!0;else switch(A){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return r(i,t,""===n?"."+_(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;lt}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!z.call(X,e)||!z.call(j,e)&&(L.test(e)?X[e]=!0:(j[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,$="function"===typeof Symbol&&Symbol.for,ee=$?Symbol.for("react.element"):60103,te=$?Symbol.for("react.portal"):60106,ne=$?Symbol.for("react.fragment"):60107,re=$?Symbol.for("react.strict_mode"):60108,ie=$?Symbol.for("react.profiler"):60114,oe=$?Symbol.for("react.provider"):60109,ae=$?Symbol.for("react.context"):60110,Ae=$?Symbol.for("react.concurrent_mode"):60111,se=$?Symbol.for("react.forward_ref"):60112,le=$?Symbol.for("react.suspense"):60113,ue=$?Symbol.for("react.suspense_list"):60120,ce=$?Symbol.for("react.memo"):60115,fe=$?Symbol.for("react.lazy"):60116,de=$?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function he(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ce:return ge(e.type);case de:return ge(e.render);case fe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ge(e.type);n=null,r&&(n=ge(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function Be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function me(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=me(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=me(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ye(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Be(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ce(e,t){null!=(t=t.checked)&&q(e,"checked",t,!1)}function Qe(e,t){Ce(e,t);var n=Be(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Fe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fe(e,t.type,Be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Fe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ue(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Be(n)}}function Te(e,t){var n=Be(t.value),r=Be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var _e="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Pe,ke=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((Pe=Pe||document.createElement("div")).innerHTML="",t=Pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ie(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ke(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Le={animationend:Ke("Animation","AnimationEnd"),animationiteration:Ke("Animation","AnimationIteration"),animationstart:Ke("Animation","AnimationStart"),transitionend:Ke("Transition","TransitionEnd")},ze={},je={};function Xe(e){if(ze[e])return ze[e];if(!Le[e])return e;var t,n=Le[e];for(t in n)if(n.hasOwnProperty(t)&&t in je)return ze[e]=n[t];return e}F&&(je=document.createElement("div").style,"AnimationEvent"in window||(delete Le.animationend.animation,delete Le.animationiteration.animation,delete Le.animationstart.animation),"TransitionEvent"in window||delete Le.transitionend.transition);var Ge=Xe("animationend"),Ve=Xe("animationiteration"),Ye=Xe("animationstart"),We=Xe("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qe=new("function"===typeof WeakMap?WeakMap:Map);function Ze(e){var t=qe.get(e);return void 0===t&&(t=new Map,qe.set(e,t)),t}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if($e(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var A=!1,s=i.child;s;){if(s===n){A=!0,n=i,r=o;break}if(s===r){A=!0,r=i,n=o;break}s=s.sibling}if(!A){for(s=o.child;s;){if(s===n){A=!0,n=o,r=i;break}if(s===r){A=!0,r=o,n=i;break}s=s.sibling}if(!A)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rut.length&&ut.push(e)}function ft(e,t,n,r){if(ut.length){var i=ut.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Fn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function dn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Bn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var mn="function"===typeof setTimeout?setTimeout:void 0,bn="function"===typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var yn=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+yn,Qn="__reactEventHandlers$"+yn,xn="__reactContainere$"+yn;function Fn(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[Cn])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function Un(e){return!(e=e[Cn]||e[xn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Sn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function On(e){return e[Qn]||null}function Hn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Tn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=Tn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function _n(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Hn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function Vn(e){e.eventPool=[],e.getPooled=Xn,e.release=Gn}i(jn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){this.isPersistent=Ln},isPersistent:zn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zn,this._dispatchInstances=this._dispatchListeners=null}}),jn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},jn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Vn(n),n},Vn(jn);var Yn=jn.extend({data:null}),Wn=jn.extend({data:null}),Jn=[9,13,27,32],qn=F&&"CompositionEvent"in window,Zn=null;F&&"documentMode"in document&&(Zn=document.documentMode);var $n=F&&"TextEvent"in window&&!Zn,er=F&&(!qn||Zn&&8=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var Ar={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(qn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Kn()):(kn="value"in(Pn=r)?Pn.value:Pn.textContent,ar=!0)),o=Yn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Dn(o),i=o):i=null,(e=$n?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!qn&&ir(e,t)?(e=Kn(),In=kn=Pn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Kr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Lr=null,zr=null,jr=null,Xr=!1;function Gr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==Lr||Lr!==un(n)?null:("selectionStart"in(n=Lr)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},jr&&kr(jr,n)?null:(jr=n,(e=jn.getPooled(Kr.select,zr,e,t)).type="select",e.target=Lr,Dn(e),e))}var Vr={eventTypes:Kr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=Q.onSelect;for(var a=0;aAi||(e.current=ai[Ai],ai[Ai]=null,Ai--)}function li(e,t){Ai++,ai[Ai]=e.current,e.current=t}var ui={},ci={current:ui},fi={current:!1},di=ui;function pi(e,t){var n=e.type.contextTypes;if(!n)return ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){si(fi),si(ci)}function vi(e,t,n){if(ci.current!==ui)throw Error(a(168));li(ci,t),li(fi,n)}function Bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},n,{},r)}function mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ui,di=ci.current,li(ci,e),li(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Bi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ci),li(ci,e)):si(fi),li(fi,n)}var wi=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,yi=o.unstable_cancelCallback,Ci=o.unstable_requestPaint,Qi=o.unstable_now,xi=o.unstable_getCurrentPriorityLevel,Fi=o.unstable_ImmediatePriority,Ui=o.unstable_UserBlockingPriority,Si=o.unstable_NormalPriority,Oi=o.unstable_LowPriority,Hi=o.unstable_IdlePriority,Ti={},Ni=o.unstable_shouldYield,_i=void 0!==Ci?Ci:function(){},Mi=null,Ri=null,Di=!1,Pi=Qi(),ki=1e4>Pi?Qi:function(){return Qi()-Pi};function Ii(){switch(xi()){case Fi:return 99;case Ui:return 98;case Si:return 97;case Oi:return 96;case Hi:return 95;default:throw Error(a(332))}}function Ki(e){switch(e){case 99:return Fi;case 98:return Ui;case 97:return Si;case 96:return Oi;case 95:return Hi;default:throw Error(a(332))}}function Li(e,t){return e=Ki(e),wi(e,t)}function zi(e,t,n){return e=Ki(e),Ei(e,t,n)}function ji(e){return null===Mi?(Mi=[e],Ri=Ei(Fi,Gi)):Mi.push(e),Ti}function Xi(){if(null!==Ri){var e=Ri;Ri=null,yi(e)}Gi()}function Gi(){if(!Di&&null!==Mi){Di=!0;var e=0;try{var t=Mi;Li(99,(function(){for(;e=t&&(Oa=!0),e.firstContext=null)}function ro(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===qi){if(null===Ji)throw Error(a(308));qi=t,Ji.dependencies={expirationTime:0,firstContext:t,responders:null}}else qi=qi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Ao(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function so(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function uo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,A=o.shared.pending;if(null!==A){if(null!==a){var s=a.next;a.next=A.next,A.next=s}a=A,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=A))}if(null!==a){s=a.next;var l=o.baseState,u=0,c=null,f=null,d=null;if(null!==s)for(var p=s;;){if((A=p.expirationTime)u&&(u=A)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),os(A,p.suspenseConfig);e:{var g=e,v=p;switch(A=t,h=n,v.tag){case 1:if("function"===typeof(g=v.payload)){l=g.call(h,l,A);break e}l=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null===(A="function"===typeof(g=v.payload)?g.call(h,l,A):g)||void 0===A)break e;l=i({},l,A);break e;case 2:io=!0}}null!==p.callback&&(e.effectTag|=32,null===(A=o.effects)?o.effects=[p]:A.push(p))}if(null===(p=p.next)||p===s){if(null===(A=o.shared.pending))break;p=a.next=A.next,A.next=s,o.baseQueue=a=A,o.shared.pending=null}}null===d?c=l:d.next=f,o.baseState=c,o.baseQueue=d,as(u),e.expirationTime=u,e.memoizedState=l}}function co(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;th?(g=c,c=null):g=c.sibling;var v=d(i,c,A[h],s);if(null===v){null===c&&(c=g);break}e&&c&&null===v.alternate&&t(i,c),a=o(v,a,h),null===u?l=v:u.sibling=v,u=v,c=g}if(h===A.length)return n(i,c),l;if(null===c){for(;hg?(v=h,h=null):v=h.sibling;var m=d(i,h,B.value,l);if(null===m){null===h&&(h=v);break}e&&h&&null===m.alternate&&t(i,h),A=o(m,A,g),null===c?u=m:c.sibling=m,c=m,h=v}if(B.done)return n(i,h),u;if(null===h){for(;!B.done;g++,B=s.next())null!==(B=f(i,B.value,l))&&(A=o(B,A,g),null===c?u=B:c.sibling=B,c=B);return u}for(h=r(i,h);!B.done;g++,B=s.next())null!==(B=p(h,i,g,B.value,l))&&(e&&null!==B.alternate&&h.delete(null===B.key?g:B.key),A=o(B,A,g),null===c?u=B:c.sibling=B,c=B);return e&&h.forEach((function(e){return t(i,e)})),u}return function(e,r,o,s){var l="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){switch(l.tag){case 7:if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=Eo(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=Us(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Fs(o.type,o.key,o.props,null,e.mode,s)).ref=Eo(e,r,o),s.return=e,e=s)}return A(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Os(o,e.mode,s)).return=e,e=r}return A(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ss(o,e.mode,s)).return=e,e=r),A(e);if(wo(o))return h(e,r,o,s);if(he(o))return g(e,r,o,s);if(u&&yo(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Qo=Co(!0),xo=Co(!1),Fo={},Uo={current:Fo},So={current:Fo},Oo={current:Fo};function Ho(e){if(e===Fo)throw Error(a(174));return e}function To(e,t){switch(li(Oo,t),li(So,e),li(Uo,Fo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Uo),li(Uo,t)}function No(){si(Uo),si(So),si(Oo)}function _o(e){Ho(Oo.current);var t=Ho(Uo.current),n=De(t,e.type);t!==n&&(li(So,e),li(Uo,n))}function Mo(e){So.current===e&&(si(Uo),si(So))}var Ro={current:0};function Do(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Po(e,t){return{responder:e,props:t}}var ko=J.ReactCurrentDispatcher,Io=J.ReactCurrentBatchConfig,Ko=0,Lo=null,zo=null,jo=null,Xo=!1;function Go(){throw Error(a(321))}function Vo(e,t){if(null===t)return!1;for(var n=0;no))throw Error(a(301));o+=1,jo=zo=null,t.updateQueue=null,ko.current=ma,e=n(r,i)}while(t.expirationTime===Ko)}if(ko.current=ga,t=null!==zo&&null!==zo.next,Ko=0,jo=zo=Lo=null,Xo=!1,t)throw Error(a(300));return e}function Wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===jo?Lo.memoizedState=jo=e:jo=jo.next=e,jo}function Jo(){if(null===zo){var e=Lo.alternate;e=null!==e?e.memoizedState:null}else e=zo.next;var t=null===jo?Lo.memoizedState:jo.next;if(null!==t)jo=t,zo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(zo=e).memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},null===jo?Lo.memoizedState=jo=e:jo=jo.next=e}return jo}function qo(e,t){return"function"===typeof t?t(e):t}function Zo(e){var t=Jo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=zo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var A=i.next;i.next=o.next,o.next=A}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=A=o=null,l=i;do{var u=l.expirationTime;if(uLo.expirationTime&&(Lo.expirationTime=u,as(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),os(u,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=A,Dr(r,t.memoizedState)||(Oa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function $o(e){var t=Jo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var A=i=i.next;do{o=e(o,A.action),A=A.next}while(A!==i);Dr(o,t.memoizedState)||(Oa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Wo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e}).dispatch=ha.bind(null,Lo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Lo.updateQueue)?(t={lastEffect:null},Lo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Jo().memoizedState}function ra(e,t,n,r){var i=Wo();Lo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Jo();r=void 0===r?null:r;var o=void 0;if(null!==zo){var a=zo.memoizedState;if(o=a.destroy,null!==r&&Vo(r,a.deps))return void ta(t,n,o,r)}Lo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function Aa(e,t){return ia(4,2,e,t)}function sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,sa.bind(null,t,e),n)}function ua(){}function ca(e,t){return Wo().memoizedState=[e,void 0===t?null:t],e}function fa(e,t){var n=Jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=Jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Vo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pa(e,t,n){var r=Ii();Li(98>r?98:r,(function(){e(!0)})),Li(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(o,{is:r.is}):(e=s.createElement(o),"select"===o&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,o),e[Cn]=t,e[Qn]=r,Ia(e,t),t.stateNode=e,s=an(o,r),o){case"iframe":case"object":case"embed":Vt("load",e),l=r;break;case"video":case"audio":for(l=0;lr.tailExpiration&&1t)&&LA.set(e,t))}}function WA(e,t){e.expirationTime=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function qA(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=ji($A.bind(null,e));else{var t=JA(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=GA();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ti&&yi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?ji($A.bind(null,e)):zi(r,ZA.bind(null,e),{timeout:10*(1073741821-t)-ki()}),e.callbackNode=t}}}function ZA(e,t){if(XA=0,t)return Ms(e,t=GA()),qA(e),null;var n=JA(e);if(0!==n){if(t=e.callbackNode,0!==(48&yA))throw Error(a(327));if(hs(),e===CA&&n===xA||ns(e,n),null!==QA){var r=yA;yA|=16;for(var i=is();;)try{ss();break}catch(s){rs(e,s)}if($i(),yA=r,BA.current=i,1===FA)throw t=UA,ns(e,n),Ns(e,n),qA(e),t;if(null===QA)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=FA,CA=null,r){case bA:case 1:throw Error(a(345));case 2:Ms(e,2=n){e.lastPingedTime=n,ns(e,n);break}}if(0!==(o=JA(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=mn(fs.bind(null,e),i);break}fs(e);break;case EA:if(Ns(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=cs(i)),NA&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,ns(e,n);break}if(0!==(i=JA(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==OA?r=10*(1073741821-OA)-ki():1073741823===SA?r=0:(r=10*(1073741821-SA)-5e3,0>(r=(i=ki())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vA(r/1960))-r)&&(r=n)),10=(r=0|A.busyMinDurationMs)?r=0:(i=0|A.busyDelayMs,r=(o=ki()-(10*(1073741821-o)-(0|A.timeoutMs||5e3)))<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==FA&&(FA=2),A=Za(A,a),c=o;do{switch(c.tag){case 3:s=A,c.effectTag|=4096,c.expirationTime=t,lo(c,pA(c,s,t));break e;case 1:s=A;var b=c.type,w=c.stateNode;if(0===(64&c.effectTag)&&("function"===typeof b.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===PA||!PA.has(w)))){c.effectTag|=4096,c.expirationTime=t,lo(c,hA(c,s,t));break e}}c=c.return}while(null!==c)}QA=us(QA)}catch(E){t=E;continue}break}}function is(){var e=BA.current;return BA.current=ga,null===e?ga:e}function os(e,t){eTA&&(TA=e)}function As(){for(;null!==QA;)QA=ls(QA)}function ss(){for(;null!==QA&&!Ni();)QA=ls(QA)}function ls(e){var t=gA(e.alternate,e,xA);return e.memoizedProps=e.pendingProps,null===t&&(t=us(e)),mA.current=null,t}function us(e){QA=e;do{var t=QA.alternate;if(e=QA.return,0===(2048&QA.effectTag)){if(t=Ja(t,QA,xA),1===xA||1!==QA.childExpirationTime){for(var n=0,r=QA.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}QA.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=QA.firstEffect),null!==QA.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=QA.firstEffect),e.lastEffect=QA.lastEffect),1(e=e.childExpirationTime)?t:e}function fs(e){var t=Ii();return Li(99,ds.bind(null,e,t)),null}function ds(e,t){do{hs()}while(null!==IA);if(0!==(48&yA))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=cs(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===CA&&(QA=CA=null,xA=0),1s&&(u=s,s=A,A=u),u=fn(b,A),c=fn(b,s),u&&c&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==c.node||E.focusOffset!==c.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),A>s?(E.addRange(w),E.extend(c.node,c.offset)):(w.setEnd(c.node,c.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b=n?ja(e,t,n):(li(Ro,1&Ro.current),null!==(t=Ya(e,t,n))?t.sibling:null);li(Ro,1&Ro.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Va(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(Ro,Ro.current),!r)return null}return Ya(e,t,n)}Oa=!1}}else Oa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=pi(t,ci.current),no(t,n),i=Yo(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var o=!0;mi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var A=r.getDerivedStateFromProps;"function"===typeof A&&ho(t,r,A,e),i.updater=go,t.stateNode=i,i._reactInternalFiber=t,bo(t,r,e,n),t=Pa(null,t,r,!0,o,n)}else t.tag=0,Ha(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Qs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===se)return 11;if(e===ce)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=Ra(null,t,i,e,n);break e;case 1:t=Da(null,t,i,e,n);break e;case 11:t=Ta(null,t,i,e,n);break e;case 14:t=Na(null,t,i,Yi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ra(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(ka(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Ua(),t=Ya(e,t,n);else{if((i=t.stateNode.hydrate)&&(wa=wn(t.stateNode.containerInfo.firstChild),ba=t,i=Ea=!0),i)for(n=xo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ha(e,t,r,n),Ua();t=t.child}return t;case 5:return _o(t),null===e&&Qa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,A=i.children,Bn(r,i)?A=null:null!==o&&Bn(r,o)&&(t.effectTag|=16),Ma(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ha(e,t,A,n),t=t.child),t;case 6:return null===e&&Qa(t),null;case 13:return ja(e,t,n);case 4:return To(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qo(t,null,r,n):Ha(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ta(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Ha(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,A=t.memoizedProps,o=i.value;var s=t.type._context;if(li(Wi,s._currentValue),s._currentValue=o,null!==A)if(s=A.value,0===(o=Dr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(A.children===i.children&&!fi.current){t=Ya(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){A=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===s.tag&&((u=Ao(n,null)).tag=2,so(s,u)),s.expirationTime=t&&e<=t}function Ns(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n