PageSourceSearch

https://www.torneox.com/_next/static/chunks/362-62fc501e4ef40df6.js?dpl=dpl_8hwt2Ec8cxSBPXCvzZn86a5zZcCJ

js torneox.com collected 2026-09-24 14:55:08 UTC 47,989 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="04de09b0-83b8-4b30-bf1d-47f78428eb36",t._sentryDebugIdIdentifier="sentry-dbid-04de09b0-83b8-4b30-bf1d-47f78428eb36")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[362],{362:(t,e,i)=>{i.d(e,{P:()=>u});var s=i(61290),o=i(70482),n=i(49868),r=i(69160),a=i(24029),l=i(55525);let h={...n.W,...a.n,...r.$,...l.Z},u=(0,o.H)(h,s.J)},3790:(t,e,i)=>{i.d(e,{$:()=>p});var s=i(21398),o=i(41362),n=i(7509),r=i(68001),a=i(25398),l=i(26065),h=i(53928),u=i(20044);let d=!1;class c extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),d&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),o.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),d=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==o?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||n.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),r.k.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;d=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function p(t){let[e,i]=(0,l.xQ)(),o=(0,a.useContext)(h.L);return(0,s.jsx)(c,{...t,layoutGroup:o,switchLayoutGroup:(0,a.useContext)(u.N),isPresent:e,safeToRemove:i})}},3838:(t,e,i)=>{i.d(e,{ho:()=>O,rq:()=>G,u0:()=>F});var s=i(50388),o=i(79664),n=i(13617),r=i(54713),a=i(81591),l=i(27775),h=i(68001),u=i(39651),d=i(36464),c=i(62186),p=i(55094),m=i(20813),v=i(15580),g=i(58097),y=i(8444),f=i(42492),x=i(12367),P=i(64332),T=i(27686),D=i(11812),w=i(74573),E=i(68382),S=i(77975),A=i(99798),k=i(58322),L=i(59495),j=i(56903),R=i(74454),C=i(84939),V=i(41362),b=i(7509);let B={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},M=["","X","Y","Z"],U=0;function I(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function F({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:y}){return class{constructor(t={},i=e?.()){this.id=U++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,p.Q.value&&(B.nodes=B.calculatedTargetDeltas=B.calculatedProjections=0),this.nodes.forEach(O),this.nodes.forEach(Y),this.nodes.forEach(q),this.nodes.forEach(G),p.Q.addProjectionMetrics&&p.Q.addProjectionMetrics(B)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new R.Y)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,v.x)(e)&&!(0,g.h)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,o=()=>this.root.updateBlockedByResize=!1;b.Gt.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,m.c)(o,250),V.w.hasA
1nimatedSinceResize&&(V.w.hasAnimatedSinceResize=!1,this.nodes.forEach(N)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||te,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),h=!this.targetLayout||!(0,A.mG)(this.targetLayout,s),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,l.r)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||N(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,b.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,a.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",b.Gt,!(t||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(z);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach($);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Q),this.nodes.forEach(H),this.nodes.forEach(W)):this.nodes.forEach($),this.clearAllSnapshots();let t=u.k.now();b.uv.delta=(0,o.q)(0,1e3/60,t-b.uv.timestamp),b.uv.timestamp=t,b.uv.isProcessing=!0,b.PP.update.process(b.uv),b.PP.preRender.process(b.uv),b.PP.render.process(b.uv),b.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(X),this.sharedNodes.forEach(K)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,w.CQ)(this.snapshot.measuredBox.x)||(0,w.CQ)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,S.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!y)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!(0,A.XY)(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,C.HD)(this.latestValues)||o)&&(y(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),to((e=s).x),to(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,S.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tr))){let{scroll:t}=this.root;t&&((0,D.Ql)(e.x,t.offset.x),(0,D.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,S.ge)();if((0,T.Hy)(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:o,options:n}=s;s!==this.root&&o&&n.layoutScroll&&(o.wasRoot&&(0,T.Hy)(e,t),(0,D.Ql)(e.x,o.offset.x),(0,D.Ql)(e.y,o.offset.y))}return e}applyTransform(t,e=!1){let i=(0,S.ge)();(0,T.Hy)(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,D.Ww)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,C.HD)(s.latestValues)&&(0,D.Ww)(i,s.latestValues)}return(0,C.HD)(this.latestValues)&&(0,D.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,S.ge)();(0,T.Hy)(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,C.HD)(i.latestValues))continue;(0,C.vk)(i.latestValues)&&i.updateSnapshot();let s=(0,S.ge)(),o=i.measurePageBox();(0,T.Hy)(s,o),(0,E.px)(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,C.HD)(this.latestValues)&&(0,E.px)(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==b.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:o}=this.options;if(!this.layout||!(s||o))return;this.resolvedRelativeTargetAt=b.uv.timestamp;let n=this.getClosestProjectingParent();n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,S.ge)(),this.targetWithTransforms=(0,S.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,w.N)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):(0,T.Hy)(this.target,this.layout.layoutBox),(0,D.o4)(this.target,this.targetDelta)):(0,T.Hy)(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0),p.Q.value&&B.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,C.vk)(this.parent.latestValues)||(0,C.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,S.ge)(),this.relativeTargetOrigin=(0,S.ge)(),(0,w.jA)(this.relativeTargetOrigin,e,i),(0,T.Hy)(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===b.uv.timestamp&&(i=!1),i)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||o))return;(0,T.Hy)(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,r=this.treeScale.y;(0,D.OU)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,S.ge)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?((0,T.xD)(this.prevProjectionDelta.x,this.projectionDelta.x),(0,T.xD)(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,w.vb)(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===n&&this.treeScale.y===r&&(0,A.t$)(this.projectionDelta.x,this.prevProjectionDelta.x)&&(0,A.t$)(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),p.Q.value&&B.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,S.xU)(),this.projectionDelta=(0,S.xU)(),this.projectionDeltaWithTransform=(0,S.xU)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,o=s?s.latestValues:{},n={...this.latestValues},r=(0,S.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,S.ge)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(tt));this.animationProgress=0,this.mixTargetDelta=e=>{var s,h,c,p;let m=e/1e3;Z(r.x,t.x,m),Z(r.y,t.y,m),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&((0,w.jA)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,h=this.relativeTargetOrigin,c=a,p=m,J(s.x,h.x,c.x,p),J(s.y,h.y,c.y,p),i&&(0,A.zo)(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=(0,S.ge)()),(0,T.Hy)(i,this.relativeTarget)),l&&(this.animationValues=n,(0,P.v)(n,o,this.latestValues,m,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,b.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.Gt.update(()=>{V.w.hasAnimatedSinceResize=!0,c.q.layout++,this.motionValue||(this.motionValue=(0,f.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,r.z)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{c.q.layout--},onComplete:()=>{c.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tn(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,S.ge)();let e=(0,w.CQ)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,w.CQ)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}(0,T.Hy)(e,i),(0,D.Ww)(e,o),(0,w.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new k.P),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&I("z",t,s,this.animationValues);for(let e=0;e<M.length;e++)I(`rotate${M[e]}`,t,s,this.animationValues),I(`skew${M[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,x.u)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,x.u)(e?.pointerEvents)||""),this.hasProjected&&!(0,C.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let o=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=(0,L.I)(this.projectionDeltaWithTransform,this.treeScale,o);i&&(n=i(o,n)),t.transform=n;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,d.H){if(void 0===o[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=d.H[e],l="none"===n?o[e]:i(o[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,x.u)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(z),this.root.sharedNodes.clear()}}}function H(t){t.updateLayout()}function W(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:o}=t.options,n=e.source!==t.layout.source;"size"===o?(0,j.X)(t=>{let s=n?e.measuredBox[t]:e.layoutBox[t],o=(0,w.CQ)(s);s.min=i[t].min,s.max=s.min+o}):tn(o,e.layoutBox,i)&&(0,j.X)(s=>{let o=n?e.measuredBox[s]:e.layoutBox[s],r=(0,w.CQ)(i[s]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,S.xU)();(0,w.vb)(r,i,e.layoutBox);let a=(0,S.xU)();n?(0,w.vb)(a,t.applyTransform(s,!0),e.measuredBox):(0,w.vb)(a,i,e.layoutBox);let l=!(0,A.XY)(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:n}=s;if(o&&n){let r=(0,S.ge)();(0,w.jA)(r,e.layoutBox,o.layoutBox);let a=(0,S.ge)();(0,w.jA)(a,i,n.layoutBox),(0,A.mG)(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function O(t){p.Q.value&&B.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function G(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function X(t){t.clearSnapshot()}function z(t){t.clearMeasurements()}function $(t){t.isLayoutDirty=!1}function Q(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function N(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Y(t){t.resolveTargetDelta()}function q(t){t.calcProjection()}
1function _(t){t.resetSkewAndRotation()}function K(t){t.removeLeadSnapshot()}function Z(t,e,i){t.translate=(0,y.k)(e.translate,0,i),t.scale=(0,y.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function J(t,e,i,s){t.min=(0,y.k)(e.min,i.min,s),t.max=(0,y.k)(e.max,i.max,s)}function tt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let te={duration:.45,ease:[.4,0,.1,1]},ti=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ts=ti("applewebkit/")&&!ti("chrome/")?Math.round:n.l;function to(t){t.min=ts(t.min),t.max=ts(t.max)}function tn(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,w.HQ)((0,A.cH)(e),(0,A.cH)(i),.2)}function tr(t){return t!==t.root&&t.scroll?.wasRoot}},15580:(t,e,i)=>{i.d(e,{x:()=>o});var s=i(31169);function o(t){return(0,s.G)(t)&&"ownerSVGElement"in t}},20813:(t,e,i)=>{i.d(e,{U:()=>a,c:()=>r});var s=i(39651),o=i(78933),n=i(7509);function r(t,e){let i=s.k.now(),o=({timestamp:s})=>{let r=s-i;r>=e&&((0,n.WG)(o),t(r-e))};return n.Gt.setup(o,!0),()=>(0,n.WG)(o)}function a(t,e){return r(t,(0,o.f)(e))}},25165:(t,e,i)=>{i.d(e,{B:()=>o});var s=i(1755);let o=(0,i(3838).u0)({attachResizeListener:(t,e)=>(0,s.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0})},27686:(t,e,i)=>{function s(t,e){t.min=e.min,t.max=e.max}function o(t,e){s(t.x,e.x),s(t.y,e.y)}function n(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}i.d(e,{Hy:()=>o,be:()=>s,xD:()=>n})},27844:(t,e,i)=>{i.d(e,{h:()=>n});var s=i(1755),o=i(87889);function n(t,e,i,n){return(0,s.k)(t,e,(0,o.F)(i),n)}},40807:(t,e,i)=>{i.d(e,{u:()=>s});let s=(t,e)=>t.depth-e.depth},41362:(t,e,i)=>{i.d(e,{w:()=>s});let s={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},54713:(t,e,i)=>{i.d(e,{z:()=>r});var s=i(70424),o=i(42492),n=i(97669);function r(t,e,i){let r=(0,n.S)(t)?t:(0,o.OQ)(t);return r.start((0,s.f)("",r,e,i)),r.animation}},55525:(t,e,i)=>{i.d(e,{Z:()=>n});var s=i(65453),o=i(3790);let n={layout:{ProjectionNode:s.P,MeasureLayout:o.$}}},56177:(t,e,i)=>{i.d(e,{W:()=>o});var s=i(46379);function o(t){if("x"===t||"y"===t)if(s.I[t])return null;else return s.I[t]=!0,()=>{s.I[t]=!1};return s.I.x||s.I.y?null:(s.I.x=s.I.y=!0,()=>{s.I.x=s.I.y=!1})}},56903:(t,e,i)=>{i.d(e,{X:()=>s});function s(t){return[t("x"),t("y")]}},58097:(t,e,i)=>{i.d(e,{h:()=>o});var s=i(15580);function o(t){return(0,s.x)(t)&&"svg"===t.tagName}},58322:(t,e,i)=>{i.d(e,{P:()=>o});var s=i(34242);class o{constructor(){this.members=[]}add(t){(0,s.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let o=i.instance;o&&!1===o.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,s.Ai)(this.members,i)}t.scheduleRender()}remove(t){if((0,s.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],s=i.instance;if(!1!==i.isPresent&&(!s||!1!==s.isConnected)){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let s=i.options.layoutDependency,o=t.options.layoutDependency;if(void 0===s||void 0===o||s!==o){let s=i.instance;!(s&&!1===s.isConnected&&!i.snapshot)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}},59495:(t,e,i)=>{i.d(e,{I:()=>s});function s(t,e,i){let s="",o=t.x.translate/e.x,n=t.y.translate/e.y,r=i?.z||0;if((o||n||r)&&(s=`translate3d(${o}px, ${n}px, ${r}
1px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:o,rotateY:n,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),o&&(s+=`rotateX(${o}deg) `),n&&(s+=`rotateY(${n}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}},61138:(t,e,i)=>{let s,o;i.d(e,{X:()=>m});var n=i(15580),r=i(58288);let a=new WeakMap,l=(t,e,i)=>(s,o)=>o&&o[0]?o[0][t+"Size"]:(0,n.x)(s)&&"getBBox"in s?s.getBBox()[e]:s[i],h=l("inline","width","offsetWidth"),u=l("block","height","offsetHeight");function d({target:t,borderBoxSize:e}){a.get(t)?.forEach(i=>{i(t,{get width(){return h(t,e)},get height(){return u(t,e)}})})}function c(t){t.forEach(d)}let p=new Set;function m(t,e){return"function"==typeof t?(p.add(t),o||(o=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};p.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{p.delete(t),p.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):function(t,e){s||"undefined"!=typeof ResizeObserver&&(s=new ResizeObserver(c));let i=(0,r.K)(t);return i.forEach(t=>{let i=a.get(t);i||(i=new Set,a.set(t,i)),i.add(e),s?.observe(t)}),()=>{i.forEach(t=>{let i=a.get(t);i?.delete(e),i?.size||s?.unobserve(t)})}}(t,e)}},64332:(t,e,i)=>{i.d(e,{v:()=>c});var s=i(8444),o=i(85616),n=i(8114),r=i(13617),a=i(11636);let l=["TopLeft","TopRight","BottomLeft","BottomRight"],h=l.length,u=t=>"string"==typeof t?parseFloat(t):t,d=t=>"number"==typeof t||o.px.test(t);function c(t,e,i,n,r,a){r?(t.opacity=(0,s.k)(0,i.opacity??1,m(n)),t.opacityExit=(0,s.k)(e.opacity??1,0,v(n))):a&&(t.opacity=(0,s.k)(e.opacity??1,i.opacity??1,n));for(let r=0;r<h;r++){let a=`border${l[r]}Radius`,h=p(e,a),c=p(i,a);(void 0!==h||void 0!==c)&&(h||(h=0),c||(c=0),0===h||0===c||d(h)===d(c)?(t[a]=Math.max((0,s.k)(u(h),u(c),n),0),(o.KN.test(c)||o.KN.test(h))&&(t[a]+="%")):t[a]=c)}(e.rotate||i.rotate)&&(t.rotate=(0,s.k)(e.rotate||0,i.rotate||0,n))}function p(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let m=g(0,.5,n.yT),v=g(.5,.95,r.l);function g(t,e,i){return s=>s<t?0:s>e?1:i((0,a.q)(t,e,s))}},65453:(t,e,i)=>{i.d(e,{P:()=>r,i:()=>n});var s=i(3838),o=i(25165);let n={current:void 0},r=(0,s.u0)({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!n.current){let t=new o.B({});t.mount(window),t.setOptions({layoutScroll:!0}),n.current=t}return n.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position})},68382:(t,e,i)=>{i.d(e,{T$:()=>r,kE:()=>a,px:()=>d,x6:()=>l});var s=i(8444),o=i(85616),n=i(11812);function r(t,e,i,s,o){return t-=e,t=(0,n.hq)(t,1/i,s),void 0!==o&&(t=(0,n.hq)(t,1/o,s)),t}function a(t,e=0,i=1,n=.5,l,h=t,u=t){if(o.KN.test(e)&&(e=parseFloat(e),e=(0,s.k)(u.min,u.max,e/100)-u.min),"number"!=typeof e)return;let d=(0,s.k)(h.min,h.max,n);t===h&&(d-=e),t.min=r(t.min,e,i,d,l),t.max=r(t.max,e,i,d,l)}function l(t,e,[i,s,o],n,r){a(t,e[i],e[s],e[o],e.scale,n,r)}let h=["x","scaleX","originX"],u=["y","scaleY","originY"];function d(t,e,i,s){l(t.x,e,h,i?i.x:void 0,s?s.x:void 0),l(t.y,e,u,i?i.y:void 0,s?s.y:void 0)}},69160:(t,e,i)=>{i.d(e,{$:()=>Y});var s=i(71907),o=i(13617),n=i(56177),r=i(56903),a=i(85616),l=i(74573),h=i(7509),u=i(15143),d=i(62176),c=i(48365),p=i(70424),m=i(8444),v=i(75558),g=i(1755),y=i(77975),f=i(61138),x=i(63532),P=i(27844),T=i(87889);let D=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var w=i(19928),E=i(61202),S=i(34937),A=i(78933),k=i(87755);let L=new Set(["auto","scroll"]);class j{startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(L.has(t.overflowX)||L.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-e.x,y:s.y-e.y};(0!==o.x||0!==o.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),h.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,h.WG)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:n=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=V(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=(0,k.w)(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:s}=t,{timestamp:o}=h.uv;this.history.push({...s,timestamp:o});let{onStart:n,onMove:r}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=R(e,this.transformPagePoint),h.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=V("pointercancel"===t.type?this.lastMoveEventInfo:R(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!(0,E.M)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;let a=R((0,T.e)(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=h.uv;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=e;d&&d(t,V(a,this.history)),this.removeListeners=(0,S.F)((0,P.h)(this.contextWindow,"pointermove",this.handlePointerMove),(0,P.h)(this.contextWindow,"pointerup",this.handlePointerUp),(0,P.h)(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}}function R(t,e){return e?{point:e(t.point)}:t}function C(t,e){return{x:t.x-e.x,y:t.y-e.y}}function V(t,e){let{point:i}=t;return{point:i,delta:C(i,b(e)),offset:C(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,o=b(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>(0,A.f)(.1)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&o.timestamp-s.timestamp>2*(0,A.f)(e)&&(s=t[1]);let n=(0,A.X)(o.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let r={x:(o.x-s.x)/n,y:(o.y-s.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function b(t){return t[t.length-1]}var B=i(11636),M=i(79664);function U(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function I(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function F(t,e,i){return{min:H(t,e),max:H(t,i)}}function H(t,e){return"number"==typeof t?t:t[e]||0}let W=new WeakMap;class O{start(t){let{snapToCursor:e=!1,distanceThreshold:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let{dragSnapToOrigin:o}=this.getProps();this.panSession=new j(t,{onSessionStart:t=>{e&&this.snapToCursor((0,T.e)(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,n.W)(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,r.X)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(a.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=(0,l.CQ)(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&h.Gt.update(()=>o(t,e),!1,!0),(0,u.g)(this.visualElement,"transform");let{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),n&&h.Gt.update(()=>n(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:i,contextWindow:D(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&h.Gt.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!X(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];
1this.constraints&&this.constraints[t]&&(n=function(t,e,i){let{min:s,max:o}=e;return void 0!==s&&t<s?t=i?(0,m.k)(s,t,i.min):Math.max(t,s):void 0!==o&&t>o&&(t=i?(0,m.k)(o,t,i.max):Math.min(t,o)),t}(n,this.constraints[t],this.elastic[t])),o.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,o=this.constraints;e&&(0,w.X)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,e){let{top:i,left:s,bottom:o,right:n}=e;return{x:U(t.x,s,n),y:U(t.y,i,o)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(i),o!==this.constraints&&!(0,w.X)(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&(0,r.X)(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,w.X)(e))return!1;let s=e.current;(0,x.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=(0,d.L)(s,o.root,this.visualElement.getTransformPagePoint()),r=(t=o.layout.layoutBox,{x:I(t.x,n.x),y:I(t.y,n.y)});if(i){let t=i((0,c.pA)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,c.FY)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all((0,r.X)(r=>{if(!X(r,e,this.currentDirection))return;let a=l&&l[r]||{};n&&(a={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...a};return this.startAxisValueAnimation(r,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,u.g)(this.visualElement,t),i.start((0,p.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,r.X)(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){(0,r.X)(e=>{let{drag:i}=this.getProps();if(!X(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e],r=o.get()||0;o.set(t[e]-(0,m.k)(i,n,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};(0,r.X)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=(0,l.CQ)(t),o=(0,l.CQ)(e);return o>s?i=(0,B.q)(e.min,e.max-s,t.min):s>o&&(i=(0,B.q)(t.min,t.max-o,e.min)),(0,M.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,r.X)(e=>{if(!X(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:n}=this.constraints[e];i.set((0,m.k)(o,n,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;W.set(this.visualElement,this);let e=this.visualElement.current,i=(0,P.h)(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),o=t.target,n=o!==e&&(0,v.a)(o);i&&s&&!n&&this.start(t)}),s=()=>{let{dragConstraints:i}=this.getProps();(0,w.X)(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,
1i){let s=(0,f.X)(t,G(i)),o=(0,f.X)(e,G(i));return()=>{s(),o()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,n=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),h.Gt.read(s);let a=(0,g.k)(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&((0,r.X)(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),n(),l&&l(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:n=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:n,dragMomentum:r}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,y.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function G(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function X(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class z extends s.X{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.l}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}constructor(t){super(t),this.removeGroupControls=o.l,this.removeListeners=o.l,this.controls=new O(t)}}let $=t=>(e,i)=>{t&&h.Gt.update(()=>t(e,i),!1,!0)};class Q extends s.X{onPointerDown(t){this.session=new j(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:D(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:$(t),onStart:$(e),onMove:$(i),onEnd:(t,e)=>{delete this.session,s&&h.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=(0,P.h)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=o.l}}var N=i(3790);let Y={pan:{Feature:Q},drag:{Feature:z,ProjectionNode:i(65453).P,MeasureLayout:N.$}}},74454:(t,e,i)=>{i.d(e,{Y:()=>n});var s=i(34242),o=i(40807);class n{constructor(){this.children=[],this.isDirty=!1}add(t){(0,s.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,s.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o.u),this.isDirty=!1,this.children.forEach(t)}}},74573:(t,e,i)=>{i.d(e,{Ag:()=>u,CQ:()=>o,HQ:()=>n,N:()=>h,dW:()=>r,jA:()=>d,vb:()=>a,xC:()=>l});var s=i(8444);function o(t){return t.max-t.min}function n(t,e,i){return Math.abs(t-e)<=i}function r(t,e,i,n=.5){t.origin=n,t.originPoint=(0,s.k)(e.min,e.max,t.origin),t.scale=o(i)/o(e),t.translate=(0,s.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function a(t,e,i,s){r(t.x,e.x,i.x,s?s.originX:void 0),r(t.y,e.y,i.y,s?s.originY:void 0)}function l(t,e,i){t.min=i.min+e.min,t.max=t.min+o(e)}function h(t,e,i){l(t.x,e.x,i.x),l(t.y,e.y,i.y)}function u(t,e,i){t.min=e.min-i.min,t.max=t.min+o(e)}function d(t,e,i){u(t.x,e.x,i.x),u(t.y,e.y,i.y)}},87755:(t,e,i)=>{i.d(e,{I:()=>s,w:()=>o});let s=(t,e)=>Math.abs(t-e);function o(t,e){return Math.sqrt(s(t.x,e.x)**2+s(t.y,e.y)**2)}},99798:(t,e,i)=>{i.d(e,{XY:()=>n,cH:()=>u,mG:()=>h,t$:()=>d,ul:()=>l,zL:()=>r,zo:()=>a});var s=i(74573);function o(t){return 0===t.translate&&1===t.scale}function n(t){return o(t.x)&&o(t.y)}function r(t,e){return t.min===e.min&&t.max===e.max}function a(t,e){return r(t.x,e.x)&&r(t.y,e.y)}function l(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function h(t,e){return l(t.x,e.x)&&l(t.y,e.y)}function u(t){return(0,s.CQ)(t.x)/(0,s.CQ)(t.y)}function d(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.