"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7321],{99798:function(t,e,i){var n,o=i(34406),r=function(){function t(t,e){if("function"!==typeof t)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: "+t+".");this._batchLoadFn=t,this._maxBatchSize=function(t){if(t&&!1===t.batch)return 1;var e=t&&t.maxBatchSize;if(void 0===e)return 1/0;if("number"!==typeof e||e<1)throw new TypeError("maxBatchSize must be a positive number: "+e);return e}(e),this._batchScheduleFn=function(t){var e=t&&t.batchScheduleFn;if(void 0===e)return a;if("function"!==typeof e)throw new TypeError("batchScheduleFn must be a function: "+e);return e}(e),this._cacheKeyFn=function(t){var e=t&&t.cacheKeyFn;if(void 0===e)return function(t){return t};if("function"!==typeof e)throw new TypeError("cacheKeyFn must be a function: "+e);return e}(e),this._cacheMap=function(t){if(t&&!1===t.cache)return null;var e=t&&t.cacheMap;if(void 0===e)return new Map;if(null!==e){var i=["get","set","delete","clear"].filter((function(t){return e&&"function"!==typeof e[t]}));if(0!==i.length)throw new TypeError("Custom cacheMap missing methods: "+i.join(", "))}return e}(e),this._batch=null,this.name=function(t){if(t&&t.name)return t.name;return null}(e)}var e=t.prototype;return e.load=function(t){if(null===t||void 0===t)throw new TypeError("The loader.load() function must be called with a value, but got: "+String(t)+".");var e=function(t){var e=t._batch;if(null!==e&&!e.hasDispatched&&e.keys.length and returns Promise>, but the function errored synchronously: "+String(n)+"."))}if(!i||"function"!==typeof i.then)return s(t,e,new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: "+String(i)+"."));i.then((function(t){if(!u(t))throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: "+String(t)+".");if(t.length!==e.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(e.keys)+"\n\nValues:\n"+String(t));l(e);for(var i=0;i but got: "+t+".");for(var e=[],i=0;i0&&Object.prototype.hasOwnProperty.call(t,t.length-1))}t.exports=r},91850:function(t,e,i){i.d(e,{E:function(){return Pe}});var n=i(5163),o=i(63875),r=i(38219),a=i(12837),s=i(88206),l=i(2784),u=i(9340),c=i(535),h=i(98457),d=i(76432),p=i(41429),v=i(23368);const m=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),f=t=>m(t)&&t.hasOwnProperty("z");var y=i(15091);const g=(t,e)=>Math.abs(t-e);function x(t,e){if((0,y.e)(t)&&(0,y.e)(e))return g(t,e);if(m(t)&&m(e)){const i=g(t.x,e.x),n=g(t.y,e.y),o=f(t)&&f(e)?g(t.z,e.z):0;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2)+Math.pow(o,2))}}var P=i(10934),T=function(){function t(t,e,i){var o=this,r=(void 0===i?{}:i).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=b(o.lastMoveEventInfo,o.history),e=null!==o.startEvent,i=x(t.offset,{x:0,y:0})>=3;if(e||i){var r=t.point,a=(0,d.$B)().timestamp;o.history.push((0,n.__assign)((0,n.__assign)({},r),{timestamp:a}));var s=o.handlers,l=s.onStart,u=s.onMove;e||(l&&l(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),u&&u(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){o.lastMoveEvent=t,o.lastMoveEventInfo=E(e,o.transformPagePoint),(0,c.N)(t)&&0===t.buttons?o.handlePointerUp(t,e):d.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(t,e){o.end();var i=o.handlers,n=i.onEnd,r=i.onSessionEnd,a=b(E(e,o.transformPagePoint),o.history);o.startEvent&&n&&n(t,a),r&&r(t,a)},!((0,c.z)(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=r;var a=E((0,h.Q)(t),this.transformPagePoint),s=a.point,l=(0,d.$B)().timestamp;this.history=[(0,n.__assign)((0,n.__assign)({},s),{timestamp:l})];var u=e.onSessionStart;u&&u(t,b(a,this.history)),this.removeListeners=(0,P.z)((0,v.a)(window,"pointermove",this.handlePointerMove),(0,v.a)(window,"pointerup",this.handlePointerUp),(0,v.a)(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),d.qY.update(this.updatePoint)},t}();function E(t,e){return e?{point:e(t.point)}:t}function S(t,e){return{x:t.x-e.x,y:t.y-e.y}}function b(t,e){var i=t.point;return{point:i,delta:S(i,A(e)),offset:S(i,L(e)),velocity:_(e,.1)}}function L(t){return t[0]}function A(t){return t[t.length-1]}function _(t,e){if(t.length<2)return{x:0,y:0};for(var i=t.length-1,n=null,o=A(t);i>=0&&(n=t[i],!(o.timestamp-n.timestamp>(0,p.w)(e)));)i--;if(!n)return{x:0,y:0};var r=(o.timestamp-n.timestamp)/1e3;if(0===r)return{x:0,y:0};var a={x:(o.x-n.x)/r,y:(o.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var D=i(54438),w=i(8350),R=i(8481),k=i(21790),C=i(1698);function M(t){return t.max-t.min}function V(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=.01),x(t,e)e?i="y":Math.abs(t.x)>e&&(i="x");return i}(l),void(null!==i.currentDirection&&(null===a||void 0===a||a(i.currentDirection)));i.updateAxis("x",e.point,l),i.updateAxis("y",e.point,l),i.visualElement.syncRender(),null===s||void 0===s||s(t,e)}},onSessionEnd:function(t,e){return i.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var i=this.isDragging;if(this.cancel(),i){var n=e.velocity;this.startAnimation(n);var o=this.getProps().onDragEnd;null===o||void 0===o||o(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Y.r.Drag,!1)},t.prototype.updateAxis=function(t,e,i){var n=this.getProps().drag;if(i&&tt(t,n,this.currentDirection)){var o=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,e,i){var n=e.min,o=e.max;return void 0!==n&&to&&(t=i?(0,R.C)(o,t,i.max):Math.min(t,o)),t}(r,this.constraints[t],this.elastic[t])),o.set(r)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),i=e.dragConstraints,n=e.dragElastic,o=(this.visualElement.projection||{}).layout,r=this.constraints;i&&(0,w.I)(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!i||!o)&&function(t,e){var i=e.top,n=e.left,o=e.bottom,r=e.right;return{x:I(t.x,n,r),y:I(t.y,i,o)}}(o.actual,i),this.elastic=function(t){return void 0===t&&(t=N),!1===t?t=0:!0===t&&(t=N),{x:G(t,"left","right"),y:G(t,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&W((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(o.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,i=t.onMeasureDragConstraints;if(!e||!(0,w.I)(e))return!1;var n=e.current;(0,u.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var r=(0,q.z)(n,o.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:z(t.x,e.x),y:z(t.y,e.y)}}(o.layout.actual,r);if(i){var s=i((0,Q.z2)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,Q.i8)(s))}return a},t.prototype.startAnimation=function(t){var e=this,i=this.getProps(),o=i.drag,r=i.dragMomentum,a=i.dragElastic,s=i.dragTransition,l=i.dragSnapToOrigin,u=i.onDragTransitionEnd,c=this.constraints||{},h=W((function(i){var u;if(tt(i,o,e.currentDirection)){var h=null!==(u=null===c||void 0===c?void 0:c[i])&&void 0!==u?u:{};l&&(h={min:0,max:0});var d=a?200:1e6,p=a?40:1e7,v=(0,n.__assign)((0,n.__assign)({type:"inertia",velocity:r?t[i]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),h);return e.startAxisValueAnimation(i,v)}}));return Promise.all(h).then(u)},t.prototype.startAxisValueAnimation=function(t,e){var i=this.getAxisMotionValue(t);return(0,K.b8)(t,i,0,e)},t.prototype.stopAnimation=function(){var t=this;W((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,i,n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,null!==(i=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==i?i:0)},t.prototype.snapToCursor=function(t){var e=this;W((function(i){if(tt(i,e.getProps().drag,e.currentDirection)){var n=e.visualElement.projection,o=e.getAxisMotionValue(i);if(n&&n.layout){var r=n.layout.actual[i],a=r.min,s=r.max;o.set(t[i]-(0,R.C)(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,i=this.getProps(),n=i.drag,o=i.dragConstraints,r=this.visualElement.projection;if((0,w.I)(o)&&r&&this.constraints){this.stopAnimation();var a={x:0,y:0};W((function(t){var i=e.getAxisMotionValue(t);if(i){var n=i.get();a[t]=function(t,e){var i=.5,n=M(t),o=M(e);return o>n?i=(0,k.Y)(e.min,e.max-n,t.min):n>o&&(i=(0,k.Y)(t.min,t.max-o,e.min)),(0,C.u)(0,1,i)}({min:n,max:n},e.constraints[t])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout(),this.resolveConstraints(),W((function(t){if(tt(t,n,null)){var i=e.getAxisMotionValue(t),o=e.constraints[t],r=o.min,s=o.max;i.set((0,R.C)(r,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;$.set(this.visualElement,this);var i=this.visualElement.getInstance(),n=(0,v.a)(i,"pointerdown",(function(t){var i=e.getProps(),n=i.drag,o=i.dragListener;n&&(void 0===o||o)&&e.start(t)})),o=function(){var t=e.getProps().dragConstraints;(0,w.I)(t)&&(e.constraints=e.resolveRefConstraints())},r=this.visualElement.projection,a=r.addEventListener("measure",o);r&&!r.layout&&(null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout()),o();var s=(0,X.E)(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return r.addEventListener("didUpdate",(function(t){var i=t.delta,n=t.hasLayoutChanged;e.isDragging&&n&&(W((function(t){var n=e.getAxisMotionValue(t);n&&(e.originPoint[t]+=i[t].translate,n.set(n.get()+i[t].translate))})),e.visualElement.syncRender())})),function(){s(),n(),a()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,i=void 0!==e&&e,o=t.dragDirectionLock,r=void 0!==o&&o,a=t.dragPropagation,s=void 0!==a&&a,l=t.dragConstraints,u=void 0!==l&&l,c=t.dragElastic,h=void 0===c?N:c,d=t.dragMomentum,p=void 0===d||d;return(0,n.__assign)((0,n.__assign)({},t),{drag:i,dragDirectionLock:r,dragPropagation:s,dragConstraints:u,dragElastic:h,dragMomentum:p})},t}();function tt(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}var et=i(3105);var it=i(60976),nt=i(96073);var ot=i(61021),rt={pan:(0,ot.x)((function(t){var e=t.onPan,i=t.onPanStart,n=t.onPanEnd,o=t.onPanSessionStart,r=t.visualElement,a=e||i||n||o,s=(0,l.useRef)(null),u=(0,l.useContext)(it._).transformPagePoint,c={onSessionStart:o,onStart:i,onMove:e,onEnd:function(t,e){s.current=null,n&&n(t,e)}};(0,l.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),(0,v.m)(r,"pointerdown",a&&function(t){s.current=new T(t,c,{transformPagePoint:u})}),(0,nt.z)((function(){return s.current&&s.current.end()}))})),drag:(0,ot.x)((function(t){var e=t.dragControls,i=t.visualElement,n=(0,et.h)((function(){return new J(i)}));(0,l.useEffect)((function(){return e&&e.subscribe(n)}),[n,e]),(0,l.useEffect)((function(){return n.addListeners()}),[n])}))},at=i(58392),st=i(58175),lt=i(3422),ut=i(64460),ct=i(63722);function ht(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var dt={correct:function(t,e){if(!e.target)return t;if("string"===typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}var i=ht(t,e.target.x),n=ht(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}},pt=i(46002),vt=i(64833),mt="_$css",ft={correct:function(t,e){var i=e.treeScale,n=e.projectionDelta,o=t,r=t.includes("var("),a=[];r&&(t=t.replace(vt.Xp,(function(t){return a.push(t),mt})));var s=pt.P.parse(t);if(s.length>5)return o;var l=pt.P.createTransformer(t),u="number"!==typeof s[0]?1:0,c=n.x.scale*i.x,h=n.y.scale*i.y;s[0+u]/=c,s[1+u]/=h;var d=(0,R.C)(c,h,.5);"number"===typeof s[2+u]&&(s[2+u]/=d),"number"===typeof s[3+u]&&(s[3+u]/=d);var p=l(s);if(r){var v=0;p=p.replace(mt,(function(){var t=a[v];return v++,t}))}return p}},yt=i(14599),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.__extends)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,i=e.visualElement,o=e.layoutGroup,r=e.switchLayoutGroup,a=e.layoutId,s=i.projection;(0,yt.B)(xt),s&&((null===o||void 0===o?void 0:o.group)&&o.group.add(s),(null===r||void 0===r?void 0:r.register)&&a&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions((0,n.__assign)((0,n.__assign)({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),ct.V.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,i=this.props,n=i.layoutDependency,o=i.visualElement,r=i.drag,a=i.isPresent,s=o.projection;return s?(s.isPresent=a,r||t.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||d.ZP.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,i=t.layoutGroup,n=t.switchLayoutGroup,o=e.projection;o&&(o.scheduleCheckAfterUnmount(),(null===i||void 0===i?void 0:i.group)&&i.group.remove(o),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(o))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null===t||void 0===t||t()},e.prototype.render=function(){return null},e}(l.Component);var xt={borderRadius:(0,n.__assign)((0,n.__assign)({},dt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:dt,borderTopRightRadius:dt,borderBottomLeftRadius:dt,borderBottomRightRadius:dt,boxShadow:ft},Pt={measureLayout:function(t){var e=(0,n.__read)((0,st.oO)(),2),i=e[0],o=e[1],r=(0,l.useContext)(lt.p);return l.createElement(gt,(0,n.__assign)({},t,{layoutGroup:r,switchLayoutGroup:(0,l.useContext)(ut.g),isPresent:i,safeToRemove:o}))}},Tt=i(40226),Et=i(15815);var St=i(88069),bt=i(92075),Lt=["TopLeft","TopRight","BottomLeft","BottomRight"],At=Lt.length,_t=function(t){return"string"===typeof t?parseFloat(t):t},Dt=function(t){return"number"===typeof t||Z.px.test(t)};function wt(t,e){var i;return null!==(i=t[e])&&void 0!==i?i:t.borderRadius}var Rt=Ct(0,.5,bt.Bn),kt=Ct(.5,.95,bt.GE);function Ct(t,e,i){return function(n){return ne?1:i((0,k.Y)(t,e,n))}}function Mt(t,e){t.min=e.min,t.max=e.max}function Vt(t,e){Mt(t.x,e.x),Mt(t.y,e.y)}var jt=i(2217);function Ft(t,e,i,n,o){return t-=e,t=(0,jt.q2)(t,1/i,n),void 0!==o&&(t=(0,jt.q2)(t,1/o,n)),t}function Bt(t,e,i,o,r){var a=(0,n.__read)(i,3),s=a[0],l=a[1],u=a[2];!function(t,e,i,n,o,r,a){if(void 0===e&&(e=0),void 0===i&&(i=1),void 0===n&&(n=.5),void 0===r&&(r=t),void 0===a&&(a=t),Z.aQ.test(e)&&(e=parseFloat(e),e=(0,R.C)(a.min,a.max,e/100)-a.min),"number"===typeof e){var s=(0,R.C)(r.min,r.max,n);t===r&&(s-=e),t.min=Ft(t.min,e,i,s,o),t.max=Ft(t.max,e,i,s,o)}}(t,e[s],e[l],e[u],e.scale,o,r)}var Ut=["x","scaleX","originX"],Ot=["y","scaleY","originY"];function It(t,e,i,n){Bt(t.x,e,Ut,null===i||void 0===i?void 0:i.x,null===n||void 0===n?void 0:n.x),Bt(t.y,e,Ot,null===i||void 0===i?void 0:i.y,null===n||void 0===n?void 0:n.y)}function zt(t){return 0===t.translate&&1===t.scale}function Nt(t){return zt(t.x)&&zt(t.y)}function Gt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var Ht=i(44866),Yt=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,Ht.y4)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,Ht.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,i=this.members.findIndex((function(e){return t===e}));if(0===i)return!1;for(var n=i;n>=0;n--){var o=this.members[n];if(!1!==o.isPresent){e=o;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var i,n=this.lead;t!==n&&(this.prevLead=n,this.lead=t,t.show(),n&&(n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues,t.snapshot.isShared=!0),(null===(i=t.root)||void 0===i?void 0:i.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&n.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,i,n,o,r;null===(i=(e=t.options).onExitComplete)||void 0===i||i.call(e),null===(r=null===(n=t.resumingFrom)||void 0===n?void 0:(o=n.options).onExitComplete)||void 0===r||r.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}();function Wt(t,e,i){var n=t.x.translate/e.x,o=t.y.translate/e.y,r="translate3d(".concat(n,"px, ").concat(o,"px, 0) ");if(r+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),i){var a=i.rotate,s=i.rotateX,l=i.rotateY;a&&(r+="rotate(".concat(a,"deg) ")),s&&(r+="rotateX(".concat(s,"deg) ")),l&&(r+="rotateY(".concat(l,"deg) "))}var u=t.x.scale*e.x,c=t.y.scale*e.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(r+="scale(".concat(u,", ").concat(c,")"))?"none":r}var qt=i(28749),Kt=i(73442),Qt=function(t,e){return t.depth-e.depth},Xt=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,Ht.y4)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,Ht.cl)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Qt),this.isDirty=!1,this.children.forEach(t)},t}(),Zt=i(69535);function $t(t){var e=t.attachResizeListener,i=t.defaultParent,o=t.measureScroll,r=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(t,e,o){var r=this;void 0===e&&(e={}),void 0===o&&(o=null===i||void 0===i?void 0:i()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){r.isUpdating&&(r.isUpdating=!1,r.clearAllSnapshots())},this.updateProjection=function(){r.nodes.forEach(re),r.nodes.forEach(ae)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=o?o.root||o:this,this.path=o?(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a=0;n--)if(Boolean(t.path[n].instance)){i=t.path[n];break}var o=(i&&i!==t.root?i.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function ve(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function me(t){ve(t.x),ve(t.y)}var fe=$t({attachResizeListener:function(t,e){return(0,X.E)(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ye={current:void 0},ge=$t({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!ye.current){var t=new fe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ye.current=t}return ye.current},resetTransform:function(t,e){t.style.transform=null!==e&&void 0!==e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),xe=(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},s.s),a.E),rt),Pt),Pe=(0,o.D)((function(t,e){return(0,r.w)(t,e,xe,at.b,ge)}))},95235:function(t,e,i){function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{Z:function(){return n}})}}]);