libre-webui 0.34.1 → 0.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/package.json +3 -3
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/artifact-runtime/framer-motion.js +3 -3
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
- package/frontend/dist/assets/{index-CxFIHoRc.css → index-C59a0tht.css} +1 -1
- package/frontend/dist/assets/index-Cyi10ekV.js +43 -0
- package/frontend/dist/assets/{markdown-math-Ddr6Z9Sf.css → markdown-math-B3MBJsZb.css} +1 -1
- package/frontend/dist/index.html +21 -21
- package/frontend/dist/js/{ArtifactContainer-Cdrv0kJM.js → ArtifactContainer-CQjqR9G1.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-BcXPfD-W.js → ArtifactDemoPage-DbbqglMU.js} +1 -1
- package/frontend/dist/js/{ArtifactSandboxFrame-5qM5QELi.js → ArtifactSandboxFrame-DI2b9BW5.js} +1 -1
- package/frontend/dist/js/{ArtifactSlideOutPanel-tuGsj_HW.js → ArtifactSlideOutPanel-B_UX92CK.js} +1 -1
- package/frontend/dist/js/{AutomationModal-DL9kNzgL.js → AutomationModal-CNiy1Dxm.js} +1 -1
- package/frontend/dist/js/{AutomationsPage-BMtR7wCN.js → AutomationsPage-CeAsldk_.js} +1 -1
- package/frontend/dist/js/{AvatarUpload-DrfSzzOZ.js → AvatarUpload-xCWQm3_w.js} +1 -1
- package/frontend/dist/js/CalendarPage-Cwk0X00z.js +1 -0
- package/frontend/dist/js/ChannelsPage-BG3n4ElV.js +1 -0
- package/frontend/dist/js/ChatPage-wSRfAOeh.js +14 -0
- package/frontend/dist/js/{ConnectModels-flyZgito.js → ConnectModels-D7ZTGihA.js} +1 -1
- package/frontend/dist/js/{EvaluationsPage-DUntWRVo.js → EvaluationsPage-C795TI_6.js} +2 -2
- package/frontend/dist/js/{FirstTimeSetup-CMQ000Hh.js → FirstTimeSetup-C4C5GLjW.js} +1 -1
- package/frontend/dist/js/{GalleryPage-DNSo3Q0p.js → GalleryPage-DVWl3LaC.js} +1 -1
- package/frontend/dist/js/{HomePage-BOXsuk3g.js → HomePage-BljB9ZMN.js} +1 -1
- package/frontend/dist/js/{LanguageSwitcher-BIrE0C-N.js → LanguageSwitcher-BuS3i6u5.js} +1 -1
- package/frontend/dist/js/{LibreClawPage-D97-90n6.js → LibreClawPage-OD6iZtiy.js} +1 -1
- package/frontend/dist/js/{ModelManagerModals-DzEVkCuT.js → ModelManagerModals-DdL3LeGl.js} +1 -1
- package/frontend/dist/js/NotesPage-rqL0zS8z.js +3 -0
- package/frontend/dist/js/{PasswordStrengthMeter-DLQ5jaO_.js → PasswordStrengthMeter-H0Os6XbX.js} +1 -1
- package/frontend/dist/js/{PersonasPage-D8-4PyoM.js → PersonasPage-Babix8IA.js} +1 -1
- package/frontend/dist/js/{PluginUsagePage-CHcweo11.js → PluginUsagePage-CudDkMxy.js} +1 -1
- package/frontend/dist/js/RichMessageContent-B-U0EcyW.js +1 -0
- package/frontend/dist/js/{RichMessageContent-yWLHf4YS.js → RichMessageContent-CcKn_kcQ.js} +2 -2
- package/frontend/dist/js/SettingsModal-CXU60RIf.js +19 -0
- package/frontend/dist/js/{ShareDialog-J5zbwIWY.js → ShareDialog-CnU4ptx7.js} +1 -1
- package/frontend/dist/js/{SystemPage-CEjZpR5I.js → SystemPage-BzpTjdQY.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-DdpcN4-Q.js → UserManagementPage-BHEMaK5a.js} +1 -1
- package/frontend/dist/js/{UserManagementPanel-Dhwk4I0s.js → UserManagementPanel-pbtLqF8X.js} +1 -1
- package/frontend/dist/js/{WhatsNewModal-5lCndkFc.js → WhatsNewModal-TuDrBWKj.js} +1 -1
- package/frontend/dist/js/WorkPage-DCeqm0BN.js +7 -0
- package/frontend/dist/js/api-BIVGtaZy.js +1 -0
- package/frontend/dist/js/{api-DEOxp9DN.js → api-CgnEj5Jc.js} +1 -1
- package/frontend/dist/js/{appNavigation-DToyRu19.js → appNavigation-DySHcEGS.js} +1 -1
- package/frontend/dist/js/{appStore-Bsxed1km.js → appStore-DrTsJPfh.js} +2 -2
- package/frontend/dist/js/appVersion-CAidQlBP.js +1 -0
- package/frontend/dist/js/{authStore-8w9Idb5o.js → authStore-CieFdk4S.js} +3 -3
- package/frontend/dist/js/authStore-GaOHAAsM.js +1 -0
- package/frontend/dist/js/{chatStore-lyGhYu24.js → chatStore-BvZkd8Un.js} +3 -3
- package/frontend/dist/js/{composerStyles-DqJg-2vE.js → composerStyles-BjJm_BgC.js} +1 -1
- package/frontend/dist/js/{config-B5SBQwEe.js → config-D7WLbWrW.js} +1 -1
- package/frontend/dist/js/{evaluationsApi-BvkmhMgQ.js → evaluationsApi-Dn-WNzzH.js} +1 -1
- package/frontend/dist/js/{i18next-ChipS_AK.js → i18next-Dq_6N9uy.js} +1 -1
- package/frontend/dist/js/markdownMath-BW8RNkEl.js +1 -0
- package/frontend/dist/js/{messageCodeStyles-DchDafYE.js → messageCodeStyles-C0pbLr0L.js} +2 -2
- package/frontend/dist/js/router-vendor-Epc3_KZ_.js +1 -0
- package/frontend/dist/js/{teamEventStream-C0_UAzCG.js → teamEventStream-CI_GSbae.js} +1 -1
- package/frontend/dist/js/{ui-BQojEu4t.js → ui-CgokQU6I.js} +2 -2
- package/frontend/dist/js/ui-vendor-Dt9hfsGD.js +177 -0
- package/frontend/dist/js/{useChat-CDllZR7C.js → useChat-DIGuMg5j.js} +1 -1
- package/frontend/dist/js/{workApi-0L8fBGq1.js → workApi-C-WfyZSs.js} +2 -2
- package/frontend/dist/js/workApi-CApikuye.js +1 -0
- package/package.json +5 -1
- package/frontend/dist/assets/index-Bv773ECu.js +0 -17
- package/frontend/dist/js/CalendarPage-BBkLlXa5.js +0 -1
- package/frontend/dist/js/ChannelsPage-C2KWU3sZ.js +0 -1
- package/frontend/dist/js/ChatPage-CWsAjCPP.js +0 -14
- package/frontend/dist/js/NotesPage-VBGqE4aV.js +0 -3
- package/frontend/dist/js/RichMessageContent-D7wqrY68.js +0 -1
- package/frontend/dist/js/SettingsModal-CxVt1ObR.js +0 -19
- package/frontend/dist/js/WorkPage-c8xOdYyy.js +0 -7
- package/frontend/dist/js/api-CHEuZtwG.js +0 -1
- package/frontend/dist/js/appVersion-CgCvuf4s.js +0 -1
- package/frontend/dist/js/authStore-DwmcyHDN.js +0 -1
- package/frontend/dist/js/markdownMath-CoDj1i7z.js +0 -1
- package/frontend/dist/js/router-vendor-CMbYTGdh.js +0 -1
- package/frontend/dist/js/ui-vendor-BvD5yGW1.js +0 -177
- package/frontend/dist/js/workApi-BjDBLsFh.js +0 -1
- /package/frontend/dist/js/{markdown-math-Dg-WB9ui.js → markdown-math-gtdBxaM5.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:h,__COMPILER_RUNTIME:g,act:_,cache:v,cacheSignal:y,captureOwnerStack:b,cloneElement:x,createContext:S,createElement:C,createRef:w,forwardRef:T,isValidElement:ee,lazy:te,memo:ne,startTransition:re,unstable_useCacheRefresh:ie,use:ae,useActionState:oe,useCallback:se,useContext:E,useDebugValue:ce,useDeferredValue:le,useEffect:D,useEffectEvent:ue,useId:de,useImperativeHandle:fe,useInsertionEffect:pe,useLayoutEffect:me,useMemo:he,useOptimistic:ge,useReducer:_e,useRef:O,useState:k,useSyncExternalStore:ve,useTransition:ye,version:be}=o,xe=S({});function A(e){let t=O(null);return t.current===null&&(t.current=e()),t.current}var Se=typeof window<`u`,Ce=Se?me:D,we=S(null);function Te(e,t){e.indexOf(t)===-1&&e.push(t)}function Ee(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function De([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var j=(e,t,n)=>n>t?t:n<e?e:n;function Oe(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var ke=()=>{},Ae=()=>{},M={},je=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Me=e=>typeof e==`object`&&!!e,Ne=e=>/^0[^.\s]+$/u.test(e);function Pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var N=e=>e,Fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ie=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Le=class{constructor(){this.subscriptions=[]}add(e){return Te(this.subscriptions,e),()=>Ee(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},P=e=>e*1e3,F=e=>e/1e3,Re=(e,t)=>t?1e3/t*e:0,ze=new Set;function Be(e){return ze.has(e)}function Ve(e,t,n){e||ze.has(t)||(console.warn(Oe(t,n)),ze.add(t))}var He=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ue=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,We=1e-7,Ge=12;function Ke(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ue(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>We&&++s<Ge);return o}function qe(e,t,n,r){if(e===t&&n===r)return N;let i=t=>Ke(t,0,1,e,n);return e=>e===0||e===1?e:Ue(i(e),t,r)}var Je=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ye=e=>t=>1-e(1-t),Xe=qe(.33,1.53,.69,.99),Ze=Ye(Xe),Qe=Je(Ze),$e=e=>e>=1?1:(e*=2)<1?.5*Ze(e):.5*(2-2**(-10*(e-1))),et=e=>1-Math.sin(Math.acos(e)),tt=Ye(et),nt=Je(et),rt=qe(.42,0,1,1),it=qe(0,0,.58,1),at=qe(.42,0,.58,1);function ot(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return j(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var st=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ct(e,t){return st(e)?e[He(0,e.length,t)]:e}var lt=e=>Array.isArray(e)&&typeof e[0]==`number`,ut={linear:N,easeIn:rt,easeInOut:at,easeOut:it,circIn:et,circInOut:nt,circOut:tt,backIn:Ze,backInOut:Qe,backOut:Xe,anticipate:$e},dt=e=>typeof e==`string`,ft=e=>{if(lt(e)){e.length;let[t,n,r,i]=e;return qe(t,n,r,i)}return dt(e)?(ut[e],`${e}`,ut[e]):e},pt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function mt(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ht=40;function gt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=pt.reduce((e,t)=>(e[t]=mt(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=M.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ht),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:pt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<pt.length;t++)o[pt[t]].cancel(e)},state:i,steps:o}}var{schedule:I,cancel:L,state:R,steps:_t}=gt(typeof requestAnimationFrame<`u`?requestAnimationFrame:N,!0),vt;function yt(){vt=void 0}var z={now:()=>(vt===void 0&&z.set(R.isProcessing||M.useManualTiming?R.timestamp:performance.now()),vt),set:e=>{vt=e,queueMicrotask(yt)}},bt=e=>t=>typeof t==`string`&&t.startsWith(e),xt=bt(`--`),St=bt(`var(--`),Ct=e=>St(e)?wt.test(e.split(`/*`)[0].trim()):!1,wt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Et={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Dt={...Et,transform:e=>j(0,1,e)},Ot={...Et,default:1},kt=e=>Math.round(e*1e5)/1e5,At=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jt(e){return e==null}var Mt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nt=(e,t)=>n=>!!(typeof n==`string`&&Mt.test(n)&&n.startsWith(e)||t&&!jt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(At);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ft=e=>j(0,255,e),It={...Et,transform:e=>Math.round(Ft(e))},Lt={test:Nt(`rgb`,`red`),parse:Pt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+It.transform(e)+`, `+It.transform(t)+`, `+It.transform(n)+`, `+kt(Dt.transform(r))+`)`};function Rt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var zt={test:Nt(`#`),parse:Rt,transform:Lt.transform},Bt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vt=Bt(`deg`),B=Bt(`%`),V=Bt(`px`),Ht=Bt(`vh`),Ut=Bt(`vw`),Wt={...B,parse:e=>B.parse(e)/100,transform:e=>B.transform(e*100)},Gt={test:Nt(`hsl`,`hue`),parse:Pt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+B.transform(kt(t))+`, `+B.transform(kt(n))+`, `+kt(Dt.transform(r))+`)`},H={test:e=>Lt.test(e)||zt.test(e)||Gt.test(e),parse:e=>Lt.test(e)?Lt.parse(e):Gt.test(e)?Gt.parse(e):zt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Lt.transform(e):Gt.transform(e),getAnimatableNone:e=>{let t=H.parse(e);return t.alpha=0,H.transform(t)}},Kt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qt(e){return isNaN(e)&&typeof e==`string`&&(e.match(At)?.length||0)+(e.match(Kt)?.length||0)>0}var Jt=`number`,Yt=`color`,Xt=`var`,Zt=`var(`,Qt="${}",$t=/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 en(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace($t,e=>(H.test(e)?(r.color.push(a),i.push(Yt),n.push(H.parse(e))):e.startsWith(Zt)?(r.var.push(a),i.push(Xt),n.push(e)):(r.number.push(a),i.push(Jt),n.push(parseFloat(e))),++a,Qt)).split(Qt),indexes:r,types:i}}function tn(e){return en(e).values}function nn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Jt?kt(r[a]):e===Yt?H.transform(r[a]):r[a]}return i}}function rn(e){return nn(en(e))}var an=e=>typeof e==`number`?0:H.test(e)?H.getAnimatableNone(e):e,on=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:an(e);function sn(e){let t=en(e);return nn(t)(t.values.map((e,n)=>on(e,t.split[n])))}var U={test:qt,parse:tn,createTransformer:rn,getAnimatableNone:sn};function cn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ln({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=cn(s,r,e+1/3),a=cn(s,r,e),o=cn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function un(e,t){return n=>n>0?t:e}var W=(e,t,n)=>e+(t-e)*n,dn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fn=[zt,Lt,Gt],pn=e=>fn.find(t=>t.test(e));function mn(e){let t=pn(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Gt&&(n=ln(n)),n}var hn=(e,t)=>{let n=mn(e),r=mn(t);if(!n||!r)return un(e,t);let i={...n};return e=>(i.red=dn(n.red,r.red,e),i.green=dn(n.green,r.green,e),i.blue=dn(n.blue,r.blue,e),i.alpha=W(n.alpha,r.alpha,e),Lt.transform(i))},gn=new Set([`none`,`hidden`]);function _n(e,t){return gn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vn(e,t){return n=>W(e,t,n)}function yn(e){return typeof e==`number`?vn:typeof e==`string`?Ct(e)?un:H.test(e)?hn:Cn:Array.isArray(e)?bn:typeof e==`object`?H.test(e)?hn:xn:un}function bn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Sn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Cn=(e,t)=>{let n=U.createTransformer(t),r=en(e),i=en(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gn.has(e)&&!i.values.length||gn.has(t)&&!r.values.length?_n(e,t):Fe(bn(Sn(r,i),i.values),n):(`${e}${t}`,un(e,t))};function wn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?W(e,t,n):yn(e)(e,t)}var Tn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>I.update(t,e),stop:()=>L(t),now:()=>R.isProcessing?R.timestamp:z.now()}},En=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Dn=2e4;function On(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(On(r),Dn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:F(i)}}var G={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};function An(e,t){return e*Math.sqrt(1-t*t)}var jn=12;function Mn(e,t,n){let r=n;for(let n=1;n<jn;n++)r-=e(r)/t(r);return r}var Nn=.001;function Pn({duration:e=G.duration,bounce:t=G.bounce,velocity:n=G.velocity,mass:r=G.mass}){let i,a;G.maxDuration;let o=1-t;o=j(G.minDamping,G.maxDamping,o),e=j(G.minDuration,G.maxDuration,F(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=An(t,o),c=Math.exp(-i);return Nn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=An(t**2,o);return(-i(t)+Nn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Mn(i,a,s);if(e=P(e),isNaN(c))return{stiffness:G.stiffness,damping:G.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Fn=[`duration`,`bounce`],In=[`stiffness`,`damping`,`mass`];function Ln(e,t){return t.some(t=>e[t]!==void 0)}function Rn(e){let t={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...e};if(!Ln(e,In)&&Ln(e,Fn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:G.mass,stiffness:i,damping:a}}else{let n=Pn({...e,velocity:0});t={...t,...n,mass:G.mass},t.isResolvedFromDuration=!0}}return t}function zn(e=G.visualDuration,t=G.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rn({...n,velocity:-F(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=F(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?G.restSpeed.granular:G.restSpeed.default,i||=v?G.restDelta.granular:G.restDelta.default;let y,b,x,S,C,w;if(h<1)x=An(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>P(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=P(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=P(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(On(T),Dn),t=En(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}zn.applyToOptions=e=>{let t=kn(e,100,zn);return e.ease=t.ease,e.duration=P(t.duration),e.type=`keyframes`,e};var Bn=5;function Vn(e,t,n){let r=Math.max(t-Bn,0);return Re(n-e(r),t-r)}function Hn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=zn({keyframes:[f.value,m(f.value)],velocity:Vn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Un(e,t,n){let r=[],i=n||M.mix||wn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Fe(Array.isArray(t)?t[n]||N:t,a)),r.push(a)}return r}function Wn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Un(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ie(e[r],e[r+1],n);return s[r](i)};return n?t=>l(j(e[0],e[a-1],t)):l}function Gn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ie(0,t,r);e.push(W(n,1,i))}}function Kn(e){let t=[0];return Gn(t,e.length-1),t}function qn(e,t){return e.map(e=>e*t)}function Jn(e,t){return e.map(()=>t||at).splice(0,e.length-1)}function Yn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=st(r)?r.map(ft):ft(r),a={done:!1,value:t[0]},o=Wn(qn(n&&n.length===t.length?n:Kn(t),e),t,{ease:Array.isArray(i)?i:Jn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Xn=e=>e!==null;function Zn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Xn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Qn={decay:Hn,inertia:Hn,tween:Yn,keyframes:Yn,spring:zn};function $n(e){typeof e.type==`string`&&(e.type=Qn[e.type])}var er=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},tr=e=>e/100,nr=class extends er{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==z.now()&&this.tick(z.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;$n(e);let{type:t=Yn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Yn;s!==Yn&&typeof o[0]!=`number`&&(this.mixKeyframes=Fe(tr,wn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=On(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=j(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Hn&&(b.value=Zn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return F(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(this.currentTime)}set time(e){e=P(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Vn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(z.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(z.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function rr(e){return new nr(e)}function ir(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ar=e=>e*180/Math.PI,or=e=>cr(ar(Math.atan2(e[1],e[0]))),sr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:or,rotateZ:or,skewX:e=>ar(Math.atan(e[1])),skewY:e=>ar(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cr=e=>(e%=360,e<0&&(e+=360),e),lr=or,ur=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ur,scaleY:dr,scale:e=>(ur(e)+dr(e))/2,rotateX:e=>cr(ar(Math.atan2(e[6],e[5]))),rotateY:e=>cr(ar(Math.atan2(-e[2],e[0]))),rotateZ:lr,rotate:lr,skewX:e=>ar(Math.atan(e[4])),skewY:e=>ar(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pr(e){return+!!e.includes(`scale`)}function mr(e,t){if(!e||e===`none`)return pr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=fr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sr,i=t}if(!i)return pr(t);let a=r[t],o=i[1].split(`,`).map(gr);return typeof a==`function`?a(o):o[a]}var hr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return mr(n,t)};function gr(e){return parseFloat(e.trim())}var _r=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],vr=new Set([..._r,`pathRotation`]),yr=e=>e===Et||e===V,br=new Set([`x`,`y`,`z`]),xr=_r.filter(e=>!br.has(e));function Sr(e){let t=[];return xr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Cr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>mr(t,`x`),y:(e,{transform:t})=>mr(t,`y`)};Cr.translateX=Cr.x,Cr.translateY=Cr.y;var wr=new Set,Tr=!1,Er=!1,Dr=!1;function Or(){if(Er){let e=Array.from(wr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Sr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Er=!1,Tr=!1,wr.forEach(e=>e.complete(Dr)),wr.clear()}function kr(){wr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Er=!0)})}function Ar(){Dr=!0,kr(),Or(),Dr=!1}var jr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(wr.add(this),Tr||(Tr=!0,I.read(kr),I.resolveKeyframes(Or))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ir(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wr.delete(this)}cancel(){this.state===`scheduled`&&(wr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Mr=e=>e.startsWith(`--`);function Nr(e,t,n){Mr(t)?e.style.setProperty(t,n):e.style[t]=n}var Pr={};function Fr(e,t){let n=Pe(e);return()=>Pr[t]??n()}var Ir=Fr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Lr=Fr(()=>window.ViewTimeline!==void 0,`viewTimeline`),Rr=Fr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),zr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Br={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:zr([0,.65,.55,1]),circOut:zr([.55,0,1,.45]),backIn:zr([.31,.01,.66,-.59]),backOut:zr([.33,1.53,.69,.99])};function Vr(e,t){if(e)return typeof e==`function`?Rr()?En(e,t):`ease-out`:lt(e)?zr(e):Array.isArray(e)?e.map(e=>Vr(e,t)||Br.easeOut):Br[e]}function Hr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Vr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ur(e){return typeof e==`function`&&`applyToOptions`in e}function Wr({type:e,...t}){return Ur(e)&&Rr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Gr=class extends er{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Wr(e);this.animation=Hr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Zn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Nr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return F(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=P(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ir()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),N):r(this)}},Kr={anticipate:$e,backInOut:Qe,circInOut:nt};function qr(e){return e in Kr}function Jr(e){typeof e.ease==`string`&&qr(e.ease)&&(e.ease=Kr[e.ease])}var Yr=10,Xr=class extends Gr{constructor(e){Jr(e),$n(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new nr({...a,autoplay:!1}),s=Math.max(Yr,z.now()-this.startTime),c=j(0,Yr,s-Yr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Nr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Zr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(U.test(e)||e===`0`)&&!e.startsWith(`url(`));function Qr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $r(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Zr(i,t),s=Zr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Qr(e)||(n===`spring`||Ur(n))&&r}function ei(e){e.duration=0,e.type=`keyframes`}var ti=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ni=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ri(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ni.test(e[t]))return!0;return!1}var ii=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ai=Pe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function oi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ai()&&n&&(ti.has(n)||ii.has(n)&&ri(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var si=40,ci=class extends er{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||jr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=z.now();let u=!0;$r(e,i,a,o)||(u=!1,(M.instantAnimations||!s)&&l?.(Zn(e,n,t)),e[0]=e[e.length-1],ei(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>si?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&oi(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Xr({...d,element:p})}catch{m=new nr(d)}else m=new nr(d);m.finished.then(()=>{this.notifyFinished()}).catch(N),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ar()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},li=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ui(this.animations,`duration`)}get iterationDuration(){return ui(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ui(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var di=class extends li{then(e,t){return this.finished.finally(e).then(()=>{})}},fi=class extends Gr{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},pi=new WeakMap,mi=(e,t=``)=>`${e}:${t}`;function hi(e){let t=pi.get(e);return t||(t=new Map,pi.set(e,t)),t}function gi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var _i=30,vi=e=>!isNaN(parseFloat(e)),yi={current:void 0},bi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=z.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=vi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Le);let n=this.events[e].add(t);return e===`change`?()=>{n(),I.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return yi.current&&yi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>_i)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,_i);return Re(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function K(e,t){return new bi(e,t)}function xi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Si(e,t){let n=e?.[t]??e?.default??e;return n===e?n:xi(n,e)}var Ci={type:`spring`,stiffness:500,damping:25,restSpeed:10},wi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ti={type:`keyframes`,duration:.8},Ei={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Di=(e,{keyframes:t})=>t.length>2?Ti:vr.has(e)?e.startsWith(`scale`)?wi(t[1]):Ci:Ei,Oi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ki(e){for(let t in e)if(!Oi.has(t))return!0;return!1}var Ai=(e,t,n,r={},i,a)=>o=>{let s=Si(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=P(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ki(s)||Object.assign(u,Di(e,u)),u.duration&&=P(u.duration),u.repeatDelay&&=P(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ei(u),u.delay===0&&(d=!0)),(M.instantAnimations||M.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ei(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Zn(u.keyframes,s);if(e!==void 0){I.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new nr(u):new ci(u)},ji=20;function Mi(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Ni(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Pi(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function Fi({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Pi(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Pi(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Ni(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Ni(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?He(-180,180,f-d):0;return e=>{let t={x:Mi(e,r.x,u.x,o.x),y:Mi(e,r.y,u.y,o.y)};return i&&(t.rotate=He(-180,180,Ni(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Ii(e={}){let t=Fi(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<ji))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...Si(r||{},`x`)};delete g.path;let _=K(0);_.start(Ai(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var Li=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ri(e){let t=Li.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zi(e,t,n=1){`${e}`;let[r,i]=Ri(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return je(e)?parseFloat(e):e}return Ct(i)?zi(i,t,n+1):i}function Bi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vi(e,t,n,r){if(typeof t==`function`){let[i,a]=Bi(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Bi(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hi(e,t,n){let r=e.getProps();return Vi(r,t,n===void 0?r.custom:n,e)}var Ui=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,..._r]),Wi=e=>Array.isArray(e);function Gi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,K(n))}function Ki(e){return Wi(e)?e[e.length-1]||0:e}function qi(e,t){let{transitionEnd:n={},transition:r={},...i}=Hi(e,t)||{};i={...i,...n};for(let t in i)Gi(e,t,Ki(i[t]))}var q=e=>!!(e&&e.getVelocity);function Ji(e){return!!(q(e)&&e.add)}function Yi(e,t){let n=e.getValue(`willChange`);if(Ji(n))return n.add(t);if(!n&&M.WillChange){let n=new M.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zi=`framerAppearId`,Qi=`data-`+Xi(Zi);function $i(e){return e.props[Qi]}var ea=typeof window<`u`;function ta({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function na(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?xi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ta(f,t))continue;let o={delay:n,...Si(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){I.update(()=>r.set(i));continue}let p=!1;if(ea&&window.MotionHandoffAnimation){let n=$i(e);if(n){let e=window.MotionHandoffAnimation(n,t,I);e!==null&&(o.startTime=e,p=!0)}}Yi(e,t);let m=l??e.shouldReduceMotion;r.start(Ai(t,r,i,m&&Ui.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>I.update(()=>{o&&qi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ra(e,t,n={}){let r=Hi(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(na(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ia(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function ia(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ra(c,t,{...o,delay:n+(typeof r==`function`?0:r)+gi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function aa(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ra(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ra(e,t,n);else{let i=typeof t==`function`?Hi(e,t,n.custom):t;r=Promise.all(na(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var oa={test:e=>e===`auto`,parse:e=>e},sa=e=>t=>t.test(e),ca=[Et,V,B,Vt,Ut,Ht,oa],la=e=>ca.find(sa(e));function ua(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ne(e)}var da=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function fa(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(At)||[];if(!r)return e;let i=n.replace(r,``),a=+!!da.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var pa=/\b([a-z-]*)\(.*?\)/gu,ma={...U,getAnimatableNone:e=>{let t=e.match(pa);return t?t.map(fa).join(` `):e}},ha={...U,getAnimatableNone:e=>{let t=U.parse(e);return U.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ga={...Et,transform:Math.round},_a={rotate:Vt,pathRotation:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:Ot,scaleX:Ot,scaleY:Ot,scaleZ:Ot,skew:Vt,skewX:Vt,skewY:Vt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Dt,originX:Wt,originY:Wt,originZ:V},va={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,..._a,zIndex:ga,fillOpacity:Dt,strokeOpacity:Dt,numOctaves:ga},ya={...va,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ma,WebkitFilter:ma,mask:ha,WebkitMask:ha},ba=e=>ya[e],xa=new Set([ma,ha]);function Sa(e,t){let n=ba(e);return xa.has(n)||(n=U),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ca=new Set([`auto`,`none`,`0`]);function wa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ca.has(t)&&en(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Sa(n,i)}var Ta=class extends jr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ct(r))){let i=zi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ui.has(n)||e.length!==2)return;let[r,i]=e,a=la(r),o=la(i);if(Tt(r)!==Tt(i)&&Cr[n]){this.needsMeasurement=!0;return}if(a!==o){if(yr(a)&&yr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Cr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ua(e[t]))&&n.push(t);n.length&&wa(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Cr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ea=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Da=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Ea,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function Oa(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Da.has(t)&&(e[n]=e[n]+`px`)}function ka(e){return!!(typeof e==`function`&&Rr()||!e||typeof e==`string`&&(e in Br||Rr())||lt(e)||Array.isArray(e)&&e.every(ka))}var Aa=Pe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0});function ja(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Ma(e){return(t,n)=>{let r=ja(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}}}var Na=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Pa=class{constructor(){this.latest={},this.values=new Map}set(e,t,n,r,i=!0){let a=this.values.get(e);a&&a.onRemove();let o=()=>{let r=t.get();i?this.latest[e]=Na(r,va[e]):this.latest[e]=r,n&&I.render(n)};o();let s=t.on(`change`,o);r&&t.addDependent(r);let c=()=>{s(),n&&L(n),this.values.delete(e),r&&t.removeDependent(r)};return this.values.set(e,{value:t,onRemove:c}),c}get(e){return this.values.get(e)?.value}};function Fa(e){let t=new WeakMap;return(n,r)=>{let i=t.get(n)??new Pa;t.set(n,i);let a=[];for(let t in r){let o=r[t],s=e(n,i,t,o);a.push(s)}return()=>{for(let e of a)e()}}}function Ia(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var La=(e,t,n,r)=>{let i=Ia(e,n),a=i?n:n.startsWith(`data`)||n.startsWith(`aria`)?Xi(n):n,o=i?()=>{e[a]=t.latest[n]}:()=>{let r=t.latest[n];r==null?e.removeAttribute(a):e.setAttribute(a,String(r))};return t.set(n,r,o)},Ra=Ma(Fa(La)),za=Fa((e,t,n,r)=>t.set(n,r,()=>{e[n]=t.latest[n]},void 0,!1));function Ba(e){return Me(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var Va={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`};function Ha(e){let t=``,n=!0;for(let r=0;r<_r.length;r++){let i=_r[r],a=e.latest[i];if(a===void 0)continue;let o=!0;if(typeof a==`number`)o=a===+!!i.startsWith(`scale`);else{let e=parseFloat(a);o=i.startsWith(`scale`)?e===1:e===0}if(!o){n=!1;let e=Va[i]||i;t+=`${e}(${a}) `}}let r=e.latest.pathRotation;return r&&(n=!1,t+=`rotate(${typeof r==`number`?`${r}deg`:r}) `),n?`none`:t.trim()}var Ua=new Set([`originX`,`originY`,`originZ`]),Wa=(e,t,n,r)=>{let i,a;return vr.has(n)?(t.get(`transform`)||(!Ba(e)&&!t.get(`transformBox`)&&Wa(e,t,`transformBox`,new bi(`fill-box`)),t.set(`transform`,new bi(`none`),()=>{e.style.transform=Ha(t)})),a=t.get(`transform`)):Ua.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new bi(``),()=>{let n=t.latest.originX??`50%`,r=t.latest.originY??`50%`,i=t.latest.originZ??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=Mr(n)?()=>{e.style.setProperty(n,t.latest[n])}:()=>{e.style[n]=t.latest[n]},t.set(n,r,i,a)},Ga=Ma(Fa(Wa));function Ka(e,t,n,r){return I.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let r=t.latest[n];e.setAttribute(`stroke-dashoffset`,`${-r}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new bi(`1 1`),()=>{let{pathLength:n=1,pathSpacing:r}=t.latest;e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var qa=Ma(Fa((e,t,n,r)=>n.startsWith(`path`)?Ka(e,t,n,r):n.startsWith(`attr`)?La(e,t,Ja(n),r):(n in e.style?Wa:La)(e,t,n,r)));function Ja(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}var{schedule:Ya,cancel:Xa}=gt(queueMicrotask,!1),J={x:!1,y:!1};function Za(){return J.x||J.y}function Qa(e){return e===`x`||e===`y`?J[e]?null:(J[e]=!0,()=>{J[e]=!1}):J.x||J.y?null:(J.x=J.y=!0,()=>{J.x=J.y=!1})}function $a(e,t){let n=ja(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function eo(e){return!(e.pointerType===`touch`||Za())}function to(e,t,n={}){let[r,i,a]=$a(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!eo(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var no=(e,t)=>t?e===t||no(e,t.parentElement):!1,ro=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,io=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ao(e){return io.has(e.tagName)||e.isContentEditable===!0}var oo=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function so(e){return oo.has(e.tagName)||e.isContentEditable===!0}var co=new WeakSet;function lo(e){return t=>{t.key===`Enter`&&e(t)}}function uo(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fo=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=lo(()=>{if(co.has(n))return;uo(n,`down`);let e=lo(()=>{uo(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>uo(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function po(e){return ro(e)&&!Za()}var mo=new WeakSet;function ho(e,t,n={}){let[r,i,a]=$a(e,n),o=e=>{let r=e.currentTarget;if(!po(e)||mo.has(e))return;co.add(r),n.stopPropagation&&mo.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),co.has(r)&&co.delete(r),po(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||no(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ba(e)&&(e.addEventListener(`focus`,e=>fo(e,i)),!ao(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function go(e,t){let n=window.getComputedStyle(e);return Mr(t)?n.getPropertyValue(t):n[t]}function _o(e){return Me(e)&&`ownerSVGElement`in e}var vo=new WeakMap,yo,bo=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:_o(r)&&`getBBox`in r?r.getBBox()[t]:r[n],xo=bo(`inline`,`width`,`offsetWidth`),So=bo(`block`,`height`,`offsetHeight`);function Co({target:e,borderBoxSize:t}){vo.get(e)?.forEach(n=>{n(e,{get width(){return xo(e,t)},get height(){return So(e,t)}})})}function wo(e){e.forEach(Co)}function To(){typeof ResizeObserver>`u`||(yo=new ResizeObserver(wo))}function Eo(e,t){yo||To();let n=ja(e);return n.forEach(e=>{let n=vo.get(e);n||(n=new Set,vo.set(e,n)),n.add(t),yo?.observe(e)}),()=>{n.forEach(e=>{let n=vo.get(e);n?.delete(t),n?.size||yo?.unobserve(e)})}}var Do=new Set,Oo;function ko(){Oo=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Do.forEach(t=>t(e))},window.addEventListener(`resize`,Oo)}function Ao(e){return Do.add(e),Oo||ko(),()=>{Do.delete(e),!Do.size&&typeof Oo==`function`&&(window.removeEventListener(`resize`,Oo),Oo=void 0)}}function jo(e,t){return typeof e==`function`?Ao(e):Eo(e,t)}function Mo(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return I.preUpdate(r,!0),()=>L(r)}var Y={value:null,addProjectionMetrics:null};function No(){Y.value=null,Y.addProjectionMetrics=null}function Po(){if(Y.value)throw No(),Error(`Stats are already being measured`);let e=Y;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function Fo(e){return _o(e)&&e.tagName===`svg`}function Io(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Lo(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Io(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=ft(r)(s/t)*t}return t+s}}function Ro(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Wn(i,a,o);return t?s(r):s}function zo(e,t){let n=K(q(e)?e.get():e);return Bo(n,e,t),n}function Bo(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Ho(e.get()),r=Ho(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new nr({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Vo(e,s)),I.postRender(u)},c),q(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Vo(t,s),!1)):e.set(Vo(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Vo(e,t){return t?e+t:e}function Ho(e){return typeof e==`number`?e:parseFloat(e)}function Uo(e,t,n){let r=()=>t.set(n()),i=()=>I.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),L(r)})}function Wo(e){let t=[];yi.current=t;let n=e();yi.current=void 0;let r=K(n);return Uo(t,r,e),r}function Go(e,t,n,r){let i=Ro(t,n,r);return Wo(()=>i(e.get()))}function Ko(e,t){return zo(e,{type:`spring`,...t})}function qo(e,t,n){return Bo(e,t,{type:`spring`,...n})}var Jo=[...ca,H,U],Yo=e=>Jo.find(sa(e)),Xo=0,Zo=()=>`motion-view-${Xo++}`,Qo=e=>e.startsWith(`motion-view-`);function $o(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function es(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function ts(e,t,n,r,i,a=[],o,s=[],c){let l=ja(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??Zo();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),$o(e,i,a),es(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!Qo(d)?f=d:(f=Zo(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),$o(e,i,a),es(e,f,o,s,c),f})}function ns(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function rs(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var is={},as=null,os={set:(e,t)=>{is[e]=t},commit:()=>{as||(as=document.createElement(`style`),as.id=`motion-view`);let e=``;for(let t in is){let n=is[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
-
`}as.textContent=e,document.head.appendChild(as),is={}},remove:()=>{as&&as.parentElement&&as.parentElement.removeChild(as)}};function ss(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function cs(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ls(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var us=[`layout`,`enter`,`exit`,`new`,`old`],ds=e=>e.split(` `).every(e=>parseFloat(e)===0),fs={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},ps={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},ms=.2;function hs(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new li([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,ja(n)),b=ts(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=ts(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=ts(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=_s(Si(c,n),Si(gs(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=P(r.duration);let{delay:i=0,duration:a,ease:o}=Wr(r);return{delay:P(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of Ea)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),ee=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??te(e))&&h.add(e)},te=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>ms},ne=()=>{ls(`root`,n)||os.set(`:root`,{"view-transition-name":`none`}),os.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{os.set(`::view-transition-group(${e})`,{overflow:`clip`}),os.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{os.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),os.commit()},re=()=>{ns(u,d,f),os.remove()},ie=async()=>{await t(),b(`new`),T(`new`),ee(),ne()},ae;try{b(`old`),T(`old`),ne(),ae=document.startViewTransition(ie)}catch(e){return re(),Promise.reject(e)}return ae.finished.finally(re),new Promise((e,t)=>{ae.ready.then(()=>{let t=cs(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of us){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=rs(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){Ve(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=_s(Si(c,m),Si(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?ps[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=P(f.duration),f.delay&&=P(f.delay),n.push(new Gr({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=ss(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new fi(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:Vr(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=P(r.duration)),r=Wr(r),d={delay:P(r.delay??0),duration:u&&i!==void 0?P(i):r.duration,easing:u?`linear`:Vr(r.ease,r.duration)}}t.updateTiming(d),n.push(new fi(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Ea){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;ds(s)&&ds(c)||n.push(new Gr({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new li(n))}).catch(()=>ae.updateCallbackDone.then(()=>e(new li([])),t))})}function gs(e,t){for(let n of fs[t]??[]){let t=e?.[n]?.options;if(t)return t}}function _s(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var vs=[],ys=null;function bs(){ys=null;let[e]=vs;e&&xs(e)}function xs(e){Ee(vs,e),ys=e,hs(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(bs)}function Ss(){for(let e=vs.length-1;e>=0;e--){let t=vs[e],{interrupt:n}=t.options;if(n===`immediate`){let n=vs.slice(0,e+1).map(e=>e.update),r=vs.slice(e+1);t.update=()=>{n.forEach(e=>e())},vs=[t,...r];break}}(!ys||vs[0]?.options.interrupt===`immediate`)&&bs()}function Cs(e){vs.push(e),Ya.render(Ss)}var ws=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=N,this.notifyReject=N,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(N),Cs(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Ts(e,t={}){return new ws(e,t)}var Es=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ds=()=>({x:Es(),y:Es()}),Os=()=>({min:0,max:0}),X=()=>({x:Os(),y:Os()}),ks=new WeakMap;function As(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function js(e){return typeof e==`string`||Array.isArray(e)}var Ms=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ns=[`initial`,...Ms];function Ps(e){return As(e.animate)||Ns.some(t=>js(e[t]))}function Fs(e){return!!(Ps(e)||e.variants)}function Is(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,K(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,K(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ls={current:null},Rs={current:!1},zs=typeof window<`u`;function Bs(){if(Rs.current=!0,zs){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ls.current=e.matches;e.addEventListener(`change`,t),t()}else Ls.current=!1}}var Vs=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Hs={};function Us(e){Hs=e}function Ws(){return Hs}var Gs=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=jr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=z.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,I.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ps(t),this.isVariantNode=Fs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ks.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Rs.current||Bs(),this.shouldReduceMotion=Ls.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),L(this.notifyUpdate),L(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ti.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Gr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:P(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=vr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&I.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Hs){let t=Hs[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Vs.length;t++){let n=Vs[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Is(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=K(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(je(n)||Ne(n))?n=parseFloat(n):!Yo(n)&&U.test(t)&&(n=Sa(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Le),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ya.render(this.render)}},Ks=class extends Gs{constructor(){super(...arguments),this.KeyframeResolver=Ta}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},qs=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Js({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ys({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Xs(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zs(e){return e===void 0||e===1}function Qs({scale:e,scaleX:t,scaleY:n}){return!Zs(e)||!Zs(t)||!Zs(n)}function $s(e){return Qs(e)||ec(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ec(e){return tc(e.x)||tc(e.y)}function tc(e){return e&&e!==`0%`}function nc(e,t,n){return n+t*(e-n)}function rc(e,t,n,r,i){return i!==void 0&&(e=nc(e,i,r)),nc(e,n,r)+t}function ic(e,t=0,n=1,r,i){e.min=rc(e.min,t,n,r,i),e.max=rc(e.max,t,n,r,i)}function ac(e,{x:t,y:n}){ic(e.x,t.translate,t.scale,t.originPoint),ic(e.y,n.translate,n.scale,n.originPoint)}var oc=.999999999999,sc=1.0000000000001;function cc(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Z(e.x,-a.scroll.offset.x),Z(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ac(e,o)),r&&$s(a.latestValues)&&dc(e,a.latestValues,a.layout?.layoutBox))}t.x<sc&&t.x>oc&&(t.x=1),t.y<sc&&t.y>oc&&(t.y=1)}function Z(e,t){e.min+=t,e.max+=t}function lc(e,t,n,r,i=.5){ic(e,t,n,W(e.min,e.max,i),r)}function uc(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function dc(e,t,n){let r=n??e;lc(e.x,uc(t.x,r.x),t.scaleX,t.scale,t.originX),lc(e.y,uc(t.y,r.y),t.scaleY,t.scale,t.originY)}function fc(e,t){return Js(Xs(e.getBoundingClientRect(),t))}function pc(e,t,n){let r=fc(e,n),{scroll:i}=t;return i&&(Z(r.x,i.offset.x),Z(r.y,i.offset.y)),r}var mc={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},hc=_r.length;function gc(e,t,n){let r=``,i=!0;for(let a=0;a<hc;a++){let o=_r[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Na(s,va[o]);if(!c){i=!1;let t=mc[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Na(a,va.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function _c(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(vr.has(e)){o=!0;continue}if(xt(e)){i[e]=n;continue}{let t=Na(n,va[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=gc(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function vc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function yc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var bc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(V.test(e))e=parseFloat(e);else return e}return`${yc(e,t.target.x)}% ${yc(e,t.target.y)}%`}},xc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=U.parse(e);if(i.length>5)return r;let a=U.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Sc={borderRadius:{...bc,applyTo:[...Ea]},borderTopLeftRadius:bc,borderTopRightRadius:bc,borderBottomLeftRadius:bc,borderBottomRightRadius:bc,boxShadow:xc};function Cc(e){for(let t in e)Sc[t]=e[t],xt(t)&&(Sc[t].isCSSVariable=!0)}function wc(e,{layout:t,layoutId:n}){return vr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Sc[e]||e===`opacity`)}function Tc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||wc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ec(e){return window.getComputedStyle(e)}var Dc=class extends Ks{constructor(){super(...arguments),this.type=`html`,this.renderInstance=vc}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(vr.has(t))return this.projection?.isProjecting?pr(t):hr(e,t);{let n=Ec(e),r=(xt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fc(e,t)}build(e,t,n){_c(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Tc(e,t,n)}};function Oc(e,t){return e in t}var kc=class extends Gs{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Oc(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return X()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ac={offset:`stroke-dashoffset`,array:`stroke-dasharray`},jc={offset:`strokeDashoffset`,array:`strokeDasharray`};function Mc(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ac:jc;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Nc=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Pc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(_c(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Nc)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Mc(d,i,a,o,!1)}var Fc=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`]),Ic=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Lc(e,t,n,r){vc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Fc.has(n)?n:Xi(n),t.attrs[n])}function Rc(e,t,n){let r=Tc(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=_r.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var zc=class extends Ks{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vr.has(t)){let e=ba(t);return e&&e.default||0}if(Nc.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Fc.has(t)?t:Xi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Rc(e,t,n)}build(e,t,n){Pc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Lc(e,t,n,r)}mount(e){this.isSVGTag=Ic(e.tagName),super.mount(e)}},Bc=Ns.length;function Vc(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Vc(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Bc;n++){let r=Ns[n],i=e.props[r];(js(i)||i===!1)&&(t[r]=i)}return t}function Hc(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Uc=[...Ms].reverse(),Wc=Ms.length;function Gc(e){return t=>Promise.all(t.map(({animation:t,options:n})=>aa(e,t,n)))}function Kc(e){let t=Gc(e),n=Yc(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hi(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Vc(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Wc;t++){let p=Uc[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=js(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||As(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=qc(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},ee=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wi(t)&&Wi(n)?!Hc(t,n)||y:t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let te=v&&y;b&&(!te||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=gi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hi(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Yc(),i=!0}}}function qc(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Hc(t,e):!1}function Jc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:Jc(!0),whileInView:Jc(),whileHover:Jc(),whileTap:Jc(),whileDrag:Jc(),whileFocus:Jc(),exit:Jc()}}function Xc(e,t){e.min=t.min,e.max=t.max}function Q(e,t){Xc(e.x,t.x),Xc(e.y,t.y)}function Zc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Qc=.9999,$c=1.0001,el=-.01,tl=.01;function $(e){return e.max-e.min}function nl(e,t,n){return Math.abs(e-t)<=n}function rl(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Qc&&e.scale<=$c||isNaN(e.scale))&&(e.scale=1),(e.translate>=el&&e.translate<=tl||isNaN(e.translate))&&(e.translate=0)}function il(e,t,n,r){rl(e.x,t.x,n.x,r?r.originX:void 0),rl(e.y,t.y,n.y,r?r.originY:void 0)}function al(e,t,n,r=0){e.min=(r?W(n.min,n.max,r):n.min)+t.min,e.max=e.min+$(t)}function ol(e,t,n,r){al(e.x,t.x,n.x,r?.x),al(e.y,t.y,n.y,r?.y)}function sl(e,t,n,r=0){let i=r?W(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+$(t)}function cl(e,t,n,r){sl(e.x,t.x,n.x,r?.x),sl(e.y,t.y,n.y,r?.y)}function ll(e,t,n,r,i){return e-=t,e=nc(e,1/n,r),i!==void 0&&(e=nc(e,1/i,r)),e}function ul(e,t=0,n=1,r=.5,i,a=e,o=e){if(B.test(t)&&(t=parseFloat(t),t=W(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W(a.min,a.max,r);e===a&&(s-=t),e.min=ll(e.min,t,n,s,i),e.max=ll(e.max,t,n,s,i)}function dl(e,t,[n,r,i],a,o){ul(e,t[n],t[r],t[i],t.scale,a,o)}var fl=[`x`,`scaleX`,`originX`],pl=[`y`,`scaleY`,`originY`];function ml(e,t,n,r){dl(e.x,t,fl,n?n.x:void 0,r?r.x:void 0),dl(e.y,t,pl,n?n.y:void 0,r?r.y:void 0)}function hl(e){return e.translate===0&&e.scale===1}function gl(e){return hl(e.x)&&hl(e.y)}function _l(e,t){return e.min===t.min&&e.max===t.max}function vl(e,t){return _l(e.x,t.x)&&_l(e.y,t.y)}function yl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bl(e,t){return yl(e.x,t.x)&&yl(e.y,t.y)}function xl(e){return $(e.x)/$(e.y)}function Sl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Cl(e){return[e(`x`),e(`y`)]}function wl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Tl=Ea.length,El=e=>typeof e==`string`?parseFloat(e):e,Dl=e=>typeof e==`number`||V.test(e);function Ol(e,t,n,r,i,a){i?(e.opacity=W(0,n.opacity??1,Al(r)),e.opacityExit=W(t.opacity??1,0,jl(r))):a&&(e.opacity=W(t.opacity??1,n.opacity??1,r));for(let i=0;i<Tl;i++){let a=Ea[i],o=kl(t,a),s=kl(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Dl(o)===Dl(s)?(e[a]=Math.max(W(El(o),El(s),r),0),(B.test(s)||B.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function kl(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Al=Ml(0,.5,tt),jl=Ml(.5,.95,N);function Ml(e,t,n){return r=>r<e?0:r>t?1:n(Ie(e,t,r))}function Nl(e,t,n){let r=q(e)?e:K(e);return r.start(Ai(``,r,t,n)),r.animation}function Pl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Fl=(e,t)=>e.depth-t.depth,Il=class{constructor(){this.children=[],this.isDirty=!1}add(e){Te(this.children,e),this.isDirty=!0}remove(e){Ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fl),this.isDirty=!1,this.children.forEach(e)}};function Ll(e,t){let n=z.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(L(r),e(a-t))};return I.setup(r,!0),()=>L(r)}function Rl(e,t){return Ll(e,P(t))}function zl(e){return q(e)?e.get():e}var Bl=class{constructor(){this.members=[]}add(e){Te(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Ee(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Vl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ul=[``,`X`,`Y`,`Z`],Wl=1e3,Gl=0;function Kl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ql(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=$i(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,I,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ql(r)}function Jl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Gl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Y.value&&(Hl.nodes=Hl.calculatedTargetDeltas=Hl.calculatedProjections=0),this.nodes.forEach(Zl),this.nodes.forEach(ou),this.nodes.forEach(su),this.nodes.forEach(Ql),Y.addProjectionMetrics&&Y.addProjectionMetrics(Hl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Il)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Le),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=_o(t)&&!Fo(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;I.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ll(i,250),Vl.hasAnimatedSinceResize&&(Vl.hasAnimatedSinceResize=!1,this.nodes.forEach(au)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||mu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!bl(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Si(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||au(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),L(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(cu),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ql(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(tu),this.nodes.forEach(eu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ru),this.nodes.forEach(iu),this.nodes.forEach(Yl),this.nodes.forEach(Xl)):this.nodes.forEach(nu),this.clearAllSnapshots();let e=z.now();R.delta=j(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,_t.update.process(R),_t.preRender.process(R),_t.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ya.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($l),this.sharedNodes.forEach(lu)}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&&!$(this.snapshot.measuredBox.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=X(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!gl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||$s(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),vu(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return X();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(bu))){let{scroll:e}=this.root;e&&(Z(t.x,e.offset.x),Z(t.y,e.offset.y))}return t}removeElementScroll(e){let t=X();if(Q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Q(t,e),Z(t.x,i.offset.x),Z(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||X();Q(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Z(r.x,-n.scroll.offset.x),Z(r.y,-n.scroll.offset.y)),$s(n.latestValues)&&dc(r,n.latestValues,n.layout?.layoutBox)}return $s(this.latestValues)&&dc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=X();Q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!$s(n.latestValues))continue;let r;n.instance&&(Qs(n.latestValues)&&n.updateSnapshot(),r=X(),Q(r,n.measurePageBox())),ml(t,n.latestValues,n.snapshot?.layoutBox,r)}return $s(this.latestValues)&&ml(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=R.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ol(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Q(this.target,this.layout.layoutBox),ac(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Y.value&&Hl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Qs(this.parent.latestValues)||ec(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),cl(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;cc(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=X());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zc(this.prevProjectionDelta.x,this.projectionDelta.x),Zc(this.prevProjectionDelta.y,this.projectionDelta.y)),il(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Sl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Y.value&&Hl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ds(),this.projectionDelta=Ds(),this.projectionDeltaWithTransform=Ds()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ds();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=X(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(pu));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=W(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=W(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(uu(o.x,e.x,n),uu(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),fu(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&vl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=X(),Q(f,this.relativeTarget)),c&&(this.animationValues=a,Ol(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(L(this.pendingAnimation),void 0),this.pendingAnimation=I.update(()=>{Vl.hasAnimatedSinceResize=!0,this.motionValue||=K(0),this.motionValue.jump(0,!1),this.currentAnimation=Nl(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&yu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||X();let t=$(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=$(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Q(t,n),dc(t,i),il(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bl),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Kl(`z`,e,r,this.animationValues);for(let t=0;t<Ul.length;t++)Kl(`rotate${Ul[t]}`,e,r,this.animationValues),Kl(`skew${Ul[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=zl(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=zl(t?.pointerEvents)||``),this.hasProjected&&!$s(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=wl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Sc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Sc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?zl(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(eu),this.root.sharedNodes.clear()}}}function Yl(e){e.updateLayout()}function Xl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Cl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Xc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else yu(i,t.layoutBox,n)&&Cl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ds();il(o,n,t.layoutBox);let s=Ds();a?il(s,e.applyTransform(r,!0),t.measuredBox):il(s,n,t.layoutBox);let c=!gl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=X();cl(s,t.layoutBox,i.layoutBox,o);let c=X();cl(c,n,a.layoutBox,o),bl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zl(e){Y.value&&Hl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ql(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $l(e){e.clearSnapshot()}function eu(e){e.clearMeasurements()}function tu(e){e.isLayoutDirty=!0,e.updateLayout()}function nu(e){e.isLayoutDirty=!1}function ru(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function iu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function au(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ou(e){e.resolveTargetDelta()}function su(e){e.calcProjection()}function cu(e){e.resetSkewAndRotation()}function lu(e){e.removeLeadSnapshot()}function uu(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function du(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function fu(e,t,n,r){du(e.x,t.x,n.x,r),du(e.y,t.y,n.y,r)}function pu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var mu={duration:.45,ease:[.4,0,.1,1]},hu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gu=hu(`applewebkit/`)&&!hu(`chrome/`)?Math.round:N;function _u(e){e.min=gu(e.min),e.max=gu(e.max)}function vu(e){_u(e.x),_u(e.y)}function yu(e,t,n){return e===`position`||e===`preserve-aspect`&&!nl(xl(t),xl(n),.2)}function bu(e){return e!==e.root&&e.scroll?.wasRoot}var xu=Jl({attachResizeListener:(e,t)=>Pl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Su=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Cu(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Su);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var wu={current:void 0},Tu=Jl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wu.current){let e=new xu({});e.mount(window),e.setOptions({layoutScroll:!0}),wu.current=e}return wu.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Eu=`[data-layout],[data-layout-id]`,Du=new WeakMap,Ou;function ku(e){let t=[];return e instanceof HTMLElement&&e.matches(Eu)&&t.push(e),e.querySelectorAll(Eu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Au(){if(R.isProcessing)return;let e=z.now();R.delta=j(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,_t.update.process(R),_t.preRender.process(R),_t.render.process(R),R.isProcessing=!1}function ju(e){let t=e.parentElement;for(;t;){let e=Du.get(t);if(e&&e.instance)return e;t=t.parentElement}}function Mu(){return new Dc({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Nu(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function Pu(e,t){let n=Du.get(e);if(n)n.setOptions(Nu(e,t));else{let r=ks.get(e);r||=Mu(),e.style.transform&&!$s(r.latestValues)&&(e.style.transform=``),n=new Tu(r.latestValues,ju(e)),r.projection=n,n.setOptions({...Nu(e,t),visualElement:r}),n.mount(e),Du.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Fu(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Iu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Du.delete(e)}function Lu(){let e=Ou;Ou=void 0,Au();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Fu(t.keys())){let r=t.get(e),i=Pu(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),Ya.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Ru=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Ou||(Ou=[],queueMicrotask(Lu)),Ou.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return ku(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of ku(this.scope)){if(this.tracked.has(t))continue;let n=Pu(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Iu(n,t)}}),t.relegate())return;n.remove()}Iu(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new li([...e]))}};function zu(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:ja(e)[0]??document,updateDom:t,defaultOptions:n}}var Bu=I,Vu=pt.reduce((e,t)=>(e[t]=e=>L(e),e),{}),Hu=S({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Uu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Wu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Uu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Uu(e[t],null)}}}}function Gu(...e){return se(Wu(...e),e)}var Ku=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ba(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ba(e)&&e.offsetWidth||0,r=Ba(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function qu({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=de(),c=O(null),l=O({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=E(Hu),d=Gu(c,o===!1?void 0:e.props?.ref??e?.ref);return pe(()=>{let{width:e,height:i,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!i)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);u&&(y.nonce=u);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
1
|
+
(function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:h,__COMPILER_RUNTIME:g,act:_,cache:v,cacheSignal:y,captureOwnerStack:b,cloneElement:x,createContext:S,createElement:C,createRef:w,forwardRef:ee,isValidElement:te,lazy:ne,memo:re,startTransition:ie,unstable_useCacheRefresh:ae,use:oe,useActionState:se,useCallback:ce,useContext:T,useDebugValue:le,useDeferredValue:ue,useEffect:E,useEffectEvent:de,useId:fe,useImperativeHandle:pe,useInsertionEffect:me,useLayoutEffect:he,useMemo:ge,useOptimistic:_e,useReducer:ve,useRef:D,useState:O,useSyncExternalStore:ye,useTransition:be,version:xe}=o,Se=S({});function k(e){let t=D(null);return t.current===null&&(t.current=e()),t.current}var Ce=typeof window<`u`,we=Ce?he:E,Te=S(null);function Ee(e,t){e.indexOf(t)===-1&&e.push(t)}function De(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Oe([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var A=(e,t,n)=>n>t?t:n<e?e:n;function ke(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ae=()=>{},je=()=>{},j={},Me=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ne=e=>typeof e==`object`&&!!e,Pe=e=>/^0[^.\s]+$/u.test(e);function Fe(e){let t;return()=>(t===void 0&&(t=e()),t)}var M=e=>e,Ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Le=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Re=class{constructor(){this.subscriptions=[]}add(e){return Ee(this.subscriptions,e),()=>De(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},N=e=>e*1e3,P=e=>e/1e3,ze=(e,t)=>t?1e3/t*e:0,Be=new Set;function Ve(e){return Be.has(e)}function He(e,t,n){e||Be.has(t)||(console.warn(ke(t,n)),Be.add(t))}var Ue=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},We=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ge=1e-7,Ke=12;function qe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=We(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ge&&++s<Ke);return o}function Je(e,t,n,r){if(e===t&&n===r)return M;let i=t=>qe(t,0,1,e,n);return e=>e===0||e===1?e:We(i(e),t,r)}var Ye=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xe=e=>t=>1-e(1-t),Ze=Je(.33,1.53,.69,.99),Qe=Xe(Ze),$e=Ye(Qe),et=e=>e>=1?1:(e*=2)<1?.5*Qe(e):.5*(2-2**(-10*(e-1))),tt=e=>1-Math.sin(Math.acos(e)),nt=Xe(tt),rt=Ye(tt),it=Je(.42,0,1,1),at=Je(0,0,.58,1),ot=Je(.42,0,.58,1);function st(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return A(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var ct=e=>Array.isArray(e)&&typeof e[0]!=`number`;function lt(e,t){return ct(e)?e[Ue(0,e.length,t)]:e}var ut=e=>Array.isArray(e)&&typeof e[0]==`number`,dt={linear:M,easeIn:it,easeInOut:ot,easeOut:at,circIn:tt,circInOut:rt,circOut:nt,backIn:Qe,backInOut:$e,backOut:Ze,anticipate:et},ft=e=>typeof e==`string`,pt=e=>{if(ut(e)){e.length;let[t,n,r,i]=e;return Je(t,n,r,i)}return ft(e)?(dt[e],`${e}`,dt[e]):e},mt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ht(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var gt=40;function _t(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=mt.reduce((e,t)=>(e[t]=ht(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=j.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,gt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:mt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<mt.length;t++)o[mt[t]].cancel(e)},state:i,steps:o}}var{schedule:F,cancel:I,state:L,steps:vt}=_t(typeof requestAnimationFrame<`u`?requestAnimationFrame:M,!0),yt;function bt(){yt=void 0}var R={now:()=>(yt===void 0&&R.set(L.isProcessing||j.useManualTiming?L.timestamp:performance.now()),yt),set:e=>{yt=e,queueMicrotask(bt)}},xt=e=>t=>typeof t==`string`&&t.startsWith(e),St=xt(`--`),Ct=xt(`var(--`),wt=e=>Ct(e)?Tt.test(e.split(`/*`)[0].trim()):!1,Tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Et(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Dt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ot={...Dt,transform:e=>A(0,1,e)},kt={...Dt,default:1},At=e=>Math.round(e*1e5)/1e5,jt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mt(e){return e==null}var Nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pt=(e,t)=>n=>!!(typeof n==`string`&&Nt.test(n)&&n.startsWith(e)||t&&!Mt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ft=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(jt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},It=e=>A(0,255,e),Lt={...Dt,transform:e=>Math.round(It(e))},Rt={test:Pt(`rgb`,`red`),parse:Ft(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Lt.transform(e)+`, `+Lt.transform(t)+`, `+Lt.transform(n)+`, `+At(Ot.transform(r))+`)`};function zt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Bt={test:Pt(`#`),parse:zt,transform:Rt.transform},Vt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ht=Vt(`deg`),z=Vt(`%`),B=Vt(`px`),Ut=Vt(`vh`),Wt=Vt(`vw`),Gt={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(e*100)},Kt={test:Pt(`hsl`,`hue`),parse:Ft(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+z.transform(At(t))+`, `+z.transform(At(n))+`, `+At(Ot.transform(r))+`)`},V={test:e=>Rt.test(e)||Bt.test(e)||Kt.test(e),parse:e=>Rt.test(e)?Rt.parse(e):Kt.test(e)?Kt.parse(e):Bt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Rt.transform(e):Kt.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},qt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jt(e){return isNaN(e)&&typeof e==`string`&&(e.match(jt)?.length||0)+(e.match(qt)?.length||0)>0}var Yt=`number`,Xt=`color`,Zt=`var`,Qt=`var(`,$t="${}",en=/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 tn(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(en,e=>(V.test(e)?(r.color.push(a),i.push(Xt),n.push(V.parse(e))):e.startsWith(Qt)?(r.var.push(a),i.push(Zt),n.push(e)):(r.number.push(a),i.push(Yt),n.push(parseFloat(e))),++a,$t)).split($t),indexes:r,types:i}}function nn(e){return tn(e).values}function rn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Yt?At(r[a]):e===Xt?V.transform(r[a]):r[a]}return i}}function an(e){return rn(tn(e))}var on=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,sn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:on(e);function cn(e){let t=tn(e);return rn(t)(t.values.map((e,n)=>sn(e,t.split[n])))}var H={test:Jt,parse:nn,createTransformer:an,getAnimatableNone:cn};function ln(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function un({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ln(s,r,e+1/3),a=ln(s,r,e),o=ln(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function dn(e,t){return n=>n>0?t:e}var U=(e,t,n)=>e+(t-e)*n,fn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pn=[Bt,Rt,Kt],mn=e=>pn.find(t=>t.test(e));function hn(e){let t=mn(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Kt&&(n=un(n)),n}var gn=(e,t)=>{let n=hn(e),r=hn(t);if(!n||!r)return dn(e,t);let i={...n};return e=>(i.red=fn(n.red,r.red,e),i.green=fn(n.green,r.green,e),i.blue=fn(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),Rt.transform(i))},_n=new Set([`none`,`hidden`]);function vn(e,t){return _n.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yn(e,t){return n=>U(e,t,n)}function bn(e){return typeof e==`number`?yn:typeof e==`string`?wt(e)?dn:V.test(e)?gn:wn:Array.isArray(e)?xn:typeof e==`object`?V.test(e)?gn:Sn:dn}function xn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>bn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Sn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Cn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var wn=(e,t)=>{let n=H.createTransformer(t),r=tn(e),i=tn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_n.has(e)&&!i.values.length||_n.has(t)&&!r.values.length?vn(e,t):Ie(xn(Cn(r,i),i.values),n):(`${e}${t}`,dn(e,t))};function Tn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?U(e,t,n):bn(e)(e,t)}var En=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>I(t),now:()=>L.isProcessing?L.timestamp:R.now()}},Dn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},On=2e4;function kn(e,t=50,n=On,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function An(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(kn(r),On);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:P(i)}}var W={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};function jn(e,t){return e*Math.sqrt(1-t*t)}var Mn=12;function Nn(e,t,n){let r=n;for(let n=1;n<Mn;n++)r-=e(r)/t(r);return r}var Pn=.001;function Fn({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;W.maxDuration;let o=1-t;o=A(W.minDamping,W.maxDamping,o),e=A(W.minDuration,W.maxDuration,P(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=jn(t,o),c=Math.exp(-i);return Pn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=jn(t*t,o);return(-i(t)+Pn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Nn(i,a,s);if(e=N(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var In=[`duration`,`bounce`],Ln=[`stiffness`,`damping`,`mass`];function Rn(e,t){return t.some(t=>e[t]!==void 0)}function zn(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!Rn(e,Ln)&&Rn(e,In)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*A(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=Fn({...e,velocity:0});t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}}return t}function Bn(e=W.visualDuration,t=W.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=zn({...n,velocity:-P(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=P(Math.sqrt(c/u)),v=h*_,y=Math.abs(g)<5;r||=y?W.restSpeed.granular:W.restSpeed.default,i||=y?W.restDelta.granular:W.restDelta.default;let b,x;if(h<1){let e=jn(_,h),t=(m+v*g)/e,n=v*t+g*e,r=v*g-t*e,i=-1,a=0,s=0,c=c=>{if(c!==i){i=c;let l=Math.exp(-v*c),u=Math.sin(e*c),d=Math.cos(e*c);a=o-l*(t*u+g*d),s=l*(n*u+r*d)}};b=e=>(c(e),a),x=e=>(c(e),s)}else if(h===1){b=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;x=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);b=t=>{let n=Math.exp(-v*t),r=Math.min(e*t,300);return o-n*((m+v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+v*g)/e,n=v*t-g*e,r=v*g-t*e;x=t=>{let i=Math.exp(-v*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let S={calculatedDuration:p&&d||null,velocity:e=>N(x(e)),next:e=>{let t=b(e);if(p)s.done=e>=d;else{let n=N(x(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(kn(S),On),t=Dn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Bn.applyToOptions=e=>{let t=An(e,100,Bn);return e.ease=t.ease,e.duration=N(t.duration),e.type=`keyframes`,e};function Vn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Bn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Hn(e,t,n){let r=[],i=n||j.mix||Tn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ie(Array.isArray(t)?t[n]||M:t,a)),r.push(a)}return r}function Un(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Hn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Le(e[r],e[r+1],n);return s[r](i)};return n?t=>l(A(e[0],e[a-1],t)):l}function Wn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Le(0,t,r);e.push(U(n,1,i))}}function Gn(e){let t=[0];return Wn(t,e.length-1),t}function Kn(e,t){return e.map(e=>e*t)}function qn(e,t){return e.map(()=>t||ot).splice(0,e.length-1)}function Jn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ct(r)?r.map(pt):pt(r),a={done:!1,value:t[0]},o=Un(Kn(n&&n.length===t.length?n:Gn(t),e),t,{ease:Array.isArray(i)?i:qn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yn=5;function Xn(e,t,n){let r=Math.max(t-Yn,0);return ze(n-e(r),t-r)}var Zn=e=>e!==null;function Qn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Zn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var $n={decay:Vn,inertia:Vn,tween:Jn,keyframes:Jn,spring:Bn};function er(e){typeof e.type==`string`&&(e.type=$n[e.type])}var tr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},nr=e=>e/100,rr=class extends tr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==R.now()&&this.tick(R.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;er(e);let{type:t=Jn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jn;s!==Jn&&typeof o[0]!=`number`&&(this.mixKeyframes=Ie(nr,Tn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=kn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=A(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Vn&&(b.value=Qn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return P(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+P(e)}get time(){return P(this.currentTime)}set time(e){e=N(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Xn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(R.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=P(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=En,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(R.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ir(e){return new rr(e)}function ar(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var or=e=>e*180/Math.PI,sr=e=>lr(or(Math.atan2(e[1],e[0]))),cr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sr,rotateZ:sr,skewX:e=>or(Math.atan(e[1])),skewY:e=>or(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lr=e=>(e%=360,e<0&&(e+=360),e),ur=sr,dr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dr,scaleY:fr,scale:e=>(dr(e)+fr(e))/2,rotateX:e=>lr(or(Math.atan2(e[6],e[5]))),rotateY:e=>lr(or(Math.atan2(-e[2],e[0]))),rotateZ:ur,rotate:ur,skewX:e=>or(Math.atan(e[4])),skewY:e=>or(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mr(e){return+!!e.includes(`scale`)}function hr(e,t){if(!e||e===`none`)return mr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=pr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=cr,i=t}if(!i)return mr(t);let a=r[t],o=i[1].split(`,`).map(_r);return typeof a==`function`?a(o):o[a]}var gr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return hr(n,t)};function _r(e){return parseFloat(e.trim())}var vr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],yr=new Set([...vr,`pathRotation`]),br=e=>e===Dt||e===B,xr=new Set([`x`,`y`,`z`]),Sr=vr.filter(e=>!xr.has(e));function Cr(e){let t=[];return Sr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var wr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>hr(t,`x`),y:(e,{transform:t})=>hr(t,`y`)};wr.translateX=wr.x,wr.translateY=wr.y;var Tr=new Set,Er=!1,Dr=!1,Or=!1;function kr(){if(Dr){let e=Array.from(Tr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Cr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Dr=!1,Er=!1,Tr.forEach(e=>e.complete(Or)),Tr.clear()}function Ar(){Tr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dr=!0)})}function jr(){Or=!0,Ar(),kr(),Or=!1}var Mr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Tr.add(this),Er||(Er=!0,F.read(Ar),F.resolveKeyframes(kr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ar(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Tr.delete(this)}cancel(){this.state===`scheduled`&&(Tr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Nr=e=>e.startsWith(`--`);function Pr(e,t,n){Nr(t)?e.style.setProperty(t,n):e.style[t]=n}var Fr={};function Ir(e,t){let n=Fe(e);return()=>Fr[t]??n()}var Lr=Ir(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Rr=Ir(()=>window.ViewTimeline!==void 0,`viewTimeline`),zr=Ir(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Br=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Br([0,.65,.55,1]),circOut:Br([.55,0,1,.45]),backIn:Br([.31,.01,.66,-.59]),backOut:Br([.33,1.53,.69,.99])};function Hr(e,t){if(e)return typeof e==`function`?zr()?Dn(e,t):`ease-out`:ut(e)?Br(e):Array.isArray(e)?e.map(e=>Hr(e,t)||Vr.easeOut):Vr[e]}function Ur(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Hr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Wr(e){return typeof e==`function`&&`applyToOptions`in e}function Gr({type:e,...t}){return Wr(e)&&zr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Kr=class extends tr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Gr(e);this.animation=Ur(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Qn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Pr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return P(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+P(e)}get time(){return P(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=N(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Lr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),M):r(this)}},qr={anticipate:et,backInOut:$e,circInOut:rt};function Jr(e){return e in qr}function Yr(e){typeof e.ease==`string`&&Jr(e.ease)&&(e.ease=qr[e.ease])}var Xr=10,Zr=class extends Kr{constructor(e){Yr(e),er(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new rr({...a,autoplay:!1}),s=Math.max(Xr,R.now()-this.startTime),c=A(0,Xr,s-Xr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Pr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Qr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function $r(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ei(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Qr(i,t),s=Qr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:$r(e)||(n===`spring`||Wr(n))&&r}function ti(e){e.duration=0,e.type=`keyframes`}var ni=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ri=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ii(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ri.test(e[t]))return!0;return!1}var ai=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),oi=Fe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function si(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return oi()&&n&&(ni.has(n)||ai.has(n)&&ii(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ci=40,li=class extends tr{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Mr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=R.now();let u=!0;ei(e,i,a,o)||(u=!1,(j.instantAnimations||!s)&&l?.(Qn(e,n,t)),e[0]=e[e.length-1],ti(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ci?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&si(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Zr({...d,element:p})}catch{m=new rr(d)}else m=new rr(d);m.finished.then(()=>{this.notifyFinished()}).catch(M),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),jr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},ui=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return di(this.animations,`duration`)}get iterationDuration(){return di(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function di(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var fi=class extends ui{then(e,t){return this.finished.finally(e).then(()=>{})}},pi=class extends Kr{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},mi=new WeakMap,hi=(e,t=``)=>`${e}:${t}`;function gi(e){let t=mi.get(e);return t||(t=new Map,mi.set(e,t)),t}function _i(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var vi=30,yi=e=>!isNaN(parseFloat(e)),bi={current:void 0},xi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=R.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=yi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Re);let n=this.events[e].add(t);return e===`change`?()=>{n(),F.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return bi.current&&bi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,vi);return ze(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function G(e,t){return new xi(e,t)}function Si(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function K(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Si(n,e)}var Ci={type:`spring`,stiffness:500,damping:25,restSpeed:10},wi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ti={type:`keyframes`,duration:.8},Ei={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Di=(e,{keyframes:t})=>t.length>2?Ti:yr.has(e)?e.startsWith(`scale`)?wi(t[1]):Ci:Ei,Oi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ki(e){for(let t in e)if(!Oi.has(t))return!0;return!1}var Ai=(e,t,n,r={},i,a)=>o=>{let s=K(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=N(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ki(s)||Object.assign(u,Di(e,u)),u.duration&&=N(u.duration),u.repeatDelay&&=N(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ti(u),u.delay===0&&(d=!0)),(j.instantAnimations||j.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ti(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Qn(u.keyframes,s);if(e!==void 0){F.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new rr(u):new li(u)},ji=20;function Mi(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Ni(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Pi(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function Fi({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Pi(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Pi(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Ni(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Ni(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Ue(-180,180,f-d):0;return e=>{let t={x:Mi(e,r.x,u.x,o.x),y:Mi(e,r.y,u.y,o.y)};return i&&(t.rotate=Ue(-180,180,Ni(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Ii(e={}){let t=Fi(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<ji))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...K(r||{},`x`)};delete g.path;let _=G(0);_.start(Ai(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var Li=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ri(e){let t=Li.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zi(e,t,n=1){`${e}`;let[r,i]=Ri(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Me(e)?parseFloat(e):e}return wt(i)?zi(i,t,n+1):i}function Bi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vi(e,t,n,r){if(typeof t==`function`){let[i,a]=Bi(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Bi(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hi(e,t,n){let r=e.getProps();return Vi(r,t,n===void 0?r.custom:n,e)}var Ui=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...vr]),Wi=e=>Array.isArray(e);function Gi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,G(n))}function Ki(e){return Wi(e)?e[e.length-1]||0:e}function qi(e,t){let{transitionEnd:n={},transition:r={},...i}=Hi(e,t)||{};i={...i,...n};for(let t in i)Gi(e,t,Ki(i[t]))}var q=e=>!!(e&&e.getVelocity);function Ji(e){return!!(q(e)&&e.add)}function Yi(e,t){let n=e.getValue(`willChange`);if(Ji(n))return n.add(t);if(!n&&j.WillChange){let n=new j.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zi=`framerAppearId`,Qi=`data-`+Xi(Zi);function $i(e){return e.props[Qi]}var ea=typeof window<`u`;function ta({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function na(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Si(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ta(f,t))continue;let o={delay:n,...K(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let p=!1;if(ea&&window.MotionHandoffAnimation){let n=$i(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,p=!0)}}Yi(e,t);let m=l??e.shouldReduceMotion;r.start(Ai(t,r,i,m&&Ui.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>F.update(()=>{o&&qi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ra(e,t,n={}){let r=Hi(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(na(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ia(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function ia(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ra(c,t,{...o,delay:n+(typeof r==`function`?0:r)+_i(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function aa(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ra(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ra(e,t,n);else{let i=typeof t==`function`?Hi(e,t,n.custom):t;r=Promise.all(na(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var oa={test:e=>e===`auto`,parse:e=>e},sa=e=>t=>t.test(e),ca=[Dt,B,z,Ht,Wt,Ut,oa],la=e=>ca.find(sa(e));function ua(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Pe(e)}var da=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function fa(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(jt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!da.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var pa=/\b([a-z-]*)\(.*?\)/gu,ma={...H,getAnimatableNone:e=>{let t=e.match(pa);return t?t.map(fa).join(` `):e}},ha={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ga={...Dt,transform:Math.round},_a={rotate:Ht,pathRotation:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:kt,scaleX:kt,scaleY:kt,scaleZ:kt,skew:Ht,skewX:Ht,skewY:Ht,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Ot,originX:Gt,originY:Gt,originZ:B},va={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,..._a,zIndex:ga,fillOpacity:Ot,strokeOpacity:Ot,numOctaves:ga},ya={...va,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:ma,WebkitFilter:ma,mask:ha,WebkitMask:ha},ba=e=>ya[e],xa=new Set([ma,ha]);function Sa(e,t){let n=ba(e);return xa.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ca=new Set([`auto`,`none`,`0`]);function wa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ca.has(t)&&tn(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Sa(n,i)}var Ta=class extends Mr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),wt(r))){let i=zi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ui.has(n)||e.length!==2)return;let[r,i]=e,a=la(r),o=la(i);if(Et(r)!==Et(i)&&wr[n]){this.needsMeasurement=!0;return}if(a!==o){if(br(a)&&br(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else wr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ua(e[t]))&&n.push(t);n.length&&wa(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=wr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ea=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Da=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Ea,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function Oa(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Da.has(t)&&(e[n]=e[n]+`px`)}function ka(e){return!!(typeof e==`function`&&zr()||!e||typeof e==`string`&&(e in Vr||zr())||ut(e)||Array.isArray(e)&&e.every(ka))}var Aa=Fe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),ja=[];function Ma(e){typeof e.test==`function`&&e.read,Na(e),ja.unshift(e)}function Na(e){De(ja,e)}function Pa(e){return ja.find(t=>t.test(e))}function Fa(e,t,n,r={}){let i=[];for(let a in n){let o=n[a],s=e.get(t,a);if(!s){let n=e.read(t,a,o)??Ia(o);`${a}`,s=G(n),e(t,{[a]:s})}s.start(Ai(a,s,o,K(r,a))),s.animation&&i.push(s.animation)}return i}function Ia(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function La(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Ra(e){return(t,n)=>{let r=La(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}}}var za=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ba=class{constructor(e=F.render){this.step=e,this.latest={},this.values=new Map}set(e,t,n,r,i=!0){let a=this.values.get(e);a&&a.onRemove();let o=()=>{let r=t.get();i?this.latest[e]=za(r,va[e]):this.latest[e]=r,n&&this.step(n)};o();let s=t.on(`change`,o);r&&t.addDependent(r);let c=()=>{s(),n&&I(n),this.values.delete(e),r&&t.removeDependent(r)};return this.values.set(e,{value:t,onRemove:c}),c}get(e){return this.values.get(e)?.value}};function Va(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new Ba(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t)})}function Ha(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Ua=(e,t,n,r)=>{let i=Ha(e,n),a=i?n:n.startsWith(`data`)||n.startsWith(`aria`)?Xi(n):n,o=i?()=>{e[a]=t.latest[n]}:()=>{let r=t.latest[n];r==null?e.removeAttribute(a):e.setAttribute(a,String(r))};return t.set(n,r,o)},Wa=Ra(Va(Ua)),Ga=Va((e,t,n,r)=>t.set(n,r,()=>{e[n]=t.latest[n]},void 0,!1));function Ka(e){return Ne(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var qa={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`};function Ja(e){let t=``,n=!0;for(let r=0;r<vr.length;r++){let i=vr[r],a=e.latest[i];if(a===void 0)continue;let o=!0;if(typeof a==`number`)o=a===+!!i.startsWith(`scale`);else{let e=parseFloat(a);o=i.startsWith(`scale`)?e===1:e===0}if(!o){n=!1;let e=qa[i]||i;t+=`${e}(${a}) `}}let r=e.latest.pathRotation;return r&&(n=!1,t+=`rotate(${typeof r==`number`?`${r}deg`:r}) `),n?`none`:t.trim()}var Ya=new Set([`originX`,`originY`,`originZ`]),Xa=(e,t,n,r)=>{let i,a;return yr.has(n)?(t.get(`transform`)||(!Ka(e)&&!t.get(`transformBox`)&&Xa(e,t,`transformBox`,new xi(`fill-box`)),t.set(`transform`,new xi(`none`),()=>{e.style.transform=Ja(t)})),a=t.get(`transform`)):Ya.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new xi(``),()=>{let n=t.latest.originX??`50%`,r=t.latest.originY??`50%`,i=t.latest.originZ??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=Nr(n)?()=>{e.style.setProperty(n,t.latest[n])}:()=>{e.style[n]=t.latest[n]},t.set(n,r,i,a)},Za=Ra(Va(Xa));function Qa(e,t,n,r){return F.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let r=t.latest[n];e.setAttribute(`stroke-dashoffset`,`${-r}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new xi(`1 1`),()=>{let{pathLength:n=1,pathSpacing:r}=t.latest;e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var $a=Ra(Va((e,t,n,r)=>n.startsWith(`path`)?Qa(e,t,n,r):n.startsWith(`attr`)?Ua(e,t,eo(n),r):(n in e.style?Xa:Ua)(e,t,n,r)));function eo(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}var{schedule:to,cancel:no}=_t(queueMicrotask,!1),J={x:!1,y:!1};function ro(){return J.x||J.y}function io(e){return e===`x`||e===`y`?J[e]?null:(J[e]=!0,()=>{J[e]=!1}):J.x||J.y?null:(J.x=J.y=!0,()=>{J.x=J.y=!1})}function ao(e,t){let n=La(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function oo(e){return!(e.pointerType===`touch`||ro())}function so(e,t,n={}){let[r,i,a]=ao(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!oo(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var co=(e,t)=>t?e===t||co(e,t.parentElement):!1,lo=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,uo=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function fo(e){return uo.has(e.tagName)||e.isContentEditable===!0}var po=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function mo(e){return po.has(e.tagName)||e.isContentEditable===!0}var ho=new WeakSet;function go(e){return t=>{t.key===`Enter`&&e(t)}}function _o(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var vo=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=go(()=>{if(ho.has(n))return;_o(n,`down`);let e=go(()=>{_o(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>_o(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function yo(e){return lo(e)&&!ro()}var bo=new WeakSet;function xo(e,t,n={}){let[r,i,a]=ao(e,n),o=e=>{let r=e.currentTarget;if(!yo(e)||bo.has(e))return;ho.add(r),n.stopPropagation&&bo.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ho.has(r)&&ho.delete(r),yo(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||co(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ka(e)&&(e.addEventListener(`focus`,e=>vo(e,i)),!fo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function So(e,t){let n=window.getComputedStyle(e);return Nr(t)?n.getPropertyValue(t):n[t]}function Co(e){return Ne(e)&&`ownerSVGElement`in e}var wo=new WeakMap,To,Eo=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Co(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Do=Eo(`inline`,`width`,`offsetWidth`),Oo=Eo(`block`,`height`,`offsetHeight`);function ko({target:e,borderBoxSize:t}){wo.get(e)?.forEach(n=>{n(e,{get width(){return Do(e,t)},get height(){return Oo(e,t)}})})}function Ao(e){e.forEach(ko)}function jo(){typeof ResizeObserver>`u`||(To=new ResizeObserver(Ao))}function Mo(e,t){To||jo();let n=La(e);return n.forEach(e=>{let n=wo.get(e);n||(n=new Set,wo.set(e,n)),n.add(t),To?.observe(e)}),()=>{n.forEach(e=>{let n=wo.get(e);n?.delete(t),n?.size||To?.unobserve(e)})}}var No=new Set,Po;function Fo(){Po=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};No.forEach(t=>t(e))},window.addEventListener(`resize`,Po)}function Io(e){return No.add(e),Po||Fo(),()=>{No.delete(e),!No.size&&typeof Po==`function`&&(window.removeEventListener(`resize`,Po),Po=void 0)}}function Lo(e,t){return typeof e==`function`?Io(e):Mo(e,t)}function Ro(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return F.preUpdate(r,!0),()=>I(r)}var Y={value:null,addProjectionMetrics:null};function zo(){Y.value=null,Y.addProjectionMetrics=null}function Bo(){if(Y.value)throw zo(),Error(`Stats are already being measured`);let e=Y;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function Vo(e){return Co(e)&&e.tagName===`svg`}function Ho(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Uo(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Ho(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=pt(r)(s/t)*t}return t+s}}function Wo(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Un(i,a,o);return t?s(r):s}function Go(e,t){let n=G(q(e)?e.get():e);return Ko(n,e,t),n}function Ko(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Jo(e.get()),r=Jo(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new rr({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(qo(e,s)),F.postRender(u)},c),q(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(qo(t,s),!1)):e.set(qo(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function qo(e,t){return t?e+t:e}function Jo(e){return typeof e==`number`?e:parseFloat(e)}function Yo(e,t,n){let r=()=>t.set(n()),i=()=>F.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),I(r)})}function Xo(e){let t=[];bi.current=t;let n=e();bi.current=void 0;let r=G(n);return Yo(t,r,e),r}function Zo(e,t,n,r){let i=Wo(t,n,r);return Xo(()=>i(e.get()))}function Qo(e,t){return Go(e,{type:`spring`,...t})}function $o(e,t,n){return Ko(e,t,{type:`spring`,...n})}var es=[...ca,V,H],ts=e=>es.find(sa(e)),ns=0,rs=()=>`motion-view-${ns++}`,is=e=>e.startsWith(`motion-view-`);function as(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function os(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function ss(e,t,n,r,i,a=[],o,s=[],c){let l=La(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??rs();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),as(e,i,a),os(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!is(d)?f=d:(f=rs(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),as(e,i,a),os(e,f,o,s,c),f})}function cs(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function ls(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var us={},ds=null,fs={set:(e,t)=>{us[e]=t},commit:()=>{ds||(ds=document.createElement(`style`),ds.id=`motion-view`);let e=``;for(let t in us){let n=us[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
+
`}ds.textContent=e,document.head.appendChild(ds),us={}},remove:()=>{ds&&ds.parentElement&&ds.parentElement.removeChild(ds)}};function ps(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function ms(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function hs(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var gs=[`layout`,`enter`,`exit`,`new`,`old`],_s=e=>e.split(` `).every(e=>parseFloat(e)===0),vs={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},ys={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},bs=.2;function xs(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ui([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,La(n)),b=ss(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=ss(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=ss(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=Cs(K(c,n),K(Ss(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=N(r.duration);let{delay:i=0,duration:a,ease:o}=Gr(r);return{delay:N(i),duration:a,ease:o}},w=new Map,ee=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of Ea)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),te=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ne(e))&&h.add(e)},ne=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>bs},re=()=>{hs(`root`,n)||fs.set(`:root`,{"view-transition-name":`none`}),fs.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{fs.set(`::view-transition-group(${e})`,{overflow:`clip`}),fs.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{fs.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),fs.commit()},ie=()=>{cs(u,d,f),fs.remove()},ae=async()=>{await t(),b(`new`),ee(`new`),te(),re()},oe;try{b(`old`),ee(`old`),re(),oe=document.startViewTransition(ae)}catch(e){return ie(),Promise.reject(e)}return oe.finished.finally(ie),new Promise((e,t)=>{oe.ready.then(()=>{let t=ms(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of gs){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=ls(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){He(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Cs(K(c,m),K(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?ys[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=N(f.duration),f.delay&&=N(f.delay),n.push(new Kr({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=ps(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new pi(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:Hr(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=N(r.duration)),r=Gr(r),d={delay:N(r.delay??0),duration:u&&i!==void 0?N(i):r.duration,easing:u?`linear`:Hr(r.ease,r.duration)}}t.updateTiming(d),n.push(new pi(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Ea){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;_s(s)&&_s(c)||n.push(new Kr({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ui(n))}).catch(()=>oe.updateCallbackDone.then(()=>e(new ui([])),t))})}function Ss(e,t){for(let n of vs[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Cs(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var ws=[],Ts=null;function Es(){Ts=null;let[e]=ws;e&&Ds(e)}function Ds(e){De(ws,e),Ts=e,xs(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Es)}function Os(){for(let e=ws.length-1;e>=0;e--){let t=ws[e],{interrupt:n}=t.options;if(n===`immediate`){let n=ws.slice(0,e+1).map(e=>e.update),r=ws.slice(e+1);t.update=()=>{n.forEach(e=>e())},ws=[t,...r];break}}(!Ts||ws[0]?.options.interrupt===`immediate`)&&Es()}function ks(e){ws.push(e),to.render(Os)}var As=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=M,this.notifyReject=M,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(M),ks(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function js(e,t={}){return new As(e,t)}var Ms=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ns=()=>({x:Ms(),y:Ms()}),Ps=()=>({min:0,max:0}),X=()=>({x:Ps(),y:Ps()}),Fs=new WeakMap;function Is(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ls(e){return typeof e==`string`||Array.isArray(e)}var Rs=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],zs=[`initial`,...Rs];function Bs(e){return Is(e.animate)||zs.some(t=>Ls(e[t]))}function Vs(e){return!!(Bs(e)||e.variants)}function Hs(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,G(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,G(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Us={current:null},Ws={current:!1},Gs=typeof window<`u`;function Ks(){if(Ws.current=!0,Gs){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Us.current=e.matches;e.addEventListener(`change`,t),t()}else Us.current=!1}}var qs=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Js={};function Ys(e){Js=e}function Xs(){return Js}var Zs=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Mr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Bs(t),this.isVariantNode=Vs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Fs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ws.current||Ks(),this.shouldReduceMotion=Us.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),I(this.notifyUpdate),I(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ni.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Kr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:N(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=yr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Js){let t=Js[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<qs.length;t++){let n=qs[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Hs(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=G(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Me(n)||Pe(n))?n=parseFloat(n):!ts(n)&&H.test(t)&&(n=Sa(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){to.render(this.render)}},Qs=class extends Zs{constructor(){super(...arguments),this.KeyframeResolver=Ta}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},$s=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nc(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rc(e){return e===void 0||e===1}function ic({scale:e,scaleX:t,scaleY:n}){return!rc(e)||!rc(t)||!rc(n)}function ac(e){return ic(e)||oc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oc(e){return sc(e.x)||sc(e.y)}function sc(e){return e&&e!==`0%`}function cc(e,t,n){return n+t*(e-n)}function lc(e,t,n,r,i){return i!==void 0&&(e=cc(e,i,r)),cc(e,n,r)+t}function uc(e,t=0,n=1,r,i){e.min=lc(e.min,t,n,r,i),e.max=lc(e.max,t,n,r,i)}function dc(e,{x:t,y:n}){uc(e.x,t.translate,t.scale,t.originPoint),uc(e.y,n.translate,n.scale,n.originPoint)}var fc=.999999999999,pc=1.0000000000001;function mc(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(hc(e.x,-a.scroll.offset.x),hc(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,dc(e,o)),r&&ac(a.latestValues)&&vc(e,a.latestValues,a.layout?.layoutBox))}t.x<pc&&t.x>fc&&(t.x=1),t.y<pc&&t.y>fc&&(t.y=1)}function hc(e,t){e.min+=t,e.max+=t}function gc(e,t,n,r,i=.5){uc(e,t,n,U(e.min,e.max,i),r)}function _c(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function vc(e,t,n){let r=n??e;gc(e.x,_c(t.x,r.x),t.scaleX,t.scale,t.originX),gc(e.y,_c(t.y,r.y),t.scaleY,t.scale,t.originY)}function yc(e,t){return ec(nc(e.getBoundingClientRect(),t))}function bc(e,t,n){let r=yc(e,n),{scroll:i}=t;return i&&(hc(r.x,i.offset.x),hc(r.y,i.offset.y)),r}var xc={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Sc=vr.length;function Cc(e,t,n){let r=``,i=!0;for(let a=0;a<Sc;a++){let o=vr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=za(s,va[o]);if(!c){i=!1;let t=xc[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${za(a,va.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function wc(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(yr.has(e)){o=!0;continue}if(St(e)){i[e]=n;continue}{let t=za(n,va[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Cc(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Tc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ec(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Dc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(B.test(e))e=parseFloat(e);else return e}return`${Ec(e,t.target.x)}% ${Ec(e,t.target.y)}%`}},Oc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},kc={borderRadius:{...Dc,applyTo:[...Ea]},borderTopLeftRadius:Dc,borderTopRightRadius:Dc,borderBottomLeftRadius:Dc,borderBottomRightRadius:Dc,boxShadow:Oc};function Ac(e){for(let t in e)kc[t]=e[t],St(t)&&(kc[t].isCSSVariable=!0)}function jc(e,{layout:t,layoutId:n}){return yr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!kc[e]||e===`opacity`)}function Mc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||jc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Nc(e){return window.getComputedStyle(e)}var Pc=class extends Qs{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Tc}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(yr.has(t))return this.projection?.isProjecting?mr(t):gr(e,t);{let n=Nc(e),r=(St(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return yc(e,t)}build(e,t,n){wc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Mc(e,t,n)}};function Fc(e,t){return e in t}var Ic=class extends Zs{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Fc(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return X()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Lc={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Rc={offset:`strokeDashoffset`,array:`strokeDasharray`};function zc(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Lc:Rc;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Bc=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Vc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(wc(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Bc)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&zc(d,i,a,o,!1)}var Hc=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`]),Uc=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Wc(e,t,n,r){Tc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Hc.has(n)?n:Xi(n),t.attrs[n])}function Gc(e,t,n){let r=Mc(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=vr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Kc=class extends Qs{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(yr.has(t)){let e=ba(t);return e&&e.default||0}if(Bc.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Hc.has(t)?t:Xi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Gc(e,t,n)}build(e,t,n){Vc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Wc(e,t,n,r)}mount(e){this.isSVGTag=Uc(e.tagName),super.mount(e)}},qc=zs.length;function Jc(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Jc(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<qc;n++){let r=zs[n],i=e.props[r];(Ls(i)||i===!1)&&(t[r]=i)}return t}function Yc(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Xc=[...Rs].reverse(),Zc=Rs.length;function Qc(e){return t=>Promise.all(t.map(({animation:t,options:n})=>aa(e,t,n)))}function $c(e){let t=Qc(e),n=nl(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hi(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Jc(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Zc;t++){let p=Xc[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ls(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Is(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=el(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wi(t)&&Wi(n)?!Yc(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=_i(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hi(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=nl(),i=!0}}}function el(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Yc(t,e):!1}function tl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nl(){return{animate:tl(!0),whileInView:tl(),whileHover:tl(),whileTap:tl(),whileDrag:tl(),whileFocus:tl(),exit:tl()}}function rl(e,t){e.min=t.min,e.max=t.max}function Z(e,t){rl(e.x,t.x),rl(e.y,t.y)}function il(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var al=.9999,ol=1.0001,sl=-.01,cl=.01;function Q(e){return e.max-e.min}function ll(e,t,n){return Math.abs(e-t)<=n}function ul(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=al&&e.scale<=ol||isNaN(e.scale))&&(e.scale=1),(e.translate>=sl&&e.translate<=cl||isNaN(e.translate))&&(e.translate=0)}function dl(e,t,n,r){ul(e.x,t.x,n.x,r?r.originX:void 0),ul(e.y,t.y,n.y,r?r.originY:void 0)}function fl(e,t,n,r=0){e.min=(r?U(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function pl(e,t,n,r){fl(e.x,t.x,n.x,r?.x),fl(e.y,t.y,n.y,r?.y)}function ml(e,t,n,r=0){let i=r?U(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function hl(e,t,n,r){ml(e.x,t.x,n.x,r?.x),ml(e.y,t.y,n.y,r?.y)}function gl(e,t,n,r,i){return e-=t,e=cc(e,1/n,r),i!==void 0&&(e=cc(e,1/i,r)),e}function _l(e,t=0,n=1,r=.5,i,a=e,o=e){if(z.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=gl(e.min,t,n,s,i),e.max=gl(e.max,t,n,s,i)}function vl(e,t,[n,r,i],a,o){_l(e,t[n],t[r],t[i],t.scale,a,o)}var yl=[`x`,`scaleX`,`originX`],bl=[`y`,`scaleY`,`originY`];function xl(e,t,n,r){vl(e.x,t,yl,n?n.x:void 0,r?r.x:void 0),vl(e.y,t,bl,n?n.y:void 0,r?r.y:void 0)}function Sl(e){return e.translate===0&&e.scale===1}function Cl(e){return Sl(e.x)&&Sl(e.y)}function wl(e,t){return e.min===t.min&&e.max===t.max}function Tl(e,t){return wl(e.x,t.x)&&wl(e.y,t.y)}function El(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return El(e.x,t.x)&&El(e.y,t.y)}function Ol(e){return Q(e.x)/Q(e.y)}function kl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Al(e){return[e(`x`),e(`y`)]}function jl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ml=Ea.length,Nl=e=>typeof e==`string`?parseFloat(e):e,Pl=e=>typeof e==`number`||B.test(e);function Fl(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,Ll(r)),e.opacityExit=U(t.opacity??1,0,Rl(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ml;i++){let a=Ea[i],o=Il(t,a),s=Il(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Pl(o)===Pl(s)?(e[a]=Math.max(U(Nl(o),Nl(s),r),0),(z.test(s)||z.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function Il(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ll=zl(0,.5,nt),Rl=zl(.5,.95,M);function zl(e,t,n){return r=>r<e?0:r>t?1:n(Le(e,t,r))}function Bl(e,t,n){let r=q(e)?e:G(e);return r.start(Ai(``,r,t,n)),r.animation}function Vl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Hl=(e,t)=>e.depth-t.depth,Ul=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ee(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hl),this.isDirty=!1,this.children.forEach(e)}};function Wl(e,t){let n=R.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(I(r),e(a-t))};return F.setup(r,!0),()=>I(r)}function Gl(e,t){return Wl(e,N(t))}function Kl(e){return q(e)?e.get():e}var ql=class{constructor(){this.members=[]}add(e){Ee(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(De(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(De(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Xl=[``,`X`,`Y`,`Z`],Zl=1e3,Ql=0;function $l(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=$i(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eu(r)}function tu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ql++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Y.value&&(Yl.nodes=Yl.calculatedTargetDeltas=Yl.calculatedProjections=0),this.nodes.forEach(iu),this.nodes.forEach(pu),this.nodes.forEach(mu),this.nodes.forEach(au),Y.addProjectionMetrics&&Y.addProjectionMetrics(Yl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ul)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Re),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Co(t)&&!Vo(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Wl(i,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(fu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||xu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Dl(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...K(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||fu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),I(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(hu),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(cu),this.nodes.forEach(su);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uu),this.nodes.forEach(du),this.nodes.forEach(nu),this.nodes.forEach(ru)):this.nodes.forEach(lu),this.clearAllSnapshots();let e=R.now();L.delta=A(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,vt.update.process(L),vt.preRender.process(L),vt.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,to.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(gu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=X(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Cl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ac(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Tu(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return X();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Du))){let{scroll:e}=this.root;e&&(hc(t.x,e.offset.x),hc(t.y,e.offset.y))}return t}removeElementScroll(e){let t=X();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),hc(t.x,i.offset.x),hc(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||X();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(hc(r.x,-n.scroll.offset.x),hc(r.y,-n.scroll.offset.y)),ac(n.latestValues)&&vc(r,n.latestValues,n.layout?.layoutBox)}return ac(this.latestValues)&&vc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=X();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ac(n.latestValues))continue;let r;n.instance&&(ic(n.latestValues)&&n.updateSnapshot(),r=X(),Z(r,n.measurePageBox())),xl(t,n.latestValues,n.snapshot?.layoutBox,r)}return ac(this.latestValues)&&xl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=L.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),dc(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Y.value&&Yl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ic(this.parent.latestValues)||oc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),hl(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;mc(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=X());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)),dl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!kl(this.projectionDelta.x,this.prevProjectionDelta.x)||!kl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Y.value&&Yl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ns(),this.projectionDelta=Ns(),this.projectionDeltaWithTransform=Ns()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ns();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=X(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(bu));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=U(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=U(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(_u(o.x,e.x,n),_u(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yu(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Tl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=X(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,Fl(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(I(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{Jl.hasAnimatedSinceResize=!0,this.motionValue||=G(0),this.motionValue.jump(0,!1),this.currentAnimation=Bl(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Eu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||X();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),vc(t,i),dl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ql),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&$l(`z`,e,r,this.animationValues);for(let t=0;t<Xl.length;t++)$l(`rotate${Xl[t]}`,e,r,this.animationValues),$l(`skew${Xl[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Kl(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Kl(t?.pointerEvents)||``),this.hasProjected&&!ac(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=jl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in kc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=kc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Kl(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function nu(e){e.updateLayout()}function ru(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Al(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;rl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Eu(i,t.layoutBox,n)&&Al(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ns();dl(o,n,t.layoutBox);let s=Ns();a?dl(s,e.applyTransform(r,!0),t.measuredBox):dl(s,n,t.layoutBox);let c=!Cl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=X();hl(s,t.layoutBox,i.layoutBox,o);let c=X();hl(c,n,a.layoutBox,o),Dl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iu(e){Y.value&&Yl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function au(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ou(e){e.clearSnapshot()}function su(e){e.clearMeasurements()}function cu(e){e.isLayoutDirty=!0,e.updateLayout()}function lu(e){e.isLayoutDirty=!1}function uu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function du(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function fu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pu(e){e.resolveTargetDelta()}function mu(e){e.calcProjection()}function hu(e){e.resetSkewAndRotation()}function gu(e){e.removeLeadSnapshot()}function _u(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vu(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function yu(e,t,n,r){vu(e.x,t.x,n.x,r),vu(e.y,t.y,n.y,r)}function bu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var xu={duration:.45,ease:[.4,0,.1,1]},Su=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cu=Su(`applewebkit/`)&&!Su(`chrome/`)?Math.round:M;function wu(e){e.min=Cu(e.min),e.max=Cu(e.max)}function Tu(e){wu(e.x),wu(e.y)}function Eu(e,t,n){return e===`position`||e===`preserve-aspect`&&!ll(Ol(t),Ol(n),.2)}function Du(e){return e!==e.root&&e.scroll?.wasRoot}var Ou=tu({attachResizeListener:(e,t)=>Vl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ku=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Au(){let e=new Set,t=new WeakMap,n=()=>e.forEach(ku);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var ju={current:void 0},Mu=tu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ju.current){let e=new Ou({});e.mount(window),e.setOptions({layoutScroll:!0}),ju.current=e}return ju.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Nu=`[data-layout],[data-layout-id]`,Pu=new WeakMap,Fu;function Iu(e){let t=[];return e instanceof HTMLElement&&e.matches(Nu)&&t.push(e),e.querySelectorAll(Nu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Lu(){if(L.isProcessing)return;let e=R.now();L.delta=A(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,vt.update.process(L),vt.preRender.process(L),vt.render.process(L),L.isProcessing=!1}function Ru(e){let t=e.parentElement;for(;t;){let e=Pu.get(t);if(e&&e.instance)return e;t=t.parentElement}}function zu(){return new Pc({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Bu(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function Vu(e,t){let n=Pu.get(e);if(n)n.setOptions(Bu(e,t));else{let r=Fs.get(e);r||=zu(),e.style.transform&&!ac(r.latestValues)&&(e.style.transform=``),n=new Mu(r.latestValues,Ru(e)),r.projection=n,n.setOptions({...Bu(e,t),visualElement:r}),n.mount(e),Pu.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Hu(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Uu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Pu.delete(e)}function Wu(){let e=Fu;Fu=void 0,Lu();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Hu(t.keys())){let r=t.get(e),i=Vu(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),to.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Gu=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Fu||(Fu=[],queueMicrotask(Wu)),Fu.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Iu(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of Iu(this.scope)){if(this.tracked.has(t))continue;let n=Vu(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Uu(n,t)}}),t.relegate())return;n.remove()}Uu(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new ui([...e]))}};function Ku(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:La(e)[0]??document,updateDom:t,defaultOptions:n}}var qu=F,Ju=mt.reduce((e,t)=>(e[t]=e=>I(e),e),{}),$=S({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Yu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Yu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Yu(e[t],null)}}}}function Zu(...e){return ce(Xu(...e),e)}var Qu=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ka(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ka(e)&&e.offsetWidth||0,r=Ka(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function $u({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=fe(),c=D(null),l=D({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=T($),d=Zu(c,o===!1?void 0:e.props?.ref??e?.ref);return me(()=>{let{width:e,height:i,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!i)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);u&&(y.nonce=u);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
3
3
|
[data-motion-pop-id="${s}"] {
|
|
4
4
|
position: absolute !important;
|
|
5
5
|
width: ${e}px !important;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
${_}px !important;
|
|
8
8
|
${v}px !important;
|
|
9
9
|
}
|
|
10
|
-
`),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),i(Ku,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:x(e,{ref:d})})}var Ju=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=A(Yu),f=de(),p=O(n),m=O(r);Ce(()=>{p.current=n,m.current=r});let h=!0,g=he(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return o&&h&&(g={...g}),he(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),D(()=>{!n&&!d.size&&r&&r()},[n]),e=i(qu,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),i(we.Provider,{value:g,children:e})};function Yu(){return new Map}function Xu(e=!0){let t=E(we);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=de();D(()=>{if(e)return i(a)},[e]);let o=se(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Zu(){return Qu(E(we))}function Qu(e){return e===null||e.isPresent}var $u=e=>e.key||``;function ed(e){let t=[];return c.forEach(e,e=>{ee(e)&&t.push(e)}),t}var td=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Xu(c),m=he(()=>ed(e),[e]),h=c&&!f?[]:m.map($u),g=O(!0),_=O(m),v=A(()=>new Map),y=O(new Set),[b,x]=k(m),[S,C]=k(m);Ce(()=>{c&&!f&&!S.length&&p?.()},[f,c,S.length,p]),Ce(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=$u(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m],t=0;for(let n of S){let r=h.indexOf($u(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return s===`wait`&&w.length&&(e=w),C(ed(e)),x(m),null}let{forceRender:T}=E(xe);return i(r,{children:S.map(e=>{let r=$u(e),b=c&&!f?!1:m===S||h.includes(r);return i(Ju,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(r))return;if(v.has(r))y.current.add(r),v.set(r,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(T?.(),C(_.current),c&&p?.(),a&&a())},anchorX:l,anchorY:u,children:e},r)})})},nd=S(null);function rd(){let e=O(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function id(){let e=rd(),[t,n]=k(0),r=se(()=>{e.current&&n(t+1)},[t]);return[se(()=>I.postRender(r),[r]),t]}var ad=e=>e===!0,od=e=>ad(e===!0)||e===`id`,sd=({children:e,id:t,inherit:n=!0})=>{let r=E(xe),a=E(nd),[o,s]=id(),c=O(null),l=r.id||a;c.current===null&&(od(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:ad(n)&&r.group||Cu()});let u=he(()=>({...c.current,forceRender:o}),[s]);return i(xe.Provider,{value:u,children:e})},cd=S({strict:!1}),ld={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`]},ud=!1;function dd(){if(ud)return;let e={};for(let t in ld)e[t]={isEnabled:e=>ld[t].some(t=>!!e[t])};Us(e),ud=!0}function fd(){return dd(),Ws()}function pd(e){let t=fd();for(let n in e)t[n]={...t[n],...e[n]};Us(t)}function md({children:e,features:t,strict:n=!1}){let[,r]=k(!hd(t)),a=O(void 0);if(!hd(t)){let{renderer:e,...n}=t;a.current=e,pd(n)}return D(()=>{hd(t)&&t().then(({renderer:e,...t})=>{pd(t),a.current=e,r(!0)})},[]),i(cd.Provider,{value:{renderer:a.current,strict:n},children:e})}function hd(e){return typeof e==`function`}function gd({children:e,...t}){let n=E(Hu);t={...n,...t},t.transition=xi(t.transition,n.transition),t.isStatic=A(()=>t.isStatic);let r=he(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Hu.Provider,{value:r,children:e})}var _d=S({});function vd(e,t){if(Ps(e)){let{initial:t,animate:n}=e;return{initial:t===!1||js(t)?t:void 0,animate:js(n)?n:void 0}}return e.inherit===!1?{}:t}function yd(e){let{initial:t,animate:n}=vd(e,E(_d));return he(()=>({initial:t,animate:n}),[bd(t),bd(n)])}function bd(e){return Array.isArray(e)?e.join(` `):e}var xd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sd(e,t,n){for(let r in t)!q(t[r])&&!wc(r,n)&&(e[r]=t[r])}function Cd({transformTemplate:e},t){return he(()=>{let n=xd();return _c(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wd(e,t){let n=e.style||{},r={};return Sd(r,n,e),Object.assign(r,Cd(e,t)),r}function Td(e,t){let n={},r=wd(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ed=()=>({...xd(),attrs:{}});function Dd(e,t,n,r){let i=he(()=>{let n=Ed();return Pc(n,t,Ic(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Sd(t,e.style,e),i.style={...t,...i.style}}return i}var Od=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.propagate.ignoreStrict.viewport`.split(`.`));function kd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Od.has(e)}function Ad(e,t){return e.startsWith(`on`)?!kd(e):t?.(e)??!kd(e)}function jd(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(q(e[a])||(Ad(a,r)||n===!0&&kd(a)||!t&&!kd(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Md=[`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 Nd(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Md.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pd(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Nd(e)?Dd:Td)(t,r,i,e),l=jd(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=he(()=>q(f)?f.get():f,[f]);return C(e,{...d,children:p})}function Fd({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Id(n,r,i,e),renderState:t()}}function Id(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=zl(a[e]);let{initial:o,animate:s}=e,c=Ps(e),l=Fs(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!As(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ld=e=>(t,n)=>{let r=E(_d),i=E(we),a=()=>Fd(e,t,r,i);return n?a():A(a)},Rd=Ld({scrapeMotionValuesFromProps:Tc,createRenderState:xd}),zd=Ld({scrapeMotionValuesFromProps:Rc,createRenderState:Ed}),Bd=Symbol.for(`motionComponentSymbol`);function Vd(e,t,n){let r=O(n);pe(()=>{r.current=n});let i=O(null);return se(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Hd=S({});function Ud(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Wd(e,t,n,r,i,a){let{visualElement:o}=E(_d),s=E(cd),c=E(we),l=E(Hu),u=l.reducedMotion,d=l.skipAnimations,f=O(null),p=O(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=E(Hd);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Gd(f.current,n,i,h);let g=O(!1);pe(()=>{m&&g.current&&m.update(n,c)});let _=n[Qi],v=O(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ce(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),D(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Gd(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Kd(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Ud(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Kd(e){if(e)return e.options.allowProjection===!1?Kd(e.parent):e.projection}function qd(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&pd(r);let s=n?n===`svg`:Nd(e),c=s?zd:Rd;function l(n,l){let u,d={...E(Hu),...n,layoutId:Jd(n)},{isStatic:f,isValidProp:p}=d,m=yd(n),h=c(n,f);if(!f&&typeof window<`u`){Yd(d,r);let t=Xd(d);u=t.MeasureLayout,m.visualElement=Wd(e,h,d,o,t.ProjectionNode,s)}return a(_d.Provider,{value:m,children:[u&&m.visualElement?i(u,{visualElement:m.visualElement,...d}):null,Pd(e,n,Vd(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=T(l);return u[Bd]=e,u}function Jd({layoutId:e}){let t=E(xe).id;return t&&e!==void 0?t+`-`+e:e}function Yd(e,t){E(cd).strict}function Xd(e){let{drag:t,layout:n}=fd();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zd(e,t){if(typeof Proxy>`u`)return qd;let n=new Map,r=(n,r)=>qd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qd(a,void 0,e,t)),n.get(a))})}var Qd=Zd(),$d=(e,t)=>t.isSVG??Nd(e)?new zc(t):new Dc(t,{allowProjection:e!==u}),ef=class extends qs{constructor(e){super(e),e.animationState||=Kc(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();As(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},tf=0,nf={animation:{Feature:ef},exit:{Feature:class extends qs{constructor(){super(...arguments),this.id=tf++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hi(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function rf(e){return{point:{x:e.pageX,y:e.pageY}}}var af=e=>t=>ro(t)&&e(t,rf(t));function of(e,t,n,r){return Pl(e,t,af(n),r)}var sf=({current:e})=>e?e.ownerDocument.defaultView:null,cf=(e,t)=>Math.abs(e-t);function lf(e,t){let n=cf(e.x,t.x),r=cf(e.y,t.y);return Math.sqrt(n**2+r**2)}var uf=new Set([`auto`,`scroll`]),df=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ff(this.lastRawMoveEventInfo,this.transformPagePoint));let e=mf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=lf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=R;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ff(t,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=mf(e.type===`pointercancel`?this.lastMoveEventInfo:ff(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ro(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=ff(rf(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=R;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,mf(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Fe(of(this.contextWindow,`pointermove`,this.handlePointerMove,d),of(this.contextWindow,`pointerup`,this.handlePointerUp,d),of(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(uf.has(e.overflowX)||uf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),L(this.updatePoint)}};function ff(e,t){return t?{point:t(e.point)}:e}function pf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mf({point:e},t){return{point:e,delta:pf(e,gf(t)),offset:pf(e,hf(t)),velocity:_f(t,.1)}}function hf(e){return e[0]}function gf(e){return e[e.length-1]}function _f(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=gf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>P(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>P(t)*2&&(r=e[1]);let a=F(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function vf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function bf(e,{top:t,left:n,bottom:r,right:i}){return{x:yf(e.x,n,i),y:yf(e.y,t,r)}}function xf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Sf(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}function Cf(e,t){let n=.5,r=$(e),i=$(t);return i>r?n=Ie(t.min,t.max-r,e.min):r>i&&(n=Ie(e.min,e.max-i,t.min)),j(0,1,n)}function wf(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Tf=.35;function Ef(e=Tf){return e===!1?e=0:e===!0&&(e=Tf),{x:Df(e,`left`,`right`),y:Df(e,`top`,`bottom`)}}function Df(e,t,n){return{min:Of(e,t),max:Of(e,n)}}function Of(e,t){return typeof e==`number`?e:e[t]||0}var kf=new WeakMap,Af=class{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=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(rf(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Qa(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(B.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&I.update(()=>i(e,t),!1,!0),Yi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Pf(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&I.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new df(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:sf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&I.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Nf(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=vf(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ud(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?bf(n.layoutBox,e):!1,this.elastic=Ef(t),r!==this.constraints&&!Ud(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Cl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=wf(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ud(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=pc(n,r.root,this.visualElement.getTransformPagePoint()),a=Sf(r.layout.layoutBox,i);if(t){let e=t(Ys(a));this.hasMutatedConstraints=!!e,e&&(a=Js(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Cl(o=>{if(!Nf(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Yi(this.visualElement,e),n.start(Ai(e,n,0,t,this.visualElement,!1))}stopAnimation(){Cl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Cl(t=>{let{drag:n}=this.getProps();if(!Nf(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-W(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ud(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Cl(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Cf({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Cl(t=>{if(!Nf(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kf.set(this.visualElement,this);let e=this.visualElement.current,t=of(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&so(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Ud(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Mf(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),I.read(r);let o=Pl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Cl(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Tf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function jf(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Mf(e,t,n){let r=jo(e,jf(n)),i=jo(t,jf(n));return()=>{r(),i()}}function Nf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pf(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Ff=class extends qs{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Af(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},If=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)},Lf=class extends qs{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new df(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:If(e),onStart:If(t),onMove:If(n),onEnd:(e,t)=>{delete this.session,r&&I.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=of(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Rf=!1,zf=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Rf&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Vl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Rf=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||I.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ya.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Rf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Bf(e){let[t,n]=Xu(),r=E(xe);return i(zf,{...e,layoutGroup:r,switchLayoutGroup:E(Hd),isPresent:t,safeToRemove:n})}var Vf={pan:{Feature:Lf},drag:{Feature:Ff,ProjectionNode:Tu,MeasureLayout:Bf}};function Hf(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&I.postRender(()=>i(t,rf(t)))}var Uf=class extends qs{mount(){let{current:e}=this.node;e&&(this.unmount=to(e,(e,t)=>(Hf(this.node,t,`Start`),e=>Hf(this.node,e,`End`))))}unmount(){}},Wf=class extends qs{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=Fe(Pl(this.node.current,`focus`,()=>this.onFocus()),Pl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Gf(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&I.postRender(()=>i(t,rf(t)))}var Kf=class extends qs{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ho(e,(e,t)=>(Gf(this.node,t,`Start`),(e,{success:t})=>Gf(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},qf=new WeakMap,Jf=new WeakMap,Yf=e=>{let t=qf.get(e.target);t&&t(e)},Xf=e=>{e.forEach(Yf)};function Zf({root:e,...t}){let n=e||document;Jf.has(n)||Jf.set(n,{});let r=Jf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Xf,{root:e,...t})),r[i]}function Qf(e,t,n){let r=Zf(t);return qf.set(e,n),r.observe(e),()=>{qf.delete(e),r.unobserve(e)}}var $f={some:0,all:1},ep=class extends qs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$f[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Qf(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tp(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function tp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var np={inView:{Feature:ep},tap:{Feature:Kf},focus:{Feature:Wf},hover:{Feature:Uf}},rp={layout:{ProjectionNode:Tu,MeasureLayout:Bf}},ip=Zd({...nf,...np,...Vf,...rp},$d);function ap(e){return D(()=>()=>e(),[])}var op={renderer:$d,...nf,...np},sp={...op,...Vf,...rp},cp={renderer:$d,...nf};function lp(e,t,n){pe(()=>e.on(t,n),[e,t,n])}function up(e){return typeof window>`u`?!1:e?Lr():Ir()}var dp=50,fp=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),pp=()=>({time:0,x:fp(),y:fp()}),mp={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function hp(e,t,n,r){let i=n[t],{length:a,position:o}=mp[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Ie(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>dp?0:Re(i.current-s,l)}function gp(e,t,n){hp(e,`x`,t,n),hp(e,`y`,t,n),t.time=n}function _p(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ba(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var vp={start:0,center:.5,end:1};function yp(e,t,n=0){let r=0;if(e in vp&&(e=vp[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var bp=[0,0];function xp(e,t,n,r){let i=Array.isArray(e)?e:bp,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,vp[e]?e:`0`]),a=yp(i[0],n,r),o=yp(i[1],t),a-o}var Sp={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Cp={x:0,y:0};function wp(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Tp(e,t,n){let{offset:r=Sp.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?Cp:_p(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:wp(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=xp(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Wn(t[a].offset,Kn(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=j(0,1,t[a].interpolate(t[a].current))}function Ep(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Dp(e,t,n,r={}){return{measure:t=>{Ep(e,r.target,n),gp(e,n,t),(r.offset||r.target)&&Tp(e,n,r)},notify:()=>t(n)}}var Op=new WeakMap,kp=new WeakMap,Ap=new WeakMap,jp=new WeakMap,Mp=new WeakMap,Np=e=>e===document.scrollingElement?window:e;function Pp(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return N;let i=Ap.get(t);i||(i=new Set,Ap.set(t,i));let a=Dp(t,e,pp(),r);if(i.add(a),!Op.has(t)){let e=()=>{for(let e of i)e.measure(R.timestamp);I.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>I.read(e);Op.set(t,r);let a=Np(t);window.addEventListener(`resize`,r),t!==document.documentElement&&kp.set(t,jo(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!Mp.has(t)){let e=Op.get(t),n={width:t.scrollWidth,height:t.scrollHeight};jp.set(t,n);let r=I.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Mp.set(t,r)}let o=Op.get(t);return I.read(o,!1,!0),()=>{L(o);let e=Ap.get(t);if(!e||(e.delete(a),e.size))return;let n=Op.get(t);Op.delete(t),n&&(Np(t).removeEventListener(`scroll`,n),kp.get(t)?.(),window.removeEventListener(`resize`,n));let r=Mp.get(t);r&&(L(r),Mp.delete(t)),jp.delete(t)}}var Fp=[[Sp.Enter,`entry`],[Sp.Exit,`exit`],[Sp.Any,`cover`],[Sp.All,`contain`]],Ip={start:0,end:1};function Lp(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=Ip[t[0]],r=Ip[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function Rp(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=Lp(n);if(!e)return;t.push(e)}else return;return t}function zp(e,t){let n=Rp(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function Bp(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of Fp)if(zp(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var Vp=new Map;function Hp(e){let t={value:0};return{currentTime:t,cancel:Pp(n=>{t.value=n[e.axis].progress*100},e)}}function Up({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=Vp.get(t);i||(i=new Map,Vp.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&up(n.target)?Bp(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=Hp({container:t,...n}):up()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=Hp({container:t,...n})),o[s]}function Wp(e,t){let n=Up(t),r=t.target?Bp(t.offset):void 0,i=t.target?up(t.target)&&!!r:up();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),Mo(t=>{e.time=e.iterationDuration*t},n))})}function Gp(e){return e&&(e.target||e.offset)}function Kp(e){return e.length===2}function qp(e,t){return Kp(e)||Gp(t)?Pp(n=>{e(n[t.axis].progress,n)},t):Mo(e,Up(t))}function Jp(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return N;let i={axis:t,container:n,...r};return typeof e==`function`?qp(e,i):Wp(e,i)}var Yp=()=>({scrollX:K(0),scrollY:K(0),scrollXProgress:K(0),scrollYProgress:K(0)}),Xp=e=>e?!e.current:!1;function Zp(e,t,n,r){return{factory:i=>{let a,o=()=>{if(Xp(n)||Xp(r)){Ya.read(o);return}a=Jp(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Ya.read(o),()=>{Xa(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Qp(e,t){return typeof window>`u`?!1:e?Lr()&&!!Bp(t):Ir()}function $p({container:e,target:t,...n}={}){let r=A(Yp);Qp(t,n.offset)&&(r.scrollXProgress.accelerate=Zp(`x`,n,e,t),r.scrollYProgress.accelerate=Zp(`y`,n,e,t));let i=O(null),a=O(!1),o=se(()=>(i.current=Jp((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Ce(()=>{if(a.current=!1,Xp(e)||Xp(t)){a.current=!0;return}return o()},[o]),D(()=>{if(!a.current)return;let n,r=()=>{let r=Xp(e),i=Xp(t);!r&&!i&&(n=o())};return Ya.read(r),()=>{Xa(r),n?.()}},[o]),r}function em(e){return $p({container:e})}function tm(){return $p()}function nm(e){let t=A(()=>K(e)),{isStatic:n}=E(Hu);if(n){let[,n]=k(e);D(()=>t.on(`change`,n),[])}return t}function rm(e,t){let n=nm(t()),r=()=>n.set(t());return r(),Ce(()=>{let t=()=>I.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),L(r)}}),n}function im(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=q(n)?n.get():n)}return r}return rm(t.filter(q),r)}function am(e){yi.current=[],e();let t=rm(yi.current,e);return yi.current=void 0,t}function om(e,t,n,r){if(typeof e==`function`)return am(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return cm(e,t,n,r);let i=typeof t==`function`?t:Ro(t,n,r),a=Array.isArray(e)?sm(e,i):sm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function sm(e,t){let n=A(()=>[]);return rm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function cm(e,t,n,r){let i=A(()=>Object.keys(n)),a=A(()=>({}));for(let o of i)a[o]=om(e,t,n[o],r);return a}function lm(e,t={}){let{isStatic:n}=E(Hu),r=()=>q(e)?e.get():e;if(n)return om(r);let i=nm(r());return pe(()=>Bo(i,e,t),[i,JSON.stringify(t)]),i}function um(e,t={}){return lm(e,{type:`spring`,...t})}function dm(e){let t=O(0),{isStatic:n}=E(Hu);D(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return I.update(r,!0),()=>L(r)},[e])}function fm(){let e=nm(0);return dm(t=>e.set(t)),e}function pm(e){let t=nm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&I.update(n)};return lp(e,`change`,()=>{I.update(n,!1,!0)}),t}var mm=class extends bi{constructor(){super(...arguments),this.isEnabled=!1}add(e){(vr.has(e)||ti.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function hm(){return A(()=>new mm(`auto`))}function gm(){!Rs.current&&Bs();let[e]=k(Ls.current);return e}function _m(){let e=gm(),{reducedMotion:t}=E(Hu);return t===`never`?!1:t===`always`||e}function vm(e){e.values.forEach(e=>e.stop())}function ym(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&qi(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{ym(e,t)})})}function bm(e,t){if(Array.isArray(t))return ym(e,t);if(typeof t==`string`)return ym(e,[t]);qi(e,t)}function xm(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(aa(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{bm(e,t)})},stop(){e.forEach(e=>{vm(e)})},mount(){return()=>{t.stop()}}};return t}function Sm(e){return typeof e==`object`&&!Array.isArray(e)}function Cm(e,t,n,r){return e==null?[]:typeof e==`string`&&Sm(t)?ja(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function wm(e,t,n){return e*(t+1)+n*t}function Tm(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Em(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ee(e,i),r--)}}function Dm(e,t,n,r,i,a){Em(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:W(i,a,r[o]),easing:ct(n,o)})}function Om(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function km(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Am=`easeInOut`,jm=20;function Mm(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Tm(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Tm(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Fm(e),{delay:l=0,times:u=Kn(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Ur(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Rm(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=P(b));let r=kn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Gn(u,T),c.length===1&&c.unshift(null),m&&`${m}${jm}`,m&&m<jm){let e=b>0?_/b:0;b=wm(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Ye(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:ct(f,e-1))}Om(u,m,e)}let ee=w+b;Dm(r,c,y,u,w,ee),g=Math.max(x+b,g),f=Math.max(ee,f)};if(q(p)){let e=Nm(p,s);_(m,h,Pm(`default`,e))}else{let e=Cm(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Nm(r,s);for(let e in m)_(m[e],Im(h,e),Pm(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(km);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Ie(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Am)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Nm(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Pm(e,t){return t[e]||(t[e]=[]),t[e]}function Fm(e){return Array.isArray(e)?e:[e]}function Im(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Lm=e=>typeof e==`number`,Rm=e=>e.every(Lm);function zm(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=_o(e)&&!Fo(e)?new zc(t):new Dc(t);n.mount(e),ks.set(e,n)}function Bm(e){let t=new kc({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),ks.set(e,t)}function Vm(e,t){return q(e)||typeof e==`number`||typeof e==`string`&&!Sm(t)}function Hm(e,t,n,r){let i=[];if(Vm(e,t))i.push(Nl(e,Sm(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Cm(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?zm:Bm;ks.has(r)||s(r);let c=ks.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...na(c,{...t,transition:l},{}))}}return i}function Um(e,t,n){let r=[];return Mm(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=K(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:zn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Hm(n,e,t))}),r}function Wm(e){return Array.isArray(e)&&e.some(Array.isArray)}function Gm(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Wm(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Um(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Hm(e,i,{...c,...r},t)}let l=new di(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Ee(t.animations,l)})),l}return i}var Km=Gm();function qm(){let e=A(()=>({current:null,animations:[]})),t=_m()??void 0,{skipAnimations:n}=E(Hu),r=he(()=>Gm({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return ap(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function Jm(e,t,n,r){if(e==null)return[];let i=ja(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Si(s,e)};i.duration&&=P(i.duration),i.delay&&=P(i.delay);let a=hi(r),c=mi(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=go(r,i)),ir(t),Oa(t,i),!a&&t.length<2&&t.unshift(go(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Gr(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Ym=e=>{function t(t,n,r){return new di(Jm(t,n,r,e))}return t},Xm=Ym();function Zm(){let e=A(()=>({current:null,animations:[]})),t=A(()=>Ym(e));return ap(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function Qm(){let e=A(xm);return Ce(e.mount,[]),e}var $m=Qm;function eh(){let e=E(we);return e?e.custom:void 0}function th(e,t,n,r){D(()=>{let i=e.current;if(n&&i)return Pl(i,t,n,r)},[e,t,n,r])}var nh=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},rh=()=>new nh;function ih(){return A(rh)}function ah(e){return typeof e==`object`&&!!e&&Bd in e}function oh(e){if(ah(e))return e[Bd]}function sh(){return ch}function ch(e){wu.current&&(wu.current.isUpdating=!1,wu.current.blockUpdate(),e&&e())}function lh(){return se(()=>{let e=wu.current;e&&e.resetTree()},[])}function uh(...e){let t=O(0),[n,r]=k(e[t.current]);return[n,se(n=>{t.current=typeof n==`number`?n:He(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var dh={some:0,all:1};function fh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=ja(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:dh[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function ph(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=k(a);return D(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return fh(e.current,a,c)},[t,e,n,i,r]),o}function mh(){let[e,t]=id(),n=sh(),r=O(-1);return D(()=>{I.postRender(()=>I.postRender(()=>{t===r.current&&(M.instantAnimations=!1)}))},[t]),i=>{n(()=>{M.instantAnimations=!0,e(),i(),r.current=t+1})}}function hh(){M.instantAnimations=!1}function gh(){let[e,t]=k(!0);return D(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function _h(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function vh(e){return t=>{let n=e.current;if(!n)return t;let r=yh(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function yh(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var bh=new Map,xh=new Map,Sh=(e,t)=>`${e}: ${vr.has(t)?`transform`:t}`;function Ch(e,t,n){let r=Sh(e,t),i=bh.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var wh,Th,Eh=new Set;function Dh(){Eh.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),Eh.clear()}function Oh(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Zi];if(!a)return;window.MotionHandoffAnimation=Ch;let o=Sh(a,t);Th||(Th=Hr(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),bh.set(o,{animation:Th,startTime:null}),window.MotionHandoffAnimation=Ch,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return xh.has(e);let n=Sh(e,t);return!!bh.get(n)},window.MotionHandoffMarkAsComplete=e=>{xh.has(e)&&xh.set(e,!0)},window.MotionHandoffIsComplete=e=>xh.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=Sh(e,t),a=bh.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(Eh.add(a),n.render(Dh)):(bh.delete(i),bh.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=$i(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{Th.cancel();let a=Hr(e,t,n,r);wh===void 0&&(wh=performance.now()),a.startTime=wh,bh.set(o,{animation:a,startTime:wh}),i&&i(a)};xh.set(a,!1),Th.ready?Th.ready.then(s).catch(N):s()}var kh=()=>({}),Ah=class extends Gs{constructor(){super(...arguments),this.measureInstanceViewportBox=X}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return kh()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},jh=Ld({scrapeMotionValuesFromProps:kh,createRenderState:kh});function Mh(e){let[t,n]=k(e),r=jh({},!1),i=A(()=>new Ah({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return me(()=>(i.mount({}),()=>i.unmount()),[i]),[t,A(()=>e=>aa(i,e))]}var Nh=0,Ph=({children:e})=>(D(()=>{},[]),i(sd,{id:A(()=>`asl-${Nh++}`),children:e})),Fh=1e5,Ih=e=>e>.001?1/e:Fh;function Lh(e){let t=nm(1),n=nm(1),{visualElement:r}=E(_d);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:om(t,Ih),scaleY:om(n,Ih)}}var Rh=S(null);function zh(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:W(t.x.min,t.x.max,.5)+n.x,y:W(t.y.min,t.y.max,.5)+n.y},i=Bh(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>Vh(r.y,t)<Vh(r.y,e)?t:e);if(c!==s)return Hh(e,o,r.x,c,a);let l=Uh(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Uh(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:De(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=W(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?De(e,o,o+s):e}function Bh(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function Vh(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function Hh(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=W(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Uh(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Wh=(e,t)=>e.max<=t.min||t.max<=e.min;function Gh(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Wh(e[r].x,e[i].x),n||=Wh(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Kh({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,...o},s){let c=A(()=>ip[t]),l=O(new Map),[u,d]=k(`y`),f=O(!1),p=O(null),m=n||u,h=new Set(a);l.current.forEach((e,t)=>{h.has(t)||l.current.delete(t)});let g={axis:m,groupRef:p,registerItem:(e,t)=>{if(l.current.set(e,t),!n){let e=Gh(a.flatMap(e=>{let t=l.current.get(e);return t?[t]:[]}));e!==u&&d(e)}},updateOrder:(e,t,n)=>{if(f.current)return;let i=a.flatMap(e=>{let t=l.current.get(e);return t?[{value:e,layout:t}]:[]}),o=p.current?.ownerDocument.defaultView?.getComputedStyle(p.current).direction===`rtl`?`rtl`:`ltr`,s=zh(i,e,t,n,m,o);if(i!==s){f.current=!0;let e=[...a],t=i.map(({value:e})=>a.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};D(()=>{f.current=!1});let _=e=>{p.current=e,typeof s==`function`?s(e):s&&(s.current=e)},v={overflowAnchor:`none`,...o.style};return i(c,{...o,style:v,ref:_,ignoreStrict:!0,children:i(Rh.Provider,{value:g,children:e})})}var qh=T(Kh),Jh=50,Yh=25,Xh=new Set([`auto`,`scroll`]),Zh=new WeakMap,Qh=new WeakMap,$h=null;function eg(){if($h){let e=ng($h,`y`);e&&(Qh.delete(e),Zh.delete(e));let t=ng($h,`x`);t&&t!==e&&(Qh.delete(t),Zh.delete(t)),$h=null}}function tg(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Xh.has(r)||i}function ng(e,t){let n=e?.parentElement;for(;n;){if(tg(n,t))return n;n=n.parentElement}return null}function rg(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Jh){let e=1-o/Jh;return{amount:-25*e*e,edge:`start`}}if(s<Jh){let e=1-s/Jh;return{amount:Yh*e*e,edge:`end`}}return{amount:0,edge:null}}function ig(e,t,n,r){if(!e)return;$h=e;let i=ng(e,n);if(!i)return;let{amount:a,edge:o}=rg(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Qh.delete(i),Zh.delete(i);return}let s=Qh.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Qh.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Zh.set(i,e)}if(a>0){let e=Zh.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function ag(e,t=0){return q(e)?e:nm(t)}function og({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,layout:s=!0,...c},l){let u=A(()=>ip[r]),d=E(Rh),f={x:ag(t.x),y:ag(t.y)},p=om([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return i(u,{drag:m===`xy`||m,...c,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:f.x.get(),y:f.y.get()};g(n,o,r);let s=m===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:m;ig(_.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{eg(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var sg=T(og),cg=t({Group:()=>qh,Item:()=>sg}),lg=t({AnimatePresence:()=>td,AnimateSharedLayout:()=>Ph,AsyncMotionValueAnimation:()=>ci,DOMKeyframesResolver:()=>Ta,DOMVisualElement:()=>Ks,DeprecatedLayoutGroupContext:()=>nd,DocumentProjectionNode:()=>xu,DragControls:()=>nh,Feature:()=>qs,FlatTree:()=>Il,GroupAnimation:()=>li,GroupAnimationWithThen:()=>di,HTMLProjectionNode:()=>Tu,HTMLVisualElement:()=>Dc,JSAnimation:()=>nr,KeyframeResolver:()=>jr,LayoutAnimationBuilder:()=>Ru,LayoutGroup:()=>sd,LayoutGroupContext:()=>xe,LazyMotion:()=>md,MotionConfig:()=>gd,MotionConfigContext:()=>Hu,MotionContext:()=>_d,MotionGlobalConfig:()=>M,MotionValue:()=>bi,NativeAnimation:()=>Gr,NativeAnimationExtended:()=>Xr,NativeAnimationWrapper:()=>fi,NodeStack:()=>Bl,ObjectVisualElement:()=>kc,PopChild:()=>qu,PresenceChild:()=>Ju,PresenceContext:()=>we,Reorder:()=>cg,SVGVisualElement:()=>zc,SubscriptionManager:()=>Le,SwitchLayoutGroupContext:()=>Hd,ViewTransitionBuilder:()=>ws,VisualElement:()=>Gs,WillChangeMotionValue:()=>mm,acceleratedValues:()=>ti,addAttrValue:()=>La,addDomEvent:()=>Pl,addPointerEvent:()=>of,addPointerInfo:()=>af,addScaleCorrector:()=>Cc,addStyleValue:()=>Wa,addUniqueItem:()=>Te,addValueToWillChange:()=>Yi,alpha:()=>Dt,analyseComplexValue:()=>en,animate:()=>Km,animateMini:()=>Xm,animateMotionValue:()=>Ai,animateSingleValue:()=>Nl,animateTarget:()=>na,animateValue:()=>rr,animateVariant:()=>ra,animateView:()=>Ts,animateVisualElement:()=>aa,animationControls:()=>xm,animationMapKey:()=>mi,animations:()=>nf,anticipate:()=>$e,applyAxisDelta:()=>ic,applyBoxDelta:()=>ac,applyGeneratorOptions:()=>Wr,applyPointDelta:()=>rc,applyPxDefaults:()=>Oa,applyTreeDeltas:()=>cc,arc:()=>Ii,aspectRatio:()=>xl,attachFollow:()=>Bo,attachSpring:()=>qo,attrEffect:()=>Ra,axisDeltaEquals:()=>Sl,axisEquals:()=>_l,axisEqualsRounded:()=>yl,backIn:()=>Ze,backInOut:()=>Qe,backOut:()=>Xe,boxEquals:()=>vl,boxEqualsRounded:()=>bl,buildHTMLStyles:()=>_c,buildProjectionTransform:()=>wl,buildSVGAttrs:()=>Pc,buildSVGPath:()=>Mc,buildTransform:()=>gc,calcAxisDelta:()=>rl,calcBoxDelta:()=>il,calcChildStagger:()=>gi,calcGeneratorDuration:()=>On,calcLength:()=>$,calcRelativeAxis:()=>al,calcRelativeAxisPosition:()=>sl,calcRelativeBox:()=>ol,calcRelativePosition:()=>cl,camelCaseAttributes:()=>Fc,camelToDash:()=>Xi,cancelFrame:()=>L,cancelMicrotask:()=>Xa,cancelSync:()=>Vu,checkVariantsDidChange:()=>qc,circIn:()=>et,circInOut:()=>nt,circOut:()=>tt,clamp:()=>j,cleanDirtyNodes:()=>Ql,collectMotionValues:()=>yi,color:()=>H,compareByDepth:()=>Fl,complex:()=>U,containsCSSVariable:()=>Tt,convertBoundingBoxToBox:()=>Js,convertBoxToBoundingBox:()=>Ys,convertOffsetToTimes:()=>qn,copyAxisDeltaInto:()=>Zc,copyAxisInto:()=>Xc,copyBoxInto:()=>Q,correctBorderRadius:()=>bc,correctBoxShadow:()=>xc,correctParentTransform:()=>vh,createAnimationState:()=>Kc,createAxis:()=>Os,createAxisDelta:()=>Es,createBox:()=>X,createDelta:()=>Ds,createGeneratorEasing:()=>kn,createProjectionNode:()=>Jl,createRenderBatcher:()=>gt,createScopedAnimate:()=>Gm,cubicBezier:()=>qe,cubicBezierAsString:()=>zr,defaultEasing:()=>Jn,defaultOffset:()=>Kn,defaultTransformValue:()=>pr,defaultValueTypes:()=>ya,degrees:()=>Vt,delay:()=>Ll,delayInSeconds:()=>Rl,dimensionValueTypes:()=>ca,disableInstantTransitions:()=>hh,distance:()=>cf,distance2D:()=>lf,domAnimation:()=>op,domMax:()=>sp,domMin:()=>cp,eachAxis:()=>Cl,easeIn:()=>rt,easeInOut:()=>at,easeOut:()=>it,easingDefinitionToFunction:()=>ft,fillOffset:()=>Gn,fillWildcards:()=>ir,filterProps:()=>jd,findDimensionValueType:()=>la,findValueType:()=>Yo,flushKeyframeResolvers:()=>Ar,followValue:()=>zo,frame:()=>I,frameData:()=>R,frameSteps:()=>_t,generateLinearEasing:()=>En,getAnimatableNone:()=>Sa,getAnimationMap:()=>hi,getComputedStyle:()=>go,getDefaultTransition:()=>Di,getDefaultValueType:()=>ba,getEasingForSegment:()=>ct,getFeatureDefinitions:()=>Ws,getFinalKeyframe:()=>Zn,getMixer:()=>yn,getOptimisedAppearId:()=>$i,getOriginIndex:()=>Io,getValueAsType:()=>Na,getValueTransition:()=>Si,getVariableValue:()=>zi,getVariantContext:()=>Vc,getViewAnimationLayerInfo:()=>ss,getViewAnimations:()=>cs,globalProjectionState:()=>Vl,has2DTranslate:()=>ec,hasReducedMotionListener:()=>Rs,hasScale:()=>Qs,hasTransform:()=>$s,hasWarned:()=>Be,hex:()=>zt,hover:()=>to,hsla:()=>Gt,hslaToRgba:()=>ln,inView:()=>fh,inertia:()=>Hn,initPrefersReducedMotion:()=>Bs,interpolate:()=>Wn,invariant:()=>Ae,invisibleValues:()=>gn,isAnimationControls:()=>As,isBezierDefinition:()=>lt,isBrowser:()=>Se,isCSSVariableName:()=>xt,isCSSVariableToken:()=>Ct,isControllingVariants:()=>Ps,isDeltaZero:()=>gl,isDragActive:()=>Za,isDragging:()=>J,isEasingArray:()=>st,isElementKeyboardAccessible:()=>ao,isElementTextInput:()=>so,isForcedMotionValue:()=>wc,isGenerator:()=>Ur,isHTMLElement:()=>Ba,isKeyframesTarget:()=>Wi,isMotionComponent:()=>ah,isMotionValue:()=>q,isNear:()=>nl,isNodeOrChild:()=>no,isNumericalString:()=>je,isObject:()=>Me,isPrimaryPointer:()=>ro,isSVGElement:()=>_o,isSVGSVGElement:()=>Fo,isSVGTag:()=>Ic,isTransitionDefined:()=>ki,isValidMotionProp:()=>kd,isVariantLabel:()=>js,isVariantNode:()=>Fs,isWaapiSupportedEasing:()=>ka,isWillChangeMotionValue:()=>Ji,isZeroValueString:()=>Ne,keyframes:()=>Yn,m:()=>Qd,makeAnimationInstant:()=>ei,makeUseVisualState:()=>Ld,mapEasingToNativeEasing:()=>Vr,mapValue:()=>Go,maxGeneratorDuration:()=>Dn,measurePageBox:()=>pc,measureViewportBox:()=>fc,memo:()=>Pe,microtask:()=>Ya,millisecondsToSeconds:()=>F,mirrorEasing:()=>Je,mix:()=>wn,mixArray:()=>bn,mixColor:()=>hn,mixComplex:()=>Cn,mixImmediate:()=>un,mixLinearColor:()=>dn,mixNumber:()=>W,mixObject:()=>xn,mixValues:()=>Ol,mixVisibility:()=>_n,motion:()=>ip,motionValue:()=>K,moveItem:()=>De,nodeGroup:()=>Cu,noop:()=>N,number:()=>Et,numberValueTypes:()=>va,observeTimeline:()=>Mo,optimizedAppearDataAttribute:()=>Qi,optimizedAppearDataId:()=>Zi,parseAnimateLayoutArgs:()=>zu,parseCSSVariable:()=>Ri,parseValueFromTransform:()=>mr,percent:()=>B,pipe:()=>Fe,pixelsToPercent:()=>yc,positionalKeys:()=>Ui,prefersReducedMotion:()=>Ls,press:()=>ho,progress:()=>Ie,progressPercentage:()=>Wt,propEffect:()=>za,propagateDirtyNodes:()=>Zl,px:()=>V,readTransformValue:()=>hr,recordStats:()=>Po,removeAxisDelta:()=>ul,removeAxisTransforms:()=>dl,removeBoxTransforms:()=>ml,removeItem:()=>Ee,removePointDelta:()=>ll,renderHTML:()=>vc,renderSVG:()=>Lc,resize:()=>jo,resolveElements:()=>ja,resolveMotionValue:()=>zl,resolveTransition:()=>xi,resolveVariant:()=>Hi,resolveVariantFromProps:()=>Vi,reverseEasing:()=>Ye,rgbUnit:()=>It,rgba:()=>Lt,rootProjectionNode:()=>wu,scale:()=>Ot,scaleCorrectors:()=>Sc,scalePoint:()=>nc,scrapeHTMLMotionValuesFromProps:()=>Tc,scrapeSVGMotionValuesFromProps:()=>Rc,scroll:()=>Jp,scrollInfo:()=>Pp,secondsToMilliseconds:()=>P,setDragLock:()=>Qa,setFeatureDefinitions:()=>Us,setStyle:()=>Nr,setTarget:()=>qi,spring:()=>zn,springValue:()=>Ko,stagger:()=>Lo,startOptimizedAppearAnimation:()=>Oh,startWaapiAnimation:()=>Hr,statsBuffer:()=>Y,steps:()=>ot,styleEffect:()=>Ga,supportedWaapiEasing:()=>Br,supportsBrowserAnimation:()=>oi,supportsFlags:()=>Pr,supportsLinearEasing:()=>Rr,supportsPartialKeyframes:()=>Aa,supportsScrollTimeline:()=>Ir,supportsViewTimeline:()=>Lr,svgEffect:()=>qa,sync:()=>Bu,testValueType:()=>sa,time:()=>z,transform:()=>Ro,transformAxis:()=>lc,transformBox:()=>dc,transformBoxPoints:()=>Xs,transformPropOrder:()=>_r,transformProps:()=>vr,transformValue:()=>Wo,transformValueTypes:()=>_a,transformViewBoxPoint:()=>_h,translateAxis:()=>Z,unwrapMotionComponent:()=>oh,updateMotionValuesFromProps:()=>Is,useAnimate:()=>qm,useAnimateMini:()=>Zm,useAnimation:()=>$m,useAnimationControls:()=>Qm,useAnimationFrame:()=>dm,useComposedRefs:()=>Gu,useCycle:()=>uh,useDeprecatedAnimatedState:()=>Mh,useDeprecatedInvertedScale:()=>Lh,useDomEvent:()=>th,useDragControls:()=>ih,useElementScroll:()=>em,useFollowValue:()=>lm,useForceUpdate:()=>id,useInView:()=>ph,useInstantLayoutTransition:()=>sh,useInstantTransition:()=>mh,useIsPresent:()=>Zu,useIsomorphicLayoutEffect:()=>Ce,useMotionTemplate:()=>im,useMotionValue:()=>nm,useMotionValueEvent:()=>lp,usePageInView:()=>gh,usePresence:()=>Xu,usePresenceData:()=>eh,useReducedMotion:()=>gm,useReducedMotionConfig:()=>_m,useResetProjection:()=>lh,useScroll:()=>$p,useSpring:()=>um,useTime:()=>fm,useTransform:()=>om,useUnmountEffect:()=>ap,useVelocity:()=>pm,useViewportScroll:()=>tm,useWillChange:()=>hm,variantPriorityOrder:()=>Ms,variantProps:()=>Ns,velocityPerSecond:()=>Re,vh:()=>Ht,visualElementStore:()=>ks,vw:()=>Ut,warnOnce:()=>Ve,warning:()=>ke,wrap:()=>He}),ug=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},dg=lg;ug.register([`framer-motion`,`motion/react`,`motion`],dg),window.Motion=dg})();
|
|
10
|
+
`),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),i(Qu,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:x(e,{ref:d})})}var ed=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=k(td),f=fe(),p=D(n),m=D(r);we(()=>{p.current=n,m.current=r});let h=!0,g=ge(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return o&&h&&(g={...g}),ge(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),E(()=>{!n&&!d.size&&r&&r()},[n]),e=i($u,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),i(Te.Provider,{value:g,children:e})};function td(){return new Map}function nd(e=!0){let t=T(Te);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=fe();E(()=>{if(e)return i(a)},[e]);let o=ce(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function rd(){return id(T(Te))}function id(e){return e===null||e.isPresent}var ad=e=>e.key||``;function od(e){let t=[];return c.forEach(e,e=>{te(e)&&t.push(e)}),t}var sd=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=nd(c),m=ge(()=>od(e),[e]),h=c&&!f?[]:m.map(ad),g=D(!0),_=D(m),v=k(()=>new Map),y=D(new Set),[b,x]=O(m),[S,C]=O(m);we(()=>{c&&!f&&!S.length&&p?.()},[f,c,S.length,p]),we(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=ad(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m],t=0;for(let n of S){let r=h.indexOf(ad(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return s===`wait`&&w.length&&(e=w),C(od(e)),x(m),null}let{forceRender:ee}=T(Se);return i(r,{children:S.map(e=>{let r=ad(e),b=c&&!f?!1:m===S||h.includes(r);return i(ed,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(r))return;if(v.has(r))y.current.add(r),v.set(r,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(ee?.(),C(_.current),c&&p?.(),a&&a())},anchorX:l,anchorY:u,children:e},r)})})},cd=S(null);function ld(){let e=D(!1);return we(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ud(){let e=ld(),[t,n]=O(0),r=ce(()=>{e.current&&n(t+1)},[t]);return[ce(()=>F.postRender(r),[r]),t]}var dd=e=>e===!0,fd=e=>dd(e===!0)||e===`id`,pd=({children:e,id:t,inherit:n=!0})=>{let r=T(Se),a=T(cd),[o,s]=ud(),c=D(null),l=r.id||a;c.current===null&&(fd(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:dd(n)&&r.group||Au()});let u=ge(()=>({...c.current,forceRender:o}),[s]);return i(Se.Provider,{value:u,children:e})},md=S({strict:!1}),hd={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`]},gd=!1;function _d(){if(gd)return;let e={};for(let t in hd)e[t]={isEnabled:e=>hd[t].some(t=>!!e[t])};Ys(e),gd=!0}function vd(){return _d(),Xs()}function yd(e){let t=vd();for(let n in e)t[n]={...t[n],...e[n]};Ys(t)}function bd({children:e,features:t,strict:n=!1}){let[,r]=O(!xd(t)),a=D(void 0);if(!xd(t)){let{renderer:e,...n}=t;a.current=e,yd(n)}return E(()=>{xd(t)&&t().then(({renderer:e,...t})=>{yd(t),a.current=e,r(!0)})},[]),i(md.Provider,{value:{renderer:a.current,strict:n},children:e})}function xd(e){return typeof e==`function`}function Sd({children:e,...t}){let n=T($);t={...n,...t},t.transition=Si(t.transition,n.transition),t.isStatic=k(()=>t.isStatic);let r=ge(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i($.Provider,{value:r,children:e})}var Cd=S({});function wd(e,t){if(Bs(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ls(t)?t:void 0,animate:Ls(n)?n:void 0}}return e.inherit===!1?{}:t}function Td(e){let{initial:t,animate:n}=wd(e,T(Cd));return ge(()=>({initial:t,animate:n}),[Ed(t),Ed(n)])}function Ed(e){return Array.isArray(e)?e.join(` `):e}var Dd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Od(e,t,n){for(let r in t)!q(t[r])&&!jc(r,n)&&(e[r]=t[r])}function kd({transformTemplate:e},t){return ge(()=>{let n=Dd();return wc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ad(e,t){let n=e.style||{},r={};return Od(r,n,e),Object.assign(r,kd(e,t)),r}function jd(e,t){let n={},r=Ad(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Md=()=>({...Dd(),attrs:{}});function Nd(e,t,n,r){let i=ge(()=>{let n=Md();return Vc(n,t,Uc(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Od(t,e.style,e),i.style={...t,...i.style}}return i}var Pd=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.propagate.ignoreStrict.viewport`.split(`.`));function Fd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Pd.has(e)}function Id(e,t){return e.startsWith(`on`)?!Fd(e):t?.(e)??!Fd(e)}function Ld(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(q(e[a])||(Id(a,r)||n===!0&&Fd(a)||!t&&!Fd(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Rd=[`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 zd(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Rd.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bd(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??zd(e)?Nd:jd)(t,r,i,e),l=Ld(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ge(()=>q(f)?f.get():f,[f]);return C(e,{...d,children:p})}function Vd({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Hd(n,r,i,e),renderState:t()}}function Hd(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Kl(a[e]);let{initial:o,animate:s}=e,c=Bs(e),l=Vs(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Is(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ud=e=>(t,n)=>{let r=T(Cd),i=T(Te),a=()=>Vd(e,t,r,i);return n?a():k(a)},Wd=Ud({scrapeMotionValuesFromProps:Mc,createRenderState:Dd}),Gd=Ud({scrapeMotionValuesFromProps:Gc,createRenderState:Md}),Kd=Symbol.for(`motionComponentSymbol`);function qd(e,t,n){let r=D(n);me(()=>{r.current=n});let i=D(null);return ce(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Jd=S({});function Yd(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Xd(e,t,n,r,i,a){let{visualElement:o}=T(Cd),s=T(md),c=T(Te),l=T($),u=l.reducedMotion,d=l.skipAnimations,f=D(null),p=D(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=T(Jd);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Zd(f.current,n,i,h);let g=D(!1);me(()=>{m&&g.current&&m.update(n,c)});let _=n[Qi],v=D(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return we(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),E(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Zd(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Qd(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Yd(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Qd(e){if(e)return e.options.allowProjection===!1?Qd(e.parent):e.projection}function $d(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&yd(r);let s=n?n===`svg`:zd(e),c=s?Gd:Wd;function l(n,l){let u,d={...T($),...n,layoutId:ef(n)},{isStatic:f,isValidProp:p}=d,m=Td(n),h=c(n,f);if(!f&&typeof window<`u`){tf(d,r);let t=nf(d);u=t.MeasureLayout,m.visualElement=Xd(e,h,d,o,t.ProjectionNode,s)}return a(Cd.Provider,{value:m,children:[u&&m.visualElement?i(u,{visualElement:m.visualElement,...d}):null,Bd(e,n,qd(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ee(l);return u[Kd]=e,u}function ef({layoutId:e}){let t=T(Se).id;return t&&e!==void 0?t+`-`+e:e}function tf(e,t){T(md).strict}function nf(e){let{drag:t,layout:n}=vd();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function rf(e,t){if(typeof Proxy>`u`)return $d;let n=new Map,r=(n,r)=>$d(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,$d(a,void 0,e,t)),n.get(a))})}var af=rf(),of=(e,t)=>t.isSVG??zd(e)?new Kc(t):new Pc(t,{allowProjection:e!==u}),sf=class extends $s{constructor(e){super(e),e.animationState||=$c(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Is(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},cf=0,lf={animation:{Feature:sf},exit:{Feature:class extends $s{constructor(){super(...arguments),this.id=cf++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hi(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function uf(e){return{point:{x:e.pageX,y:e.pageY}}}var df=e=>t=>lo(t)&&e(t,uf(t));function ff(e,t,n,r){return Vl(e,t,df(n),r)}var pf=({current:e})=>e?e.ownerDocument.defaultView:null,mf=(e,t)=>Math.abs(e-t);function hf(e,t){let n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}var gf=new Set([`auto`,`scroll`]),_f=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vf(this.lastRawMoveEventInfo,this.transformPagePoint));let e=bf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=hf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=L;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=vf(t,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=bf(e.type===`pointercancel`?this.lastMoveEventInfo:vf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!lo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=vf(uf(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=L;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,bf(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ie(ff(this.contextWindow,`pointermove`,this.handlePointerMove,d),ff(this.contextWindow,`pointerup`,this.handlePointerUp,d),ff(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(gf.has(e.overflowX)||gf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),I(this.updatePoint)}};function vf(e,t){return t?{point:t(e.point)}:e}function yf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bf({point:e},t){return{point:e,delta:yf(e,Sf(t)),offset:yf(e,xf(t)),velocity:Cf(t,.1)}}function xf(e){return e[0]}function Sf(e){return e[e.length-1]}function Cf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Sf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>N(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>N(t)*2&&(r=e[1]);let a=P(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function wf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function Tf(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Ef(e,{top:t,left:n,bottom:r,right:i}){return{x:Tf(e.x,n,i),y:Tf(e.y,t,r)}}function Df(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Of(e,t){return{x:Df(e.x,t.x),y:Df(e.y,t.y)}}function kf(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Le(t.min,t.max-r,e.min):r>i&&(n=Le(e.min,e.max-i,t.min)),A(0,1,n)}function Af(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var jf=.35;function Mf(e=jf){return e===!1?e=0:e===!0&&(e=jf),{x:Nf(e,`left`,`right`),y:Nf(e,`top`,`bottom`)}}function Nf(e,t,n){return{min:Pf(e,t),max:Pf(e,n)}}function Pf(e,t){return typeof e==`number`?e:e[t]||0}var Ff=new WeakMap,If=class{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=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(uf(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=io(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Al(e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&F.update(()=>i(e,t),!1,!0),Yi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Bf(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&F.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new _f(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:pf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&F.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!zf(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=wf(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Yd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Ef(n.layoutBox,e):!1,this.elastic=Mf(t),r!==this.constraints&&!Yd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Al(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Af(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Yd(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=bc(n,r.root,this.visualElement.getTransformPagePoint()),a=Of(r.layout.layoutBox,i);if(t){let e=t(tc(a));this.hasMutatedConstraints=!!e,e&&(a=ec(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Al(o=>{if(!zf(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Yi(this.visualElement,e),n.start(Ai(e,n,0,t,this.visualElement,!1))}stopAnimation(){Al(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Al(t=>{let{drag:n}=this.getProps();if(!zf(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-U(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Yd(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Al(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=kf({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Al(t=>{if(!zf(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(U(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ff.set(this.visualElement,this);let e=this.visualElement.current,t=ff(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&mo(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Yd(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Rf(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(r);let o=Vl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Al(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=jf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Lf(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Rf(e,t,n){let r=Lo(e,Lf(n)),i=Lo(t,Lf(n));return()=>{r(),i()}}function zf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Bf(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Vf=class extends $s{constructor(e){super(e),this.removeGroupControls=M,this.removeListeners=M,this.controls=new If(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Hf=e=>(t,n)=>{e&&F.update(()=>e(t,n),!1,!0)},Uf=class extends $s{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(e){this.session=new _f(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Hf(e),onStart:Hf(t),onMove:Hf(n),onEnd:(e,t)=>{delete this.session,r&&F.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ff(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Wf=!1,Gf=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Wf&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Wf=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||F.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),to.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Wf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Kf(e){let[t,n]=nd(),r=T(Se);return i(Gf,{...e,layoutGroup:r,switchLayoutGroup:T(Jd),isPresent:t,safeToRemove:n})}var qf={pan:{Feature:Uf},drag:{Feature:Vf,ProjectionNode:Mu,MeasureLayout:Kf}};function Jf(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&F.postRender(()=>i(t,uf(t)))}var Yf=class extends $s{mount(){let{current:e}=this.node;e&&(this.unmount=so(e,(e,t)=>(Jf(this.node,t,`Start`),e=>Jf(this.node,e,`End`))))}unmount(){}},Xf=class extends $s{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=Ie(Vl(this.node.current,`focus`,()=>this.onFocus()),Vl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Zf(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&F.postRender(()=>i(t,uf(t)))}var Qf=class extends $s{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=xo(e,(e,t)=>(Zf(this.node,t,`Start`),(e,{success:t})=>Zf(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},$f=new WeakMap,ep=new WeakMap,tp=e=>{let t=$f.get(e.target);t&&t(e)},np=e=>{e.forEach(tp)};function rp({root:e,...t}){let n=e||document;ep.has(n)||ep.set(n,{});let r=ep.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(np,{root:e,...t})),r[i]}function ip(e,t,n){let r=rp(t);return $f.set(e,n),r.observe(e),()=>{$f.delete(e),r.unobserve(e)}}var ap={some:0,all:1},op=class extends $s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ap[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ip(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(sp(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function sp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var cp={inView:{Feature:op},tap:{Feature:Qf},focus:{Feature:Xf},hover:{Feature:Yf}},lp={layout:{ProjectionNode:Mu,MeasureLayout:Kf}},up=rf({...lf,...cp,...qf,...lp},of);function dp(e){return E(()=>()=>e(),[])}var fp={renderer:of,...lf,...cp},pp={...fp,...qf,...lp},mp={renderer:of,...lf};function hp(e,t,n){me(()=>e.on(t,n),[e,t,n])}function gp(e){return typeof window>`u`?!1:e?Rr():Lr()}var _p=50,vp=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),yp=()=>({time:0,x:vp(),y:vp()}),bp={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function xp(e,t,n,r){let i=n[t],{length:a,position:o}=bp[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Le(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>_p?0:ze(i.current-s,l)}function Sp(e,t,n){xp(e,`x`,t,n),xp(e,`y`,t,n),t.time=n}function Cp(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ka(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var wp={start:0,center:.5,end:1};function Tp(e,t,n=0){let r=0;if(e in wp&&(e=wp[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var Ep=[0,0];function Dp(e,t,n,r){let i=Array.isArray(e)?e:Ep,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,wp[e]?e:`0`]),a=Tp(i[0],n,r),o=Tp(i[1],t),a-o}var Op={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},kp={x:0,y:0};function Ap(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function jp(e,t,n){let{offset:r=Op.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?kp:Cp(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Ap(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=Dp(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Un(t[a].offset,Gn(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=A(0,1,t[a].interpolate(t[a].current))}function Mp(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Np(e,t,n,r={}){return{measure:t=>{Mp(e,r.target,n),Sp(e,n,t),(r.offset||r.target)&&jp(e,n,r)},notify:()=>t(n)}}var Pp=new WeakMap,Fp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,Rp=new WeakMap,zp=e=>e===document.scrollingElement?window:e;function Bp(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return M;let i=Ip.get(t);i||(i=new Set,Ip.set(t,i));let a=Np(t,e,yp(),r);if(i.add(a),!Pp.has(t)){let e=()=>{for(let e of i)e.measure(L.timestamp);F.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>F.read(e);Pp.set(t,r);let a=zp(t);window.addEventListener(`resize`,r),t!==document.documentElement&&Fp.set(t,Lo(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!Rp.has(t)){let e=Pp.get(t),n={width:t.scrollWidth,height:t.scrollHeight};Lp.set(t,n);let r=F.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Rp.set(t,r)}let o=Pp.get(t);return F.read(o,!1,!0),()=>{I(o);let e=Ip.get(t);if(!e||(e.delete(a),e.size))return;let n=Pp.get(t);Pp.delete(t),n&&(zp(t).removeEventListener(`scroll`,n),Fp.get(t)?.(),window.removeEventListener(`resize`,n));let r=Rp.get(t);r&&(I(r),Rp.delete(t)),Lp.delete(t)}}var Vp=[[Op.Enter,`entry`],[Op.Exit,`exit`],[Op.Any,`cover`],[Op.All,`contain`]],Hp={start:0,end:1};function Up(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=Hp[t[0]],r=Hp[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function Wp(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=Up(n);if(!e)return;t.push(e)}else return;return t}function Gp(e,t){let n=Wp(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function Kp(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of Vp)if(Gp(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var qp=new Map;function Jp(e){let t={value:0};return{currentTime:t,cancel:Bp(n=>{t.value=n[e.axis].progress*100},e)}}function Yp({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=qp.get(t);i||(i=new Map,qp.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&gp(n.target)?Kp(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=Jp({container:t,...n}):gp()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=Jp({container:t,...n})),o[s]}function Xp(e,t){let n=Yp(t),r=t.target?Kp(t.offset):void 0,i=t.target?gp(t.target)&&!!r:gp();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),Ro(t=>{e.time=e.iterationDuration*t},n))})}function Zp(e){return e&&(e.target||e.offset)}function Qp(e){return e.length===2}function $p(e,t){return Qp(e)||Zp(t)?Bp(n=>{e(n[t.axis].progress,n)},t):Ro(e,Yp(t))}function em(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return M;let i={axis:t,container:n,...r};return typeof e==`function`?$p(e,i):Xp(e,i)}var tm=()=>({scrollX:G(0),scrollY:G(0),scrollXProgress:G(0),scrollYProgress:G(0)}),nm=e=>e?!e.current:!1;function rm(e,t,n,r){return{factory:i=>{let a,o=()=>{if(nm(n)||nm(r)){to.read(o);return}a=em(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return to.read(o),()=>{no(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function im(e,t){return typeof window>`u`?!1:e?Rr()&&!!Kp(t):Lr()}function am({container:e,target:t,...n}={}){let r=k(tm);im(t,n.offset)&&(r.scrollXProgress.accelerate=rm(`x`,n,e,t),r.scrollYProgress.accelerate=rm(`y`,n,e,t));let i=D(null),a=D(!1),o=ce(()=>(i.current=em((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return we(()=>{if(a.current=!1,nm(e)||nm(t)){a.current=!0;return}return o()},[o]),E(()=>{if(!a.current)return;let n,r=()=>{let r=nm(e),i=nm(t);!r&&!i&&(n=o())};return to.read(r),()=>{no(r),n?.()}},[o]),r}function om(e){return am({container:e})}function sm(){return am()}function cm(e){let t=k(()=>G(e)),{isStatic:n}=T($);if(n){let[,n]=O(e);E(()=>t.on(`change`,n),[])}return t}function lm(e,t){let n=cm(t()),r=()=>n.set(t());return r(),we(()=>{let t=()=>F.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),I(r)}}),n}function um(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=q(n)?n.get():n)}return r}return lm(t.filter(q),r)}function dm(e){bi.current=[],e();let t=lm(bi.current,e);return bi.current=void 0,t}function fm(e,t,n,r){if(typeof e==`function`)return dm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return mm(e,t,n,r);let i=typeof t==`function`?t:Wo(t,n,r),a=Array.isArray(e)?pm(e,i):pm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function pm(e,t){let n=k(()=>[]);return lm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function mm(e,t,n,r){let i=k(()=>Object.keys(n)),a=k(()=>({}));for(let o of i)a[o]=fm(e,t,n[o],r);return a}function hm(e,t={}){let{isStatic:n}=T($),r=()=>q(e)?e.get():e;if(n)return fm(r);let i=cm(r());return me(()=>Ko(i,e,t),[i,JSON.stringify(t)]),i}function gm(e,t={}){return hm(e,{type:`spring`,...t})}function _m(e){let t=D(0),{isStatic:n}=T($);E(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return F.update(r,!0),()=>I(r)},[e])}function vm(){let e=cm(0);return _m(t=>e.set(t)),e}function ym(e){let t=cm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&F.update(n)};return hp(e,`change`,()=>{F.update(n,!1,!0)}),t}var bm=class extends xi{constructor(){super(...arguments),this.isEnabled=!1}add(e){(yr.has(e)||ni.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function xm(){return k(()=>new bm(`auto`))}function Sm(){!Ws.current&&Ks();let[e]=O(Us.current);return e}function Cm(){let e=Sm(),{reducedMotion:t}=T($);return t===`never`?!1:t===`always`||e}function wm(e){e.values.forEach(e=>e.stop())}function Tm(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&qi(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Tm(e,t)})})}function Em(e,t){if(Array.isArray(t))return Tm(e,t);if(typeof t==`string`)return Tm(e,[t]);qi(e,t)}function Dm(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(aa(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Em(e,t)})},stop(){e.forEach(e=>{wm(e)})},mount(){return()=>{t.stop()}}};return t}function Om(e){return typeof e==`object`&&!Array.isArray(e)}function km(e,t,n,r){return e==null?[]:typeof e==`string`&&Om(t)?La(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Am(e,t,n){return e*(t+1)+n*t}function jm(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Mm(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(De(e,i),r--)}}function Nm(e,t,n,r,i,a){Mm(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:U(i,a,r[o]),easing:lt(n,o)})}function Pm(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Fm(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Im=`easeInOut`,Lm=20;function Rm(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,jm(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=jm(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Vm(e),{delay:l=0,times:u=Gn(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Wr(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Wm(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=N(b));let r=An(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let ee=u.length-c.length;if(ee>0&&Wn(u,ee),c.length===1&&c.unshift(null),m&&`${m}${Lm}`,m&&m<Lm){let e=b>0?_/b:0;b=Am(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Xe(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:lt(f,e-1))}Pm(u,m,e)}let te=w+b;Nm(r,c,y,u,w,te),g=Math.max(x+b,g),f=Math.max(te,f)};if(q(p)){let e=zm(p,s);_(m,h,Bm(`default`,e))}else{let e=km(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=zm(r,s);for(let e in m)_(m[e],Hm(h,e),Bm(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Fm);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Le(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Im)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function zm(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Bm(e,t){return t[e]||(t[e]=[]),t[e]}function Vm(e){return Array.isArray(e)?e:[e]}function Hm(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Um=e=>typeof e==`number`,Wm=e=>e.every(Um);function Gm(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Co(e)&&!Vo(e)?new Kc(t):new Pc(t);n.mount(e),Fs.set(e,n)}function Km(e){let t=new Ic({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Fs.set(e,t)}function qm(e,t){return q(e)||typeof e==`number`||typeof e==`string`&&!Om(t)}function Jm(e,t,n,r){let i=[];if(qm(e,t))i.push(Bl(e,Om(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=km(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o));let c=r instanceof Element,l=c?void 0:Pa(r);if(l){i.push(...Fa(l,r,t,s));continue}let u=c?Gm:Km;Fs.has(r)||u(r);let d=Fs.get(r);i.push(...na(d,{...t,transition:s},{}))}}return i}function Ym(e,t,n){let r=[];return Rm(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=G(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Bn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Jm(n,e,t))}),r}function Xm(e){return Array.isArray(e)&&e.some(Array.isArray)}function Zm(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Xm(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Ym(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Jm(e,i,{...c,...r},t)}let l=new fi(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{De(t.animations,l)})),l}return i}var Qm=Object.assign(Zm(),{addEffect:Ma,removeEffect:Na});function $m(){let e=k(()=>({current:null,animations:[]})),t=Cm()??void 0,{skipAnimations:n}=T($),r=ge(()=>Zm({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return dp(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function eh(e,t,n,r){if(e==null)return[];let i=La(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...K(s,e)};i.duration&&=N(i.duration),i.delay&&=N(i.delay);let a=gi(r),c=hi(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=So(r,i)),ar(t),Oa(t,i),!a&&t.length<2&&t.unshift(So(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Kr(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var th=e=>{function t(t,n,r){return new fi(eh(t,n,r,e))}return t},nh=th();function rh(){let e=k(()=>({current:null,animations:[]})),t=k(()=>th(e));return dp(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function ih(){let e=k(Dm);return we(e.mount,[]),e}var ah=ih;function oh(){let e=T(Te);return e?e.custom:void 0}function sh(e,t,n,r){E(()=>{let i=e.current;if(n&&i)return Vl(i,t,n,r)},[e,t,n,r])}var ch=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},lh=()=>new ch;function uh(){return k(lh)}function dh(e){return typeof e==`object`&&!!e&&Kd in e}function fh(e){if(dh(e))return e[Kd]}function ph(){return mh}function mh(e){ju.current&&(ju.current.isUpdating=!1,ju.current.blockUpdate(),e&&e())}function hh(){return ce(()=>{let e=ju.current;e&&e.resetTree()},[])}function gh(...e){let t=D(0),[n,r]=O(e[t.current]);return[n,ce(n=>{t.current=typeof n==`number`?n:Ue(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var _h={some:0,all:1};function vh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=La(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:_h[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function yh(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=O(a);return E(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return vh(e.current,a,c)},[t,e,n,i,r]),o}function bh(){let[e,t]=ud(),n=ph(),r=D(-1);return E(()=>{F.postRender(()=>F.postRender(()=>{t===r.current&&(j.instantAnimations=!1)}))},[t]),i=>{n(()=>{j.instantAnimations=!0,e(),i(),r.current=t+1})}}function xh(){j.instantAnimations=!1}function Sh(){let[e,t]=O(!0);return E(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Ch(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function wh(e){return t=>{let n=e.current;if(!n)return t;let r=Th(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function Th(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var Eh=new Map,Dh=new Map,Oh=(e,t)=>`${e}: ${yr.has(t)?`transform`:t}`;function kh(e,t,n){let r=Oh(e,t),i=Eh.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var Ah,jh,Mh=new Set;function Nh(){Mh.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),Mh.clear()}function Ph(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Zi];if(!a)return;window.MotionHandoffAnimation=kh;let o=Oh(a,t);jh||(jh=Ur(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),Eh.set(o,{animation:jh,startTime:null}),window.MotionHandoffAnimation=kh,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Dh.has(e);let n=Oh(e,t);return!!Eh.get(n)},window.MotionHandoffMarkAsComplete=e=>{Dh.has(e)&&Dh.set(e,!0)},window.MotionHandoffIsComplete=e=>Dh.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=Oh(e,t),a=Eh.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(Mh.add(a),n.render(Nh)):(Eh.delete(i),Eh.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=$i(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{jh.cancel();let a=Ur(e,t,n,r);Ah===void 0&&(Ah=performance.now()),a.startTime=Ah,Eh.set(o,{animation:a,startTime:Ah}),i&&i(a)};Dh.set(a,!1),jh.ready?jh.ready.then(s).catch(M):s()}var Fh=()=>({}),Ih=class extends Zs{constructor(){super(...arguments),this.measureInstanceViewportBox=X}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Fh()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},Lh=Ud({scrapeMotionValuesFromProps:Fh,createRenderState:Fh});function Rh(e){let[t,n]=O(e),r=Lh({},!1),i=k(()=>new Ih({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return he(()=>(i.mount({}),()=>i.unmount()),[i]),[t,k(()=>e=>aa(i,e))]}var zh=0,Bh=({children:e})=>(E(()=>{},[]),i(pd,{id:k(()=>`asl-${zh++}`),children:e})),Vh=1e5,Hh=e=>e>.001?1/e:Vh;function Uh(e){let t=cm(1),n=cm(1),{visualElement:r}=T(Cd);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:fm(t,Hh),scaleY:fm(n,Hh)}}var Wh=S(null);function Gh(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:U(t.x.min,t.x.max,.5)+n.x,y:U(t.y.min,t.y.max,.5)+n.y},i=Kh(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>qh(r.y,t)<qh(r.y,e)?t:e);if(c!==s)return Jh(e,o,r.x,c,a);let l=Yh(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Yh(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:Oe(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=U(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?Oe(e,o,o+s):e}function Kh(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function qh(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function Jh(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=U(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Yh(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Xh=(e,t)=>e.max<=t.min||t.max<=e.min;function Zh(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Xh(e[r].x,e[i].x),n||=Xh(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Qh({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,...o},s){let c=k(()=>up[t]),l=D(new Map),[u,d]=O(`y`),f=D(!1),p=D(null),m=n||u,h=new Set(a);l.current.forEach((e,t)=>{h.has(t)||l.current.delete(t)});let g={axis:m,groupRef:p,registerItem:(e,t)=>{if(l.current.set(e,t),!n){let e=Zh(a.flatMap(e=>{let t=l.current.get(e);return t?[t]:[]}));e!==u&&d(e)}},updateOrder:(e,t,n)=>{if(f.current)return;let i=a.flatMap(e=>{let t=l.current.get(e);return t?[{value:e,layout:t}]:[]}),o=p.current?.ownerDocument.defaultView?.getComputedStyle(p.current).direction===`rtl`?`rtl`:`ltr`,s=Gh(i,e,t,n,m,o);if(i!==s){f.current=!0;let e=[...a],t=i.map(({value:e})=>a.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};E(()=>{f.current=!1});let _=e=>{p.current=e,typeof s==`function`?s(e):s&&(s.current=e)},v={overflowAnchor:`none`,...o.style};return i(c,{...o,style:v,ref:_,ignoreStrict:!0,children:i(Wh.Provider,{value:g,children:e})})}var $h=ee(Qh),eg=50,tg=25,ng=new Set([`auto`,`scroll`]),rg=new WeakMap,ig=new WeakMap,ag=null;function og(){if(ag){let e=cg(ag,`y`);e&&(ig.delete(e),rg.delete(e));let t=cg(ag,`x`);t&&t!==e&&(ig.delete(t),rg.delete(t)),ag=null}}function sg(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return ng.has(r)||i}function cg(e,t){let n=e?.parentElement;for(;n;){if(sg(n,t))return n;n=n.parentElement}return null}function lg(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<eg){let e=1-o/eg;return{amount:-25*e*e,edge:`start`}}if(s<eg){let e=1-s/eg;return{amount:tg*e*e,edge:`end`}}return{amount:0,edge:null}}function ug(e,t,n,r){if(!e)return;ag=e;let i=cg(e,n);if(!i)return;let{amount:a,edge:o}=lg(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){ig.delete(i),rg.delete(i);return}let s=ig.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;ig.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);rg.set(i,e)}if(a>0){let e=rg.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function dg(e,t=0){return q(e)?e:cm(t)}function fg({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,layout:s=!0,...c},l){let u=k(()=>up[r]),d=T(Wh),f={x:dg(t.x),y:dg(t.y)},p=fm([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return i(u,{drag:m===`xy`||m,...c,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:f.x.get(),y:f.y.get()};g(n,o,r);let s=m===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:m;ug(_.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{og(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var pg=ee(fg),mg=t({Group:()=>$h,Item:()=>pg}),hg=t({AnimatePresence:()=>sd,AnimateSharedLayout:()=>Bh,AsyncMotionValueAnimation:()=>li,DOMKeyframesResolver:()=>Ta,DOMVisualElement:()=>Qs,DeprecatedLayoutGroupContext:()=>cd,DocumentProjectionNode:()=>Ou,DragControls:()=>ch,Feature:()=>$s,FlatTree:()=>Ul,GroupAnimation:()=>ui,GroupAnimationWithThen:()=>fi,HTMLProjectionNode:()=>Mu,HTMLVisualElement:()=>Pc,JSAnimation:()=>rr,KeyframeResolver:()=>Mr,LayoutAnimationBuilder:()=>Gu,LayoutGroup:()=>pd,LayoutGroupContext:()=>Se,LazyMotion:()=>bd,MotionConfig:()=>Sd,MotionConfigContext:()=>$,MotionContext:()=>Cd,MotionGlobalConfig:()=>j,MotionValue:()=>xi,MotionValueState:()=>Ba,NativeAnimation:()=>Kr,NativeAnimationExtended:()=>Zr,NativeAnimationWrapper:()=>pi,NodeStack:()=>ql,ObjectVisualElement:()=>Ic,PopChild:()=>$u,PresenceChild:()=>ed,PresenceContext:()=>Te,Reorder:()=>mg,SVGVisualElement:()=>Kc,SubscriptionManager:()=>Re,SwitchLayoutGroupContext:()=>Jd,ViewTransitionBuilder:()=>As,VisualElement:()=>Zs,WillChangeMotionValue:()=>bm,acceleratedValues:()=>ni,addAttrValue:()=>Ua,addDomEvent:()=>Vl,addEffect:()=>Ma,addPointerEvent:()=>ff,addPointerInfo:()=>df,addScaleCorrector:()=>Ac,addStyleValue:()=>Xa,addUniqueItem:()=>Ee,addValueToWillChange:()=>Yi,alpha:()=>Ot,analyseComplexValue:()=>tn,animate:()=>Qm,animateEffectSubject:()=>Fa,animateMini:()=>nh,animateMotionValue:()=>Ai,animateSingleValue:()=>Bl,animateTarget:()=>na,animateValue:()=>ir,animateVariant:()=>ra,animateView:()=>js,animateVisualElement:()=>aa,animationControls:()=>Dm,animationMapKey:()=>hi,animations:()=>lf,anticipate:()=>et,applyAxisDelta:()=>uc,applyBoxDelta:()=>dc,applyGeneratorOptions:()=>Gr,applyPointDelta:()=>lc,applyPxDefaults:()=>Oa,applyTreeDeltas:()=>mc,arc:()=>Ii,aspectRatio:()=>Ol,attachFollow:()=>Ko,attachSpring:()=>$o,attrEffect:()=>Wa,axisDeltaEquals:()=>kl,axisEquals:()=>wl,axisEqualsRounded:()=>El,backIn:()=>Qe,backInOut:()=>$e,backOut:()=>Ze,boxEquals:()=>Tl,boxEqualsRounded:()=>Dl,buildHTMLStyles:()=>wc,buildProjectionTransform:()=>jl,buildSVGAttrs:()=>Vc,buildSVGPath:()=>zc,buildTransform:()=>Cc,calcAxisDelta:()=>ul,calcBoxDelta:()=>dl,calcChildStagger:()=>_i,calcGeneratorDuration:()=>kn,calcLength:()=>Q,calcRelativeAxis:()=>fl,calcRelativeAxisPosition:()=>ml,calcRelativeBox:()=>pl,calcRelativePosition:()=>hl,camelCaseAttributes:()=>Hc,camelToDash:()=>Xi,cancelFrame:()=>I,cancelMicrotask:()=>no,cancelSync:()=>Ju,checkVariantsDidChange:()=>el,circIn:()=>tt,circInOut:()=>rt,circOut:()=>nt,clamp:()=>A,cleanDirtyNodes:()=>au,collectMotionValues:()=>bi,color:()=>V,compareByDepth:()=>Hl,complex:()=>H,containsCSSVariable:()=>Et,convertBoundingBoxToBox:()=>ec,convertBoxToBoundingBox:()=>tc,convertOffsetToTimes:()=>Kn,copyAxisDeltaInto:()=>il,copyAxisInto:()=>rl,copyBoxInto:()=>Z,correctBorderRadius:()=>Dc,correctBoxShadow:()=>Oc,correctParentTransform:()=>wh,createAnimationState:()=>$c,createAxis:()=>Ps,createAxisDelta:()=>Ms,createBox:()=>X,createDelta:()=>Ns,createEffect:()=>Va,createGeneratorEasing:()=>An,createProjectionNode:()=>tu,createRenderBatcher:()=>_t,createScopedAnimate:()=>Zm,cubicBezier:()=>Je,cubicBezierAsString:()=>Br,defaultEasing:()=>qn,defaultOffset:()=>Gn,defaultTransformValue:()=>mr,defaultValueTypes:()=>ya,degrees:()=>Ht,delay:()=>Wl,delayInSeconds:()=>Gl,dimensionValueTypes:()=>ca,disableInstantTransitions:()=>xh,distance:()=>mf,distance2D:()=>hf,domAnimation:()=>fp,domMax:()=>pp,domMin:()=>mp,eachAxis:()=>Al,easeIn:()=>it,easeInOut:()=>ot,easeOut:()=>at,easingDefinitionToFunction:()=>pt,fillOffset:()=>Wn,fillWildcards:()=>ar,filterProps:()=>Ld,findDimensionValueType:()=>la,findEffect:()=>Pa,findValueType:()=>ts,flushKeyframeResolvers:()=>jr,followValue:()=>Go,frame:()=>F,frameData:()=>L,frameSteps:()=>vt,generateLinearEasing:()=>Dn,getAnimatableNone:()=>Sa,getAnimationMap:()=>gi,getComputedStyle:()=>So,getDefaultTransition:()=>Di,getDefaultValueType:()=>ba,getEasingForSegment:()=>lt,getFeatureDefinitions:()=>Xs,getFinalKeyframe:()=>Qn,getMixer:()=>bn,getOptimisedAppearId:()=>$i,getOriginIndex:()=>Ho,getValueAsType:()=>za,getValueTransition:()=>K,getVariableValue:()=>zi,getVariantContext:()=>Jc,getViewAnimationLayerInfo:()=>ps,getViewAnimations:()=>ms,globalProjectionState:()=>Jl,has2DTranslate:()=>oc,hasReducedMotionListener:()=>Ws,hasScale:()=>ic,hasTransform:()=>ac,hasWarned:()=>Ve,hex:()=>Bt,hover:()=>so,hsla:()=>Kt,hslaToRgba:()=>un,inView:()=>vh,inertia:()=>Vn,initPrefersReducedMotion:()=>Ks,interpolate:()=>Un,invariant:()=>je,invisibleValues:()=>_n,isAnimationControls:()=>Is,isBezierDefinition:()=>ut,isBrowser:()=>Ce,isCSSVariableName:()=>St,isCSSVariableToken:()=>wt,isControllingVariants:()=>Bs,isDeltaZero:()=>Cl,isDragActive:()=>ro,isDragging:()=>J,isEasingArray:()=>ct,isElementKeyboardAccessible:()=>fo,isElementTextInput:()=>mo,isForcedMotionValue:()=>jc,isGenerator:()=>Wr,isHTMLElement:()=>Ka,isKeyframesTarget:()=>Wi,isMotionComponent:()=>dh,isMotionValue:()=>q,isNear:()=>ll,isNodeOrChild:()=>co,isNumericalString:()=>Me,isObject:()=>Ne,isPrimaryPointer:()=>lo,isSVGElement:()=>Co,isSVGSVGElement:()=>Vo,isSVGTag:()=>Uc,isTransitionDefined:()=>ki,isValidMotionProp:()=>Fd,isVariantLabel:()=>Ls,isVariantNode:()=>Vs,isWaapiSupportedEasing:()=>ka,isWillChangeMotionValue:()=>Ji,isZeroValueString:()=>Pe,keyframes:()=>Jn,m:()=>af,makeAnimationInstant:()=>ti,makeUseVisualState:()=>Ud,mapEasingToNativeEasing:()=>Hr,mapValue:()=>Zo,maxGeneratorDuration:()=>On,measurePageBox:()=>bc,measureViewportBox:()=>yc,memo:()=>Fe,microtask:()=>to,millisecondsToSeconds:()=>P,mirrorEasing:()=>Ye,mix:()=>Tn,mixArray:()=>xn,mixColor:()=>gn,mixComplex:()=>wn,mixImmediate:()=>dn,mixLinearColor:()=>fn,mixNumber:()=>U,mixObject:()=>Sn,mixValues:()=>Fl,mixVisibility:()=>vn,motion:()=>up,motionValue:()=>G,moveItem:()=>Oe,nodeGroup:()=>Au,noop:()=>M,number:()=>Dt,numberValueTypes:()=>va,observeTimeline:()=>Ro,optimizedAppearDataAttribute:()=>Qi,optimizedAppearDataId:()=>Zi,parseAnimateLayoutArgs:()=>Ku,parseCSSVariable:()=>Ri,parseValueFromTransform:()=>hr,percent:()=>z,pipe:()=>Ie,pixelsToPercent:()=>Ec,positionalKeys:()=>Ui,prefersReducedMotion:()=>Us,press:()=>xo,progress:()=>Le,progressPercentage:()=>Gt,propEffect:()=>Ga,propagateDirtyNodes:()=>iu,px:()=>B,readTransformValue:()=>gr,recordStats:()=>Bo,removeAxisDelta:()=>_l,removeAxisTransforms:()=>vl,removeBoxTransforms:()=>xl,removeEffect:()=>Na,removeItem:()=>De,removePointDelta:()=>gl,renderHTML:()=>Tc,renderSVG:()=>Wc,resize:()=>Lo,resolveElements:()=>La,resolveMotionValue:()=>Kl,resolveTransition:()=>Si,resolveVariant:()=>Hi,resolveVariantFromProps:()=>Vi,reverseEasing:()=>Xe,rgbUnit:()=>Lt,rgba:()=>Rt,rootProjectionNode:()=>ju,scale:()=>kt,scaleCorrectors:()=>kc,scalePoint:()=>cc,scrapeHTMLMotionValuesFromProps:()=>Mc,scrapeSVGMotionValuesFromProps:()=>Gc,scroll:()=>em,scrollInfo:()=>Bp,secondsToMilliseconds:()=>N,setDragLock:()=>io,setFeatureDefinitions:()=>Ys,setStyle:()=>Pr,setTarget:()=>qi,spring:()=>Bn,springValue:()=>Qo,stagger:()=>Uo,startOptimizedAppearAnimation:()=>Ph,startWaapiAnimation:()=>Ur,statsBuffer:()=>Y,steps:()=>st,styleEffect:()=>Za,supportedWaapiEasing:()=>Vr,supportsBrowserAnimation:()=>si,supportsFlags:()=>Fr,supportsLinearEasing:()=>zr,supportsPartialKeyframes:()=>Aa,supportsScrollTimeline:()=>Lr,supportsViewTimeline:()=>Rr,svgEffect:()=>$a,sync:()=>qu,testValueType:()=>sa,time:()=>R,transform:()=>Wo,transformAxis:()=>gc,transformBox:()=>vc,transformBoxPoints:()=>nc,transformPropOrder:()=>vr,transformProps:()=>yr,transformValue:()=>Xo,transformValueTypes:()=>_a,transformViewBoxPoint:()=>Ch,translateAxis:()=>hc,unwrapMotionComponent:()=>fh,updateMotionValuesFromProps:()=>Hs,useAnimate:()=>$m,useAnimateMini:()=>rh,useAnimation:()=>ah,useAnimationControls:()=>ih,useAnimationFrame:()=>_m,useComposedRefs:()=>Zu,useCycle:()=>gh,useDeprecatedAnimatedState:()=>Rh,useDeprecatedInvertedScale:()=>Uh,useDomEvent:()=>sh,useDragControls:()=>uh,useElementScroll:()=>om,useFollowValue:()=>hm,useForceUpdate:()=>ud,useInView:()=>yh,useInstantLayoutTransition:()=>ph,useInstantTransition:()=>bh,useIsPresent:()=>rd,useIsomorphicLayoutEffect:()=>we,useMotionTemplate:()=>um,useMotionValue:()=>cm,useMotionValueEvent:()=>hp,usePageInView:()=>Sh,usePresence:()=>nd,usePresenceData:()=>oh,useReducedMotion:()=>Sm,useReducedMotionConfig:()=>Cm,useResetProjection:()=>hh,useScroll:()=>am,useSpring:()=>gm,useTime:()=>vm,useTransform:()=>fm,useUnmountEffect:()=>dp,useVelocity:()=>ym,useViewportScroll:()=>sm,useWillChange:()=>xm,variantPriorityOrder:()=>Rs,variantProps:()=>zs,velocityPerSecond:()=>ze,vh:()=>Ut,visualElementStore:()=>Fs,vw:()=>Wt,warnOnce:()=>He,warning:()=>Ae,wrap:()=>Ue}),gg=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},_g=hg;gg.register([`framer-motion`,`motion/react`,`motion`],_g),window.Motion=_g})();
|