PageSourceSearch

https://cop29.az/_next/static/chunks/4486-36f0b79c49cbeda2.js

js cop29.az collected 2026-10-02 02:29:56 UTC 97,855 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4486],{72582:function(e,i,n){n.d(i,{useCallbackRef:function(){return s}});var r=n(86200);function s(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},i)}},21003:function(e,i,n){function r(...e){return function(...i){e.forEach(e=>e?.(...i))}}function s(...e){return function(i){e.some(e=>(e?.(i),i?.defaultPrevented))}}n.d(i,{P:function(){return r},v:function(){return s}})},76074:function(e,i,n){n.d(i,{M:function(){return g}});var r=n(86200),s=n(15573),o=n(70275);function a(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=n(28821),u=n(44945);class h extends r.Component{getSnapshotBeforeUpdate(e){let i=this.props.childRef.current;if(i&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=i.offsetHeight||0,e.width=i.offsetWidth||0,e.top=i.offsetTop,e.left=i.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:i}){let n=(0,r.useId)(),s=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:l}=o.current;if(i||!s.current||!e||!r)return;s.current.dataset.motionPopId=n;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            top: ${a}px !important;
7            left: ${l}px !important;
8          }
9        `),()=>{document.head.removeChild(u)}},[i]),r.createElement(h,{isPresent:i,childRef:s,sizeRef:o},r.cloneElement(e,{ref:s}))}let d=({children:e,initial:i,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:h})=>{let d=(0,u.h)(p),m=(0,r.useId)(),f=(0,r.useMemo)(()=>({id:m,initial:i,isPresent:n,custom:o,onExitComplete:e=>{for(let i of(d.set(e,!0),d.values()))if(!i)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((e,i)=>d.set(i,!1))},[n]),r.useEffect(()=>{n||d.size||!s||s()},[n]),"popLayout"===h&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(l.O.Provider,{value:f},e)};function p(){return new Map}var m=n(35363);let f=e=>e.key||"",g=({children:e,custom:i,initial:n=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:h=!0,mode:c="sync"})=>{var p;u&&(c="wait");let[g]=function(){let e=a(),[i,n]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{e.current&&n(i+1)},[i]);return[(0,r.useCallback)(()=>s.Z_.postRender(o),[o]),i]}(),v=(0,r.useContext)(m.p).forceRender;v&&(g=v);let y=a(),x=function(e){let i=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&i.push(e)}),i}(e),P=x,b=new Set,w=(0,r.useRef)(P),A=(0,r.useRef)(new Map).current,T=(0,r.useRef)(!0);if((0,o.L)(()=>{T.current=!1,function(e,i){e.forEach(e=>{let n=f(e);i.set(n,e)})}(x,A),w.current=P}),p=()=>{T.current=!0,A.clear(),b.clear()},(0,r.useEffect)(()=>()=>p(),[]),T.current)return r.createElement(r.Fragment,null,P.map(e=>r.createElement(d,{key:f(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:h,mode:c},e)));P=[...P];let E=w.current.map(f),V=x.map(f),S=E.length;for(let e=0;e<S;e++){let i=E[e];-1===V.indexOf(i)&&b.add(i)}return"wait"===c&&b.size&&(P=[]),b.forEach(e=>{if(-1!==V.indexOf(e))return;let n=A.get(e);if(!n)return;let s=E.indexOf(e);P.splice(s,0,r.createElement(d,{key:f(n),isPresent:!1,onExitComplete:()=>{A.delete(e),b.delete(e);let i=w.current.findIndex(i=>i.key===e);if(w.current.splice(i,1),!b.size){if(w.current=x,!1===y.current)return;g(),l&&l()}},custom:i,presenceAffectsLayout:h,mode:c},n))}),P=P.map(e=>{let i=e.key;return b.has(i)?e:r.createElement(d,{key:f(e),isPresent:!0,presenceAffectsLayout:h,mode:c},e)}),r.createElement(r.Fragment,null,b.size?P:P.map(e=>(0,r.cloneElement)(e)))}},93629:function(e,i,n){n.d(i,{hO:function(){return a},oO:function(){return o}});var r=n(86200),s=n(28821);function o(){let e=(0,r.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:o}=e,a=(0,r.useId)();return(0,r.useEffect)(()=>
9o(a),[]),!i&&n?[!1,()=>n&&n(a)]:[!0]}function a(){var e;return null===(e=(0,r.useContext)(s.O))||e.isPresent}},35363:function(e,i,n){n.d(i,{p:function(){return r}});let r=(0,n(86200).createContext)({})},28821:function(e,i,n){n.d(i,{O:function(){return r}});let r=(0,n(86200).createContext)(null)},44419:function(e,i,n){n.d(i,{frameData:function(){return r}});let r={delta:0,timestamp:0}},15573:function(e,i,n){n.d(i,{qY:function(){return m},iW:function(){return f},Z_:function(){return p}});let r=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(s()),r);var a=n(44419);let l=!0,u=!1,h=!1,c=["read","update","preRender","render","postRender"],d=c.reduce((e,i)=>(e[i]=function(e){let i=[],n=[],r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let u=l&&s,h=u?i:n;return o&&a.add(e),-1===h.indexOf(e)&&(h.push(e),u&&s&&(r=i.length)),e},cancel:e=>{let i=n.indexOf(e);-1!==i&&n.splice(i,1),a.delete(e)},process:u=>{if(s){o=!0;return}if(s=!0,[i,n]=[n,i],n.length=0,r=i.length)for(let n=0;n<r;n++){let r=i[n];r(u),a.has(r)&&(l.schedule(r),e())}s=!1,o&&(o=!1,l.process(u))}};return l}(()=>u=!0),e),{}),p=c.reduce((e,i)=>{let n=d[i];return e[i]=(e,i=!1,r=!1)=>(u||y(),n.schedule(e,i,r)),e},{}),m=c.reduce((e,i)=>(e[i]=d[i].cancel,e),{}),f=c.reduce((e,i)=>(e[i]=()=>d[i].process(a.frameData),e),{}),g=e=>d[e].process(a.frameData),v=e=>{u=!1,a.frameData.delta=l?r:Math.max(Math.min(e-a.frameData.timestamp,40),1),a.frameData.timestamp=e,h=!0,c.forEach(g),h=!1,u&&(l=!1,o(v))},y=()=>{u=!0,l=!0,h||o(v)}},15073:function(e,i,n){n.d(i,{E:function(){return rU}});var r,s=n(86200);let o=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,s.createContext)({});var l=n(28821),u=n(70275);let h=(0,s.createContext)({strict:!1});function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function d(e){return"string"==typeof e||Array.isArray(e)}function p(e){return"object"==typeof e&&"function"==typeof e.start}let m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f=["initial",...m];function g(e){return p(e.animate)||f.some(i=>d(e[i]))}function v(e){return!!(g(e)||e.variants)}function y(e){return Array.isArray(e)?e.join(" "):e}let x={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},P={};for(let e in x)P[e]={isEnabled:i=>x[e].some(e=>!!i[e])};var b=n(30451),w=n(44945);let A={hasAnimatedSinceResize:!0,hasEverUpdated:!1},T=1;var E=n(35363);let V=(0,s.createContext)({}),S=Symbol.for("motionComponentSymbol"),C=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M(e){if("string"!=typeof e||e.includes("-"));else if(C.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let D={},k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(k);function R(e,{layout:i,layoutId:n}){return L.has(e)||e.startsWith("origin")||(i||void 0!==n)&&(!!D[e]||"opacity"===e)}let j=e=>!!(e&&e.getVelocity),F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B=k.length,O=e=>i=>"string"==typeof i&&i.startsWith(e),I=O("--"),U=O("var(--"),N=(e,i)=>i&&"number"==typeof e?i.transform(e):e,$=(e,i,n)=>Math.min(Math.max(n,e),i),W={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},z={...W,transform:e=>$(0,1,e)},H={...W,default:1},Y=e=>Math.round(1e5*e)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G(e){return"string"==typeof e}let X=e=>({test:i=>G(i)&&i.endsWith(e)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${e}`}),K=X("deg"),J=X("%"),Q=X("px"),tt=X("vh"),te=X("vw"),ti={...J,parse:e=>J.parse(e)/100,transform:e=>J.transform(100*e)},tn={...W,transform:Math.round},tr={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:H,scaleX:H,scaleY:H,scaleZ:H,skew:K,skewX:K,skewY:K,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:z,originX:ti,originY:ti,originZ:Q,zIndex:tn,fillOpacity:z,strokeOpacity:z,numOctaves:tn};function ts(e,i,n,r){let{style:s,vars:o,transform:a,transformOrigin:l}=e,u=!1,h=!1,c=!0;for(let e in i){let n=i[e];if(I(e)){o[e]=n;continue}let r=tr[e],d=N(n,r);
9if(L.has(e)){if(u=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(h=!0,l[e]=d):s[e]=d}if(!i.transform&&(u||r?s.transform=function(e,{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<B;i++){let n=k[i];if(void 0!==e[n]){let i=F[n]||n;o+=`${i}(${e[n]}) `}}return i&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:i="50%",originZ:n=0}=l;s.transformOrigin=`${e} ${i} ${n}`}}let to=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(e,i,n){for(let r in i)j(i[r])||R(r,n)||(e[r]=i[r])}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function tu(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||tl.has(e)}let th=e=>!tu(e);try{(r=require("@emotion/is-prop-valid").default)&&(th=e=>e.startsWith("on")?!tu(e):r(e))}catch(e){}function tc(e,i,n){return"string"==typeof e?e:Q.transform(i+n*e)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tp={offset:"strokeDashoffset",array:"strokeDasharray"};function tm(e,{attrX:i,attrY:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(ts(e,u,h,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:f}=e;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==s||m.transform)&&(m.transformOrigin=function(e,i,n){let r=tc(i,e.x,e.width),s=tc(n,e.y,e.height);return`${r} ${s}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==n&&(p.y=n),void 0!==o&&function(e,i,n=1,r=0,s=!0){e.pathLength=1;let o=s?td:tp;e[o.offset]=Q.transform(-r);let a=Q.transform(i),l=Q.transform(n);e[o.array]=`${a} ${l}`}(p,o,a,l,!1)}let tf=()=>({...to(),attrs:{}}),tg=e=>"string"==typeof e&&"svg"===e.toLowerCase(),tv=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ty(e,{style:i,vars:n},r,s){for(let o in Object.assign(e.style,i,s&&s.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let tx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tP(e,i,n,r){for(let n in ty(e,i,void 0,r),i.attrs)e.setAttribute(tx.has(n)?n:tv(n),i.attrs[n])}function tb(e,i){let{style:n}=e,r={};for(let s in n)(j(n[s])||i.style&&j(i.style[s])||R(s,e))&&(r[s]=n[s]);return r}function tw(e,i){let n=tb(e,i);for(let r in e)(j(e[r])||j(i[r]))&&(n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return n}function tA(e,i,n,r={},s={}){return"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),"string"==typeof i&&(i=e.variants&&e.variants[i]),"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),i}let tT=e=>Array.isArray(e),tE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),tV=e=>tT(e)?e[e.length-1]||0:e;function tS(e){let i=j(e)?e.get():e;return tE(i)?i.toValue():i}let tC=e=>(i,n)=>{let r=(0,s.useContext)(a),o=(0,s.useContext)(l.O),u=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o){let a={latestValues:function(e,i,n,r){let s={},o=r(e,{});for(let e in o)s[e]=tS(o[e]);let{initial:a,animate:l}=e,u=g(e),h=v(e);i&&h&&!u&&!1!==e.inherit&&(void 0===a&&(a=i.initial),void 0===l&&(l=i.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?l:a;return d&&"boolean"!=typeof d&&!p(d)&&(Array.isArray(d)?d:[d]).forEac
9h(i=>{let n=tA(e,i);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let i=a[e];if(Array.isArray(i)){let e=c?i.length-1:0;i=i[e]}null!==i&&(s[e]=i)}for(let e in r)s[e]=r[e]}),s}(r,s,o,e),renderState:i()};return n&&(a.mount=e=>n(r,e,a)),a})(e,i,r,o);return n?u():(0,w.h)(u)},tM={useVisualState:tC({scrapeMotionValuesFromProps:tw,createRenderState:tf,onMount:(e,i,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}tm(n,r,{enableHardwareAcceleration:!1},tg(i.tagName),e.transformTemplate),tP(i,n)}})},tD={useVisualState:tC({scrapeMotionValuesFromProps:tb,createRenderState:to})};function tk(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}let tL=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tR(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}let tj=e=>i=>tL(i)&&e(i,tR(i));function tF(e,i,n,r){return tk(e,i,tj(n),r)}let tB=(e,i)=>n=>i(e(n)),tO=(...e)=>e.reduce(tB);function tI(e){let i=null;return()=>null===i&&(i=e,()=>{i=null})}let tU=tI("dragHorizontal"),tN=tI("dragVertical");function t$(e){let i=!1;if("y"===e)i=tN();else if("x"===e)i=tU();else{let e=tU(),n=tN();e&&n?i=()=>{e(),n()}:(e&&e(),n&&n())}return i}function tW(){let e=t$(!0);return!e||(e(),!1)}class tz{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tH(e,i){let n="onHover"+(i?"Start":"End");return tF(e.current,"pointer"+(i?"enter":"leave"),(r,s)=>{if("touch"===r.type||tW())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i),o[n]&&o[n](r,s)},{passive:!e.getProps()[n]})}class tY extends tz{mount(){this.unmount=tO(tH(this.node,!0),tH(this.node,!1))}unmount(){}}class tZ extends tz{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(i){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tO(tk(this.node.current,"focus",()=>this.onFocus()),tk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tq=(e,i)=>!!i&&(e===i||tq(e,i.parentElement)),t_=e=>e;function tG(e,i){if(!i)return;let n=new PointerEvent("pointer"+e);i(n,tR(n))}class tX extends tz{constructor(){super(...arguments),this.removeStartListeners=t_,this.removeEndListeners=t_,this.removeAccessibleListeners=t_,this.startPointerPress=(e,i)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=tF(window,"pointerup",(e,i)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();tq(this.node.current,e.target)?n&&n(e,i):r&&r(e,i)},{passive:!(n.onTap||n.onPointerUp)}),s=tF(window,"pointercancel",(e,i)=>this.cancelPress(e,i),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tO(r,s),this.startPress(e,i)},this.startAccessiblePress=()=>{let e=tk(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tk(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&tG("up",this.node.getProps().onTap)}),tG("down",(e,i)=>{this.startPress(e,i)}))}),i=tk(this.node.current,"blur",()=>{this.isPressing&&tG("cancel",(e,i)=>this.cancelPress(e,i))});this.removeAccessibleListeners=tO(e,i)}}startPress(e,i){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,i)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tW()}cancelPress(e,i){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&n(e,i)}mount(){let e=this.node.getProps(),i=tF(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=tk(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tO(i,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tK=new WeakMap,tJ=new WeakMap,tQ=e=>{let i=tK.get(e.target);i&&i(e)},t0=e=>{e.forEach(tQ)},t1={some:0,all:1};class t5 extends tz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;let{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s,fallback:o=!0}=e;if("undefined"==typeof IntersectionObserver){o&&this.viewportFallback();return}let a={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t1[r]};return function(e,i,n){let r=function({root:e,...i}){let n=e||document;tJ.has(n)||tJ.set(n,{});let r=tJ.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(t0,{root:e,...i})),r[s]}(i);return tK.set(e,n),r.observe(e),()=>{tK.delete(e),r.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:i}=e;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=i?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:i}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:i={}}={}){return n=>e[n]!==i[n]}(e,i))&&this.startObserver()}unmount(){}}
9function t2(e,i){if(!Array.isArray(i))return!1;let n=i.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(i[r]!==e[r])return!1;return!0}let t3=e=>/^\-?\d*\.?\d+$/.test(e),t4=e=>/^0[^.\s]+$/.test(e);var t9=n(44419),t6=n(15573);function t8(e,i){-1===e.indexOf(i)&&e.push(i)}function t7(e,i){let n=e.indexOf(i);n>-1&&e.splice(n,1)}class et{constructor(){this.subscriptions=[]}add(e){return t8(this.subscriptions,e),()=>t7(this.subscriptions,e)}notify(e,i,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,i,n);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(e,i,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ee(e,i){return i?1e3/i*e:0}let ei=e=>!isNaN(parseFloat(e));class en{constructor(e,i={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,i=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=t9.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t6.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>t6.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=ei(this.current),this.owner=i.owner}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new et);let n=this.events[e].add(i);return"change"===e?()=>{n(),t6.Z_.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){i&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,i)}setWithVelocity(e,i,n){this.set(i),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ee(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,i){return new en(e,i)}let es=(e,i)=>n=>!!(G(n)&&_.test(n)&&n.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(n,i)),eo=(e,i,n)=>r=>{if(!G(r))return r;let[s,o,a,l]=r.match(Z);return{[e]:parseFloat(s),[i]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},ea=e=>$(0,255,e),el={...W,transform:e=>Math.round(ea(e))},eu={test:es("rgb","red"),parse:eo("red","green","blue"),transform:({red:e,green:i,blue:n,alpha:r=1})=>"rgba("+el.transform(e)+", "+el.transform(i)+", "+el.transform(n)+", "+Y(z.transform(r))+")"},eh={test:es("#"),parse:function(e){let i="",n="",r="",s="";return e.length>5?(i=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(i=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),i+=i,n+=n,r+=r,s+=s),{red:parseInt(i,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:eu.transform},ec={test:es("hsl","hue"),parse:eo("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+J.transform(Y(i))+", "+J.transform(Y(n))+", "+Y(z.transform(r))+")"},ed={test:e=>eu.test(e)||eh.test(e)||ec.test(e),parse:e=>eu.test(e)?eu.parse(e):ec.test(e)?ec.parse(e):eh.parse(e),transform:e=>G(e)?e:e.hasOwnProperty("red")?eu.transform(e):ec.transform(e)},ep="${c}",em="${n}";function ef(e){"number"==typeof e&&(e=`${e}`);let i=[],n=0,r=0,s=e.match(q);s&&(n=s.length,e=e.replace(q,ep),i.push(...s.map(ed.parse)));let o=e.match(Z);return o&&(r=o.length,e=e.replace(Z,em),i.push(...o.map(W.parse))),{values:i,numColors:n,numNumbers:r,tokenised:e}}function eg(e){return ef(e).values}function ev(e){let{values:i,numColors:n,tokenised:r}=ef(e),s=i.length;return e=>{let i=r;for(let r=0;r<s;r++)i=i.replace(r<n?ep:em,r<n?ed.transform(e[r]):Y(e[r]));return i}}let ey=e=>"number"==typeof e?0:e,ex={test:function(e){var i,n;return isNaN(e)&&G(e)&&((null===(i=e.match(Z))||void 0===i?void 0:i.length)||0)+((null===(n=e.match(q))||void 0===n?void 0:n.length)||0)>0},parse:eg,createTransformer:ev,getAnimatableNone:function(e){let i=eg(e);return ev(e)(i.map(ey))}},eP=new Set(["brightness","contrast","saturate","opacity"]);function eb(e){let[i,n]=e.slice(0,-1).split("(");if("drop-shadow"===i)return e;let[r]=n.match(Z)||[];if(!r)return e;let s=n.replace(r,""),o=eP.has(i)?1:0;return r!==n&&(o*=100),i+"("+o+s+")"}let ew=/([a-z-]*)\(.*?\)/g,eA={...ex,getAnimatableNone:e=>{let i=e.match(ew);return i?i.map(eb).join(" "):e}},eT={...tr,color:ed,backgroundColor:ed,outlineColor:ed,fill:ed,stroke:ed,borderColor:ed,borderTopColor:ed,borderRightColor:ed,borderBottomColor:ed,borderLeftColor:ed,filter:eA,WebkitFilter:eA},eE=e=>eT[e];function eV(e,i){let n=eE(e);return n!==eA&&(n=ex),n.getAnimatableNone?n.getAnimatableNone(i):void 0}let eS=e=>i=>i.test(e),eC=[W,Q,J,K,te,tt,{test:e=>"auto"===e,parse:e=>e}],eM=e=>
9eC.find(eS(e)),eD=[...eC,ed,ex],ek=e=>eD.find(eS(e));function eL(e,i,n){let r=e.getProps();return tA(r,i,void 0!==n?n:r.custom,function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.get()),i}(e),function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.getVelocity()),i}(e))}function eR(e){return!!(j(e)&&e.add)}let ej="data-"+tv("framerAppearId"),eF=e=>1e3*e,eB={current:!1},eO=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,eI=e=>i=>1-e(1-i),eU=e=>e*e,eN=eI(eU),e$=eO(eU),eW=(e,i,n)=>-n*e+n*i+e;function ez(e,i,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(i-e)*6*n:n<.5?i:n<2/3?e+(i-e)*(2/3-n)*6:e}let eH=(e,i,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(i*i-r)+r))},eY=[eh,eu,ec],eZ=e=>eY.find(i=>i.test(e));function eq(e){let i=eZ(e);t_(!!i,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=i.parse(e);return i===ec&&(n=function({hue:e,saturation:i,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let r=n<.5?n*(1+i):n+i-n*i,l=2*n-r;s=ez(l,r,e+1/3),o=ez(l,r,e),a=ez(l,r,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let e_=(e,i)=>{let n=eq(e),r=eq(i),s={...n};return e=>(s.red=eH(n.red,r.red,e),s.green=eH(n.green,r.green,e),s.blue=eH(n.blue,r.blue,e),s.alpha=eW(n.alpha,r.alpha,e),eu.transform(s))};function eG(e,i){return"number"==typeof e?n=>eW(e,i,n):ed.test(e)?e_(e,i):eJ(e,i)}let eX=(e,i)=>{let n=[...e],r=n.length,s=e.map((e,n)=>eG(e,i[n]));return e=>{for(let i=0;i<r;i++)n[i]=s[i](e);return n}},eK=(e,i)=>{let n={...e,...i},r={};for(let s in n)void 0!==e[s]&&void 0!==i[s]&&(r[s]=eG(e[s],i[s]));return e=>{for(let i in r)n[i]=r[i](e);return n}},eJ=(e,i)=>{let n=ex.createTransformer(i),r=ef(e),s=ef(i);return r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?tO(eX(r.values,s.values),n):(t_(!0,`Complex values '${e}' and '${i}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?i:e}`)},eQ=(e,i,n)=>{let r=i-e;return 0===r?1:(n-e)/r},e0=(e,i)=>n=>eW(e,i,n);function e1(e,i,{clamp:n=!0,ease:r,mixer:s}={}){let o=e.length;t_(o===i.length,"Both input and output ranges must be the same length"),t_(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),i=[...i].reverse());let a=function(e,i,n){let r=[],s=n||function(e){if("number"==typeof e);else if("string"==typeof e)return ed.test(e)?e_:eJ;else if(Array.isArray(e))return eX;else if("object"==typeof e)return eK;return e0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=s(e[n],e[n+1]);i&&(o=tO(Array.isArray(i)?i[n]:i,o)),r.push(o)}return r}(i,r,s),l=a.length,u=i=>{let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=eQ(e[n],e[n+1],i);return a[n](r)};return n?i=>u($(e[0],e[o-1],i)):u}let e5=(e,i,n)=>(((1-3*n+3*i)*e+(3*n-6*i))*e+3*i)*e;function e2(e,i,n,r){if(e===i&&n===r)return t_;let s=i=>(function(e,i,n,r,s){let o,a;let l=0;do(o=e5(a=i+(n-i)/2,r,s)-e)>0?n=a:i=a;while(Math.abs(o)>1e-7&&++l<12);return a})(i,0,1,e,n);return e=>0===e||1===e?e:e5(s(e),i,r)}let e3=e=>1-Math.sin(Math.acos(e)),e4=eI(e3),e9=eO(e4),e6=e2(.33,1.53,.69,.99),e8=eI(e6),e7=eO(e8),it={linear:t_,easeIn:eU,easeInOut:e$,easeOut:eN,circIn:e3,circInOut:e9,circOut:e4,backIn:e8,backInOut:e7,backOut:e6,anticipate:e=>(e*=2)<1?.5*e8(e):.5*(2-Math.pow(2,-10*(e-1)))},ie=e=>{if(Array.isArray(e)){t_(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[i,n,r,s]=e;return e2(i,n,r,s)}return"string"==typeof e?(t_(void 0!==it[e],`Invalid easing type '${e}'`),it[e]):e},ii=e=>Array.isArray(e)&&"number"!=typeof e[0];function ir({keyframes:e,ease:i=e$,times:n,duration:r=300}){e=[...e];let s=ii(i)?i.map(ie):ie(i),o={done:!1,value:e[0]},a=(n&&n.length===e.length?n:function(e){let i=[0];return function(e,i){let n=e[e.length-1];for(let r=1;r<=i;r++){let s=eQ(0,i,r);e.push(eW(n,1,s))}}(i,e.length-1),i}(e)).map(e=>e*r);function l(){var i;return e1(a,e,{ease:Array.isArray(s)?s:(i=e).map(()=>s||e$).splice(0,i.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=r,o),flipTarget:()=>{e.reverse(),u=l()}}}function is(e,i){return e*Math.sqrt(1-i*i)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function il(e,i){return i.some(i=>void 0!==e[i])}function iu({keyframes:e,restDelta:i,restSpeed:n,...r}){let s=e[0],o=e[e.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,velocity:c,duration:d,isResolvedFromDuration:p}=function(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!il(e,ia)&&il(e,io)){let n=function({duration:e=800,bounce:i=.25,velocity:n=0,mass:r=1}){let s,o;t_(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-i;a=$(.05,1,a),e=$(.01,10,e/1e3),a<1?(s=i=>{let r=i*a,s=r*e;return .001-(r-n)/is(i,a)*Math.exp(-s)},o=i=>{let r=i*a*e,o=Math.pow(a,2)*Math.pow(i,2)*e,l=is(Math.pow(i,2),a);return(r*n+n-o)*Math.exp(-r)*(-s(i)+.001>0?-1:1)/l}):(s=i=>-.001+Math.exp(-i*e)*((i-n)*e+1),o=i=>e*e*(n-i)*Math.exp(-i*e));let l=function(e,i,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/i(r);return r}(s,o,5/e);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let i=Math.pow(l,2)*r;
9return{stiffness:i,damping:2*a*Math.sqrt(r*i),duration:e}}}(e);(i={...i,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return i}(r),m=ih,f=c?-(c/1e3):0,g=u/(2*Math.sqrt(l*h));function v(){let e=o-s,r=Math.sqrt(l/h)/1e3,a=5>Math.abs(e);if(n||(n=a?.01:2),i||(i=a?.005:.5),g<1){let i=is(r,g);m=n=>o-Math.exp(-g*r*n)*((f+g*r*e)/i*Math.sin(i*n)+e*Math.cos(i*n))}else if(1===g)m=i=>o-Math.exp(-r*i)*(e+(f+r*e)*i);else{let i=r*Math.sqrt(g*g-1);m=n=>{let s=Math.exp(-g*r*n),a=Math.min(i*n,300);return o-s*((f+g*r*e)*Math.sinh(a)+i*e*Math.cosh(a))/i}}}return v(),{next:e=>{let r=m(e);if(p)a.done=e>=d;else{let s=f;if(0!==e){if(g<1){let i=Math.max(0,e-5);s=ee(r-m(i),e-i)}else s=0}let l=Math.abs(s)<=n,u=Math.abs(o-r)<=i;a.done=l&&u}return a.value=a.done?o:r,a},flipTarget:()=>{f=-f,[s,o]=[o,s],v()}}}iu.needsInterpolation=(e,i)=>"string"==typeof e||"string"==typeof i;let ih=e=>0,ic={decay:function({keyframes:e=[0],velocity:i=0,power:n=.8,timeConstant:r=350,restDelta:s=.5,modifyTarget:o}){let a=e[0],l={done:!1,value:a},u=n*i,h=a+u,c=void 0===o?h:o(h);return c!==h&&(u=c-a),{next:e=>{let i=-u*Math.exp(-e/r);return l.done=!(i>s||i<-s),l.value=l.done?c:c+i,l},flipTarget:()=>{}}},keyframes:ir,tween:ir,spring:iu};function id(e,i,n=0){return e-i-n}let ip=e=>{let i=({delta:i})=>e(i);return{start:()=>t6.Z_.update(i,!0),stop:()=>t6.qY.update(i)}};function im({duration:e,driver:i=ip,elapsed:n=0,repeat:r=0,repeatType:s="loop",repeatDelay:o=0,keyframes:a,autoplay:l=!0,onPlay:u,onStop:h,onComplete:c,onRepeat:d,onUpdate:p,type:m="keyframes",...f}){let g,v;let y=n,x=0,P=e,b=!1,w=!0,A=ic[a.length>2?"keyframes":m]||ir,T=a[0],E=a[a.length-1],V={done:!1,value:T},{needsInterpolation:S}=A;S&&S(T,E)&&(v=e1([0,100],[T,E],{clamp:!1}),a=[0,100]);let C=A({...f,duration:e,keyframes:a});function M(e){if(w||(e=-e),n+=e,b||(V=C.next(Math.max(0,n)),v&&(V.value=v(V.value)),b=w?V.done:n<=0),p&&p(V.value),b){if(0===x&&(P=void 0!==P?P:n),x<r){var i,a;i=n,a=P,(w?i>=a+o:i<=-o)&&(x++,"reverse"===s?n=function(e,i=0,n=0,r=!0){return r?id(i+-e,i,n):i-(e-i)+n}(n,P,o,w=x%2==0):(n=id(n,P,o),"mirror"===s&&C.flipTarget()),b=!1,d&&d())}else g&&g.stop(),c&&c()}}return l&&(u&&u(),(g=i(M)).start()),{stop:()=>{h&&h(),g&&g.stop()},set currentTime(t){n=y,M(t)},sample:i=>{n=y;let r=e&&"number"==typeof e?Math.max(.5*e,50):50,s=0;for(M(0);s<=i;)M(Math.min(i-s,r)),s+=r;return V}}}let ig=([e,i,n,r])=>`cubic-bezier(${e}, ${i}, ${n}, ${r})`,iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ig([0,.65,.55,1]),circOut:ig([.55,0,1,.45]),backIn:ig([.31,.01,.66,-.59]),backOut:ig([.33,1.53,.69,.99])},iy={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ix={},iP={};for(let e in iy)iP[e]=()=>(void 0===ix[e]&&(ix[e]=iy[e]()),ix[e]);let ib=new Set(["opacity","clipPath","filter","transform"]);function iw(e,i){let n=performance.now(),r=({timestamp:s})=>{let o=s-n;o>=i&&(t6.qY.read(r),e(o-i))};return t6.Z_.read(r,!0),()=>t6.qY.read(r)}let iA={type:"spring",stiffness:500,damping:25,restSpeed:10},iT=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),iE={type:"keyframes",duration:.8},iV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iS=(e,{keyframes:i})=>i.length>2?iE:L.has(e)?e.startsWith("scale")?iT(i[1]):iA:iV,iC=(e,i)=>"zIndex"!==e&&!!("number"==typeof i||Array.isArray(i)||"string"==typeof i&&ex.test(i)&&!i.startsWith("url("));function iM(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function iD(e){return"number"==typeof e?0:eV("",e)}function ik(e,i){return e[i]||e.default||e}let iL=(e,i,n,r={})=>s=>{let o=ik(r,e)||{},a=o.delay||r.delay||0,{elapsed:l=0}=r;l-=eF(a);let u=function(e,i,n,r){let s=iC(i,n),o=void 0!==r.from?r.from:e.get();return("none"===o&&s&&"string"==typeof n?o=eV(i,n):iM(o)&&"string"==typeof n?o=iD(n):!Array.isArray(n)&&iM(n)&&"string"==typeof o&&(n=iD(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(i,e,n,o),h=u[0],c=u[u.length-1],d=iC(e,h),p=iC(e,c);t_(d===p,`You are trying to animate ${e} from "${h}" to "${c}". ${h} is not an animatable value - to enable this animation set ${h} to a value animatable to ${c} via the \`style\` property.`);let m={keyframes:u,velocity:i.getVelocity(),...o,elapsed:l,onUpdate:e=>{i.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(!d||!p||eB.current||!1===o.type)return function({keyframes:e,elapsed:i,onUpdate:n,onComplete:r}){let s=()=>{n&&n(e[e.length-1]),r&&r()};return i?{stop:iw(s,-i)}:s()}(m);if("inertia"===o.type)return function({keyframes:e,velocity:i=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:a=
9500,bounceDamping:l=10,restDelta:u=1,modifyTarget:h,driver:c,onUpdate:d,onComplete:p,onStop:m}){let f;let g=e[0];function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function y(e){return void 0===n?r:void 0===r?n:Math.abs(n-e)<Math.abs(r-e)?n:r}function x(e){f&&f.stop(),f=im({keyframes:[0,1],velocity:0,...e,driver:c,onUpdate:i=>{d&&d(i),e.onUpdate&&e.onUpdate(i)},onComplete:p,onStop:m})}function P(e){x({type:"spring",stiffness:a,damping:l,restDelta:u,...e})}if(v(g))P({velocity:i,keyframes:[g,y(g)]});else{let e,r,a=s*i+g;void 0!==h&&(a=h(a));let l=y(a),c=l===n?-1:1;x({type:"decay",keyframes:[g,0],velocity:i,timeConstant:o,power:s,restDelta:u,modifyTarget:h,onUpdate:v(a)?n=>{e=r,r=n,i=ee(n-e,t9.frameData.delta),(1===c&&n>l||-1===c&&n<l)&&P({keyframes:[n,l],velocity:i})}:void 0})}return{stop:()=>f&&f.stop()}}(m);if(!function({when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}){return!!Object.keys(c).length}(o)&&(m={...m,...iS(e,m)}),m.duration&&(m.duration=eF(m.duration)),m.repeatDelay&&(m.repeatDelay=eF(m.repeatDelay)),i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate){let n=function(e,i,{onUpdate:n,onComplete:r,...s}){var o;if(!(iP.waapi()&&ib.has(i)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:a,duration:l=300,elapsed:u=0,ease:h}=s;if("spring"===s.type||!(!(o=s.ease)||Array.isArray(o)||"string"==typeof o&&iv[o])){if(s.repeat===1/0)return;let e=im({...s,elapsed:0}),i={done:!1,value:a[0]},n=[],r=0;for(;!i.done&&r<2e4;)i=e.sample(r),n.push(i.value),r+=10;a=n,l=r-10,h="linear"}let c=function(e,i,n,{delay:r=0,duration:s,repeat:o=0,repeatType:a="loop",ease:l,times:u}={}){return e.animate({[i]:n,offset:u},{delay:r,duration:s,easing:function(e){if(e)return Array.isArray(e)?ig(e):iv[e]}(l),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,i,a,{...s,delay:-u,duration:l,ease:h});return c.onfinish=()=>{e.set(function(e,{repeat:i,repeatType:n="loop"}){let r=i&&"loop"!==n&&i%2==1?0:e.length-1;return e[r]}(a,s)),t6.Z_.update(()=>c.cancel()),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(t){c.currentTime=t},stop:()=>{let{currentTime:i}=c;if(i){let n=im({...s,autoplay:!1});e.setWithVelocity(n.sample(i-10).value,n.sample(i).value,10)}t6.Z_.update(()=>c.cancel())}}}(i,e,m);if(n)return n}return im(m)};function iR(e,i,n={}){let r=eL(e,i,n.custom),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>ij(e,r,n):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;return function(e,i,n=0,r=0,s=1,o){let a=[],l=(e.variantChildren.size-1)*r,u=1===s?(e=0)=>e*r:(e=0)=>l-e*r;return Array.from(e.variantChildren).sort(iF).forEach((e,r)=>{e.notify("AnimationStart",i),a.push(iR(e,i,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",i)))}),Promise.all(a)}(e,i,o+r,a,l,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[e,i]="beforeChildren"===l?[o,a]:[a,o];return e().then(i)}}function ij(e,i,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=e.makeTargetAnimatable(i),u=e.getValue("willChange");r&&(o=r);let h=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let i in l){let r=e.getValue(i),s=l[i];if(!r||void 0===s||c&&function({protectedKeys:e,needsAnimating:i},n){let r=e.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,r}(c,i))continue;let a={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=e.getProps()[ej];n&&(a.elapsed=window.HandoffAppearAnimations(n,i,r,t6.Z_))}let d=r.start(iL(i,r,s,e.shouldReduceMotion&&L.has(i)?{type:!1}:a));eR(u)&&(u.add(i),d=d.then(()=>u.remove(i))),h.push(d)}return Promise.all(h).then(()=>{a&&function(e,i){let n=eL(e,i),{transitionEnd:r={},transition:s={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let i in o={...o,...r}){let n=tV(o[i]);e.hasValue(i)?e.getValue(i).set(n):e.addValue(i,er(n))}}(e,a)})}function iF(e,i){return e.sortNodePosition(i)}let iB=[...m].reverse(),iO=m.length;function iI(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iU extends tz{constructor(e){super(e),e.animationState||(e.animationState=function(e){let i=i=>Promise.all(i.map(({animation:i,options:n})=>(function(e,i,n={}){let r;if(e.notify("AnimationStart",i),Array.isArray(i))r=Promise.all(i.map(i=>iR(e,i,n)));else if("string"==typeof i)r=iR(e,i,n);else{let s="function"==typeof i?eL(e,i,n.custom):i;r=ij(e,s,n)}return r.then(()=>e.notify("AnimationComplete",i))})(e,i,n))),n={animate:iI(!0),whileInView:iI(),whileHover:iI(),whileTap:iI(),whileDrag:iI(),whileFocus:iI(),exit:iI()},r=!0,s=(i,n)=>{let r=eL(e,n);if(r){let{transition:e,transitionEnd:n,...s}=r;i={...i,...s,...n}}return i};function o(o,a){let l=e.getProps(),u=e.getVariantContext(!0)||{},h=[],c=new Set,m={},f=1/0;for(let i=0;i<iO;i++){var g;let v=iB[i],y=n[v],x=void 0!==l[v]?l[v]:u[v],P=d(x),b=v===a?y.isActive:null;!1===b&&(f=i);let w=x===u[v]&&x!==l[v]&&P;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...m},!y.isActive&&null===b||!x&&!y.prevProp||p(x)||"boolean"==typeof x)continue;let A=(g=y.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!t2(x,g)),T=A||v===a&&y.isActive&&!w&&P||i>f&&P,E=Array.isArray(x)?x:[x],V=E.reduce(s,{});!1===b&&(V={});let{prevResolvedValues:S={}}=y,C={...S,...V},M=e=>{T=!0,c.delete(e),y.needsAnimating[e]=!0};for(let e in C){let i=V[e],n=S[e];m.hasOwnProperty(e)||(i!==n?tT(i)&&tT(n)?!t2(i,n)||A?M(e):y.protectedKeys[e]=!0:void 0!==i?M(e):c.add(e):void 0!==i&&c.has(e)?M(e):y.protectedKeys[e]=!0)}y.prevProp=x,y.prevResolvedValues=V,y.isActive&&(m={...m,...V}),r&&e.blockInitialAnimation&&(T=!1),T&&!w&&h.push(...E.map(e=>({animation:e,options:{type:v,...o}})))}if(c.size){let i={};
9c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(i[n]=r)}),h.push({animation:i})}let v=!!h.length;return r&&!1===l.initial&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?i(h):Promise.resolve()}return{animateChanges:o,setActive:function(i,r,s){var a;if(n[i].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(i,r)}),n[i].isActive=r;let l=o(s,i);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){i=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),p(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){}}let iN=0;class i$ extends tz{constructor(){super(...arguments),this.id=iN++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:i,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});i&&!e&&s.then(()=>i(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let iW=(e,i)=>Math.abs(e-i);class iz{constructor(e,i,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var e,i;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iZ(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(e=n.offset,i={x:0,y:0},Math.sqrt(iW(e.x,i.x)**2+iW(e.y,i.y)**2)>=3);if(!r&&!s)return;let{point:o}=n,{timestamp:a}=t9.frameData;this.history.push({...o,timestamp:a});let{onStart:l,onMove:u}=this.handlers;r||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,i)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iH(i,this.transformPagePoint),t6.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(e,i)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,s=iZ("pointercancel"===e.type?this.lastMoveEventInfo:iH(i,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!tL(e))return;this.handlers=i,this.transformPagePoint=n;let r=iH(tR(e),this.transformPagePoint),{point:s}=r,{timestamp:o}=t9.frameData;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=i;a&&a(e,iZ(r,this.history)),this.removeListeners=tO(tF(window,"pointermove",this.handlePointerMove),tF(window,"pointerup",this.handlePointerUp),tF(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t6.qY.update(this.updatePoint)}}function iH(e,i){return i?{point:i(e.point)}:e}function iY(e,i){return{x:e.x-i.x,y:e.y-i.y}}function iZ({point:e},i){return{point:e,delta:iY(e,iq(i)),offset:iY(e,i[0]),velocity:function(e,i){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,s=iq(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>eF(.1)));)n--;if(!r)return{x:0,y:0};let o=(s.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(i,0)}}function iq(e){return e[e.length-1]}function i_(e){return e.max-e.min}function iG(e,i=0,n=.01){return Math.abs(e-i)<=n}function iX(e,i,n,r=.5){e.origin=r,e.originPoint=eW(i.min,i.max,e.origin),e.scale=i_(n)/i_(i),(iG(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=eW(n.min,n.max,e.origin)-e.originPoint,(iG(e.translate)||isNaN(e.translate))&&(e.translate=0)}function iK(e,i,n,r){iX(e.x,i.x,n.x,r?r.originX:void 0),iX(e.y,i.y,n.y,r?r.originY:void 0)}function iJ(e,i,n){e.min=n.min+i.min,e.max=e.min+i_(i)}function iQ(e,i,n){e.min=i.min-n.min,e.max=e.min+i_(i)}function i0(e,i,n){iQ(e.x,i.x,n.x),iQ(e.y,i.y,n.y)}function i1(e,i,n){return{min:void 0!==i?e.min+i:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function i5(e,i){let n=i.min-e.min,r=i.max-e.max;return i.max-i.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function i2(e,i,n){return{min:i3(e,i),max:i3(e,n)}}function i3(e,i){return"number"==typeof e?e:e[i]||0}let i4=()=>({translate:0,scale:1,origin:0,originPoint:0}),i9=()=>({x:i4(),y:i4()}),i6=()=>({min:0,max:0}),i8=()=>({x:i6(),y:i6()});function i7(e){return[e("x"),e("y")]}function nt({top:e,left:i,right:n,bottom:r}){return{x:{min:i,max:n},y:{min:e,max:r}}}function ne(e){return void 0===e||1===e}function ni({scale:e,scaleX:i,scaleY:n}){return!ne(e)||!ne(i)||!ne(n)}function nn(e){return ni(e)||nr(e)||e.z||e.rotate||e.rotateX||e.rotateY}function nr(e){var i,n;return(i=e.x)&&"0%"!==i||(n=e.y)&&"0%"!==n}function ns(e,i,n,r,s){return void 0!==s&&(e=r+s*(e-r)),r+n*(e-r)+i}function no(e,i=0,n=1,r,s){e.min=ns(e.min,i,n,r,s),e.max=ns(e.max,i,n,r,s)}function na(e,{x:i,y:n}){no(e.x,i.translate,i.scale,i.originPoint),no(e.y,n.translate,n.scale,n.originPoint)}function nl(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function nu(e,i){e.min=e.min+i,e.max=e.max+i}function nh(e,i,[n,r,s]){let o=void 0!==i[s]?i[s]:.5,a=eW(e.min,e.max,o);no(e,i[n],i[r],a,i.scale)}
9let nc=["x","scaleX","originX"],nd=["y","scaleY","originY"];function np(e,i){nh(e.x,i,nc),nh(e.y,i,nd)}function nm(e,i){return nt(function(e,i){if(!i)return e;let n=i({x:e.left,y:e.top}),r=i({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),i))}let nf=new WeakMap;class ng{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=i8(),this.visualElement=e}start(e,{snapToCursor:i=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new iz(e,{onSessionStart:e=>{this.stopAnimation(),i&&this.snapToCursor(tR(e,"page").point)},onStart:(e,i)=>{let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t$(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i7(e=>{let i=this.getAxisMotionValue(e).get()||0;if(J.test(i)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=i_(r);i=parseFloat(i)/100*e}}}this.originPoint[e]=i}),s&&s(e,i);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,i)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=i;if(r&&null===this.currentDirection){this.currentDirection=function(e,i=10){let n=null;return Math.abs(e.y)>i?n="y":Math.abs(e.x)>i&&(n="x"),n}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",i.point,a),this.updateAxis("y",i.point,a),this.visualElement.render(),o&&o(e,i)},onSessionEnd:(e,i)=>this.stop(e,i)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,i){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&s(e,i)}cancel(){this.isDragging=!1;let{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){let{drag:r}=this.getProps();if(!n||!nv(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:i,max:n},r){return void 0!==i&&e<i?e=r?eW(i,e,r.min):Math.max(e,i):void 0!==n&&e>n&&(e=r?eW(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:i}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&c(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:i,left:n,bottom:r,right:s}){return{x:i1(e.x,n,s),y:i1(e.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i2(e,"left","right"),y:i2(e,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&i7(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,i){let n={};return void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!i||!c(i))return!1;let r=i.current;t_(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,i,n){let r=nm(e,n),{scroll:s}=i;return s&&(nu(r.x,s.offset.x),nu(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),a={x:i5((e=s.layout.layoutBox).x,o.x),y:i5(e.y,o.y)};if(n){let e=n(function({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nt(e))}return a}startAnimation(e){let{drag:i,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(i7(a=>{if(!nv(a,i,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,i){let n=this.getAxisMotionValue(e);
9return n.start(iL(e,n,0,i))}stopAnimation(){i7(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let i="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[i]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){i7(i=>{let{drag:n}=this.getProps();if(!nv(i,n,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(i);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[i];s.set(e[i]-eW(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!c(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};i7(e=>{let i=this.getAxisMotionValue(e);if(i){let n=i.get();r[e]=function(e,i){let n=.5,r=i_(e),s=i_(i);return s>r?n=eQ(i.min,i.max-r,e.min):r>s&&(n=eQ(e.min,e.max-s,i.min)),$(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),i7(i=>{if(!nv(i,e,null))return;let n=this.getAxisMotionValue(i),{min:s,max:o}=this.constraints[i];n.set(eW(s,o,r[i]))})}addListeners(){if(!this.visualElement.current)return;nf.set(this.visualElement,this);let e=tF(this.visualElement.current,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps();i&&n&&this.start(e)}),i=()=>{let{dragConstraints:e}=this.getProps();c(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),i();let s=tk(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i})=>{this.isDragging&&i&&(i7(i=>{let n=this.getAxisMotionValue(i);n&&(this.originPoint[i]+=e[i].translate,n.set(n.get()+e[i].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function nv(e,i,n){return(!0===i||i===e)&&(null===n||n===e)}class ny extends tz{constructor(e){super(e),this.removeGroupControls=t_,this.removeListeners=t_,this.controls=new ng(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t_}unmount(){this.removeGroupControls(),this.removeListeners()}}class nx extends tz{constructor(){super(...arguments),this.removePointerDownListener=t_}onPointerDown(e){this.session=new iz(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:e,onStart:i,onMove:n,onEnd:(e,i)=>{delete this.session,r&&r(e,i)}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nP=n(93629);function nb(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}let nw={correct:(e,i)=>{if(!i.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let n=nb(e,i.target.x),r=nb(e,i.target.y);return`${n}% ${r}%`}},nA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nT(e,i,n=1){t_(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(e){let i=nA.exec(e);if(!i)return[,];let[,n,r]=i;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);return o?o.trim():U(s)?nT(s,i,n+1):s}let nE="_$css",nV={correct:(e,{treeScale:i,projectionDelta:n})=>{let r=e,s=e.includes("var("),o=[];s&&(e=e.replace(nA,e=>(o.push(e),nE)));let a=ex.parse(e);if(a.length>5)return r;let l=ex.createTransformer(e),u="number"!=typeof a[0]?1:0,h=n.x.scale*i.x,c=n.y.scale*i.y;a[0+u]/=h,a[1+u]/=c;let d=eW(h,c,.5);"number"==typeof a[2+u]&&(a[2+u]/=d),"number"==typeof a[3+u]&&(a[3+u]/=d);let p=l(a);if(s){let e=0;p=p.replace(nE,()=>{let i=o[e];return e++,i})}return p}};
9class nS extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:r}=this.props,{projection:s}=e;Object.assign(D,nM),s&&(i.group&&i.group.add(s),n&&n.register&&r&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),A.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:i,visualElement:n,drag:r,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==i||void 0===i?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||t6.Z_.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nC(e){let[i,n]=(0,nP.oO)(),r=(0,s.useContext)(E.p);return s.createElement(nS,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(V),isPresent:i,safeToRemove:n})}let nM={borderRadius:{...nw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nw,borderTopRightRadius:nw,borderBottomLeftRadius:nw,borderBottomRightRadius:nw,boxShadow:nV},nD=["TopLeft","TopRight","BottomLeft","BottomRight"],nk=nD.length,nL=e=>"string"==typeof e?parseFloat(e):e,nR=e=>"number"==typeof e||Q.test(e);function nj(e,i){return void 0!==e[i]?e[i]:e.borderRadius}let nF=nO(0,.5,e4),nB=nO(.5,.95,t_);function nO(e,i,n){return r=>r<e?0:r>i?1:n(eQ(e,i,r))}function nI(e,i){e.min=i.min,e.max=i.max}function nU(e,i){nI(e.x,i.x),nI(e.y,i.y)}function nN(e,i,n,r,s){return e-=i,e=r+1/n*(e-r),void 0!==s&&(e=r+1/s*(e-r)),e}function n$(e,i,[n,r,s],o,a){!function(e,i=0,n=1,r=.5,s,o=e,a=e){if(J.test(i)&&(i=parseFloat(i),i=eW(a.min,a.max,i/100)-a.min),"number"!=typeof i)return;let l=eW(o.min,o.max,r);e===o&&(l-=i),e.min=nN(e.min,i,n,l,s),e.max=nN(e.max,i,n,l,s)}(e,i[n],i[r],i[s],i.scale,o,a)}let nW=["x","scaleX","originX"],nz=["y","scaleY","originY"];function nH(e,i,n,r){n$(e.x,i,nW,n?n.x:void 0,r?r.x:void 0),n$(e.y,i,nz,n?n.y:void 0,r?r.y:void 0)}function nY(e){return 0===e.translate&&1===e.scale}function nZ(e){return nY(e.x)&&nY(e.y)}function nq(e,i){return e.x.min===i.x.min&&e.x.max===i.x.max&&e.y.min===i.y.min&&e.y.max===i.y.max}function n_(e){return i_(e.x)/i_(e.y)}class nG{constructor(){this.members=[]}add(e){t8(this.members,e),e.scheduleRender()}remove(e){if(t7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let i;let n=this.members.findIndex(i=>e===i);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(e,i){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nX(e,i,n){let r="",s=e.x.translate/i.x,o=e.y.translate/i.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(1!==i.x||1!==i.y)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),n){let{rotate:e,rotateX:i,rotateY:s}=n;e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `)}let a=e.x.scale*i.x,l=e.y.scale*i.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l}
9)`),r||"none"}let nK=(e,i)=>e.depth-i.depth;class nJ{constructor(){this.children=[],this.isDirty=!1}add(e){t8(this.children,e),this.isDirty=!0}remove(e){t7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nK),this.isDirty=!1,this.children.forEach(e)}}let nQ=["","X","Y","Z"],n0=0,n1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function n5({attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e,n={},r=null==i?void 0:i()){this.id=n0++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{n1.totalNodes=n1.resolvedTargetDeltas=n1.recalculatedProjection=0,this.nodes.forEach(n4),this.nodes.forEach(re),this.nodes.forEach(ri),this.nodes.forEach(n9),window.MotionDebug&&window.MotionDebug.record(n1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nJ)}addEventListener(e,i){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new et),this.eventHandlers.get(e).add(i)}notifyListeners(e,...i){let n=this.eventHandlers.get(e);n&&n.notify(...i)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,i){this.potentialNodes.set(e,i)}mount(i,n=!1){if(this.instance)return;this.isSVG=i instanceof SVGElement&&"svg"!==i.tagName,this.instance=i;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=iw(r,250),A.hasAnimatedSinceResize&&(A.hasAnimatedSinceResize=!1,this.nodes.forEach(rt))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||rl,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!nq(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let i={...ik(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(i.delay=0,i.type=!1),this.startAnimation(i)}else i||0!==this.animationProgress||rt(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,t6.qY.preRender(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.forEac
9h(rn),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:i,layout:n}=this.options;if(void 0===i&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n8);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ru),this.potentialNodes.clear()),this.nodes.forEach(n7),this.nodes.forEach(n2),this.nodes.forEach(n3),this.clearAllSnapshots(),t6.iW.update(),t6.iW.preRender(),t6.iW.render())}clearAllSnapshots(){this.nodes.forEach(n6),this.sharedNodes.forEach(rr)}scheduleUpdateProjection(){t6.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){t6.Z_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!nZ(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(i||nn(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var i;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),rh((i=r).x),rh(i.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i8();let i=e.measureViewportBox(),{scroll:n}=this.root;return n&&(nu(i.x,n.offset.x),nu(i.y,n.offset.y)),i}removeElementScroll(e){let i=i8();nU(i,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:s,options:o}=r;if(r!==this.root&&s&&o.layoutScroll){if(s.isRoot){nU(i,e);let{scroll:n}=this.root;n&&(nu(i.x,-n.offset.x),nu(i.y,-n.offset.y))}nu(i.x,s.offset.x),nu(i.y,s.offset.y)}}return i}applyTransform(e,i=!1){let n=i8();nU(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&np(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nn(r.latestValues)&&np(n,r.latestValues)}return nn(this.latestValues)&&np(n,this.latestValues),n}removeTransform(e){let i=i8();nU(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nn(n.latestValues))continue;ni(n.latestValues)&&n.updateSnapshot();let r=i8();nU(r,n.measurePageBox()),nH(i,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nn(this.latestValues)&&nH(i,this.latestValues),i}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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}resolveTargetDelta(){var e,i,n,r;let s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
9haredProjectionDirty),!((this.resumingFrom||this!==s)&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:o,layoutId:a}=this.options;if(this.layout&&(o||a)){if(!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=i8(),this.relativeTargetOrigin=i8(),i0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i8(),this.targetWithTransforms=i8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iJ(i.x,n.x,r.x),iJ(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nU(this.target,this.layout.layoutBox),na(this.target,this.targetDelta)):nU(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=i8(),this.relativeTargetOrigin=i8(),i0(this.relativeTargetOrigin,this.target,e.target),nU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n1.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ni(this.parent.latestValues)||nr(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let i=this.getLead(),n=!!this.resumingFrom||this!==i,r=!0;
9if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),r)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;nU(this.layoutCorrected,this.layout.layoutBox),function(e,i,n,r=!1){let s,o;let a=n.length;if(a){i.x=i.y=1;for(let l=0;l<a;l++){o=(s=n[l]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&np(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(i.x*=o.x.scale,i.y*=o.y.scale,na(e,o)),r&&nn(s.latestValues)&&np(e,s.latestValues))}i.x=nl(i.x),i.y=nl(i.y)}}(this.layoutCorrected,this.treeScale,this.path,n);let{target:a}=i;if(!a)return;this.projectionDelta||(this.projectionDelta=i9(),this.projectionDeltaWithTransform=i9());let l=this.treeScale.x,u=this.treeScale.y,h=this.projectionTransform;iK(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=nX(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==l||this.treeScale.y!==u)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),n1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,i=!1){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=i9();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=i8(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(ra));this.animationProgress=0,this.mixTargetDelta=i=>{var r,h;let p=i/1e3;rs(a.x,e.x,p),rs(a.y,e.y,p),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(i0(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r=this.relativeTarget,h=this.relativeTargetOrigin,ro(r.x,h.x,l.x,p),ro(r.y,h.y,l.y,p),n&&nq(this.relativeTarget,n)&&(this.isProjectionDirty=!1),n||(n=i8()),nU(n,this.relativeTarget)),u&&(this.animationValues=o,function(e,i,n,r,s,o){s?(e.opacity=eW(0,void 0!==n.opacity?n.opacity:1,nF(r)),e.opacityExit=eW(void 0!==i.opacity?i.opacity:1,0,nB(r))):o&&(e.opacity=eW(void 0!==i.opacity?i.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<nk;s++){let o=`border${nD[s]}Radius`,a=nj(i,o),l=nj(n,o);(void 0!==a||void 0!==l)&&(a||(a=0),l||(l=0),0===a||0===l||nR(a)===nR(l)?(e[o]=Math.max(eW(nL(a),nL(l),r),0),(J.test(l)||J.test(a))&&(e[o]+="%")):e[o]=l)}(i.rotate||n.rotate)&&(e.rotate=eW(i.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,p,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=p},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(t6.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t6.Z_.update(()=>{A.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,i,n={}){let r=j(0)?0:er(0);return r.start(iL("",r,1e3,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:i=>{this.mixTargetDelta(i),e.onUpdate&&e.onUpdate(i)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:i,target:n,layout:r,latestValues:s}=e;if(i&&n&&r){if(this!==e&&this.layout&&r&&rc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||i8();let i=i_(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+i;let r=i_(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nU(i,n),np(i,s),iK(this.projectionDeltaWithTransform,this.layoutCorrected,i,s)}}registerSharedNode(e,i){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nG),this.sharedNodes.get(e).add(i);let n=i.options.initialPromotionConfig;i.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(i):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:i}=this.options;return i&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:i}=this.options;return i?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:i,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let i=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(i=!0),!i)return;let r={};for(let i=0;i<nQ.length;i++){let s="rotate"+nQ[i];n[s]&&(r[s]=n[s],e.setStaticValue(s,0))}for(let i in e.render(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}getProjectionStyles(e={}){var i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tS(e.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let i={};return this.options.layoutId&&(i.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,i.pointerEvents=tS(e.pointerEvents)||""),this.hasProjected&&!nn(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1),i}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=nX(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:i,applyTo:n}=D[e],s="none"===r.transform?a[e]:i(a[e],o);if(n){let e=n.length;for(let i=0;i<e;i++)r[n[i]]=s}else r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?tS(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(e=>{var i;return null===(i=e.currentAnimation)||void 0===i?void 0:i.stop()}),this.root.nodes.forEach(n8),this.root.sharedNodes.clear()}}}function n2(e){e.updateLayout()}function n3(e){var i;let n=(null===(i=e.resumeFrom)||void 0===i?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?i7(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=i_(r);r.min=i[e].min,r.max=r.min+s}):rc(s,n.layoutBox,i)&&i7(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=i_(i[e]);r.max=r.min+s});let a=i9();iK(a,i,n.layoutBox);let l=i9();o?iK(l,e.applyTransform(r,!0),n.measuredBox):iK(l,i,n.layoutBox);let u=!nZ(a),h=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:o}=r;if(s&&o){let a=i8();i0(a,n.layoutBox,s.layoutBox);let l=i8();i0(l,i,o.layoutBox),nq(a,l)||(h=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){let{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function n4(e){n1.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n6(e){e.clearSnapshot()}function n8(e){e.clearMeasurements()}function n7(e){let{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function rt(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function re(e){e.resolveTargetDelta()}function ri(e){e.calcProjection()}function rn(e){e.resetRotation()}function rr(e){e.removeLeadSnapshot()}function rs(e,i,n){e.translate=eW(i.translate,0,n),e.scale=eW(i.scale,1,n),e.origin=i.origin,e.originPoint=i.originPoint}function ro(e,i,n,r){e.min=eW(i.min,n.min,r),e.max=eW(i.max,n.max,r)}function ra(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rl={duration:.45,ease:[.4,0,.1,1]};function ru(e,i){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(e.path[i].instance){n=e.path[i];break}
9let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${i}"]`);r&&e.mount(r,!0)}function rh(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function rc(e,i,n){return"position"===e||"preserve-aspect"===e&&!iG(n_(i),n_(n),.2)}let rd=n5({attachResizeListener:(e,i)=>tk(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rp={current:void 0},rm=n5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rp.current){let e=new rd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),rp.current=e}return rp.current},resetTransform:(e,i)=>{e.style.transform=void 0!==i?i:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rf=new Set(["width","height","top","left","right","bottom","x","y"]),rg=e=>rf.has(e),rv=e=>Object.keys(e).some(rg),ry=e=>e===W||e===Q,rx=(e,i)=>parseFloat(e.split(", ")[i]),rP=(e,i)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/);if(s)return rx(s[1],i);{let i=r.match(/^matrix\((.+)\)$/);return i?rx(i[1],e):0}},rb=new Set(["x","y","z"]),rw=k.filter(e=>!rb.has(e)),rA={width:({x:e},{paddingLeft:i="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),height:({y:e},{paddingTop:i="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:rP(4,13),y:rP(5,14)},rT=(e,i,n)=>{let r=i.measureViewportBox(),s=getComputedStyle(i.current),{display:o}=s,a={};"none"===o&&i.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=rA[e](r,s)}),i.render();let l=i.measureViewportBox();return n.forEach(n=>{let r=i.getValue(n);r&&r.jump(a[n]),e[n]=rA[n](l,s)}),e},rE=(e,i,n={},r={})=>{i={...i},r={...r};let s=Object.keys(i).filter(rg),o=[],a=!1,l=[];
9if(s.forEach(s=>{let u;let h=e.getValue(s);if(!e.hasValue(s))return;let c=n[s],d=eM(c),p=i[s];if(tT(p)){let e=p.length,i=null===p[0]?1:0;d=eM(c=p[i]);for(let n=i;n<e;n++)u?t_(eM(p[n])===u,"All keyframes must be of the same type"):t_((u=eM(p[n]))===d||ry(d)&&ry(u),"Keyframes must be of the same dimension as the current value")}else u=eM(p);if(d!==u){if(ry(d)&&ry(u)){let e=h.get();"string"==typeof e&&h.set(parseFloat(e)),"string"==typeof p?i[s]=parseFloat(p):Array.isArray(p)&&u===Q&&(i[s]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===p)?0===c?h.set(u.transform(c)):i[s]=d.transform(p):(a||(o=function(e){let i=[];return rw.forEach(n=>{let r=e.getValue(n);void 0!==r&&(i.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),i.length&&e.render(),i}(e),a=!0),l.push(s),r[s]=void 0!==r[s]?r[s]:i[s],h.jump(p))}}),!l.length)return{target:i,transitionEnd:r};{let n=l.indexOf("height")>=0?window.pageYOffset:null,s=rT(i,e,l);return o.length&&o.forEach(([i,n])=>{e.getValue(i).set(n)}),e.render(),b.j&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}},rV=(e,i,n,r)=>{var s,o;let a=function(e,{...i},n){let r=e.current;if(!(r instanceof Element))return{target:i,transitionEnd:n};for(let s in n&&(n={...n}),e.values.forEach(e=>{let i=e.get();if(!U(i))return;let n=nT(i,r);n&&e.set(n)}),i){let e=i[s];if(!U(e))continue;let o=nT(e,r);o&&(i[s]=o,n&&void 0===n[s]&&(n[s]=e))}return{target:i,transitionEnd:n}}(e,i,r);return i=a.target,r=a.transitionEnd,s=i,o=r,rv(s)?rE(e,s,n,o):{target:s,transitionEnd:o}},rS={current:null},rC={current:!1},rM=Object.keys(P),rD=rM.length,rk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rL=f.length;class rR{constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>t6.Z_.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=i.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=g(i),this.isVariantNode=v(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(i,{});for(let e in h){let i=h[e];void 0!==a[e]&&j(i)&&(i.set(a[e],!1),eR(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,i){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,i)=>this.bindToMotionValue(i,e)),rC.current||function(){if(rC.current=!0,b.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),i=()=>rS.current=e.matches;e.addListener(i),i()}else rS.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rS.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),t6.qY.update(this.notifyUpdate),t6.qY.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,i){let n=L.has(e),r=i.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&t6.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=i.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...i},n,r,s,o){let a,l;for(let e=0;e<rD;e++){let n=rM[e],{isEnabled:r,Feature:s,ProjectionNode:o,MeasureLayout:u}=P[n];o&&(a=o),r(i)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),u&&(l=u))}if(!this.projection&&a){this.projection=new a(s,this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:l,layoutScroll:u,layoutRoot:h}=i;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||l&&c(l),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:u,layoutRoot:h})}return l}updateFeatures(){for(let e in this.features){let i=this.features[e];i.isMounted?i.update(this.props,this.prevProps):(i.mount(),i.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i8()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}makeTargetAnimatable(e,i=!0){return this.makeTargetAnimatableFromInstance(e,this.props,i)}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let i=0;i<rk.length;i++){let n=rk[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,i,n){let{willChange:r}=i;for(let s in i){let o=i[s],a=n[s];if(j(o))e.addValue(s,o),eR(r)&&r.add(s);else if(j(a))e.addValue(s,er(o,{owner:e})),eR(r)&&r.remove(s);else if(a!==o){if(e.hasValue(s)){let i=e.getValue(s);i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(s);e.addValue(s,er(void 0!==i?i:o,{owner:e}))}}}for(let r in n)void 0===i[r]&&e.removeValue(r);return i}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<rL;e++){let n=f[e],r=this.props[n];(d(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(e){let i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){i!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,i)),this.values.set(e,i),this.latestValues[e]=i.get()}removeValue(e){this.values.delete(e);let i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==i&&(n=er(i,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(i=tA(this.props,n))||void 0===i?void 0:i[e]:void 0;if(n&&void 0!==r)return r;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||j(s)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:s}on(e,i){return this.events[e]||(this.events[e]=new et),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}class rj extends rR{sortInstanceNodePosition(e,i){return 2&e.compareDocumentPosition(i)?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:i,...n},{transformValues:r},s){let o=function(e,i,n){let r={};for(let s in e){let e=function(e,i){if(i)return(i[e]||i.default||i).from}(s,i);if(void 0!==e)r[s]=e;else{let e=n.getValue(s);e&&(r[s]=e.get())}}return r}(n,e||{},this);if(r&&(i&&(i=r(i)),n&&(n=r(n)),o&&(o=r(o))),s){!function(e,i,n){var r,s;let o=Object.keys(i).filter(i=>!e.hasValue(i)),a=o.length;if(a)for(let l=0;l<a;l++){let a=o[l],u=i[a],h=null;
9Array.isArray(u)&&(h=u[0]),null===h&&(h=null!==(s=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==s?s:i[a]),null!=h&&("string"==typeof h&&(t3(h)||t4(h))?h=parseFloat(h):!ek(h)&&ex.test(u)&&(h=eV(a,u)),e.addValue(a,er(h,{owner:e})),void 0===n[a]&&(n[a]=h),null!==h&&e.setBaseTarget(a,h))}}(this,n,o);let e=rV(this,n,o,i);i=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:i,...n}}}class rF extends rj{readValueFromInstance(e,i){if(L.has(i)){let e=eE(i);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(I(i)?n.getPropertyValue(i):n[i])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:i}){return nm(e,i)}build(e,i,n,r){ts(e,i,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,i){return tb(e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,i,n,r){ty(e,i,n,r)}}class rB extends rj{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(L.has(i)){let e=eE(i);return e&&e.default||0}return i=tx.has(i)?i:tv(i),e.getAttribute(i)}measureInstanceViewportBox(){return i8()}scrapeMotionValuesFromProps(e,i){return tw(e,i)}build(e,i,n,r){tm(e,i,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,i,n,r){tP(e,i,n,r)}mount(e){this.isSVGTag=tg(e.tagName),super.mount(e)}}let rO=(e,i)=>M(e)?new rB(i,{enableHardwareAcceleration:!1}):new rF(i,{enableHardwareAcceleration:!0}),rI={animation:{Feature:iU},exit:{Feature:i$},inView:{Feature:t5},tap:{Feature:tX},focus:{Feature:tZ},hover:{Feature:tY},pan:{Feature:nx},drag:{Feature:ny,ProjectionNode:rm,MeasureLayout:nC},layout:{ProjectionNode:rm,MeasureLayout:nC}},rU=function(e){function i(i,n={}){return function({preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:p}){e&&function(e){for(let i in e)P[i]={...P[i],...e[i]}}(e);let m=(0,s.forwardRef)(function(m,f){var v;let x;let P={...(0,s.useContext)(o),...m,layoutId:function({layoutId:e}){let i=(0,s.useContext)(E.p).id;return i&&void 0!==e?i+"-"+e:e}(m)},{isStatic:S}=P,C=function(e){let{initial:i,animate:n}=function(e,i){if(g(e)){let{initial:i,animate:n}=e;return{initial:!1===i||d(i)?i:void 0,animate:d(n)?n:void 0}}return!1!==e.inherit?i:{}}(e,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:i,animate:n}),[y(i),y(n)])}(m),M=S?void 0:(0,w.h)(()=>{if(A.hasEverUpdated)return T++}),D=r(m,S);if(!S&&b.j){C.visualElement=function(e,i,n,r){let c=(0,s.useContext)(a).visualElement,d=(0,s.useContext)(h),p=(0,s.useContext)(l.O),m=(0,s.useContext)(o).reducedMotion,f=(0,s.useRef)();r=r||d.renderer,!f.current&&r&&(f.current=r(e,{visualState:i,parent:c,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;return(0,s.useInsertionEffect)(()=>{g&&g.update(n,p)}),(0,u.L)(()=>{g&&g.render()}),(0,s.useEffect)(()=>{g&&g.updateFeatures()}),(window.HandoffAppearAnimations?u.L:s.useEffect)(()=>{g&&g.animationState&&g.animationState.animateChanges()}),g}(p,D,P,i);let n=(0,s.useContext)(V),r=(0,s.useContext)(h).strict;C.visualElement&&(x=C.visualElement.loadFeatures(P,r,e,M,n))}return s.createElement(a.Provider,{value:C},x&&C.visualElement?s.createElement(x,{visualElement:C.visualElement,...P}):null,n(p,m,M,(v=C.visualElement,(0,s.useCallback)(e=>{e&&D.mount&&D.mount(e),v&&(e?v.mount(e):v.unmount()),f&&("function"==typeof f?f(e):c(f)&&(f.current=e))},[v])),D,S,C.visualElement))});return m[S]=p,m}(e(i,n))}if("undefined"==typeof Proxy)return i;let n=new Map;return new Proxy(i,{get:(e,r)=>(n.has(r)||n.set(r,i(r)),n.get(r))})}((e,i)=>(function(e,{forwardMotionProps:i=!1},n,r){return{...M(e)?tM:tD,preloadedFeatures:n,useRender:function(e=!1){return(i,n,r,o,{latestValues:a},l)=>{let u=(M(i)?function(e,i,n,r){let o=(0,s.useMemo)(()=>{let n=tf();return tm(n,i,{enableHardwareAcceleration:!1},tg(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[i]);if(e.style){let i={};ta(i,e.style,e),o.style={...i,...o.style}}return o}:function(e,i,n){let r={},o=function(e,i,n){let r=e.style||{},o={};return ta(o,r,e),Object.assign(o,function({transformTemplate:e},i,n){return(0,s.useMemo)(()=>{let r=to();return ts(r,i,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}
9,[i])}(e,i,n)),e.transformValues?e.transformValues(o):o}(e,i,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r})(n,a,l,i),h={...function(e,i,n){let r={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(th(s)||!0===n&&tu(s)||!i&&!tu(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof i,e),...u,ref:o},{children:c}=n,d=(0,s.useMemo)(()=>j(c)?c.get():c,[c]);return r&&(h["data-projection-id"]=r),(0,s.createElement)(i,{...h,children:d})}}(i),createVisualElement:r,Component:e}})(e,i,rI,rO))},30451:function(e,i,n){n.d(i,{j:function(){return r}});let r="undefined"!=typeof document},44945:function(e,i,n){n.d(i,{h:function(){return s}});var r=n(86200);function s(e){let i=(0,r.useRef)(null);return null===i.current&&(i.current=e()),i.current}},70275:function(e,i,n){n.d(i,{L:function(){return s}});var r=n(86200);let s=n(30451).j?r.useLayoutEffect:r.useEffect}}]);

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.