@hazem3500/komo 0.9.14 → 0.9.15
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/README.md +2 -1
- package/dist/accent-picker-KV4WUTUN.js +1 -0
- package/dist/agent-prompt.js +1 -1
- package/dist/chunk-53M6AOAX.js +1 -0
- package/dist/chunk-ANOEZXUK.js +1 -0
- package/dist/chunk-WGISPOJV.js +1 -0
- package/dist/design-comment-K2JCM7IT.js +1 -0
- package/dist/design-export-G42ZDP5F.js +1 -0
- package/dist/design-mode-styles.d.ts +1 -1
- package/dist/design-mode.js +1 -1
- package/dist/design-panel-VLR2UILF.js +1 -0
- package/dist/highlight.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/inline-text-editor-Z2N32PER.js +1 -0
- package/dist/node.mjs +1 -1
- package/dist/onboarding-BYM5KIZI.js +1 -0
- package/dist/picker-CMP4UZRF.js +1 -0
- package/dist/react-props-panel-NC7KLZ73.js +1 -0
- package/dist/react.js +1 -1
- package/dist/select-menu-IY5BJMFM.js +1 -0
- package/dist/setup.js +1 -1
- package/dist/tag-editor-ES4VZCEQ.js +1 -0
- package/dist/tag-editor.d.ts +2 -0
- package/dist/token-picker-XXX4L3Y7.js +1 -0
- package/dist/toolbar-runtime-AQBTB2UG.js +1 -0
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
- package/server/setup-client.txt +51 -51
- package/src/types.ts +7 -0
- package/dist/accent-picker-XA4ZRYML.js +0 -1
- package/dist/chunk-7YUXYVQA.js +0 -1
- package/dist/chunk-I7AUKTXE.js +0 -1
- package/dist/chunk-RCC6R6PS.js +0 -1
- package/dist/design-comment-MPAF2YAN.js +0 -1
- package/dist/design-export-DK7XZXBR.js +0 -1
- package/dist/design-panel-E5I2NED2.js +0 -1
- package/dist/inline-text-editor-TZNY2BNK.js +0 -1
- package/dist/onboarding-XR3ZKGRF.js +0 -1
- package/dist/picker-WQN53YJ5.js +0 -1
- package/dist/react-props-panel-HWQ7WERB.js +0 -1
- package/dist/select-menu-IA6BOUCR.js +0 -1
- package/dist/tag-editor-KGH3ZCAT.js +0 -1
- package/dist/token-picker-XGRBJUNM.js +0 -1
- package/dist/toolbar-runtime-E4B67FWV.js +0 -1
package/src/types.ts
CHANGED
|
@@ -140,6 +140,13 @@ export interface CommentsOptions {
|
|
|
140
140
|
* picking to pageRoot. Called on every pick; keep it cheap.
|
|
141
141
|
*/
|
|
142
142
|
pickRoots?: () => Element[];
|
|
143
|
+
/**
|
|
144
|
+
* Frame view scales body-level portals (dialogs, overlays, toasts) with the
|
|
145
|
+
* page. By default it frames each position: fixed child of body without an
|
|
146
|
+
* inline transform; script-positioned popovers already follow their framed
|
|
147
|
+
* anchors. `include` overrides that choice per body child.
|
|
148
|
+
*/
|
|
149
|
+
frame?: { include?(element: HTMLElement): boolean };
|
|
143
150
|
/**
|
|
144
151
|
* Stop komo's own pointer, focus, wheel and typing events at its host
|
|
145
152
|
* element, so page shortcuts and open modals don't react to komo's UI.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,i as t}from"./chunk-ANKCS6NI.js";import"./chunk-I7AUKTXE.js";import{useEffect as r,useLayoutEffect as n,useRef as o,useState as a}from"react";import{createRoot as c}from"react-dom/client";import l,{useRef as i,useMemo as u,useEffect as s,useState as f,useCallback as d,useLayoutEffect as h}from"react";function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function m(e){var t=i(e),r=i(function(e){t.current&&t.current(e)});return t.current=e,r.current}var g=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e<t?t:e},b=function(e){return"touches"in e},_=function(e){return e&&e.ownerDocument.defaultView||self},w=function(e,t,r){var n=e.getBoundingClientRect(),o=b(t)?function(e,t){for(var r=0;r<e.length;r++)if(e[r].identifier===t)return e[r];return e[0]}(t.touches,r):t;return{left:g((o.pageX-(n.left+_(e).pageXOffset))/n.width),top:g((o.pageY-(n.top+_(e).pageYOffset))/n.height)}},x=function(e){!b(e)&&e.preventDefault()},C=l.memo(function(e){var t=e.onMove,r=e.onKey,n=e.onEnd,o=v(e,["onMove","onKey","onEnd"]),a=i(null),c=m(t),f=m(r),d=m(n),h=i(null),g=i(!1),C=u(function(){var e=function(e){x(e),(b(e)?e.touches.length>0:e.buttons>0)&&a.current?c(w(a.current,e,h.current)):(r(!1),d())},t=function(){r(!1),d()};function r(r){var n=g.current,o=_(a.current),c=r?o.addEventListener:o.removeEventListener;c(n?"touchmove":"mousemove",e),c(n?"touchend":"mouseup",t)}return[function(e){var t,n=e.nativeEvent,o=a.current;if(o&&(x(n),t=n,(!g.current||b(t))&&o)){if(b(n)){g.current=!0;var l=n.changedTouches||[];l.length&&(h.current=l[0].identifier)}o.focus(),c(w(o,n,h.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),f({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&d()},r]},[f,c,d]),E=C[0],y=C[1],k=C[2],N=C[3];return s(function(){return N},[N]),l.createElement("div",p({},o,{onTouchStart:E,onMouseDown:E,className:"react-colorful__interactive",ref:a,onKeyDown:y,onKeyUp:k,tabIndex:0,role:"slider"}))}),E=function(e){return e.filter(Boolean).join(" ")},y=function(e){var t=e.color,r=e.left,n=e.top,o=void 0===n?.5:n,a=E(["react-colorful__pointer",e.className]);return l.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},l.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},k=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},N=(Math.PI,function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?k(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?k(parseInt(e.substring(6,8),16)/255,2):1}}),M=function(e){var t=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:k(e.h),s:k(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:k(o/2),a:k(n,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},L=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),c=n*(1-r),l=n*(1-(t-a)*r),i=n*(1-(1-t+a)*r),u=a%6;return{r:k(255*[n,l,c,c,i,n][u]),g:k(255*[i,n,n,l,c,c][u]),b:k(255*[c,c,i,n,n,l][u]),a:k(o,2)}},I=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},j=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?I(k(255*o)):"";return"#"+I(t)+I(r)+I(n)+a},H=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),c=a-Math.min(t,r,n),l=c?a===t?(r-n)/c:a===r?2+(n-t)/c:4+(t-r)/c:0;return{h:60*(l<0?l+6:l),s:a?c/a*100:0,v:a/255*100,a:o}},P=l.memo(function(e){var t=e.hue,r=e.onChange,n=e.onChangeEnd,o=E(["react-colorful__hue",e.className]);return l.createElement("div",{className:o},l.createElement(C,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:g(t+360*e.left,0,360)})},onEnd:n,"aria-label":"Hue","aria-valuenow":k(t),"aria-valuemax":"360","aria-valuemin":"0"},l.createElement(y,{className:"react-colorful__hue-pointer",left:t/360,color:M({h:t,s:100,v:100,a:1})})))}),z=l.memo(function(e){var t=e.hsva,r=e.onChange,n=e.onChangeEnd,o={backgroundColor:M({h:t.h,s:100,v:100,a:1})};return l.createElement("div",{className:"react-colorful__saturation",style:o},l.createElement(C,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:g(t.s+100*e.left,0,100),v:g(t.v-100*e.top,0,100)})},onEnd:n,"aria-label":"Color","aria-valuetext":"Saturation "+k(t.s)+"%, Brightness "+k(t.v)+"%"},l.createElement(y,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:M(t)})))}),D=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0};var B=typeof window<"u"?h:s,K=new WeakMap,A=function(e){B(function(){var t=e.current;if(typeof document<"u"&&t){var r=t.getRootNode?t.getRootNode():t.ownerDocument,n=r&&("head"in r||"host"in r)?r:t.ownerDocument;if(!K.has(n)){var o="head"in n?n.head:n,a=(o.ownerDocument||document).createElement("style");a.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}';var c=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0;c&&a.setAttribute("nonce",c),K.set(n,a),o.appendChild(a)}}},[])},O=function(e){var t=e.className,r=e.colorModel,n=e.color,o=void 0===n?r.defaultColor:n,a=e.onChange,c=e.onChangeEnd,u=v(e,["className","colorModel","color","onChange","onChangeEnd"]),h=i(null);A(h);var g=function(e,t,r,n){var o=m(r),a=m(n),c=f(function(){return e.toHsva(t)}),l=c[0],u=c[1],h=i({color:t,hsva:l}),p=i(!1);s(function(){if(!e.equal(t,h.current.color)){var r=e.toHsva(t);h.current={hsva:r,color:t},u(r),p.current=!1}},[t,e]),s(function(){var t;D(l,h.current.hsva)||e.equal(t=e.fromHsva(l),h.current.color)||(h.current={hsva:l,color:t},o(t),p.current=!0)},[l,e,o]);var v=d(function(e){u(function(t){return Object.assign({},t,e)})},[]),g=d(function(){p.current&&(p.current=!1,a(h.current.color))},[a]);return[l,v,g]}(r,o,a,c),b=g[0],_=g[1],w=g[2],x=E(["react-colorful",t]);return l.createElement("div",p({},u,{ref:h,className:x}),l.createElement(z,{hsva:b,onChange:_,onChangeEnd:w}),l.createElement(P,{hue:b.h,onChange:_,onChangeEnd:w,className:"react-colorful__last-control"}))},S={defaultColor:"000",toHsva:function(e){return H(N(e))},fromHsva:function(e){return function(e){return j(L(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||D(N(e),N(t))}},R=function(e){return l.createElement(O,p({},e,{colorModel:S}))},T=/^#?([0-9A-F]{3,8})$/i,W=function(e){var t=e.color,r=void 0===t?"":t,n=e.onChange,o=e.onBlur,a=e.escape,c=e.validate,i=e.format,u=e.process,h=v(e,["color","onChange","onBlur","escape","validate","format","process"]),g=f(function(){return a(r)}),b=g[0],_=g[1],w=m(n),x=m(o),C=d(function(e){var t=a(e.target.value);_(t),c(t)&&w(u?u(t):t)},[a,u,c,w]),E=d(function(e){c(e.target.value)||_(a(r)),x(e)},[r,a,c,x]);return s(function(){_(a(r))},[r,a]),l.createElement("input",p({},h,{value:i?i(b):b,spellCheck:"false",onChange:C,onBlur:E}))},q=function(e){return"#"+e},$=function(e){var t=e.prefixed,r=e.alpha,n=v(e,["prefixed","alpha"]),o=d(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,r?8:6)},[r]),a=d(function(e){return t=e,n=r,o=T.exec(t),3===(a=o?o[1].length:0)||6===a||!!n&&4===a||!!n&&8===a;var t,n,o,a},[r]);return l.createElement(W,p({},n,{escape:o,format:t?q:void 0,process:q,validate:a}))};import*as X from"react";var Y=({size:e=24,color:t="currentColor",...r})=>X.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},X.createElement("path",{d:"M12 5v14m-7-7h14"}));Y.displayName="Plus";import{jsx as F,jsxs as U}from"react/jsx-runtime";var V=[["Lavender","#c8b5f4"],["Blue","#85b5ff"],["Mint","#84d9bb"],["Yellow","#f4d779"],["Peach","#f5af87"],["Pink","#efa5c6"]];function G({initial:t,onChange:c}){let[l,i]=a(t),[u,s]=a(!1),f=o(null),d=o(null),h=!V.some(([,e])=>e===l),p=e=>{if(!/^#[0-9a-f]{6}$/i.test(e))return;let t=e.toLowerCase();i(t),c(t)};return n(()=>{let e=f.current;if(!e)return;if(!u){let t=window.setTimeout(()=>e.hidePopover(),150);return()=>clearTimeout(t)}e.showPopover();let t=()=>{let t=d.current.getBoundingClientRect();e.style.left=`${Math.max(8,Math.min(t.right-e.offsetWidth,innerWidth-e.offsetWidth-8))}px`,e.style.top=`${Math.max(8,t.top-e.offsetHeight-8)}px`};return t(),e.querySelector('[role="slider"]')?.focus({preventScroll:!0}),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[u]),r(()=>{if(!u)return;let t=new AbortController;return e(d.current,"pointerdown",e=>{!e.composedPath().includes(f.current)&&!e.composedPath().includes(d.current)&&s(!1)},{signal:t.signal}),()=>t.abort()},[u]),U("div",{className:"account-accent",children:[F("span",{className:"account-accent-label",children:"Accent color"}),U("div",{className:"accent-swatches",role:"group","aria-label":"Accent color",children:[V.map(([e,t])=>F("button",{type:"button",className:"accent-swatch","aria-label":e,title:e,"aria-pressed":l===t,style:{"--swatch":t},onClick:()=>{p(t),s(!1)}},e)),F("button",{ref:d,type:"button",className:"accent-swatch accent-custom","aria-label":"Custom accent color","aria-haspopup":"dialog","aria-expanded":u,"aria-pressed":h,onClick:()=>s(!u),children:F(Y,{"aria-hidden":"true"})})]}),U("div",{ref:f,popover:"manual",role:"dialog","aria-label":"Custom accent color",className:u?"accent-popover t-dropdown is-open":"accent-popover t-dropdown is-closing",onKeyDown:e=>{e.stopPropagation(),"Escape"===e.key&&(e.preventDefault(),s(!1),d.current?.focus())},children:[U("div",{className:"accent-popover-head",children:[F("span",{children:"Color"}),F("span",{children:l})]}),U("div",{className:"accent-picker-body",children:[F(R,{color:l,onChange:p}),F($,{"aria-label":"Hex accent color",className:"accent-hex",color:l,onChange:p,prefixed:!0})]})]})]})}function J(e,r){let n=t("div","account-accent-mount"),o=c(n);return o.render(F(G,{initial:e,onChange:r})),{element:n,destroy:()=>o.unmount()}}export{J as accentPicker};
|
package/dist/chunk-7YUXYVQA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t={type:"spring",duration:.4,bounce:.24},e={duration:.1,ease:[.4,0,.2,1]},i={duration:.25,ease:[.22,1,.36,1]},n={type:"spring",duration:.4,bounce:.3},s={type:"spring",duration:.12,bounce:.3},r=.2,a=.02;function o(t,e){return{width:Math.min(t,t>250?280:200),height:e>52?32:28}}function l(t,e,i,n){return{left:t-i/2,top:e-n,width:i,height:n}}function h(t,e){-1===t.indexOf(e)&&t.push(e)}function u(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var d=(t,e,i)=>i>e?e:i<t?t:i,p=()=>{},c={},m=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),f=t=>"object"==typeof t&&null!==t,y=t=>/^0[^.\s]+$/u.test(t);function g(t){let e;return()=>(void 0===e&&(e=t()),e)}var v=t=>t,x=(...t)=>t.reduce((t,e)=>i=>e(t(i))),T=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1},w=class{constructor(){this.subscriptions=[]}add(t){return h(this.subscriptions,t),()=>u(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},b=t=>1e3*t,S=t=>t/1e3,A=(t,e)=>e?t*(1e3/e):0,P=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function V(t,e,i,n){if(t===e&&i===n)return v;let s=e=>function(t,e,i,n,s){let r,a,o=0;do{a=e+(i-e)/2,r=P(a,n,s)-t,r>0?i=a:e=a}while(Math.abs(r)>1e-7&&++o<12);return a}(e,0,1,t,i);return t=>0===t||1===t?t:P(s(t),e,n)}var k=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,M=t=>e=>1-t(1-e),D=V(.33,1.53,.69,.99),C=M(D),E=k(C),R=t=>t>=1?1:(t*=2)<1?.5*C(t):.5*(2-Math.pow(2,-10*(t-1))),B=t=>1-Math.sin(Math.acos(t)),L=M(B),j=k(B),F=V(.42,0,1,1),O=V(0,0,.58,1),I=V(.42,0,.58,1),U=t=>Array.isArray(t)&&"number"!=typeof t[0];function N(t,e){return U(t)?t[((t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}var $=t=>Array.isArray(t)&&"number"==typeof t[0],z={linear:v,easeIn:F,easeInOut:I,easeOut:O,circIn:B,circInOut:j,circOut:L,backIn:C,backInOut:E,backOut:D,anticipate:R},W=t=>{if($(t)){t.length;let[e,i,n,s]=t;return V(e,i,n,s)}return(t=>"string"==typeof t)(t)?z[t]:t},Y=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function X(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=Y.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(e){r.has(e)&&(l.schedule(e),t()),e(a)}let l={schedule:(t,s=!1,a=!1)=>{let o=a&&n?e:i;return s&&r.add(t),o.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(a=t,n)return void(s=!0);n=!0;let r=e;e=i,i=r,e.forEach(o),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:p,render:m,postRender:f}=a,y=()=>{let r=c.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),h.process(s),u.process(s),d.process(s),p.process(s),m.process(s),f.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(y))};return{schedule:Y.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(i||(i=!0,n=!0,s.isProcessing||t(y)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<Y.length;e++)a[Y[e]].cancel(t)},state:s,steps:a}}var K,{schedule:H,cancel:q,state:Z,steps:G}=X(typeof requestAnimationFrame<"u"?requestAnimationFrame:v,!0);function _(){K=void 0}var J={now:()=>(void 0===K&&J.set(Z.isProcessing||c.useManualTiming?Z.timestamp:performance.now()),K),set:t=>{K=t,queueMicrotask(_)}},Q=t=>e=>"string"==typeof e&&e.startsWith(t),tt=Q("--"),et=Q("var(--"),it=t=>!!et(t)&&nt.test(t.split("/*")[0].trim()),nt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function st(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}var rt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},at={...rt,transform:t=>d(0,1,t)},ot={...rt,default:1},lt=t=>Math.round(1e5*t)/1e5,ht=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;var ut=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dt=(t,e)=>i=>!!("string"==typeof i&&ut.test(i)&&i.startsWith(t)||e&&!function(t){return null==t}(i)&&Object.prototype.hasOwnProperty.call(i,e)),pt=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(ht);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},ct={...rt,transform:t=>Math.round((t=>d(0,255,t))(t))},mt={test:dt("rgb","red"),parse:pt("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+ct.transform(t)+", "+ct.transform(e)+", "+ct.transform(i)+", "+lt(at.transform(n))+")"};var ft={test:dt("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:mt.transform},yt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),gt=yt("deg"),vt=yt("%"),xt=yt("px"),Tt=yt("vh"),wt=yt("vw"),bt={...vt,parse:t=>vt.parse(t)/100,transform:t=>vt.transform(100*t)},St={test:dt("hsl","hue"),parse:pt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+vt.transform(lt(e))+", "+vt.transform(lt(i))+", "+lt(at.transform(n))+")"},At={test:t=>mt.test(t)||ft.test(t)||St.test(t),parse:t=>mt.test(t)?mt.parse(t):St.test(t)?St.parse(t):ft.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?mt.transform(t):St.transform(t),getAnimatableNone:t=>{let e=At.parse(t);return e.alpha=0,At.transform(e)}},Pt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var Vt="number",kt="color",Mt=/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 Dt(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(Mt,t=>(At.test(t)?(n.color.push(r),s.push(kt),i.push(At.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(Vt),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function Ct({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];s+=t===Vt?lt(n[r]):t===kt?At.transform(n[r]):n[r]}return s}}var Et=(t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:(t=>"number"==typeof t?0:At.test(t)?At.getAnimatableNone(t):t)(t);var Rt={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(ht)?.length||0)+(t.match(Pt)?.length||0)>0},parse:function(t){return Dt(t).values},createTransformer:function(t){return Ct(Dt(t))},getAnimatableNone:function(t){let e=Dt(t);return Ct(e)(e.values.map((t,i)=>Et(t,e.split[i])))}};function Bt(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Lt(t,e){return i=>i>0?e:t}var jt=(t,e,i)=>t+(e-t)*i,Ft=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},Ot=[ft,mt,St];function It(t){let e=(t=>Ot.find(e=>e.test(t)))(t);if(!e)return!1;let i=e.parse(t);return e===St&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=Bt(o,n,t+1/3),r=Bt(o,n,t),a=Bt(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}var Ut=(t,e)=>{let i=It(t),n=It(e);if(!i||!n)return Lt(t,e);let s={...i};return t=>(s.red=Ft(i.red,n.red,t),s.green=Ft(i.green,n.green,t),s.blue=Ft(i.blue,n.blue,t),s.alpha=jt(i.alpha,n.alpha,t),mt.transform(s))},Nt=new Set(["none","hidden"]);function $t(t,e){return i=>jt(t,e,i)}function zt(t){return"number"==typeof t?$t:"string"==typeof t?it(t)?Lt:At.test(t)?Ut:Xt:Array.isArray(t)?Wt:"object"==typeof t?At.test(t)?Ut:Yt:Lt}function Wt(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>zt(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function Yt(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=zt(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}var Xt=(t,e)=>{let i=Rt.createTransformer(e),n=Dt(t),s=Dt(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?Nt.has(t)&&!s.values.length||Nt.has(e)&&!n.values.length?function(t,e){return Nt.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):x(Wt(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i):Lt(t,e)};function Kt(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?jt(t,e,i):zt(t)(t,e)}var Ht=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>H.update(e,t),stop:()=>q(e),now:()=>Z.isProcessing?Z.timestamp:J.now()}},qt=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function Zt(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function Gt(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(Zt(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:S(s)}}var _t=100,Jt=10,Qt=1,te=0,ee=800,ie=.3,ne=.3,se={granular:.01,default:2},re={granular:.005,default:.5},ae=.01,oe=10,le=.05,he=1;function ue(t,e){return t*Math.sqrt(1-e*e)}var de=.001;var pe=["duration","bounce"],ce=["stiffness","damping","mass"];function me(t,e){return e.some(e=>void 0!==t[e])}function fe(t){let e={velocity:te,stiffness:_t,damping:Jt,mass:Qt,isResolvedFromDuration:!1,...t};if(!me(t,ce)&&me(t,pe))if(e.velocity=0,t.visualDuration){let i=t.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,r=2*d(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Qt,stiffness:s,damping:r}}else{let i=function({duration:t=ee,bounce:e=ie,velocity:i=te,mass:n=Qt}){let s,r;b(oe);let a=1-e;a=d(le,he,a),t=d(ae,oe,S(t)),a<1?(s=e=>{let n=e*a,s=n*t,r=n-i,o=ue(e,a),l=Math.exp(-s);return de-r/o*l},r=e=>{let n=e*a*t,r=n*i+i,o=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-n),h=ue(Math.pow(e,2),a);return(-s(e)+de>0?-1:1)*((r-o)*l)/h}):(s=e=>Math.exp(-e*t)*((e-i)*t+1)-de,r=e=>Math.exp(-e*t)*(t*t*(i-e)));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=b(t),isNaN(o))return{stiffness:_t,damping:Jt,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});e={...e,...i,mass:Qt},e.isResolvedFromDuration=!0}return e}function ye(t=ne,e=ie){let i,n,s,r,a,o,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:u}=l,d=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],c={done:!1,value:d},{stiffness:m,damping:f,mass:y,duration:g,velocity:v,isResolvedFromDuration:x}=fe({...l,velocity:-S(l.velocity||0)}),T=v||0,w=f/(2*Math.sqrt(m*y)),A=p-d,P=S(Math.sqrt(m/y)),V=Math.abs(A)<5;if(h||(h=V?se.granular:se.default),u||(u=V?re.granular:re.default),w<1)s=ue(P,w),r=(T+w*P*A)/s,i=t=>{let e=Math.exp(-w*P*t);return p-e*(r*Math.sin(s*t)+A*Math.cos(s*t))},a=w*P*r+A*s,o=w*P*A-r*s,n=t=>Math.exp(-w*P*t)*(a*Math.sin(s*t)+o*Math.cos(s*t));else if(1===w){i=t=>p-Math.exp(-P*t)*(A+(T+P*A)*t);let t=T+P*A;n=e=>Math.exp(-P*e)*(P*t*e-T)}else{let t=P*Math.sqrt(w*w-1);i=e=>{let i=Math.exp(-w*P*e),n=Math.min(t*e,300);return p-i*((T+w*P*A)*Math.sinh(n)+t*A*Math.cosh(n))/t};let e=(T+w*P*A)/t,s=w*P*e-A*t,r=w*P*A-e*t;n=e=>{let i=Math.exp(-w*P*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let k={calculatedDuration:x&&g||null,velocity:t=>b(n(t)),next:t=>{if(!x&&w<1){let e=Math.exp(-w*P*t),i=Math.sin(s*t),n=Math.cos(s*t),l=p-e*(r*i+A*n),d=b(e*(a*i+o*n));return c.done=Math.abs(d)<=h&&Math.abs(p-l)<=u,c.value=c.done?p:l,c}let e=i(t);if(x)c.done=t>=g;else{let i=b(n(t));c.done=Math.abs(i)<=h&&Math.abs(p-e)<=u}return c.value=c.done?p:e,c},toString:()=>{let t=Math.min(Zt(k),2e4),e=qt(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}ye.applyToOptions=t=>{let e=Gt(t,100,ye);return t.ease=e.ease,t.duration=b(e.duration),t.type="keyframes",t};function ge(t,e,i){let n=Math.max(e-5,0);return A(i-t(n),e-n)}function ve({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d=t[0],p={done:!1,value:d},c=t=>void 0===o?l:void 0===l||Math.abs(o-t)<Math.abs(l-t)?o:l,m=i*e,f=d+m,y=void 0===a?f:a(f);y!==f&&(m=y-d);let g,v,x=t=>-m*Math.exp(-t/n),T=t=>y+x(t),w=t=>{let e=x(t),i=T(t);p.done=Math.abs(e)<=h,p.value=p.done?y:i},b=t=>{(t=>void 0!==o&&t<o||void 0!==l&&t>l)(p.value)&&(g=t,v=ye({keyframes:[p.value,c(p.value)],velocity:ge(T,t,p.value),damping:s,stiffness:r,restDelta:h,restSpeed:u}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return!v&&void 0===g&&(e=!0,w(t),b(t)),void 0!==g&&t>=g?v.next(t-g):(!e&&w(t),p)}}}function xe(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||c.mix||Kt,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||v:e;r=x(t,r)}n.push(r)}return n}(e,n,s),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=T(t[n],t[n+1],i);return o[n](s)};return i?e=>h(d(t[0],t[r-1],e)):h}function Te(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=T(0,e,n);t.push(jt(i,1,s))}}function we(t){let e=[0];return Te(e,t.length-1),e}function be(t,e){return t.map(()=>e||I).splice(0,t.length-1)}function Se({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=U(n)?n.map(W):W(n),r={done:!1,value:e[0]},a=function(t,e){return t.map(t=>t*e)}(i&&i.length===e.length?i:we(e),t),o=xe(a,e,{ease:Array.isArray(s)?s:be(e,s)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}var Ae=t=>null!==t;function Pe(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(Ae),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}var Ve={decay:ve,inertia:ve,tween:Se,keyframes:Se,spring:ye};function ke(t){"string"==typeof t.type&&(t.type=Ve[t.type])}var Me=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}},De=t=>t/100,Ce=class extends Me{constructor(t){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:t}=this.options;t&&t.updatedAt!==J.now()&&this.tick(J.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ke(t);let{type:e=Se,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||Se;o!==Se&&"number"!=typeof a[0]&&(this.mixKeyframes=x(De,Kt(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Zt(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:p,repeatDelay:c,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x,T=this.currentTime,w=i;if(u){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,u+1),e%2&&("reverse"===p?(i=1-i,c&&(i-=c/a)):"mirror"===p&&(w=r)),T=d(0,1,i)*a}v?(this.delayState.value=h[0],x=this.delayState):x=w.next(T),s&&!v&&(x.value=s(x.value));let{done:b}=x;!v&&null!==o&&(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&m!==ve&&(x.value=Pe(h,this.options,y,this.speed)),f&&f(x.value),S&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return S(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+S(t)}get time(){return S(this.currentTime)}set time(t){t=b(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;return t<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(t):ge(t=>this.generator.next(t).value,t,this.generator.next(t).value)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(J.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=S(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=Ht,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(J.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var Ee=t=>180*t/Math.PI,Re=t=>{let e=Ee(Math.atan2(t[1],t[0]));return Le(e)},Be={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Re,rotateZ:Re,skewX:t=>Ee(Math.atan(t[1])),skewY:t=>Ee(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Le=t=>((t%=360)<0&&(t+=360),t),je=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Fe=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Oe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:je,scaleY:Fe,scale:t=>(je(t)+Fe(t))/2,rotateX:t=>Le(Ee(Math.atan2(t[6],t[5]))),rotateY:t=>Le(Ee(Math.atan2(-t[2],t[0]))),rotateZ:Re,rotate:Re,skewX:t=>Ee(Math.atan(t[4])),skewY:t=>Ee(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ie(t){return t.includes("scale")?1:0}function Ue(t,e){if(!t||"none"===t)return Ie(e);let i,n,s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=Oe,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Be,n=e}if(!n)return Ie(e);let r=i[e],a=n[1].split(",").map(Ne);return"function"==typeof r?r(a):a[r]}function Ne(t){return parseFloat(t.trim())}var $e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ze=new Set([...$e,"pathRotation"]),We=t=>t===rt||t===xt,Ye=new Set(["x","y","z"]),Xe=$e.filter(t=>!Ye.has(t));var Ke={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ue(e,"x"),y:(t,{transform:e})=>Ue(e,"y")};Ke.translateX=Ke.x,Ke.translateY=Ke.y;var He=new Set,qe=!1,Ze=!1,Ge=!1;function _e(){if(Ze){let t=Array.from(He).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return Xe.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Ze=!1,qe=!1,He.forEach(t=>t.complete(Ge)),He.clear()}function Je(){He.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ze=!0)})}var Qe=class{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(He.add(this),qe||(qe=!0,H.read(Je),H.resolveKeyframes(_e))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),He.delete(this)}cancel(){"scheduled"===this.state&&(He.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};function ti(t,e,i){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,i):t.style[e]=i}var ei={};function ii(t,e){let i=g(t);return()=>ei[e]??i()}var ni=ii(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),si=ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ri=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ai={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ri([0,.65,.55,1]),circOut:ri([.55,0,1,.45]),backIn:ri([.31,.01,.66,-.59]),backOut:ri([.33,1.53,.69,.99])};function oi(t,e){if(t)return"function"==typeof t?si()?qt(t,e):"ease-out":$(t)?ri(t):Array.isArray(t)?t.map(t=>oi(t,e)||ai.easeOut):ai[t]}function li(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h=void 0){let u={[e]:i};l&&(u.offset=l);let d=oi(o,s);Array.isArray(d)&&(u.easing=d);let p={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return h&&(p.pseudoElement=h),t.animate(u,p)}function hi(t){return"function"==typeof t&&"applyToOptions"in t}var ui=class extends Me{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,t.type;let l=function({type:t,...e}){return hi(t)&&si()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=li(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=Pe(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),ti(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&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:t}=this;"idle"===t||"finished"===t||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return S(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+S(t)}get time(){return S(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=b(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ni()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),v):n(this)}},di={anticipate:R,backInOut:E,circInOut:j};function pi(t){"string"==typeof t.ease&&function(t){return t in di}(t.ease)&&(t.ease=di[t.ease])}var ci=class extends ui{constructor(t){pi(t),ke(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new Ce({...r,autoplay:!1}),o=Math.max(10,J.now()-this.startTime),l=d(0,10,o-10),h=a.sample(o).value,{name:u}=this.options;s&&u&&ti(s,u,h),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}},mi=(t,e)=>"zIndex"!==e&&!("number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Rt.test(t)&&"0"!==t||t.startsWith("url(")));function fi(t){t.duration=0,t.type="keyframes"}var yi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),gi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;var vi=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),xi=g(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ti(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement||l instanceof SVGElement))return!1;let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return xi()&&i&&(yi.has(i)||vi.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&gi.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!u)&&!h&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}var wi=class extends Me{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=J.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:h,...u},p=h?.KeyframeResolver||Qe;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;this.resolvedAt=J.now();let u=!0;(function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=mi(s,e),o=mi(r,e);return!(!a||!o)&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||hi(i))&&n)})(t,s,r,a)||(u=!1,(c.instantAnimations||!o)&&h?.(Pe(t,i,e)),t[0]=t[t.length-1],fi(i),i.repeat=0);let d,p={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=u&&!l&&Ti(p),f=p.motionValue?.owner?.current;if(m)try{d=new ci({...p,element:f})}catch{d=new Ce(p)}else d=new Ce(p);d.finished.then(()=>{this.notifyFinished()}).catch(v),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ge=!0,Je(),_e(),Ge=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},bi=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Si(this.animations,"duration")}get iterationDuration(){return Si(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Si(t,e){let i=0;for(let n=0;n<t.length;n++){let s=t[n][e];null!==s&&s>i&&(i=s)}return i}var Ai=class extends bi{then(t,e){return this.finished.finally(t).then(()=>{})}};function Pi(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}var Vi={current:void 0},ki=class{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=J.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=J.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new w);let i=this.events[t].add(e);return"change"===t?()=>{i(),H.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Vi.current&&Vi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=J.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return A(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 Mi(t,e){return new ki(t,e)}function Di(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function Ci(t,e){let i=t?.[e]??t?.default??t;return i!==t?Di(i,t):i}var Ei={type:"spring",stiffness:500,damping:25,restSpeed:10},Ri={type:"keyframes",duration:.8},Bi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Li=(t,{keyframes:e})=>e.length>2?Ri:ze.has(t)?t.startsWith("scale")?(t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}))(e[1]):Ei:Bi,ji=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);var Fi=(t,e,i,n={},s,r)=>a=>{let o=Ci(n,t)||{},l=o.delay||n.delay||0,{elapsed:h=0}=n;h-=b(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};(function(t){for(let e in t)if(!ji.has(e))return!0;return!1})(o)||Object.assign(u,Li(t,u)),u.duration&&(u.duration=b(u.duration)),u.repeatDelay&&(u.repeatDelay=b(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(fi(u),0===u.delay&&(d=!0)),(c.instantAnimations||c.skipAnimations||s?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,fi(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=Pe(u.keyframes,o);if(void 0!==t)return void H.update(()=>{u.onUpdate(t),u.onComplete()})}return o.isSync?new Ce(u):new wi(u)},Oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ii(t,e,i=1){let[n,s]=function(t){let e=Oi.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(t);if(!n)return;let r=window.getComputedStyle(e).getPropertyValue(n);if(r){let t=r.trim();return m(t)?parseFloat(t):t}return it(s)?Ii(s,e,i+1):s}function Ui(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function Ni(t,e,i,n){if("function"==typeof e){let[s,r]=Ui(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=Ui(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function $i(t,e,i){let n=t.getProps();return Ni(n,e,void 0!==i?i:n.custom,t)}var zi=new Set(["width","height","top","left","right","bottom",...$e]),Wi=t=>Array.isArray(t);function Yi(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Mi(i))}function Xi(t){return Wi(t)?t[t.length-1]||0:t}var Ki=t=>!(!t||!t.getVelocity);function Hi(t,e){let i=t.getValue("willChange");if(function(t){return!(!Ki(t)||!t.add)}(i))return i.add(e);if(!i&&c.WillChange){let i=new c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function qi(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var Zi="data-"+qi("framerAppearId");function Gi(t){return t.props[Zi]}function _i({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}function Ji(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?Di(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let d=[],p=s&&t.animationState&&t.animationState.getState()[s],c=r?.path;c&&c.animateVisualElement(t,o,r,i,d);for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||p&&_i(p,e))continue;let a={delay:i,...Ci(r||{},e)};u&&(a.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){H.update(()=>n.set(s));continue}let c=!1;if(window.MotionHandoffAnimation){let i=Gi(t);if(i){let t=window.MotionHandoffAnimation(i,e,H);null!==t&&(a.startTime=t,c=!0)}}Hi(t,e);let m=h??t.shouldReduceMotion;n.start(Fi(e,n,s,m&&zi.has(e)?{type:!1}:a,t,c));let f=n.animation;f&&d.push(f)}if(a){let e=()=>H.update(()=>{a&&function(t,e){let i=$i(t,e),{transitionEnd:n={},transition:s={},...r}=i||{};r={...r,...n};for(let e in r)Yi(t,e,Xi(r[e]))}(t,a)});d.length?Promise.all(d).then(e):e()}return d}function Qi(t,e,i={}){let n=$i(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(Ji(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(Qi(l,e,{...a,delay:i+("function"==typeof n?0:n)+Pi(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(o){let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}return Promise.all([r(),a(i.delay)])}var tn=t=>e=>e.test(t),en=[rt,xt,vt,gt,wt,Tt,{test:t=>"auto"===t,parse:t=>t}],nn=t=>en.find(tn(t));function sn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||y(t))}var rn=new Set(["brightness","contrast","saturate","opacity"]);function an(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(ht)||[];if(!n)return t;let s=i.replace(n,""),r=rn.has(e)?1:0;return n!==i&&(r*=100),e+"("+r+s+")"}var on=/\b([a-z-]*)\(.*?\)/gu,ln={...Rt,getAnimatableNone:t=>{let e=t.match(on);return e?e.map(an).join(" "):t}},hn={...Rt,getAnimatableNone:t=>{let e=Rt.parse(t);return Rt.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},un={...rt,transform:Math.round},dn={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,inset:xt,insetBlock:xt,insetBlockStart:xt,insetBlockEnd:xt,insetInline:xt,insetInlineStart:xt,insetInlineEnd:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,paddingBlock:xt,paddingBlockStart:xt,paddingBlockEnd:xt,paddingInline:xt,paddingInlineStart:xt,paddingInlineEnd:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,marginBlock:xt,marginBlockStart:xt,marginBlockEnd:xt,marginInline:xt,marginInlineStart:xt,marginInlineEnd:xt,fontSize:xt,backgroundPositionX:xt,backgroundPositionY:xt,...{rotate:gt,pathRotation:gt,rotateX:gt,rotateY:gt,rotateZ:gt,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:gt,skewX:gt,skewY:gt,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:at,originX:bt,originY:bt,originZ:xt},zIndex:un,fillOpacity:at,strokeOpacity:at,numOctaves:un},pn={...dn,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:ln,WebkitFilter:ln,mask:hn,WebkitMask:hn},cn=t=>pn[t],mn=new Set([ln,hn]);function fn(t,e){let i=cn(t);return mn.has(i)||(i=Rt),i.getAnimatableNone?i.getAnimatableNone(e):void 0}var yn=new Set(["auto","none","0"]);var gn=class extends Qe{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),it(n))){let s=Ii(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!zi.has(i)||2!==t.length)return;let[n,s]=t,r=nn(n),a=nn(s);if(st(n)!==st(s)&&Ke[i])this.needsMeasurement=!0;else if(r!==a)if(We(r)&&We(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else Ke[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||sn(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!yn.has(e)&&Dt(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=fn(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ke[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=Ke[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}},vn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function xn(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}var Tn=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var{schedule:wn,cancel:bn}=X(queueMicrotask,!1),Sn={x:!1,y:!1};function An(){return Sn.x||Sn.y}function Pn(t){return"x"===t||"y"===t?Sn[t]?null:(Sn[t]=!0,()=>{Sn[t]=!1}):Sn.x||Sn.y?null:(Sn.x=Sn.y=!0,()=>{Sn.x=Sn.y=!1})}function Vn(t,e){let i=xn(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function kn(t,e,i={}){let[n,s,r]=Vn(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n)return void(r=!0);a(t)}};t.addEventListener("pointerenter",n=>{if(!function(t){return!("touch"===t.pointerType||An())}(n))return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}var Mn=(t,e)=>!!e&&(t===e||Mn(t,e.parentElement)),Dn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Cn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);var En=new Set(["INPUT","SELECT","TEXTAREA"]);function Rn(t){return En.has(t.tagName)||!0===t.isContentEditable}var Bn=new WeakSet;function Ln(t){return e=>{"Enter"===e.key&&t(e)}}function jn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Fn(t){return Dn(t)&&!An()}var On=new WeakSet;function In(t,e,i={}){let[n,s,r]=Vn(t,i),a=t=>{let n=t.currentTarget;if(!Fn(t)||On.has(t))return;Bn.add(n),i.stopPropagation&&On.add(t);let r=e(n,t),a={...s,capture:!0},o=(t,e)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",h,a),Bn.has(n)&&Bn.delete(n),Fn(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{o(t,n===window||n===document||i.useGlobalTarget||Mn(n,t.target))},h=t=>{o(t,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",h,a)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),function(t){return f(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=Ln(()=>{if(Bn.has(i))return;jn(i,"down");let t=Ln(()=>{jn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>jn(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),!function(t){return Cn.has(t.tagName)||!0===t.isContentEditable}(t)&&!t.hasAttribute("tabindex")&&(t.tabIndex=0))}),r}function Un(t){return f(t)&&"ownerSVGElement"in t}var Nn,$n=new WeakMap,zn=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:Un(n)&&"getBBox"in n?n.getBBox()[e]:n[i],Wn=zn("inline","width","offsetWidth"),Yn=zn("block","height","offsetHeight");function Xn({target:t,borderBoxSize:e}){$n.get(t)?.forEach(i=>{i(t,{get width(){return Wn(t,e)},get height(){return Yn(t,e)}})})}function Kn(t){t.forEach(Xn)}function Hn(t,e){Nn||typeof ResizeObserver>"u"||(Nn=new ResizeObserver(Kn));let i=xn(t);return i.forEach(t=>{let i=$n.get(t);i||(i=new Set,$n.set(t,i)),i.add(e),Nn?.observe(t)}),()=>{i.forEach(t=>{let i=$n.get(t);i?.delete(e),i?.size||Nn?.unobserve(t)})}}var qn,Zn=new Set;function Gn(t){return Zn.add(t),qn||(qn=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zn.forEach(e=>e(t))},window.addEventListener("resize",qn)),()=>{Zn.delete(t),!Zn.size&&"function"==typeof qn&&(window.removeEventListener("resize",qn),qn=void 0)}}function _n(t,e){return"function"==typeof t?Gn(t):Hn(t,e)}var Jn={value:null,addProjectionMetrics:null};function Qn(t){return Un(t)&&"svg"===t.tagName}var ts=[...en,At,Rt],es=()=>({x:{min:0,max:0},y:{min:0,max:0}}),is=new WeakMap;function ns(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ss(t){return"string"==typeof t||Array.isArray(t)}var rs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],as=["initial",...rs];function os(t){return ns(t.animate)||as.some(e=>ss(t[e]))}function ls(t){return!(!os(t)&&!t.variants)}var hs={current:null},us={current:!1},ds=typeof window<"u";function ps(){if(us.current=!0,ds)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>hs.current=t.matches;t.addEventListener("change",e),e()}else hs.current=!1}var cs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ms={};function fs(t){ms=t}function ys(){return ms}var gs=class{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){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=Qe,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 t=J.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,H.render(this.render,!1,!0))};let{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=os(e),this.isVariantNode=ls(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!(!t||!t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&Ki(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,is.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(us.current||ps(),this.shouldReduceMotion=hs.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(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&yi.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new ui({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:b(a)}),l=i(o);return void this.valueSubscriptions.set(t,()=>{l(),o.cancel()})}let i=ze.has(t);i&&this.onBindTransform&&this.onBindTransform();let n,s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&H.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n&&n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ms){let e=ms[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<cs.length;e++){let i=cs[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(Ki(s))t.addValue(n,s);else if(Ki(r))t.addValue(n,Mi(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,Mi(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=Mi(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(m(i)||y(i))?i=parseFloat(i):(n=i,!ts.find(tn(n))&&Rt.test(e)&&(i=fn(t,e))),this.setBaseTarget(t,Ki(i)?i.get():i)),Ki(i)?i.get():i;var n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=Ni(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||Ki(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new w),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){wn.render(this.render)}},vs=class extends gs{constructor(){super(...arguments),this.KeyframeResolver=gn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Ki(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},xs=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Ts({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ws({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bs(t){return void 0===t||1===t}function Ss({scale:t,scaleX:e,scaleY:i}){return!bs(t)||!bs(e)||!bs(i)}function As(t){return Ss(t)||Ps(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ps(t){return Vs(t.x)||Vs(t.y)}function Vs(t){return t&&"0%"!==t}function ks(t,e,i){return i+e*(t-i)}function Ms(t,e,i,n,s){return void 0!==s&&(t=ks(t,s,n)),ks(t,i,n)+e}function Ds(t,e=0,i=1,n,s){t.min=Ms(t.min,e,i,n,s),t.max=Ms(t.max,e,i,n,s)}function Cs(t,{x:e,y:i}){Ds(t.x,e.translate,e.scale,e.originPoint),Ds(t.y,i.translate,i.scale,i.originPoint)}var Es=.999999999999,Rs=1.0000000000001;function Bs(t,e){t.min+=e,t.max+=e}function Ls(t,e,i,n,s=.5){Ds(t,e,i,jt(t.min,t.max,s),n)}function js(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function Fs(t,e,i){let n=i??t;Ls(t.x,js(e.x,n.x),e.scaleX,e.scale,e.originX),Ls(t.y,js(e.y,n.y),e.scaleY,e.scale,e.originY)}function Os(t,e){return Ts(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}function Is(t,e,i){let n=Os(t,i),{scroll:s}=e;return s&&(Bs(n.x,s.offset.x),Bs(n.y,s.offset.y)),n}var Us={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ns=$e.length;function $s(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(ze.has(t))a=!0;else if(tt(t))s[t]=i;else{let e=Tn(i,dn[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}if(e.transform||(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<Ns;r++){let a=$e[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===(a.startsWith("scale")?1:0);else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=Tn(o,dn[a]);l||(s=!1,n+=`${Us[a]||a}(${t}) `),i&&(e[a]=t)}}let r=t.pathRotation;return r&&(s=!1,n+=`rotate(${Tn(r,dn.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function zs(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function Ws(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Ys={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!xt.test(t))return t;t=parseFloat(t)}return`${Ws(t,e.target.x)}% ${Ws(t,e.target.y)}%`}},Xs={correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t,s=Rt.parse(t);if(s.length>5)return n;let r=Rt.createTransformer(t),a="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,l=i.y.scale*e.y;s[0+a]/=o,s[1+a]/=l;let h=jt(o,l,.5);return"number"==typeof s[2+a]&&(s[2+a]/=h),"number"==typeof s[3+a]&&(s[3+a]/=h),r(s)}},Ks={borderRadius:{...Ys,applyTo:[...vn]},borderTopLeftRadius:Ys,borderTopRightRadius:Ys,borderBottomLeftRadius:Ys,borderBottomRightRadius:Ys,boxShadow:Xs};function Hs(t,{layout:e,layoutId:i}){return ze.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!Ks[t]||"opacity"===t)}function qs(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(Ki(n[e])||s&&Ki(s[e])||Hs(e,t)||void 0!==i?.getValue(e)?.liveStyle)&&(r[e]=n[e]);return r}var Zs=class extends vs{constructor(){super(...arguments),this.type="html",this.renderInstance=zs}mount(t){t.style,super.mount(t)}readValueFromInstance(t,e){if(ze.has(e))return this.projection?.isProjecting?Ie(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return Ue(i,e)})(t,e);{let n=(i=t,window.getComputedStyle(i)),s=(tt(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof s?s.trim():s}var i}measureInstanceViewportBox(t,{transformPagePoint:e}){return Os(t,e)}build(t,e,i){$s(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return qs(t,e,i)}};var Gs=class extends gs{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}},_s={offset:"stroke-dashoffset",array:"stroke-dasharray"},Js={offset:"strokeDashoffset",array:"strokeDasharray"};var Qs=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tr(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if($s(t,o,h),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};let{attrs:d,style:p}=t;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(let t of Qs)void 0!==d[t]&&(p[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?_s:Js;t[r.offset]=""+-n,t[r.array]=`${e} ${i}`}(d,s,r,a,!1)}var er=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"]),ir=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nr(t,e,i){let n=qs(t,e,i);for(let i in t)if(Ki(t[i])||Ki(e[i])){n[-1!==$e.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]}return n}var sr=class extends vs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=es}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ze.has(e)){let t=cn(e);return t&&t.default||0}return e=er.has(e)?e:qi(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nr(t,e,i)}build(t,e,i){tr(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){zs(t,e,void 0,n);for(let i in e.attrs)t.setAttribute(er.has(i)?i:qi(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=ir(t.tagName),super.mount(t)}},rr=as.length;function ar(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&ar(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<rr;i++){let n=as[i],s=t.props[n];(ss(s)||!1===s)&&(e[n]=s)}return e}function or(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var lr=[...rs].reverse(),hr=rs.length;function ur(t){return e=>Promise.all(e.map(({animation:e,options:i})=>function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let s=e.map(e=>Qi(t,e,i));n=Promise.all(s)}else if("string"==typeof e)n=Qi(t,e,i);else{let s="function"==typeof e?$i(t,e,i.custom):e;n=Promise.all(Ji(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}(t,e,i)))}function dr(t){let e=ur(t),i=mr(),n=!0,s=!1,r=e=>(i,n)=>{let s=$i(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=ar(t.parent)||{},h=[],u=new Set,d={},p=1/0;for(let e=0;e<hr;e++){let c=lr[e],m=i[c],f=void 0!==o[c]?o[c]:l[c],y=ss(f),g=c===a?m.isActive:null;!1===g&&(p=e);let v=f===l[c]&&f!==o[c]&&y;if(v&&(n||s)&&t.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&null===g||!f&&!m.prevProp||ns(f)||"boolean"==typeof f)continue;if("exit"===c&&m.isActive&&!0!==g){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let x=pr(m.prevProp,f),T=x||c===a&&m.isActive&&!v&&y||e>p&&y,w=!1,b=Array.isArray(f)?f:[f],S=b.reduce(r(c),{});!1===g&&(S={});let{prevResolvedValues:A={}}=m,P={...A,...S},V=e=>{T=!0,u.has(e)&&(w=!0,u.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=S[t],i=A[t];if(d.hasOwnProperty(t))continue;let n=!1;n=Wi(e)&&Wi(i)?!or(e,i)||x:e!==i,n?null!=e?V(t):u.add(t):void 0!==e&&u.has(t)?V(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=S,m.isActive&&(d={...d,...S}),(n||s)&&t.blockInitialAnimation&&(T=!1);let k=v&&x;T&&(!k||w)&&h.push(...b.map(e=>{let i={type:c};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=$i(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=Pi(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=$i(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let c=!!h.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(c=!1),n=!1,s=!1,c?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=mr(),s=!0}}}function pr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!or(e,t)}function cr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mr(){return{animate:cr(!0),whileInView:cr(),whileHover:cr(),whileTap:cr(),whileDrag:cr(),whileFocus:cr(),exit:cr()}}function fr(t,e){t.min=e.min,t.max=e.max}function yr(t,e){fr(t.x,e.x),fr(t.y,e.y)}function gr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function vr(t){return t.max-t.min}function xr(t,e,i,n=.5){t.origin=n,t.originPoint=jt(e.min,e.max,t.origin),t.scale=vr(i)/vr(e),t.translate=jt(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Tr(t,e,i,n){xr(t.x,e.x,i.x,n?n.originX:void 0),xr(t.y,e.y,i.y,n?n.originY:void 0)}function wr(t,e,i,n=0){let s=n?jt(i.min,i.max,n):i.min;t.min=s+e.min,t.max=t.min+vr(e)}function br(t,e,i,n=0){let s=n?jt(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+vr(e)}function Sr(t,e,i,n){br(t.x,e.x,i.x,n?.x),br(t.y,e.y,i.y,n?.y)}function Ar(t,e,i,n,s){return t=ks(t-=e,1/i,n),void 0!==s&&(t=ks(t,1/s,n)),t}function Pr(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(vt.test(e)&&(e=parseFloat(e),e=jt(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=jt(r.min,r.max,n);t===r&&(o-=e),t.min=Ar(t.min,e,i,o,s),t.max=Ar(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}var Vr=["x","scaleX","originX"],kr=["y","scaleY","originY"];function Mr(t,e,i,n){Pr(t.x,e,Vr,i?i.x:void 0,n?n.x:void 0),Pr(t.y,e,kr,i?i.y:void 0,n?n.y:void 0)}function Dr(t){return 0===t.translate&&1===t.scale}function Cr(t){return Dr(t.x)&&Dr(t.y)}function Er(t,e){return t.min===e.min&&t.max===e.max}function Rr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Br(t,e){return Rr(t.x,e.x)&&Rr(t.y,e.y)}function Lr(t){return vr(t.x)/vr(t.y)}function jr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Fr(t){return[t("x"),t("y")]}var Or=vn.length,Ir=t=>"string"==typeof t?parseFloat(t):t,Ur=t=>"number"==typeof t||xt.test(t);function Nr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var $r=Wr(0,.5,L),zr=Wr(.5,.95,v);function Wr(t,e,i){return n=>n<t?0:n>e?1:i(T(t,e,n))}function Yr(t,e,i){let n=Ki(t)?t:Mi(t);return n.start(Fi("",n,e,i)),n.animation}function Xr(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}var Kr=(t,e)=>t.depth-e.depth,Hr=class{constructor(){this.children=[],this.isDirty=!1}add(t){h(this.children,t),this.isDirty=!0}remove(t){u(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kr),this.isDirty=!1,this.children.forEach(t)}};function qr(t){return Ki(t)?t.get():t}var Zr=class{constructor(){this.members=[]}add(t){h(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;(!n||!1===n.isConnected)&&!i.snapshot&&(u(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(u(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&!1!==t.instance?.isConnected)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Gr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_r={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Jr=["","X","Y","Z"],Qr=0;function ta(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ea(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let i=Gi(e);if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",H,!(e||n))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&ea(n)}function ia({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=Qr++,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,Jn.value&&(_r.nodes=_r.calculatedTargetDeltas=_r.calculatedProjections=0),this.nodes.forEach(ra),this.nodes.forEach(ma),this.nodes.forEach(fa),this.nodes.forEach(aa),Jn.addProjectionMetrics&&Jn.addProjectionMetrics(_r)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new w),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=Un(e)&&!Qn(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;H.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=J.now(),n=({timestamp:s})=>{let r=s-i;r>=e&&(q(n),t(r-e))};return H.setup(n,!0),()=>q(n)}(s,250),Gr.hasAnimatedSinceResize&&(Gr.hasAnimatedSinceResize=!1,this.nodes.forEach(ca)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);let r=this.options.transition||s.getDefaultTransition()||wa,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!Br(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...Ci(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||ca(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),q(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(ya),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ea(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(ha),void this.nodes.forEach(la)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ua);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(da),this.nodes.forEach(pa),this.nodes.forEach(na),this.nodes.forEach(sa)):this.nodes.forEach(ua),this.clearAllSnapshots();let t=J.now();Z.delta=d(0,1e3/60,t-Z.timestamp),Z.timestamp=t,Z.isProcessing=!0,G.update.process(Z),G.preRender.process(Z),G.render.process(Z),Z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(oa),this.sharedNodes.forEach(ga)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vr(this.snapshot.measuredBox.x)&&!vr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!(!this.options.layoutScroll||!this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Cr(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||As(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){let e=this.measurePageBox(),i=this.removeElementScroll(e);return t&&(i=this.removeTransform(i)),function(t){Aa(t.x),Aa(t.y)}(i),{animationId:this.root.animationId,measuredBox:e,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};let e=t.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(Va)){let{scroll:t}=this.root;t&&(Bs(e.x,t.offset.x),Bs(e.y,t.offset.y))}return e}removeElementScroll(t){let e={x:{min:0,max:0},y:{min:0,max:0}};if(yr(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&yr(e,t),Bs(e.x,s.offset.x),Bs(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||{x:{min:0,max:0},y:{min:0,max:0}};yr(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Bs(n.x,-i.scroll.offset.x),Bs(n.y,-i.scroll.offset.y)),As(i.latestValues)&&Fs(n,i.latestValues,i.layout?.layoutBox)}return As(this.latestValues)&&Fs(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e={x:{min:0,max:0},y:{min:0,max:0}};yr(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];As(n.latestValues)&&(n.instance&&(Ss(n.latestValues)&&n.updateSnapshot(),i=es(),yr(i,n.measurePageBox())),Mr(e,n.latestValues,n.snapshot?.layoutBox,i))}return As(this.latestValues)&&Mr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!n&&!s)return;this.resolvedRelativeTargetAt=Z.timestamp;let r=this.getClosestProjectingParent();r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),function(t,e,i,n){wr(t.x,e.x,i.x,n?.x),wr(t.y,e.y,i.y,n?.y)}(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):yr(this.target,this.layout.layoutBox),Cs(this.target,this.targetDelta)):yr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),Jn.value&&_r.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!Ss(this.parent.latestValues)&&!Ps(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!(!(this.relativeTarget||this.targetDelta||this.options.layoutRoot)||!this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Sr(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),yr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Z.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!s)return;yr(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=i[o],r=s.projectionDelta;let{visualElement:a}=s.options;a&&a.props.style&&"contents"===a.props.style.display||(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Bs(t.x,-s.scroll.offset.x),Bs(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Cs(t,r)),n&&As(s.latestValues)&&Fs(t,s.latestValues,s.layout?.layoutBox))}e.x<Rs&&e.x>Es&&(e.x=1),e.y<Rs&&e.y>Es&&(e.y=1)}})(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});let{target:o}=t;o?(this.projectionDelta&&this.prevProjectionDelta?(gr(this.prevProjectionDelta.x,this.projectionDelta.x),gr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Tr(this.projectionDelta,this.layoutCorrected,o,this.latestValues),(this.treeScale.x!==r||this.treeScale.y!==a||!jr(this.projectionDelta.x,this.prevProjectionDelta.x)||!jr(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),Jn.value&&_r.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1,i){let n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o={x:{min:0,max:0},y:{min:0,max:0}},l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!(!l||u||!0!==this.options.crossfade||this.path.some(Ta));this.animationProgress=0;let p,c=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=c?.(i);n?(a.x.translate=n.x,a.x.scale=jt(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=jt(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(va(a.x,t.x,i),va(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sr(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),function(t,e,i,n){xa(t.x,e.x,i.x,n),xa(t.y,e.y,i.y,n)}(this.relativeTarget,this.relativeTargetOrigin,o,i),p&&function(t,e){return Er(t.x,e.x)&&Er(t.y,e.y)}(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),yr(p,this.relativeTarget)),l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=jt(0,i.opacity??1,$r(n)),t.opacityExit=jt(e.opacity??1,0,zr(n))):r&&(t.opacity=jt(e.opacity??1,i.opacity??1,n));for(let s=0;s<Or;s++){let r=vn[s],a=Nr(e,r),o=Nr(i,r);void 0===a&&void 0===o||(a||(a=0),o||(o=0),0===a||0===o||Ur(a)===Ur(o)?(t[r]=Math.max(jt(Ir(a),Ir(o),n),0),(vt.test(o)||vt.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=jt(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,i,d,u)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=r),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Gr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mi(0)),this.motionValue.jump(0,!1),this.currentAnimation=Yr(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&Pa(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||{x:{min:0,max:0},y:{min:0,max:0}};let e=vr(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=vr(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}yr(e,i),Fs(e,s),Tr(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Zr),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ta("z",t,n,this.animationValues);for(let e=0;e<Jr.length;e++)ta(`rotate${Jr[e]}`,t,n,this.animationValues),ta(`skew${Jr[e]}`,t,n,this.animationValues);t.render();for(let e in n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");let i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=qr(e?.pointerEvents)||"",void(t.transform=i?i(this.latestValues,""):"none");let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=qr(e?.pointerEvents)||""),void(this.hasProjected&&!As(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1));t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(let e in Ks){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=Ks[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?qr(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(la),this.root.sharedNodes.clear()}}}function na(t){t.updateLayout()}function sa(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)Fr(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=vr(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";fr(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else Pa(s,e.layoutBox,i)&&Fr(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=vr(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Tr(a,i,e.layoutBox);let o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Tr(o,t.applyTransform(n,!0),e.measuredBox):Tr(o,i,e.layoutBox);let l=!Cr(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o={x:{min:0,max:0},y:{min:0,max:0}};Sr(o,e.layoutBox,s.layoutBox,a);let l={x:{min:0,max:0},y:{min:0,max:0}};Sr(l,i,r.layoutBox,a),Br(o,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ra(t){Jn.value&&_r.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function aa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function oa(t){t.clearSnapshot()}function la(t){t.clearMeasurements()}function ha(t){t.isLayoutDirty=!0,t.updateLayout()}function ua(t){t.isLayoutDirty=!1}function da(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function pa(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ca(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ma(t){t.resolveTargetDelta()}function fa(t){t.calcProjection()}function ya(t){t.resetSkewAndRotation()}function ga(t){t.removeLeadSnapshot()}function va(t,e,i){t.translate=jt(e.translate,0,i),t.scale=jt(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function xa(t,e,i,n){t.min=jt(e.min,i.min,n),t.max=jt(e.max,i.max,n)}function Ta(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var wa={duration:.45,ease:[.4,0,.1,1]},ba=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Sa=ba("applewebkit/")&&!ba("chrome/")?Math.round:v;function Aa(t){t.min=Sa(t.min),t.max=Sa(t.max)}function Pa(t,e,i){return"position"===t||"preserve-aspect"===t&&!function(t,e,i){return Math.abs(t-e)<=i}(Lr(e),Lr(i),.2)}function Va(t){return t!==t.root&&t.scroll?.wasRoot}var ka=ia({attachResizeListener:(t,e)=>Xr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ma={current:void 0},Da=ia({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ma.current){let t=new ka({});t.mount(window),t.setOptions({layoutScroll:!0}),Ma.current=t}return Ma.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function Ca(t){return"object"==typeof t&&!Array.isArray(t)}function Ea(t,e,i,n){return null==t?[]:"string"==typeof t&&Ca(e)?xn(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function Ra(t,e,i){return t*(e+1)+i*e}function Ba(t,e,i,n){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):n.get(e)??t}function La(t,e,i,n,s,r){!function(t,e,i){for(let n=0;n<t.length;n++){let s=t[n];s.at>e&&s.at<i&&(u(t,s),n--)}}(t,s,r);for(let a=0;a<e.length;a++)t.push({value:e[a],at:jt(s,r,n[a]),easing:N(i,a)})}function ja(t,e,i=0){let n=e+1+e*i;for(let e=0;e<t.length;e++)t[e]=t[e]/n}function Fa(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function Oa(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Ia(t,e){return e[t]||(e[t]=[]),e[t]}function Ua(t){return Array.isArray(t)?t:[t]}function Na(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var $a=t=>"number"==typeof t,za=t=>t.every($a);function Wa(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=Un(t)&&!Qn(t)?new sr(e):new Zs(e);i.mount(t),is.set(t,i)}function Ya(t){let e=new Gs({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),is.set(t,e)}function Xa(t,e,i,n){let s=[];if(function(t,e){return Ki(t)||"number"==typeof t||"string"==typeof t&&!Ca(e)}(t,e))s.push(Yr(t,Ca(e)&&e.default||e,i&&(i.default||i)));else{if(null==t)return s;let r=Ea(t,e,n),a=r.length;for(let t=0;t<a;t++){let n=r[t],o=n instanceof Element?Wa:Ya;is.has(n)||o(n);let l=is.get(n),h={...i};"delay"in h&&"function"==typeof h.delay&&(h.delay=h.delay(t,a)),s.push(...Ji(l,{...e,transition:h},{}))}}return s}function Ka(t,e,i){let n=[];return function(t,{defaultTransition:e={},...i}={},n,s){let r=e.duration||.3,a=new Map,o=new Map,l={},h=new Map,u=0,d=0,p=0;for(let i=0;i<t.length;i++){let a=t[i];if("string"==typeof a){h.set(a,d);continue}if(!Array.isArray(a)){h.set(a.name,Ba(d,a.at,u,h));continue}let[c,m,f={}]=a;void 0!==f.at&&(d=Ba(d,f.at,u,h));let y=0,g=(t,i,n,a=0,o=0)=>{let l=Ua(t),{delay:h=0,times:u=we(l),type:c=e.type||"keyframes",repeat:m,repeatType:f,repeatDelay:g=0,...v}=i,{ease:x=e.ease||"easeOut",duration:T}=i,w="function"==typeof h?h(a,o):h,S=l.length,A=hi(c)?c:s?.[c||"keyframes"];if(S<=2&&A){let t=100;if(2===S&&za(l)){let e=l[1]-l[0];t=Math.abs(e)}let i={...e,...v};void 0!==T&&(i.duration=b(T));let n=Gt(i,t,A);x=n.ease,T=n.duration}T??(T=r);let P=d+w;1===u.length&&0===u[0]&&(u[1]=1);let V=u.length-l.length;if(V>0&&Te(u,V),1===l.length&&l.unshift(null),m&&m<20){let t=T>0?g/T:0;T=Ra(T,m,g);let e=[...l],i=[...u];x=Array.isArray(x)?[...x]:[x];let n=[...x],s="reverse"===f||"mirror"===f,r=e,a=n;s&&(r=[...e].reverse(),"reverse"===f&&(a=[...n].reverse().map(t=>"function"==typeof t?M(t):t)));for(let o=0;o<m;o++){let h=s&&o%2==0,d=h?r:e,p=h?a:n,c=(o+1)*(1+t);t>0&&(l.push(l[l.length-1]),u.push(c),x.push("linear")),l.push(...d);for(let t=0;t<d.length;t++)u.push(i[t]+c),x.push(0===t?"linear":N(p,t-1))}ja(u,m,t)}let k=P+T;La(n,l,x,u,P,k),y=Math.max(w+T,y),p=Math.max(k,p)};if(Ki(c))g(m,f,Ia("default",Oa(c,o)));else{let t=Ea(c,m,n,l),e=t.length;for(let i=0;i<e;i++){let n=Oa(t[i],o);for(let t in m)g(m[t],Na(f,t),Ia(t,n),i,e)}}u=d,d+=y}return o.forEach((t,n)=>{for(let s in t){let r=t[s];r.sort(Fa);let o=[],l=[],h=[];for(let t=0;t<r.length;t++){let{at:e,value:i,easing:n}=r[t];o.push(i),l.push(T(0,p,e)),h.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),h.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(n)||a.set(n,{keyframes:{},transition:{}});let u=a.get(n);u.keyframes[s]=o;let{type:d,...c}=e;u.transition[s]={...c,duration:p,ease:h,times:l,...i}}}),a}(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){let e=t[0],i=Mi(0);return i.on("change",e),1===t.length?[i,[0,1]]:2===t.length?[i,[0,1],t[1]]:[i,t[1],t[2]]}return t}),e,i,{spring:ye}).forEach(({keyframes:t,transition:e},i)=>{n.push(...Xa(i,t,e))}),n}var Ha=function(t={}){let{scope:e,reduceMotion:i,skipAnimations:n}=t;return function(t,s,r){let a,o=[],l={};if(void 0!==i&&(l.reduceMotion=i),void 0!==n&&(l.skipAnimations=n),function(t){return Array.isArray(t)&&t.some(Array.isArray)}(t)){let{onComplete:i,...n}=s||{};"function"==typeof i&&(a=i),o=Ka(t,{...l,...n},e)}else{let{onComplete:i,...n}=r||{};"function"==typeof i&&(a=i),o=Xa(t,s,{...l,...n},e)}let h=new Ai(o);return a&&h.finished.then(a),e&&(e.animations.push(h),h.finished.then(()=>{u(e.animations,h)})),h}}(),qa=(t,e)=>Math.abs(t-e);function Za(t,e){let i=qa(t.x,e.x),n=qa(t.y,e.y);return Math.sqrt(i**2+n**2)}export{t as a,e as b,i as c,n as d,s as e,r as f,a as g,o as h,l as i,d as j,p as k,v as l,x as m,T as n,b as o,S as p,H as q,q as r,Z as s,vt as t,jt as u,Fi as v,Ni as w,$i as x,Ki as y,Hi as z,Zi as A,wn as B,Pn as C,kn as D,Dn as E,Rn as F,In as G,_n as H,es as I,ns as J,ss as K,os as L,ls as M,hs as N,us as O,ps as P,fs as Q,ys as R,xs as S,Ts as T,ws as U,Is as V,$s as W,Hs as X,qs as Y,Zs as Z,tr as _,ir as $,nr as aa,sr as ba,dr as ca,vr as da,Fr as ea,Xr as fa,qr as ga,Gr as ha,Da as ia,Ha as ja,Za as ka};
|
package/dist/chunk-I7AUKTXE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r,e=(r=function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(r,e)=>(typeof require<"u"?require:r)[e]}):r);export{e as a};
|