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