vendor: 4,708 bytes, line 1
1function po(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function mo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ee={exports:{}},Bt={},Me={exports:{}},C={};var qn;function go(){if(qn)return C;qn=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.iterator;function h(d){return d===null||typeof d!="object"?null:(d=f&&d[f]||d["@@iterator"],typeof d=="function"?d:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function w(d,x,L){this.props=d,this.context=x,this.refs=y,this.updater=L||p}w.prototype.isReactComponent={},w.prototype.setState=function(d,x){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,x,"setState")},w.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function T(){}T.prototype=w.prototype;function P(d,x,L){this.props=d,this.context=x,this.refs=y,this.updater=L||p}var v=P.prototype=new T;v.constructor=P,m(v,w.prototype),v.isPureReactComponent=!0;var V=Array.isArray,b=Object.prototype.hasOwnProperty,E={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function A(d,x,L){var I,k={},N=null,$=null;if(x!=null)for(I in x.ref!==void 0&&($=x.ref),x.key!==void 0&&(N=""+x.key),x)b.call(x,I)&&!F.hasOwnProperty(I)&&(k[I]=x[I]);var W=arguments.length-2;if(W===1)k.children=L;else if(1<W){for(var _=Array(W),tt=0;tt<W;tt++)_[tt]=arguments[tt+2];k.children=_}if(d&&d.defaultProps)for(I in W=d.defaultProps,W)k[I]===void 0&&(k[I]=W[I]);return{$$typeof:t,type:d,key:N,ref:$,props:k,_owner:E.current}}function M(d,x){return{$$typeof:t,type:d.type,key:x,ref:d.ref,props:d.props,_owner:d._owner}}function B(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Z(d){var x={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(L){return x[L]})}var ht=/\/+/g;function vt(d,x){return typeof d=="object"&&d!==null&&d.key!=null?Z(""+d.key):x.toString(36)}function xt(d,x,L,I,k){var N=typeof d;(N==="undefined"||N==="boolean")&&(d=null);var $=!1;if(d===null)$=!0;else switch(N){case"string":case"number":$=!0;break;case"object":switch(d.$$typeof){case t:case e:$=!0}}if($)return $=d,k=k($),d=I===""?"."+vt($,0):I,V(k)?(L="",d!=null&&(L=d.replace(ht,"$&/")+"/"),xt(k,x,L,"",function(tt){return tt})):k!=null&&(B(k)&&(k=M(k,L+(!k.key||$&&$.key===k.key?"":(""+k.key).replace(ht,"$&/")+"/")+d)),x.push(k)),1;if($=0,I=I===""?".":I+":",V(d))for(var W=0;W<d.length;W++){N=d[W];var _=I+vt(N,W);$+=xt(N,x,L,_,k)}else if(_=h(d),typeof _=="function")for(d=_.call(d),W=0;!(N=d.next()).done;)N=N.value,_=I+vt(N,W++),$+=xt(N,x,L,_,k);else if(N==="object")throw x=String(d),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.");return $}function Tt(d,x,L){if(d==null)return d;var I=[],k=0;return xt(d,I,"","",function(N){return x.call(L,N,k++)}),I}function Yn(d){if(d._status===-1){var x=d._result;x=x(),x.then(function(L){(d._status===0||d._status===-1)&&(d._status=1,d._result=L)},function(L){(d._status===0||d._status===-1)&&(d._status=2,d._result=L)}),d._status===-1&&(d._status=0,d._result=x)}if(d._status===1)return d._result.default;throw d._result}var R={current:null},G={transition:null},at={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:G,ReactCurrentOwner:E};function lt(){throw Error("act(...) is not supported in production builds of React.")}return C.Children={map:Tt,forEach:function(d,x,L){Tt(d,function(){x.apply(this,arguments)},L)},count:function(d){var x=0;return Tt(d,function(){x++}),x},toArray:function(d){return Tt(d,function(x){return x})||[]},only:function(d){if(!B(d))throw Error("React.Children.only expected to receive a single React element child.");return d}},C.Component=w,C.Fragment=n,C.Profiler=i,C.PureComponent=P,C.StrictMode=s,C.Suspense=l,C.__SECRET_INT
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=at,C.act=lt,C.cloneElement=function(d,x,L){if(d==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+d+".");var I=m({},d.props),k=d.key,N=d.ref,$=d._owner;if(x!=null){if(x.ref!==void 0&&(N=x.ref,$=E.current),x.key!==void 0&&(k=""+x.key),d.type&&d.type.defaultProps)var W=d.type.defaultProps;for(_ in x)b.call(x,_)&&!F.hasOwnProperty(_)&&(I[_]=x[_]===void 0&&W!==void 0?W[_]:x[_])}var _=arguments.length-2;if(_===1)I.children=L;else if(1<_){W=Array(_);for(var tt=0;tt<_;tt++)W[tt]=arguments[tt+2];I.children=W}return{$$typeof:t,type:d.type,key:k,ref:N,props:I,_owner:$}},C.createContext=function(d){return d={$$typeof:r,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},d.Provider={$$typeof:o,_context:d},d.Consumer=d},C.createElement=A,C.createFactory=function(d){var x=A.bind(null,d);return x.type=d,x},C.createRef=function(){return{current:null}},C.forwardRef=function(d){return{$$typeof:a,render:d}},C.isValidElement=B,C.lazy=function(d){return{$$typeof:u,_payload:{_status:-1,_result:d},_init:Yn}},C.memo=function(d,x){return{$$typeof:c,type:d,compare:x===void 0?null:x}},C.startTransition=function(d){var x=G.transition;G.transition={};try{d()}finally{G.transition=x}},C.unstable_act=lt,C.useCallback=function(d,x){return R.current.useCallback(d,x)},C.useContext=function(d){return R.current.useContext(d)},C.useDebugValue=function(){},C.useDeferredValue=function(d){return R.current.useDeferredValue(d)},C.useEffect=function(d,x){return R.current.useEffect(d,x)},C.useId=function(){return R.current.useId()},C.useImperativeHandle=function(d,x,L){return R.current.useImperativeHandle(d,x,L)},C.useInsertionEffect=function(d,x){return R.current.useInsertionEffect(d,x)},C.useLayoutEffect=function(d,x){return R.current.useLayoutEffect(d,x)},C.useMemo=function(d,x){return R.current.useMemo(d,x)},C.useReducer=function(d,x,L){return R.current.useReducer(d,x,L)},C.useRef=function(d){return R.current.useRef(d)},C.useState=function(d){return R.current.useState(d)},C.useSyncExternalStore=function(d,x,L){return R.current.useSyncExternalStore(d,x,L)},C.useTransition=function(){return R.current.useTransition()},C.version="18.3.1",C}var Zn;function bi(){return Zn||(Zn=1,Me.exports=go()),Me.exports}var Jn;function yo(){if(Jn)return Bt;Jn=1;var t=bi(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function r(a,l,c){var u,f={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)s.call(l,u)&&!o.hasOwnProperty(u)&&(f[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:e,type:a,key:h,ref:p,props:f,_owner:i.current}}return Bt.Fragment=n,Bt.jsx=r,Bt.jsxs=r,Bt}var Qn;function vo(){return Qn||(Qn=1,Ee.exports=yo()),Ee.exports}var ut=vo(),g=bi();const xo=mo(g),Lf=po({__proto__:null,default:xo},[g]),yn=g.createContext({});function mt(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ai=typeof window<"u",Se=Ai?g.useLayoutEffect:g.useEffect,Pe=g.createContext(null);function vn(t,e){t.indexOf(e)===-1&&t.push(e)}function xn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const it=(t,e,n)=>n>e?e:n<t?t:n;let zt=()=>{};const ft={},Vi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ci(t){return typeof t=="object"&&t!==null}const Ei=t=>/^0[^.\s]+$/u.test(t);function Tn(t){let e;return()=>(e===void 0&&(e=t()),e)}const q=t=>t,To=(t,e)=>n=>e(t(n)),Zt=(...t)=>t.reduce(To),Lt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class wn{constructor(){this.subscriptions=[]}add(e){return vn(this.subscriptions,e),()=>xn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ct=t=>t*1e3,Q=t=>t/1e3;function Sn(t,e){return e?t*(1e3/e):0}const Mi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,wo=1e-7,So=12;function Po(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Mi(r,s,i)-t,o>0?n=r:e=r;
vendor: 26,382 bytes, line 1
1while(Math.abs(o)>wo&&++a<So);return r}function Jt(t,e,n,s){if(t===e&&n===s)return q;const i=o=>Po(o,0,1,t,n);return o=>o===0||o===1?o:Mi(i(o),e,s)}const Ri=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Di=t=>e=>1-t(1-e),Li=Jt(.33,1.53,.69,.99),Pn=Di(Li),ki=Ri(Pn),Ii=t=>(t*=2)<1?.5*Pn(t):.5*(2-Math.pow(2,-10*(t-1))),bn=t=>1-Math.sin(Math.acos(t)),Fi=Di(bn),Bi=Ri(bn),bo=Jt(.42,0,1,1),Ao=Jt(0,0,.58,1),Oi=Jt(.42,0,.58,1),Vo=t=>Array.isArray(t)&&typeof t[0]!="number",ji=t=>Array.isArray(t)&&typeof t[0]=="number",Co={linear:q,easeIn:bo,easeInOut:Oi,easeOut:Ao,circIn:bn,circInOut:Bi,circOut:Fi,backIn:Pn,backInOut:ki,backOut:Li,anticipate:Ii},Eo=t=>typeof t=="string",ts=t=>{if(ji(t)){zt(t.length===4);const[e,n,s,i]=t;return Jt(e,n,s,i)}else if(Eo(t))return Co[t];return t},ne=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Mo(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&r.add(u),m.has(u)||m.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const Ro=40;function _i(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ne.reduce((v,V)=>(v[V]=Mo(o),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:h,render:p,postRender:m}=r,y=()=>{const v=ft.useManualTiming?i.timestamp:performance.now();n=!1,ft.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Ro),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},w=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:ne.reduce((v,V)=>{const b=r[V];return v[V]=(E,F=!1,A=!1)=>(n||w(),b.schedule(E,F,A)),v},{}),cancel:v=>{for(let V=0;V<ne.length;V++)r[ne[V]].cancel(v)},state:i,steps:r}}const{schedule:D,cancel:rt,state:H,steps:Re}=_i(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0);let ae;function Do(){ae=void 0}const X={now:()=>(ae===void 0&&X.set(H.isProcessing||ft.useManualTiming?H.timestamp:performance.now()),ae),set:t=>{ae=t,queueMicrotask(Do)}},Ni=t=>e=>typeof e=="string"&&e.startsWith(t),Wi=Ni("--"),Lo=Ni("var(--"),An=t=>Lo(t)?ko.test(t.split("/*")[0].trim()):!1,ko=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function es(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const kt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Gt={...kt,transform:t=>it(0,1,t)},se={...kt,default:1},Wt=t=>Math.round(t*1e5)/1e5,Vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Io(t){return t==null}const Fo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cn=(t,e)=>n=>!!(typeof n=="string"&&Fo.test(n)&&n.startsWith(t)||e&&!Io(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ui=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Vn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Bo=t=>it(0,255,t),De={...kt,transform:t=>Math.round(Bo(t))},Pt={test:Cn("rgb","red"),parse:Ui("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+De.transform(t)+", "+De.transform(e)+", "+De.transform(n)+", "+Wt(Gt.transform(s))+")"};function Oo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ge={test:Cn("#"),parse:Oo,transform:Pt.transform},Qt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),dt=Qt("deg"),ot=Qt("%"),S=Qt("px"),jo=Qt("vh"),_o=Qt("vw"),ns={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},Vt={test:Cn("hsl","hue"),parse:Ui("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ot.transform(Wt(e))+", "+ot.transform(Wt(n))+", "+Wt(Gt.transform(s))+")"},U={test:t=>Pt.test(t)||Ge.test(t)||Vt.test(t),parse:t=>Pt.test(t)?Pt.parse(t):Vt.test(t)?Vt.parse(t):Ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Pt.transform(t):Vt.transform(t),getAnimatableNone:t=>{const e=U.parse(t);return e.alpha=0,U.transform(e)}},No=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wo(t){return isNaN(t)&&typeof t=="string"&&(t.match(Vn)?.length||0)+(t.match(No)?.length||0)>0}const $i="number",Ki="color",Uo="var",$o="var(",ss="${}",Ko=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Xt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ko,l=>(U.test(l)?(s.color.push(o),i.push(Ki),n.push(U.parse(l))):l.startsWith($o)?(s.var.push(o),i.push(Uo),n.push(l)):(s.number.push(o),i.push($i),n.push(parseFloat(l))),++o,ss)).split(ss);return{values:n,split:a,indexes:s,types:i}}function Hi(t){return Xt(t).values}function zi(t){const{split:e,types:n}=Xt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===$i?o+=Wt(i[r]):a===Ki?o+=U.transform(i[r]):o+=i[r]}return o}}const Ho=t=>typeof t=="number"?0:U.test(t)?U.getAnimatableNone(t):t;function zo(t){const e=Hi(t);return zi(t)(e.map(Ho))}const gt={test:Wo,parse:Hi,createTransformer:zi,getAnimatableNone:zo};function Le(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Go({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Le(l,a,t+1/3),o=Le(l,a,t),r=Le(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function pe(t,e){return n=>n>0?e:t}const O=(t,e,n)=>t+(e-t)*n,ke=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Xo=[Ge,Pt,Vt],Yo=t=>Xo.find(e=>e.test(t));function is(t){const e=Yo(t);if(!e)return!1;let n=e.parse(t);return e===Vt&&(n=Go(n)),n}const rs=(t,e)=>{const n=is(t),s=is(e);if(!n||!s)return pe(t,e);const i={...n};return o=>(i.red=ke(n.red,s.red,o),i.green=ke(n.green,s.green,o),i.blue=ke(n.blue,s.blue,o),i.alpha=O(n.alpha,s.alpha,o),Pt.transform(i))},Xe=new Set(["none","hidden"]);function qo(t,e){return Xe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Zo(t,e){return n=>O(t,e,n)}function En(t){return typeof t=="number"?Zo:typeof t=="string"?An(t)?pe:U.test(t)?rs:ta:Array.isArray(t)?Gi:typeof t=="object"?U.test(t)?rs:Jo:pe}function Gi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>En(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Jo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=En(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Qo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const ta=(t,e)=>{const n=gt.createTransformer(e),s=Xt(t),i=Xt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Xe.has(t)&&!i.values.length||Xe.has(e)&&!s.values.length?qo(t,e):Zt(Gi(Qo(s,i),i.values),n):pe(t,e)};function Xi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):En(t)(t,e)}const ea=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>rt(e),now:()=>H.isProcessing?H.timestamp:X.now()}},Yi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},me=2e4;function Mn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<me;)e+=n,s=t.next(e);return e>=me?1/0:e}function na(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Mn(s),me);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:Q(i)}}const sa=5;function qi(t,e,n){const s=Math.max(e-sa,0);return Sn(n-t(s),e-s)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ie=.001;function ia({duration:t=j.duration,bounce:e=j.bounce,velocity:n=j.velocity,mass:s=j.mass}){let i,o,r=1-e;r=it(j.minDamping,j.maxDamping,r),t=it(j.minDuration,j.maxDuration,Q(t)),r<1?(i=c=>{const u=c*r,f=u*t,h=u-n,p=Ye(c,r),m=Math.exp(-f);return Ie-h/p*m},o=c=>{const f=c*r*t,h=f*n+n,p=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-f),y=Ye(Math.pow(c,2),r);return(-i(c)+Ie>0?-1:1)*((h-p)*m)/y}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-Ie+u*f},o=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=oa(i,o,a);if(t=ct(t),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const ra=12;function oa(t,e,n){let s=n;for(let i=1;i<ra;i++)s=s-t(s)/e(s);return s}function Ye(t,e){return t*Math.sqrt(1-e*e)}const aa=["duration","bounce"],la=["stiffness","damping","mass"];function os(t,e){return e.some(n=>t[n]!==void 0)}function ua(t){let e={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...t};if(!os(t,la)&&os(t,aa))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*it(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:j.mass,stiffness:i,damping:o}}else{const n=ia(t);e={...e,...n,mass:j.mass},e.isResolvedFromDuration=!0}return e}function ge(t=j.visualDuration,e=j.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=ua({...n,velocity:-Q(n.velocity||0)}),m=h||0,y=c/(2*Math.sqrt(l*u)),w=r-o,T=Q(Math.sqrt(l/u)),P=Math.abs(w)<5;s||(s=P?j.restSpeed.granular:j.restSpeed.default),i||(i=P?j.restDelta.granular:j.restDelta.default);let v;if(y<1){const b=Ye(T,y);v=E=>{const F=Math.exp(-y*T*E);return r-F*((m+y*T*w)/b*Math.sin(b*E)+w*Math.cos(b*E))}}else if(y===1)v=b=>r-Math.exp(-T*b)*(w+(m+T*w)*b);else{const b=T*Math.sqrt(y*y-1);v=E=>{const F=Math.exp(-y*T*E),A=Math.min(b*E,300);return r-F*((m+y*T*w)*Math.sinh(A)+b*w*Math.cosh(A))/b}}const V={calculatedDuration:p&&f||null,next:b=>{const E=v(b);if(p)a.done=b>=f;else{let F=b===0?m:0;y<1&&(F=b===0?ct(m):qi(v,b,E));const A=Math.abs(F)<=s,M=Math.abs(r-E)<=i;a.done=A&&M}return a.value=a.done?r:E,a},toString:()=>{const b=Math.min(Mn(V),me),E=Yi(F=>V.next(b*F).value,b,30);return b+"ms "+E},toTransition:()=>{}};return V}ge.applyToOptions=t=>{const e=na(t,100,ge);return t.ease=e.ease,t.duration=ct(e.duration),t.type="keyframes",t};function qe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let y=n*e;const w=f+y,T=r===void 0?w:r(w);T!==w&&(y=T-f);const P=A=>-y*Math.exp(-A/s),v=A=>T+P(A),V=A=>{const M=P(A),B=v(A);h.done=Math.abs(M)<=c,h.value=h.done?T:B};let b,E;const F=A=>{p(h.value)&&(b=A,E=ge({keyframes:[h.value,m(h.value)],velocity:qi(v,A,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return F(0),{calculatedDuration:null,next:A=>{let M=!1;return!E&&b===void 0&&(M=!0,V(A),F(A)),b!==void 0&&A>=b?E.next(A-b):(!M&&V(A),h)}}}function ca(t,e,n){const s=[],i=n||ft.mix||Xi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||q:e;a=Zt(l,a)}s.push(a)}return s}function Rn(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(zt(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ca(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const h=Lt(t[f],t[f+1],u);return a[f](h)};return n?u=>c(it(t[0],t[o-1],u)):c}function fa(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(O(n,1,i))}}function Zi(t){const e=[0];return fa(e,t.length-1),e}function ha(t,e){return t.map(n=>n*e)}function da(t,e){return t.map(()=>e||Oi).splice(0,t.length-1)}function Ut({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Vo(s)?s.map(ts):ts(s),o={done:!1,value:e[0]},r=ha(n&&n.length===e.length?n:Zi(e),t),a=Rn(r,e,{ease:Array.isArray(i)?i:da(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const pa=t=>t!==null;function Dn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(pa),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ma={decay:qe,inertia:qe,tween:Ut,keyframes:Ut,spring:ge};function Ji(t){typeof t.type=="string"&&(t.type=ma[t.type])}class Ln{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ga=t=>t/100;class be extends Ln{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==X.now()&&this.tick(X.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ji(e);const{type:n=Ut,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Ut;l!==Ut&&typeof a[0]!="number"&&(this.mixKeyframes=Zt(ga,Xi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Mn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:m,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,V=s;if(f){const A=Math.min(this.currentTime,i)/a;let M=Math.floor(A),B=A%1;!B&&A>=1&&(B=1),B===1&&M--,M=Math.min(M,f+1),M%2&&(h==="reverse"?(B=1-B,p&&(B-=p/a)):h==="mirror"&&(V=r)),v=it(0,1,B)*a}const b=P?{done:!1,value:u[0]}:V.next(v);o&&(b.value=o(b.value));let{done:E}=b;!P&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return F&&m!==qe&&(b.value=Dn(u,this.options,w,this.speed)),y&&y(b.value),F&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return Q(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(this.currentTime)}set time(e){e=ct(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(X.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Q(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=ea,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(X.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ya(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const bt=t=>t*180/Math.PI,Ze=t=>{const e=bt(Math.atan2(t[1],t[0]));return Je(e)},va={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ze,rotateZ:Ze,skewX:t=>bt(Math.atan(t[1])),skewY:t=>bt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Je=t=>(t=t%360,t<0&&(t+=360),t),as=Ze,ls=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),us=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),xa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ls,scaleY:us,scale:t=>(ls(t)+us(t))/2,rotateX:t=>Je(bt(Math.atan2(t[6],t[5]))),rotateY:t=>Je(bt(Math.atan2(-t[2],t[0]))),rotateZ:as,rotate:as,skewX:t=>bt(Math.atan(t[4])),skewY:t=>bt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Qe(t){return t.includes("scale")?1:0}function tn(t,e){if(!t||t==="none")return Qe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=xa,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=va,i=a}if(!i)return Qe(e);const o=s[e],r=i[1].split(",").map(wa);return typeof o=="function"?o(r):r[o]}const Ta=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return tn(n,e)};function wa(t){return parseFloat(t.trim())}const It=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(It),cs=t=>t===kt||t===S,Sa=new Set(["x","y","z"]),Pa=It.filter(t=>!Sa.has(t));function ba(t){const e=[];return Pa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const pt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tn(e,"x"),y:(t,{transform:e})=>tn(e,"y")};pt.translateX=pt.x;pt.translateY=pt.y;const At=new Set;let en=!1,nn=!1,sn=!1;function Qi(){if(nn){const t=Array.from(At).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ba(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}nn=!1,en=!1,At.forEach(t=>t.complete(sn)),At.clear()}function tr(){At.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(nn=!0)})}function Aa(){sn=!0,tr(),Qi(),sn=!1}class kn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(At.add(this),en||(en=!0,D.read(tr),D.resolveKeyframes(Qi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}ya(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),At.delete(this)}cancel(){this.state==="scheduled"&&(At.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Va=t=>t.startsWith("--");function Ca(t,e,n){Va(e)?t.style.setProperty(e,n):t.style[e]=n}const er=Tn(()=>window.ScrollTimeline!==void 0),Ea={};function Ma(t,e){const n=Tn(t);return()=>Ea[e]??n()}const nr=Ma(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_t=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,fs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_t([0,.65,.55,1]),circOut:_t([.55,0,1,.45]),backIn:_t([.31,.01,.66,-.59]),backOut:_t([.33,1.53,.69,.99])};function sr(t,e){if(t)return typeof t=="function"?nr()?Yi(t,e):"ease-out":ji(t)?_t(t):Array.isArray(t)?t.map(n=>sr(n,e)||fs.easeOut):fs[t]}function Ra(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const f=sr(a,i);Array.isArray(f)&&(u.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(u,h)}function ir(t){return typeof t=="function"&&"applyToOptions"in t}function Da({type:t,...e}){return ir(t)&&nr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class La extends Ln{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,zt(typeof e.type!="string");const c=Da(e);this.animation=Ra(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Dn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ca(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Q(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ct(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&er()?(this.animation.timeline=e,q):n(this)}}const rr={anticipate:Ii,backInOut:ki,circInOut:Bi};function ka(t){return t in rr}function Ia(t){typeof t.ease=="string"&&ka(t.ease)&&(t.ease=rr[t.ease])}const Fe=10;class Fa extends La{constructor(e){Ia(e),Ji(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new be({...r,autoplay:!1}),l=Math.max(Fe,X.now()-this.startTime),c=it(0,Fe,l-Fe);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const hs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(gt.test(t)||t==="0")&&!t.startsWith("url("));function Ba(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Oa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=hs(i,e),a=hs(o,e);return!r||!a?!1:Ba(t)||(n==="spring"||ir(n))&&s}function rn(t){t.duration=0,t.type="keyframes"}const ja=new Set(["opacity","clipPath","filter","transform"]),_a=Tn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Na(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return _a()&&n&&ja.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Wa=40;class Ua extends Ln{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=X.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...f},p=u?.KeyframeResolver||kn;this.keyframeResolver=new p(a,(m,y,w)=>this.onKeyframesResolved(m,y,h,!w),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=X.now(),Oa(e,o,r,a)||((ft.instantAnimations||!l)&&u?.(Dn(e,s,n)),e[0]=e[e.length-1],rn(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=!c&&Na(h),m=h.motionValue?.owner?.current,y=p?new Fa({...h,element:m}):new be(h);y.finished.then(()=>{this.notifyFinished()}).catch(q),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Aa()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function or(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const $a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ka(t){const e=$a.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ar(t,e,n=1){const[s,i]=Ka(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Vi(r)?parseFloat(r):r}return An(i)?ar(i,e,n+1):i}const Ha={type:"spring",stiffness:500,damping:25,restSpeed:10},za=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ga={type:"keyframes",duration:.8},Xa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ya=(t,{keyframes:e})=>e.length>2?Ga:Ft.has(t)?t.startsWith("scale")?za(e[1]):Ha:Xa,qa=t=>t!==null;function Za(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(qa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function In(t,e){return t?.[e]??t?.default??t}function Ja({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Fn=(t,e,n,s={},i,o)=>r=>{const a=In(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-ct(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ja(a)||Object.assign(u,Ya(t,u)),u.duration&&(u.duration=ct(u.duration)),u.repeatDelay&&(u.repeatDelay=ct(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(rn(u),u.delay===0&&(f=!0)),(ft.instantAnimations||ft.skipAnimations)&&(f=!0,rn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=Za(u.keyframes,a);if(h!==void 0){D.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new be(u):new Ua(u)};function ds(t){const e=[{},{}];
vendor: 9,298 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Bn(t,e,n,s){if(typeof e=="function"){const[i,o]=ds(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ds(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Dt(t,e,n){const s=t.getProps();return Bn(s,e,n!==void 0?n:s.custom,t)}const lr=new Set(["width","height","top","left","right","bottom",...It]),ps=30,Qa=t=>!isNaN(parseFloat(t)),$t={current:void 0};class tl{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=X.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=X.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Qa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new wn);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return $t.current&&$t.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=X.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ps)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ps);return Sn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function st(t,e){return new tl(t,e)}const on=t=>Array.isArray(t);function el(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,st(n))}function nl(t){return on(t)?t[t.length-1]||0:t}function sl(t,e){const n=Dt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=nl(o[r]);el(t,r,a)}}const z=t=>!!(t&&t.getVelocity);function il(t){return!!(z(t)&&t.add)}function an(t,e){const n=t.getValue("willChange");if(il(n))return n.add(e);if(!n&&ft.WillChange){const s=new ft.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function On(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const rl="framerAppearId",ur="data-"+On(rl);function cr(t){return t.props[ur]}function ol({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function fr(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const f=t.getValue(u,t.latestValues[u]??null),h=a[u];if(h===void 0||c&&ol(c,u))continue;const p={delay:n,...In(o||{},u)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!p.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const T=cr(t);if(T){const P=window.MotionHandoffAnimation(T,u,D);P!==null&&(p.startTime=P,y=!0)}}an(t,u),f.start(Fn(u,f,h,t.shouldReduceMotion&&lr.has(u)?{type:!1}:p,t,y));const w=f.animation;w&&l.push(w)}return r&&Promise.all(l).then(()=>{D.update(()=>{r&&sl(t,r)})}),l}function ln(t,e,n={}){const s=Dt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(fr(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return al(t,e,l,c,u,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function al(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(ln(l,e,{...r,delay:n+(typeof s=="function"?0:s)+or(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function ll(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>ln(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=ln(t,e,n);else{const i=typeof e=="function"?Dt(t,e,n.custom):e;s=Promise.all(fr(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ul={test:t=>t==="auto",parse:t=>t},hr=t=>e=>e.test(t),dr=[kt,S,ot,dt,_o,jo,ul],ms=t=>dr.find(hr(t));function cl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ei(t):!0}const fl=new Set(["brightness","contrast","saturate","opacity"]);function hl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Vn)||[];if(!s)return t;const i=n.replace(s,"");let o=fl.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const dl=/\b([a-z-]*)\(.*?\)/gu,un={...gt,getAnimatableNone:t=>{const e=t.match(dl);return e?e.map(hl).join(" "):t}},gs={...kt,transform:Math.round},pl={rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:se,scaleX:se,scaleY:se,scaleZ:se,skew:dt,skewX:dt,skewY:dt,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Gt,originX:ns,originY:ns,originZ:S},jn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,backgroundPositionX:S,backgroundPositionY:S,...pl,zIndex:gs,fillOpacity:Gt,strokeOpacity:Gt,numOctaves:gs},ml={...jn,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:un,WebkitFilter:un},pr=t=>ml[t];function mr(t,e){let n=pr(t);return n!==un&&(n=gt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const gl=new Set(["auto","none","0"]);function yl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!gl.has(o)&&Xt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=mr(n,i)}class vl extends kn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),An(f))){const h=ar(f,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!lr.has(s)||e.length!==2)return;const[i,o]=e,r=ms(i),a=ms(o),l=es(i),c=es(o);if(l!==c&&pt[s]){this.needsMeasurement=!0;return}if(r!==a)if(cs(r)&&cs(a))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else pt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||cl(e[i]))&&s.push(i);s.length&&yl(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=pt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function _n(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const gr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function ye(t){return Ci(t)&&"offsetHeight"in t}const{schedule:Nn}=_i(queueMicrotask,!1),nt={x:!1,y:!1};function yr(){return nt.x||nt.y}function xl(t){return t==="x"||t==="y"?nt[t]?null:(nt[t]=!0,()=>{nt[t]=!1}):nt.x||nt.y?null:(nt.x=nt.y=!0,()=>{nt.x=nt.y=!1})}function vr(t,e){const n=_n(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function ys(t){return!(t.pointerType==="touch"||yr())}function Tl(t,e,n={}){const[s,i,o]=vr(t,n),r=a=>{if(!ys(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=f=>{ys(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const xr=(t,e)=>e?t===e?!0:xr(t,e.parentElement):!1,Wn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,wl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Tr(t){return wl.has(t.tagName)||t.isContentEditable===!0}const le=new WeakSet;function vs(t){return e=>{e.key==="Enter"&&t(e)}}function Be(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=vs(()=>{if(le.has(n))return;Be(n,"down");const i=vs(()=>{Be(n,"up")}),o=()=>Be(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function xs(t){return Wn(t)&&!yr()}function Pl(t,e,n={}){const[s,i,o]=vr(t,n),r=a=>{const l=a.currentTarget;if(!xs(a))return;le.add(l);const c=e(l,a),u=(p,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),le.has(l)&&le.delete(l),xs(p)&&typeof c=="function"&&c(p,{success:m})},f=p=>{u(p,l===window||l===document||n.useGlobalTarget||xr(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),ye(a)&&(a.addEventListener("focus",c=>Sl(c,i)),!Tr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Un(t){return Ci(t)&&"ownerSVGElement"in t}const ue=new WeakMap;let ce;const wr=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Un(s)&&"getBBox"in s?s.getBBox()[e]:s[n],bl=wr("inline","width","offsetWidth"),Al=wr("block","height","offsetHeight");function Vl({target:t,borderBoxSize:e}){ue.get(t)?.forEach(n=>{n(t,{get width(){return bl(t,e)},get height(){return Al(t,e)}})})}function Cl(t){t.forEach(Vl)}function El(){typeof ResizeObserver>"u"||(ce=new ResizeObserver(Cl))}function Ml(t,e){ce||El();const n=_n(t);return n.forEach(s=>{let i=ue.get(s);i||(i=new Set,ue.set(s,i)),i.add(e),ce?.observe(s)}),()=>{n.forEach(s=>{const i=ue.get(s);i?.delete(e),i?.size||ce?.unobserve(s)})}}const fe=new Set;let Ct;function Rl(){Ct=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};fe.forEach(e=>e(t))},window.addEventListener("resize",Ct)}function Dl(t){return fe.add(t),Ct||Rl(),()=>{fe.delete(t),!fe.size&&typeof Ct=="function"&&(window.removeEventListener("resize",Ct),Ct=void 0)}}function Ll(t,e){return typeof t=="function"?Dl(t):Ml(t,e)}function Sr(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return D.preUpdate(s,!0),()=>rt(s)}function kl(t){return Un(t)&&t.tagName==="svg"}function Il(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=Rn(i,o,r);return e?a(s):a}function Fl(t,e,n){const s=t.get();let i=null,o=s,r;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,l=()=>{i&&(i.stop(),i=null)},c=()=>{l(),i=new be({keyframes:[ws(t.get()),ws(o)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUp
vendor: 74,129 bytes, lines 1-9
1date:r})};if(t.attach((u,f)=>{o=u,r=h=>f(Ts(h,a)),D.postRender(()=>{c(),t.events.animationStart?.notify(),i?.then(()=>{t.events.animationComplete?.notify()})})},l),z(e)){const u=e.on("change",h=>t.set(Ts(h,a))),f=t.on("destroy",u);return()=>{u(),f()}}return l}function Ts(t,e){return e?t+e:t}function ws(t){return typeof t=="number"?t:parseFloat(t)}const Bl=[...dr,U,gt],Ol=t=>Bl.find(hr(t)),Ss=()=>({translate:0,scale:1,origin:0,originPoint:0}),Et=()=>({x:Ss(),y:Ss()}),Ps=()=>({min:0,max:0}),K=()=>({x:Ps(),y:Ps()}),cn={current:null},Pr={current:!1},jl=typeof window<"u";function _l(){if(Pr.current=!0,!!jl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>cn.current=t.matches;t.addEventListener("change",e),e()}else cn.current=!1}const Nl=new WeakMap;function Ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Yt(t){return typeof t=="string"||Array.isArray(t)}const $n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kn=["initial",...$n];function Ve(t){return Ae(t.animate)||Kn.some(e=>Yt(t[e]))}function br(t){return!!(Ve(t)||t.variants)}function Wl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(z(i))t.addValue(s,i);else if(z(o))t.addValue(s,st(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,st(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const bs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ve={};function Ar(t){ve=t}function Ul(){return ve}class $l{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kn,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.renderScheduledAt=0,this.scheduleRender=()=>{const h=X.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,D.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Ve(n),this.isVariantNode=br(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];l[h]!==void 0&&z(p)&&p.set(l[h])}}mount(e){this.current=e,Nl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Pr.current||_l(),this.shouldReduceMotion=cn.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Ft.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ve){const n=ve[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<bs.length;s++){const i=bs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Wl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=st(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Vi(s)||Ei(s))?s=parseFloat(s):!Ol(s)&>.test(n)&&(s=mr(e,n)),this.setBaseTarget(e,z(s)?s.get():s)),z(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Bn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!z(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new wn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Nn.render(this.render)}}class Vr extends $l{constructor(){super(...arguments),this.KeyframeResolver=vl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;z(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class yt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Cr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Kl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Hl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Oe(t){return t===void 0||t===1}function fn({scale:t,scaleX:e,scaleY:n}){return!Oe(t)||!Oe(e)||!Oe(n)}function St(t){return fn(t)||Er(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Er(t){return As(t.x)||As(t.y)}function As(t){return t&&t!=="0%"}function xe(t,e,n){const s=t-n,i=e*s;return n+i}function Vs(t,e,n,s,i){return i!==void 0&&(t=xe(t,i,s)),xe(t,n,s)+e}function hn(t,e=0,n=1,s,i){t.min=Vs(t.min,e,n,s,i),t.max=Vs(t.max,e,n,s,i)}function Mr(t,{x:e,y:n}){hn(t.x,e.translate,e.scale,e.originPoint),hn(t.y,n.translate,n.scale,n.originPoint)}const Cs=.999999999999,Es=1.0000000000001;function zl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Rt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Mr(t,r)),s&&St(o.latestValues)&&Rt(t,o.latestValues))}e.x<Es&&e.x>Cs&&(e.x=1),e.y<Es&&e.y>Cs&&(e.y=1)}function Mt(t,e){t.min=t.min+e,t.max=t.max+e}function Ms(t,e,n,s,i=.5){const o=O(t.min,t.max,i);hn(t,e,n,o,s)}function Rt(t,e){Ms(t.x,e.x,e.scaleX,e.scale,e.originX),Ms(t.y,e.y,e.scaleY,e.scale,e.originY)}function Rr(t,e){return Cr(Hl(t.getBoundingClientRect(),e))}function Gl(t,e,n){const s=Rr(t,n),{scroll:i}=e;return i&&(Mt(s.x,i.offset.x),Mt(s.y,i.offset.y)),s}const Xl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yl=It.length;function ql(t,e,n){let s="",i=!0;for(let o=0;o<Yl;o++){const r=It[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=gr(a,jn[r]);if(!l){i=!1;const u=Xl[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Hn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(Ft.has(l)){r=!0;continue}else if(Wi(l)){i[l]=c;continue}else{const u=gr(c,jn[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=ql(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function Dr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Rs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ot={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=Rs(t,e.target.x),s=Rs(t,e.target.y);return`${n}% ${s}%`}},Zl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=gt.parse(t);if(i.length>5)return s;const o=gt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=O(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},dn={borderRadius:{...Ot,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomLeftRadius:Ot,borderBottomRightRadius:Ot,boxShadow:Zl};function Lr(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!dn[t]||t==="opacity")}function zn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(z(s[r])||i&&z(i[r])||Lr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Jl(t){return window.getComputedStyle(t)}class Ql extends Vr{constructor(){super(...arguments),this.type="html",this.renderInstance=Dr}readValueFromInstance(e,n){if(Ft.has(n))return this.projection?.isProjecting?Qe(n):Ta(e,n);{const s=Jl(e),i=(Wi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Rr(e,n)}build(e,n,s){Hn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return zn(e,n,s)}}const tu={offset:"stroke-dashoffset",array:"stroke-dasharray"},eu={offset:"strokeDashoffset",array:"strokeDasharray"};function nu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?tu:eu;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const su=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function kr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(Hn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const p of su)f[p]!==void 0&&(h[p]=f[p],delete f[p]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&nu(f,i,o,r,!1)}const Ir=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"]),Fr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function iu(t,e,n,s){Dr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ir.has(i)?i:On(i),e.attrs[i])}function Br(t,e,n){const s=zn(t,e,n);for(const i in t)if(z(t[i])||z(e[i])){const o=It.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class ru extends Vr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ft.has(n)){const s=pr(n);return s&&s.default||0}return n=Ir.has(n)?n:On(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Br(e,n,s)}build(e,n,s){kr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){iu(e,n,s,i)}mount(e){this.isSVGTag=Fr(e.tagName),super.mount(e)}}const ou=Kn.length;function Or(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Or(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ou;n++){const s=Kn[n],i=t.props[s];(Yt(i)||i===!1)&&(e[s]=i)}return e}function jr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const au=[...$n].reverse(),lu=$n.length;function uu(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ll(t,n,s)))}function cu(t){let e=uu(t),n=Ds(),s=!0;const i=l=>(c,u)=>{const f=Dt(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:p,...m}=f;c={...c,...m,...p}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=Or(t.parent)||{},f=[],h=new Set;let p={},m=1/0;for(let w=0;w<lu;w++){const T=au[w],P=n[T],v=c[T]!==void 0?c[T]:u[T],V=Yt(v),b=T===l?P.isActive:null;b===!1&&(m=w);let E=v===u[T]&&v!==c[T]&&V;if(E&&s&&t.manuallyAnimateOnMount&&(E=!1),P.protectedKeys={...p},!P.isActive&&b===null||!v&&!P.prevProp||Ae(v)||typeof v=="boolean")continue;const F=fu(P.prevProp,v);let A=F||T===l&&P.isActive&&!E&&V||w>m&&V,M=!1;const B=Array.isArray(v)?v:[v];let Z=B.reduce(i(T),{});b===!1&&(Z={});const{prevResolvedValues:ht={}}=P,vt={...ht,...Z},xt=R=>{A=!0,h.has(R)&&(M=!0,h.delete(R)),P.needsAnimating[R]=!0;const G=t.getValue(R);G&&(G.liveStyle=!1)};for(const R in vt){const G=Z[R],at=ht[R];if(p.hasOwnProperty(R))continue;let lt=!1;on(G)&&on(at)?lt=!jr(G,at):lt=G!==at,lt?G!=null?xt(R):h.add(R):G!==void 0&&h.has(R)?xt(R):P.protectedKeys[R]=!0}P.prevProp=v,P.prevResolvedValues=Z,P.isActive&&(p={...p,...Z}),s&&t.blockInitialAnimation&&(A=!1);const Tt=E&&F;A&&(!Tt||M)&&f.push(...B.map(R=>{const G={type:T};if(typeof R=="string"&&s&&!Tt&&t.manuallyAnimateOnMount&&t.parent){const{parent:at}=t,lt=Dt(at,R);if(at.enteringChildren&<){const{delayChildren:d}=lt.transition||{};G.delay=or(at.enteringChildren,t,d)}}return{animation:R,options:G}}))}if(h.size){const w={};if(typeof c.initial!="boolean"){const T=Dt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(w.transition=T.transition)}h.forEach(T=>{const P=t.getBaseTarget(T),v=t.getValue(T);v&&(v.liveStyle=!0),w[T]=P??null}),f.push({animation:w})}let y=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(f):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(l,c)),n[l].isActive=c;const u=r(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ds()}}}function fu(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!jr(e,t):!1}function wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ds(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}function Ls(t,e){t.min=e.min,t.max=e.max}function et(t,e){Ls(t.x,e.x),Ls(t.y,e.y)}function ks(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const _r=1e-4,hu=1-_r,du=1+_r,Nr=.01,pu=0-Nr,mu=0+Nr;function Y(t){return t.max-t.min}function gu(t,e,n){return Math.abs(t-e)<=n}function Is(t,e,n,s=.5){t.origin=s,t.originPoint=O(e.min,e.max,t.origin),t.scale=Y(n)/Y(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hu&&t.scale<=du||isNaN(t.scale))&&(t.scale=1),(t.translate>=pu&&t.translate<=mu||isNaN(t.translate))&&(t.translate=0)}function Kt(t,e,n,s){Is(t.x,e.x,n.x,s?s.originX:void 0),Is(t.y,e.y,n.y,s?s.originY:void 0)}function Fs(t,e,n){t.min=n.min+e.min,t.max=t.min+Y(e)}function yu(t,e,n){Fs(t.x,e.x,n.x),Fs(t.y,e.y,n.y)}function Bs(t,e,n){t.min=e.min-n.min,t.max=t.min+Y(e)}function Te(t,e,n){Bs(t.x,e.x,n.x),Bs(t.y,e.y,n.y)}function Os(t,e,n,s,i){return t-=e,t=xe(t,1/n,s),i!==void 0&&(t=xe(t,1/i,s)),t}function vu(t,e=0,n=1,s=.5,i,o=t,r=t){if(ot.test(e)&&(e=parseFloat(e),e=O(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=O(o.min,o.max,s);t===o&&(a-=e),t.min=Os(t.min,e,n,a,i),t.max=Os(t.max,e,n,a,i)}function js(t,e,[n,s,i],o,r){vu(t,e[n],e[s],e[i],e.scale,o,r)}const xu=["x","scaleX","originX"],Tu=["y","scaleY","originY"];function _s(t,e,n,s){js(t.x,e,xu,n?n.x:void 0,s?s.x:void 0),js(t.y,e,Tu,n?n.y:void 0,s?s.y:void 0)}function Ns(t){return t.translate===0&&t.scale===1}function Wr(t){return Ns(t.x)&&Ns(t.y)}function Ws(t,e){return t.min===e.min&&t.max===e.max}function wu(t,e){return Ws(t.x,e.x)&&Ws(t.y,e.y)}function Us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ur(t,e){return Us(t.x,e.x)&&Us(t.y,e.y)}function $s(t){return Y(t.x)/Y(t.y)}function Ks(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function J(t){return[t("x"),t("y")]}function Su(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:h,skewX:p,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),f&&(s+=`rotateX(${f}deg) `),h&&(s+=`rotateY(${h}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const $r=["TopLeft","TopRight","BottomLeft","BottomRight"],Pu=$r.length,Hs=t=>typeof t=="string"?parseFloat(t):t,zs=t=>typeof t=="number"||S.test(t);function bu(t,e,n,s,i,o){i?(t.opacity=O(0,n.opacity??1,Au(s)),t.opacityExit=O(e.opacity??1,0,Vu(s))):o&&(t.opacity=O(e.opacity??1,n.opacity??1,s));for(let r=0;r<Pu;r++){const a=`border${$r[r]}Radius`;let l=Gs(e,a),c=Gs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||zs(l)===zs(c)?(t[a]=Math.max(O(Hs(l),Hs(c),s),0),(ot.test(c)||ot.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,s))}function Gs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Au=Kr(0,.5,Fi),Vu=Kr(.5,.95,q);function Kr(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function Cu(t,e,n){const s=z(t)?t:st(t);return s.start(Fn("",s,e,n)),s.animation}function qt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Eu=(t,e)=>t.depth-e.depth;class Mu{constructor(){this.children=[],this.isDirty=!1}add(e){vn(this.children,e),this.isDirty=!0}remove(e){xn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Eu),this.isDirty=!1,this.children.forEach(e)}}function Ru(t,e){const n=X.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(rt(s),t(o-e))};return D.setup(s,!0),()=>rt(s)}function he(t){return z(t)?t.get():t}class Du{constructor(){this.members=[]}add(e){vn(this.members,e),e.scheduleRender()}remove(e){if(xn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const de={hasAnimatedSinceResize:!0,hasEverUpdated:!1},je=["","X","Y","Z"],Lu=1e3;let ku=0;function _e(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Hr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=cr(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Hr(s)}function zr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=ku++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Bu),this.nodes.forEach(Nu),this.nodes.forEach(Wu),this.nodes.forEach(Ou)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new wn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Un(r)&&!kl(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;D.read(()=>{f=window.innerWidth}),t(r,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=Ru(h,250),de.hasAnimatedSinceResize&&(de.hasAnimatedSinceResize=!1,this.nodes.forEach(qs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||zu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),T=!this.targetLayout||!Ur(this.targetLayout,p),P=!f&&h;if(this.options.layoutRoot||this.resumeFrom||P||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...In(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,P)}else f||qs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Uu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ys);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_u),this.nodes.forEach(Iu),this.nodes.forEach(Fu)):this.nodes.forEach(Ys),this.clearAllSnapshots();const a=X.now();H.delta=it(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,Re.update.process(H),Re.preRender.process(H),Re.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ju),this.sharedNodes.forEach($u)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=K(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Wr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||St(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Gu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return K();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Xu))){const{scroll:c}=this.root;c&&(Mt(a.x,c.offset.x),Mt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=K();if(et(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;c!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&et(a,r),Mt(a.x,u.offset.x),Mt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=K();et(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Rt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),St(u.latestValues)&&Rt(l,u.latestValues)}return St(this.latestValues)&&Rt(l,this.latestValues),l}removeTransform(r){const a=K();et(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!St(c.latestValues))continue;fn(c.latestValues)&&c.updateSnapshot();const u=K(),f=c.measurePageBox();et(u,f),_s(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return St(this.latestValues)&&_s(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=H.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):et(this.target,this.layout.layoutBox),Mr(this.target,this.targetDelta)):et(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fn(this.parent.latestValues)||Er(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),Te(this.relativeTargetOrigin,a,l),et(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===H.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;et(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;zl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=K());const{target:p}=r;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ks(this.prevProjectionDelta.x,this.projectionDelta.x),ks(this.prevProjectionDelta.y,this.projectionDelta.y)),Kt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Ks(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ks(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Et(),this.projectionDelta=Et(),this.projectionDeltaWithTransform=Et()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Et();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=K(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,w=this.getStack(),T=!w||w.members.length<=1,P=!!(y&&!T&&this.options.crossfade===!0&&!this.path.some(Hu));this.animationProgress=0;let v;this.mixTargetDelta=V=>{const b=V/1e3;Zs(f.x,r.x,b),Zs(f.y,r.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Te(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ku(this.relativeTarget,this.relativeTargetOrigin,h,b),v&&wu(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=K()),et(v,this.relativeTarget)),y&&(this.animationValues=u,bu(u,c,this.latestValues,b,P,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{de.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=st(0)),this.currentAnimation=Cu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Gr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||K();const f=Y(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+f;const h=Y(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+h}et(a,l),Rt(a,u),Kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Du),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&_e("z",r,c,this.animationValues);for(let u=0;u<je.length;u++)_e(`rotate${je[u]}`,r,c,this.animationValues),_e(`skew${je[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=he(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=he(a?.pointerEvents)||""),this.hasProjected&&!St(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Su(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),r.transform=f;const{x:h,y:p}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in dn){if(u[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:T}=dn[m],P=f==="none"?u[m]:y(u[m],c);if(w){const v=w.length;for(let V=0;V<v;V++)r[w[V]]=P}else T?this.options.visualElement.renderState.vars[m]=P:r[m]=P}this.options.layoutId&&(r.pointerEvents=c===this?he(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Xs),this.root.sharedNodes.clear()}}}function Iu(t){t.updateLayout()}function Fu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?J(u=>{const f=o?e.measuredBox[u]:e.layoutBox[u],h=Y(f);f.min=n[u].min,f.max=f.min+h}):Gr(i,e.layoutBox,n)&&J(u=>{const f=o?e.measuredBox[u]:e.layoutBox[u],h=Y(n[u]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const r=Et();Kt(r,n,e.layoutBox);const a=Et();o?Kt(a,t.applyTransform(s,!0),e.measuredBox):Kt(a,n,e.layoutBox);const l=!Wr(r);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=K();Te(p,e.layoutBox,f.layoutBox);const m=K();Te(m,n,h.layoutBox),Ur(p,m)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Bu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ou(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ju(t){t.clearSnapshot()}function Xs(t){t.clearMeasurements()}function Ys(t){t.isLayoutDirty=!1}function _u(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Nu(t){t.resolveTargetDelta()}function Wu(t){t.calcProjection()}function Uu(t){t.resetSkewAndRotation()}function $u(t){t.removeLeadSnapshot()}function Zs(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Js(t,e,n,s){t.min=O(e.min,n.min,s),t.max=O(e.max,n.max,s)}function Ku(t,e,n,s){Js(t.x,e.x,n.x,s),Js(t.y,e.y,n.y,s)}function Hu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zu={duration:.45,ease:[.4,0,.1,1]},Qs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ti=Qs("applewebkit/")&&!Qs("chrome/")?Math.round:q;function ei(t){t.min=ti(t.min),t.max=ti(t.max)}function Gu(t){ei(t.x),ei(t.y)}function Gr(t,e,n){return t==="position"||t==="preserve-aspect"&&!gu($s(e),$s(n),.2)}function Xu(t){return t!==t.root&&t.scroll?.wasRoot}const Yu=zr({attachResizeListener:(t,e)=>qt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ne={current:void 0},Xr=zr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ne.current){const t=new Yu({});t.mount(window),t.setOptions({layoutScroll:!0}),Ne.current=t}return Ne.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),te=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ni(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qu(...t){return e=>{let n=!1;const s=t.map(i=>{const o=ni(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():ni(t[i],null)}}}}function Zu(...t){return g.useCallback(qu(...t),t)}class Ju extends g.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=ye(s)&&s.offsetWidth||0,o=ye(s)&&s.offsetHeight||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left,r.bottom=o-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Qu({children:t,isPresent:e,anchorX:n,anchorY:s,root:i}){const o=g.useId(),r=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=g.useContext(te),c=t.props?.ref??t?.ref,u=Zu(r,c);return g.useInsertionEffect(()=>{const{width:f,height:h,top:p,left:m,right:y,bottom:w}=a.current;if(e||!r.current||!f||!h)return;const T=n==="left"?`left: ${m}`:`right: ${y}`,P=s==="bottom"?`bottom: ${w}`:`top: ${p}`;r.current.dataset.motionPopId=o;const v=document.createElement("style");l&&(v.nonce=l);const V=i??document.head;return V.appendChild(v),v.sheet&&v.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${f}px !important; 5 height: ${h}px !important; 6 ${T}px !important; 7 ${P}px !important; 8 } 9 `),()=>{V.contains(v)&&V.removeChild(v)}},[e]),ut.jsx(Ju,{isPresent:e,childRef:r,sizeRef:a,children:g.cloneElement(t,{ref:u})})}const tc=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:l,root:c})=>{const u=mt(ec),f=g.useId();let h=!0,p=g.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:m=>{u.set(m,!0);for(const y of u.values())if(!y)return;s&&s()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,s]);return o&&h&&(p={...p}),g.useMemo(()=>{u.forEach((m,y)=>u.set(y,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),r==="popLayout"&&(t=ut.jsx(Qu,{isPresent:n,anchorX:a,anchorY:l,root:c,children:t})),ut.jsx(Pe.Provider,{value:p,children:t})};function ec(){return new Map}function Yr(t=!0){const e=g.useContext(Pe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=g.useId();g.useEffect(()=>{if(t)return i(o)},[t]);const r=g.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const ie=t=>t.key||"";function si(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const If=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,f]=Yr(r),h=g.useMemo(()=>si(t),[t]),p=r&&!u?[]:h.map(ie),m=g.useRef(!0),y=g.useRef(h),w=mt(()=>new Map),T=g.useRef(new Set),[P,v]=g.useState(h),[V,b]=g.useState(h);Se(()=>{m.current=!1,y.current=h;for(let A=0;A<V.length;A++){const M=ie(V[A]);p.includes(M)?(w.delete(M),T.current.delete(M)):w.get(M)!==!0&&w.set(M,!1)}},[V,p.length,p.join("-")]);const E=[];if(h!==P){let A=[...h];for(let M=0;M<V.length;M++){const B=V[M],Z=ie(B);p.includes(Z)||(A.splice(M,0,B),E.push(B))}return o==="wait"&&E.length&&(A=E),b(si(A)),v(h),null}const{forceRender:F}=g.useContext(yn);return ut.jsx(ut.Fragment,{children:V.map(A=>{const M=ie(A),B=r&&!u?!1:h===V||p.includes(M),Z=()=>{if(T.current.has(M))return;if(T.current.add(M),w.has(M))w.set(M,!0);else return;let ht=!0;w.forEach(vt=>{vt||(ht=!1)}),ht&&(F?.(),b(y.current),r&&f?.(),s&&s())};return ut.jsx(tc,{isPresent:B,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:B?void 0:Z,anchorX:a,anchorY:l,children:A},M)})})},qr=g.createContext({strict:!1}),ii={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],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"]};let ri=!1;function nc(){if(ri)return;const t={};for(const e in ii)t[e]={isEnabled:n=>ii[e].some(s=>!!n[s])};Ar(t),ri=!0}function Zr(){return nc(),Ul()}function sc(t){const e=Zr();for(const n in t)e[n]={...e[n],...t[n]};Ar(e)}const ic=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function we(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ic.has(t)}let Jr=t=>!we(t);function rc(t){typeof t=="function"&&(Jr=e=>e.startsWith("on")?!we(e):t(e))}try{rc(require("@emotion/is-prop-valid").default)}catch{}function oc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Jr(i)||n===!0&&we(i)||!e&&!we(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Ce=g.createContext({});function ac(t,e){if(Ve(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Yt(n)?n:void 0,animate:Yt(s)?s:void 0}}return t.inherit!==!1?e:{}}function lc(t){const{initial:e,animate:n}=ac(t,g.useContext(Ce));return g.useMemo(()=>({initial:e,animate:n}),[oi(e),oi(n)])}function oi(t){return Array.isArray(t)?t.join(" "):t}const Gn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qr(t,e,n){for(const s in e)!z(e[s])&&!Lr(s,n)&&(t[s]=e[s])}function uc({transformTemplate:t},e){return g.useMemo(()=>{const n=Gn();return Hn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function cc(t,e){const n=t.style||{},s={};return Qr(s,n,t),Object.assign(s,uc(t,e)),s}function fc(t,e){const n={},s=cc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const to=()=>({...Gn(),attrs:{}});function hc(t,e,n,s){const i=g.useMemo(()=>{const o=to();return kr(o,e,Fr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Qr(o,t.style,t),i.style={...o,...i.style}}return i}const dc=["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 Xn(t){return typeof t!="string"||t.includes("-")?!1:!!(dc.indexOf(t)>-1||/[A-Z]/u.test(t))}function pc(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Xn(t)?hc:fc)(e,s,i,t),c=oc(e,typeof t=="string",o),u=t!==g.Fragment?{...c,...l,ref:n}:{},{children:f}=e,h=g.useMemo(()=>z(f)?f.get():f,[f]);return g.createElement(t,{...u,children:h})}function mc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:gc(n,s,i,t),renderState:e()}}function gc(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=he(o[h]);let{initial:r,animate:a}=t;const l=Ve(t),c=br(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const f=u?a:r;if(f&&typeof f!="boolean"&&!Ae(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const m=Bn(t,h[p]);if(m){const{transitionEnd:y,transition:w,...T}=m;for(const P in T){let v=T[P];if(Array.isArray(v)){const V=u?v.length-1:0;v=v[V]}v!==null&&(i[P]=v)}for(const P in y)i[P]=y[P]}}}return i}const eo=t=>(e,n)=>{const s=g.useContext(Ce),i=g.useContext(Pe),o=()=>mc(t,e,s,i);return n?o():mt(o)},yc=eo({scrapeMotionValuesFromProps:zn,createRenderState:Gn}),vc=eo({scrapeMotionValuesFromProps:Br,createRenderState:to}),xc=Symbol.for("motionComponentSymbol");function Tc(t,e,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const no=g.createContext({});function Nt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function wc(t,e,n,s,i,o){const{visualElement:r}=g.useContext(Ce),a=g.useContext(qr),l=g.useContext(Pe),c=g.useContext(te).reducedMotion,u=g.useRef(null);s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:o}));const f=u.current,h=g.useContext(no);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Sc(u.current,n,i,h);const p=g.useRef(!1);g.useInsertionEffect(()=>{f&&p.current&&f.update(n,l)});const m=n[ur],y=g.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Se(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),g.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),y.current=!1),f.enteringChildren=void 0)}),f}function Sc(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:so(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Nt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function so(t){if(t)return t.options.allowProjection!==!1?t.projection:so(t.parent)}function We(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&sc(s);const o=n?n==="svg":Xn(t),r=o?vc:yc;function a(c,u){let f;const h={...g.useContext(te),...c,layoutId:Pc(c)},{isStatic:p}=h,m=lc(c),y=r(c,p);if(!p&&Ai){bc();const w=Ac(h);f=w.MeasureLayout,m.visualElement=wc(t,y,h,i,w.ProjectionNode,o)}return ut.jsxs(Ce.Provider,{value:m,children:[f&&m.visualElement?ut.jsx(f,{visualElement:m.visualElement,...h}):null,pc(t,c,Tc(y,m.visualElement,u),y,p,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=g.forwardRef(a);return l[xc]=t,l}function Pc({layoutId:t}){const e=g.useContext(yn).id;return e&&t!==void 0?e+"-"+t:t}function bc(t,e){g.useContext(qr).strict}function Ac(t){const e=Zr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Vc(t,e){if(typeof Proxy>"u")return We;const n=new Map,s=(o,r)=>We(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,We(r,void 0,t,e)),n.get(r))})}const Cc=(t,e)=>e.isSVG??Xn(t)?new ru(e):new Ql(e,{allowProjection:t!==g.Fragment});class Ec extends yt{constructor(e){super(e),e.animationState||(e.animationState=cu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ae(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Mc=0;class Rc extends yt{constructor(){super(...arguments),this.id=Mc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Dc={animation:{Feature:Ec},exit:{Feature:Rc}};function ee(t){return{point:{x:t.pageX,y:t.pageY}}}const Lc=t=>e=>Wn(e)&&t(e,ee(e));function Ht(t,e,n,s){return qt(t,e,Lc(n),s)}const io=({current:t})=>t?t.ownerDocument.defaultView:null,ai=(t,e)=>Math.abs(t-e);function kc(t,e){const n=ai(t.x,e.x),s=ai(t.y,e.y);return Math.sqrt(n**2+s**2)}const li=new Set(["auto","scroll"]);class ro{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=$e(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=kc(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:w}=p,{timestamp:T}=H;this.history.push({...w,timestamp:T});const{onStart:P,onMove:v}=this.handlers;m||(P&&P(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Ue(m,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:y,onSessionEnd:w,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=$e(p.type==="pointercancel"?this.lastMoveEventInfo:Ue(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,P),w&&w(p,P)},!Wn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=ee(e),c=Ue(l,this.transformPagePoint),{point:u}=c,{timestamp:f}=H;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,$e(c,this.history)),this.removeListeners=Zt(Ht(this.contextWindow,"pointermove",this.handlePointerMove),Ht(this.contextWindow,"pointerup",this.handlePointerUp),Ht(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(li.has(s.overflowX)||li.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),D.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rt(this.updatePoint)}}function Ue(t,e){return e?{point:e(t.point)}:t}function ui(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $e({point:t},e){return{point:t,delta:ui(t,oo(e)),offset:ui(t,Ic(e)),velocity:Fc(e,.1)}}function Ic(t){return t[0]}function oo(t){return t[t.length-1]}function Fc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=oo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ct(e)));)n--;if(!s)return{x:0,y:0};const o=Q(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Bc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?O(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?O(n,t,s.max):Math.min(t,n)),t}function ci(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Oc(t,{top:e,left:n,bottom:s,right:i}){return{x:ci(t.x,n,i),y:ci(t.y,e,s)}}function fi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function jc(t,e){return{x:fi(t.x,e.x),y:fi(t.y,e.y)}}function _c(t,e){let n=.5;const s=Y(t),i=Y(e);return i>s?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),it(0,1,n)}function Nc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const pn=.35;function Wc(t=pn){return t===!1?t=0:t===!0&&(t=pn),{x:hi(t,"left","right"),y:hi(t,"top","bottom")}}function hi(t,e,n){return{min:di(t,e),max:di(t,n)}}function di(t,e){return typeof t=="number"?t:t[e]||0}const Uc=new WeakMap;class $c{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n?(this.stopAnimation(),this.snapToCursor(ee(f).point)):this.pauseAnimation()},r=(f,h)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:y}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xl(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(T=>{let P=this.getAxisMotionValue(T).get()||0;if(ot.test(P)){const{projection:v}=this.visualElement;if(v&&v.layout){const V=v.layout.layoutBox[T];V&&(P=Y(V)*(parseFloat(P)/100))}}this.originPoint[T]=P}),y&&D.postRender(()=>y(f,h)),an(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=h;if(m&&this.currentDirection===null){this.currentDirection=Kc(T),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),w&&w(f,h)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>J(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ro(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:io(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&D.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!re(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Bc(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Nt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Oc(s.layoutBox,e):this.constraints=!1,this.elastic=Wc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&J(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Nc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Nt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Gl(s,i.root,this.visualElement.getTransformPagePoint());let r=jc(i.layout.layoutBox,o);if(n){const a=n(Kl(r));this.hasMutatedConstraints=!!a,a&&(r=Cr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=J(u=>{if(!re(u,n,this.currentDirection))return;let f=l&&l[u]||{};r&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return an(this.visualElement,e),s.start(Fn(e,s,0,n,this.visualElement,!1))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){J(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:s}=this.getProps();if(!re(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-O(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Nt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};J(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=_c({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),J(r=>{if(!re(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(O(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Uc.set(this.visualElement,this);const e=this.visualElement.current,n=Ht(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps(),f=l.target,h=f!==e&&Tr(f);c&&u&&!h&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Nt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const r=qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(J(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=pn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function re(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Kc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Hc extends yt{constructor(e){super(e),this.removeGroupControls=q,this.removeListeners=q,this.controls=new $c(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.endPanSession()}}const pi=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class zc extends yt{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(e){this.session=new ro(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:io(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:pi(e),onStart:pi(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Ht(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ke=!1;class Gc extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ke&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),de.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Ke=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Nn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ke=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ao(t){const[e,n]=Yr(),s=g.useContext(yn);return ut.jsx(Gc,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(no),isPresent:e,safeToRemove:n})}const Xc={pan:{Feature:zc},drag:{Feature:Hc,ProjectionNode:Xr,MeasureLayout:ao}};function mi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,ee(e)))}class Yc extends yt{mount(){const{current:e}=this.node;e&&(this.unmount=Tl(e,(n,s)=>(mi(this.node,s,"Start"),i=>mi(this.node,i,"End"))))}unmount(){}}class qc extends yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Zt(qt(this.node.current,"focus",()=>this.onFocus()),qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&D.postRender(()=>o(e,ee(e)))}class Zc extends yt{mount(){const{current:e}=this.node;e&&(this.unmount=Pl(e,(n,s)=>(gi(this.node,s,"Start"),(i,{success:o})=>gi(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mn=new WeakMap,He=new WeakMap,Jc=t=>{const e=mn.get(t.target);e&&e(t)}
9,Qc=t=>{t.forEach(Jc)};function tf({root:t,...e}){const n=t||document;He.has(n)||He.set(n,{});const s=He.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Qc,{root:t,...e})),s[i]}function ef(t,e,n){const s=tf(e);return mn.set(t,n),s.observe(t),()=>{mn.delete(t),s.unobserve(t)}}const nf={some:0,all:1};class sf extends yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:nf[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return ef(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(rf(e,n))&&this.startObserver()}unmount(){}}function rf({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const of={inView:{Feature:sf},tap:{Feature:Zc},focus:{Feature:qc},hover:{Feature:Yc}},af={layout:{ProjectionNode:Xr,MeasureLayout:ao}},lf={...Dc,...of,...Xc,...af},Ff=Vc(lf,Cc),uf=50,yi=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),cf=()=>({time:0,x:yi(),y:yi()}),ff={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function vi(t,e,n,s){const i=n[e],{length:o,position:r}=ff[e],a=i.current,l=n.time;i.current=t[`scroll${r}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Lt(0,i.scrollLength,i.current);const c=s-l;i.velocity=c>uf?0:Sn(i.current-a,c)}function hf(t,e,n){vi(t,"x",e,n),vi(t,"y",e,n),e.time=n}function df(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(ye(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const gn={start:0,center:.5,end:1};function xi(t,e,n=0){let s=0;if(t in gn&&(t=gn[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const pf=[0,0];function mf(t,e,n,s){let i=Array.isArray(t)?t:pf,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,gn[t]?t:"0"]),o=xi(i[0],n,s),r=xi(i[1],e),o-r}const gf={All:[[0,0],[1,1]]},yf={x:0,y:0};function vf(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function xf(t,e,n){const{offset:s=gf.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?df(i,t):yf,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:vf(i),c={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let u=!e[o].interpolate;const f=s.length;for(let h=0;h<f;h++){const p=mf(s[h],c[r],l[r],a[o]);!u&&p!==e[o].interpolatorOffsets[h]&&(u=!0),e[o].offset[h]=p}u&&(e[o].interpolate=Rn(e[o].offset,Zi(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=it(0,1,e[o
9].interpolate(e[o].current))}function Tf(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function wf(t,e,n,s={}){return{measure:i=>{Tf(t,s.target,n),hf(t,n,i),(s.offset||s.target)&&xf(t,n,s)},notify:()=>e(n)}}const jt=new WeakMap,Ti=new WeakMap,ze=new WeakMap,wi=t=>t===document.scrollingElement?window:t;function lo(t,{container:e=document.scrollingElement,...n}={}){if(!e)return q;let s=ze.get(e);s||(s=new Set,ze.set(e,s));const i=cf(),o=wf(e,t,i,n);if(s.add(o),!jt.has(e)){const a=()=>{for(const f of s)f.measure(H.timestamp);D.preUpdate(l)},l=()=>{for(const f of s)f.notify()},c=()=>D.read(a);jt.set(e,c);const u=wi(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&Ti.set(e,Ll(e,c)),u.addEventListener("scroll",c,{passive:!0}),c()}const r=jt.get(e);return D.read(r,!1,!0),()=>{rt(r);const a=ze.get(e);if(!a||(a.delete(o),a.size))return;const l=jt.get(e);jt.delete(e),l&&(wi(e).removeEventListener("scroll",l),Ti.get(e)?.(),window.removeEventListener("resize",l))}}const Si=new Map;function Sf(t){const e={value:0},n=lo(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function uo({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const i=Si.get(e)??new Map;Si.set(e,i);const o=n.target??"self",r=i.get(o)??{},a=s+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&er()?new ScrollTimeline({source:e,axis:s}):Sf({container:e,...n})),r[a]}function Pf(t,e){const n=uo(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:s=>(s.pause(),Sr(i=>{s.time=s.iterationDuration*i},n))})}function bf(t){return t.length===2}function Af(t,e){return bf(t)?lo(n=>{t(n[e.axis].progress,n)},e):Sr(t,uo(e))}function Vf(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return q;const i={axis:e,container:n,...s};return typeof t=="function"?Af(t,i):Pf(t,i)}const Cf=()=>({scrollX:st(0),scrollY:st(0),scrollXProgress:st(0),scrollYProgress:st(0)}),oe=t=>t?!t.current:!1;function Bf({container:t,target:e,...n}={}){const s=mt(Cf),i=g.useRef(null),o=g.useRef(!1),r=g.useCallback(()=>(i.current=Vf((a,{x:l,y:c})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(c.current),s.scrollYProgress.set(c.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{i.current?.()}),[t,e,JSON.stringify(n.offset)]);return Se(()=>{if(o.current=!1,oe(t)||oe(e)){o.current=!0;return}else return r()},[r]),g.useEffect(()=>{if(o.current)return zt(!oe(t)),zt(!oe(e)),r()},[r]),s}function co(t){const e=mt(()=>st(t)),{isStatic:n}=g.useContext(te);if(n){const[,s]=g.useState(t);g.useEffect(()=>e.on("change",s),[])}return e}function fo(t,e){const n=co(e()),s=()=>n.set(e());return s(),Se(()=>{const i=()=>D.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),rt(s)}}),n}function Ef(t){$t.current=[],t();const e=fo($t.current,t);return $t.current=void 0,e}function ho(t,e,n,s){if(typeof t=="function")return Ef(t);if(n!==void 0&&!Array.isArray(n)&&typeof e!="function")return Mf(t,e,n,s);const r=typeof e=="function"?e:Il(e,n,s);return Array.isArray(t)?Pi(t,r):Pi([t],([a])=>r(a))}function Pi(t,e){const n=mt(()=>[]);return fo(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function Mf(t,e,n,s){const i=mt(()=>Object.keys(n)),o=mt(()=>({}));for(const r of i)o[r]=ho(t,e,n[r],s);return o}function Of(t,e={}){const{isStatic:n}=g.useContext(te),s=()=>z(t)?t.get():t;if(n)return ho(s);const i=co(s());return g.useInsertionEffect(()=>Fl(i,t,e),[i,JSON.stringify(e)]),i}const Rf={some:0,all:1};function Df(t,e,{root:n,margin:s,amount:i="some"}={}){const o=_n(t),r=new WeakMap,a=c=>{c.forEach(u=>{const f=r.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const h=e(u.target,u);typeof h=="function"?r.set(u.target,h):l.unobserve(u.target)}else typeof f=="function"&&(f(u),r.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Rf[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function jf(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=g.useState(o);return g.useEffect(()=>{if(!t.current||i&&r)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:s};return Df(t.current,l,c)},[e,t,n,i,s]),r}export{If as A,xo as R,bi as a,Lf as b,Of as c,ho as d,jf as e,mo as g,ut as j,Ff as m,g as r,Bf as u};
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.