lawgic-dev-kit 0.16.4 → 0.16.7
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/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/CenterModal/CenterModal.js +38 -31
- package/dist/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/components/atoms/FloatingCard/FloatingCard.types.d.ts +9 -0
- package/dist/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +26 -0
- package/dist/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/components/atoms/TresholdProgressBar/TresholdProgressBar.d.ts +4 -0
- package/dist/components/atoms/TresholdProgressBar/TresholdProgressBar.types.d.ts +22 -0
- package/dist/components/atoms/TresholdProgressBar/index.d.ts +1 -0
- package/dist/components/molecules/AlertModal/AlertModal.d.ts +1 -1
- package/dist/components/molecules/AlertModal/AlertModal.js +21 -20
- package/dist/components/molecules/AlertModal/AlertModal.types.d.ts +1 -0
- package/dist/components/molecules/DialogModal/DialogModal.d.ts +1 -1
- package/dist/components/molecules/DialogModal/DialogModal.js +23 -29
- package/dist/components/molecules/DialogModal/DialogModal.types.d.ts +1 -0
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +3 -3
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.types.d.ts +9 -0
- package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +26 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/TresholdProgressBar/TresholdProgressBar.d.ts +4 -0
- package/dist/src/components/atoms/TresholdProgressBar/TresholdProgressBar.types.d.ts +22 -0
- package/dist/src/components/atoms/TresholdProgressBar/index.d.ts +1 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
- package/dist/src/types/modal.d.ts +34 -0
- package/dist/types/modal.d.ts +4 -3
- package/package.json +1 -1
|
@@ -656,7 +656,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
656
656
|
${p}px !important;
|
|
657
657
|
top: ${d}px !important;
|
|
658
658
|
}
|
|
659
|
-
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(hD,{isPresent:t,childRef:i,sizeRef:a,children:X.cloneElement(e,{ref:i})})}const pD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=bf(gD),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),a?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(mD,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function gD(){return new Map}function Cv(e=!0){const t=I.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const ja=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:c="left"})=>{const[u,d]=Cv(o),h=I.useMemo(()=>Pv(e),[e]),m=o&&!u?[]:h.map(ja),p=I.useRef(!0),y=I.useRef(h),S=bf(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let O=0;O<w.length;O++){const R=ja(w[O]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const A=[];if(h!==b){let O=[...h];for(let R=0;R<w.length;R++){const V=w[R],F=ja(V);m.includes(F)||(O.splice(R,0,V),A.push(V))}return a==="wait"&&A.length&&(O=A),C(Pv(O)),E(h),null}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(O=>{const R=ja(O),V=o&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(pD,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:V?void 0:F,anchorX:c,children:O},R)})})},Nt=e=>e;let Qi=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(Qi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const yD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function vD(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){o.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const bD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fa.reduce((w,C)=>(w[C]=vD(a,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=o,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,bD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,C)=>{const A=o[C];return w[C]=($,O=!1,R=!1)=>(n||S(),A.schedule($,O,R)),w},{}),cancel:w=>{for(let C=0;C<Fa.length;C++)o[Fa[C]].cancel(w)},state:i,steps:o}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Mv=I.createContext({strict:!1}),_v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},es={};for(const e in _v)es[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function xD(e){for(const t in e)es[t]={...es[t],...e[t]}}const wD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wD.has(e)}let Iv=e=>!Va(e);function SD(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{SD(require("@emotion/is-prop-valid").default)}catch{}function TD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Ba(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function ED(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Wa=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ho(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>ho(e[t]))}function $v(e){return!!(za(e)||e.variants)}function CD(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ho(n)?n:void 0,animate:ho(r)?r:void 0}}return e.inherit!==!1?t:{}}function PD(e){const{initial:t,animate:n}=CD(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const AD=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OD(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ts(n)&&(n.current=r))},[t])}const{schedule:Cf}=Ov(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=I.createContext({});function MD(e,t,n,r,i){var a,o;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Mv),d=I.useContext(ka),h=I.useContext(wf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_D(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],E=I.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return Ev(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function _D(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||c&&ts(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function ID({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&xD(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:DD(d)},{isStatic:y}=p,S=PD(d),b=r(d,y);if(!y&&xf){$D(p,e);const E=RD(p);m=E.MeasureLayout,S.visualElement=MD(i,b,p,t,E.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,OD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const u=I.forwardRef(c);return u[AD]=i,u}function DD({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function $D(e,t){const n=I.useContext(Mv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qi(!1,r):Er(!1,r)}}function RD(e){const{drag:t,layout:n}=es;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),ND=jv("var(--"),Of=e=>ND(e)?LD.test(e.split("/*")[0].trim()):!1,LD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function kD(e){for(const t in e)mo[t]=e[t],Af(t)&&(mo[t].isCSSVariable=!0)}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(ns);function Fv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...rs,transform:e=>Xn(0,1,e)},Ga={...rs,default:1},go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=go("deg"),Rn=go("%"),Te=go("px"),jD=go("vh"),FD=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},VD={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},BD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:po,originX:Bv,originY:Bv,originZ:Te},Wv={...rs,transform:Math.round},Mf={...VD,...BD,zIndex:Wv,size:Te,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},WD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UD=ns.length;function zD(e,t,n){let r="",i=!0;for(let a=0;a<UD;a++){const o=ns[a],c=e[o];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(o.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Mf[o]);if(!u){i=!1;const h=WD[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){o=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Mf[u]);u.startsWith("origin")?(c=!0,a[u]=h):r[u]=h}}if(t.transform||(o||n?r.transform=zD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function GD({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function YD(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,GD(e,t)),r}function HD(e,t){const n={},r=YD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const qD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(e){return typeof e!="string"||e.includes("-")?!1:!!(qD.indexOf(e)>-1||/[A-Z]/u.test(e))}const KD={offset:"stroke-dashoffset",array:"stroke-dasharray"},XD={offset:"strokeDashoffset",array:"strokeDasharray"};function ZD(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?KD:XD;e[a.offset]=Te.transform(-r);const o=Te.transform(t),c=Te.transform(n);e[a.array]=`${o} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function JD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=JD(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&ZD(p,o,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,t,n,r){const i=I.useMemo(()=>{const a=Gv();return $f(a,t,Rf(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Uv(a,e.style,e),i.style={...a,...i.style}}return i}function e$(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Df(n)?QD:HD)(r,a,o,n),d=TD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const Lf=e=>Array.isArray(e),t$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return t$(t)?t.toValue():t}function r$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:i$(r,i,a,e),renderState:t()};return n&&(o.onMount=c=>n({props:r,current:c,...o}),o.onUpdate=c=>n(c)),o}const Hv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),a=()=>r$(e,t,r,i);return n?a():bf(a)};function i$(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ya(a[p]);let{initial:o,animate:c}=e;const u=za(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?c:o;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const $=h?A.length-1:0;A=A[$]}A!==null&&(i[C]=A)}for(const C in b)i[C]=b[C]}}}return i}function kf(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Et(i[o])||t.style&&Et(t.style[o])||Fv(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const s$={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Xv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const a=ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],o$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in i)if(ti.has(c)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(o=!0)}o&&He.read(()=>{qv(n,r),He.render(()=>{$f(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function a$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Df(r)?o$:s$,preloadedFeatures:e,useRender:e$(i),createVisualElement:t,Component:r};return ID(o)}}function yo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...ns]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ha;function l$(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||yD.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(l$)}},nb=30,c$=e=>!isNaN(parseFloat(e));class u${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Nn.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new u$(e,t)}function f$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function d$(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=n$(a[o]);f$(e,o,c)}}function h$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(h$(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m$=Uf(()=>window.ScrollTimeline!==void 0);class p${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(m$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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 startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g$ extends p${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",y$={linearEasing:void 0};function v$(e,t){const n=Uf(e);return()=>{var r;return(r=y$[t])!==null&&r!==void 0?r:n()}}const qa=v$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(is(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?bo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b$=1e-7,x$=12;function w$(e,t,n,r,i){let a,o,c=0;do o=t+(n-t)/2,a=lb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>b$&&++c<x$);return o}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=a=>w$(a,0,1,e,n);return a=>a===0||a===1?a:lb(i(a),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=xo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function S$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const wo=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T$(e){return e==null}const E$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&E$.test(n)&&n.startsWith(e)||t&&!T$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},C$=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(C$(e))},ni={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+wo(po.transform(r))+")"};function P$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jf={test:Xf("#"),parse:P$,transform:ni.transform},ss={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(wo(t))+", "+Rn.transform(wo(n))+", "+wo(po.transform(r))+")"},Ct={test:e=>ni.test(e)||Jf.test(e)||ss.test(e),parse:e=>ni.test(e)?ni.parse(e):ss.test(e)?ss.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):ss.transform(e)},A$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",M$="var",_$="var(",xb="${}",I$=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const c=t.replace(I$,u=>(Ct.test(u)?(r.color.push(a),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_$)?(r.var.push(a),i.push(M$),n.push(u)):(r.number.push(a),i.push(vb),n.push(parseFloat(u))),++a,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return So(e).values}function Sb(e){const{split:t,types:n}=So(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const c=n[o];c===vb?a+=wo(i[o]):c===bb?a+=Ct.transform(i[o]):a+=i[o]}return a}}const D$=e=>typeof e=="number"?0:e;function $$(e){const t=wb(e);return Sb(e)(t.map(D$))}const Ar={test:O$,parse:wb,createTransformer:Sb,getAnimatableNone:$$},R$=new Set(["brightness","contrast","saturate","opacity"]);function N$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let a=R$.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const L$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(L$);return t?t.map(N$).join(" "):e}},k$={...Mf,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},Tb=e=>k$[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j$=new Set(["auto","none","0"]);function F$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!j$.has(a)&&So(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Eb(n,i)}const ri=e=>e*180/Math.PI,ed=e=>{const t=ri(Math.atan2(e[1],e[0]));return td(t)},V$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ri(Math.atan2(e[6],e[5]))),rotateY:e=>td(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=B$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V$,i=c}if(!i)return Ob(t);const a=r[t],o=i[1].split(",").map(U$);return typeof a=="function"?a(o):o[a]}const W$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function U$(e){return parseFloat(e.trim())}const Mb=e=>e===rs||e===Te,z$=new Set(["x","y","z"]),G$=ns.filter(e=>!z$.has(e));function Y$(e){const t=[];return G$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const os={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};os.translateX=os.x,os.translateY=os.y;const ii=new Set;let rd=!1,id=!1;function _b(){if(id){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var c;(c=r.getValue(a))===null||c===void 0||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function H$(){Ib(),_b()}class sd{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K$(e){const t=q$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const X$=4;function $b(e,t,n=1){Er(n<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=K$(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return Db(o)?parseFloat(o):o}return Of(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Te,Rn,Pr,FD,jD,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb extends sd{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Of(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,a]=t,o=Lb(i),c=Lb(a);if(o!==c)if(Mb(o)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)S$(t[i])&&r.push(i);r.length&&F$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=os[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,c=i[o];i[o]=os[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function Z$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function J$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=jb(i,t),c=jb(a,t);return Qi(o===c,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!c?!1:Z$(e)||(n==="spring"||zf(n))&&r}const Q$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Q$),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const e4=40;class Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!J$(t,r,i,a))if(o)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),a=ad(u,c,e),o=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},n4=[Jf,ni,ss],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(Qi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ss&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Xa(e,t);const i={...n};return a=>(i.red=ld(n.red,r.red,a),i.green=ld(n.green,r.green,a),i.blue=ld(n.blue,r.blue,a),i.alpha=rt(n.alpha,r.alpha,a),ni.transform(i))},i4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>ud(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function a4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function l4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],c=e.indexes[o][i[o]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const c4=(e,t)=>{const n=Ar.createTransformer(t),r=So(e),i=So(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?s4(e,t):To(Ub(l4(r,i),i.values),n):(Qi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,a;Qi(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Xn(it.minDamping,it.maxDamping,o),e=Xn(it.minDuration,it.maxDuration,Zn(e)),o<1?(i=d=>{const h=d*o,m=h*e,p=h-n,y=fd(d,o),S=Math.exp(-m);return Yb-p/y*S},a=d=>{const m=d*o*e,p=m*n+n,y=Math.pow(o,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),o);return(-i(d)+Yb>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=h4(i,a,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:a}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=o-a,w=Zn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let A;if(b<1){const O=fd(w,b);A=R=>{const V=Math.exp(-b*w*R);return o-V*((S+b*w*E)/O*Math.sin(O*R)+E*Math.cos(O*R))}}else if(b===1)A=O=>o-Math.exp(-w*O)*(E+(S+w*E)*O);else{const O=w*Math.sqrt(b*b-1);A=R=>{const V=Math.exp(-b*w*R),F=Math.min(O*R,300);return o-V*((S+b*w*E)*Math.sinh(F)+O*E*Math.cosh(F))/O}}const $={calculatedDuration:y&&m||null,next:O=>{const R=A(O);if(y)c.done=O>=m;else{let V=0;b<1&&(V=O===0?Ln(S):Gb(A,O,R));const F=Math.abs(V)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const O=Math.min(Vb($),od),R=sb(V=>$.next(O*V).value,O,30);return O+"ms "+R}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const E=m+b,w=o===void 0?E:o(E);w!==E&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),$=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let O,R;const V=F=>{y(p.value)&&(O=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&O===void 0&&(z=!0,$(F),V(F)),O!==void 0&&F>=O?R.next(F-O):(!z&&$(F),p)}}}const y4=xo(.42,0,1,1),v4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return xo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,a=e.length-1;for(let o=0;o<a;o++){let c=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Nt:t;c=To(u,c)}r.push(c)}return r}function w4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Er(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=x4(t,r,i),u=c.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=is(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[a-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),a={done:!1,value:t[0]},o=E4(n&&n.length===t.length?n:T4(t),e),c=w4(o,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Eo,keyframes:Eo,spring:qb},O4=e=>e/100;class dd extends Fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new o(a,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,c=zf(n)?n:A4[n]||Eo;let u,d;process.env.NODE_ENV!=="production"&&c!==Eo&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Eo&&typeof t[0]!="number"&&(u=To(O4,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});a==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let A=this.currentTime,$=a;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=o)),A=Xn(0,1,Q)*m}const O=C?{done:!1,value:u[0]}:$.next(A);c&&(O.value=c(O.value));let{done:R}=O;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return V&&i!==void 0&&(O.value=Ka(u,this.options,i)),E&&E(O.value),V&&this.finish(),O}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const M4=new Set(["opacity","clipPath","filter","transform"]);function _4(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,D4=2e4;function $4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<D4;)r=n.sample(a),i.push(r.value),a+=Za;return{times:void 0,keyframes:i,duration:a-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new kb(a,(o,c)=>this.onKeyframesResolved(o,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&qa()&&N4(a)&&(a=Qb[a]),$4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=R4(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,a=E.ease,o="keyframes"}const h=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:a});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;ib(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:a,ease:o,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I4()&&r&&M4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:ti.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,a)=>o=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new g$([])}return!a&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),y=u[m];if(y===void 0||h&&W4(h,m))continue;const S={delay:n,...jf(o||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const C=window.MotionHandoffAnimation(w,m,He);C!==null&&(S.startTime=C,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&d$(e,c)})}),d}function md(e,t,n={}){var r;const i=yo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=a;return U4(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,h]=u==="beforeChildren"?[o,c]:[c,o];return d().then(()=>h())}else return Promise.all([o(),c(n.delay)])}function U4(e,t,n=0,r=0,i=1,a){const o=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(z4).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(md(d,t,{...a,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function z4(e,t){return e.sortNodePosition(t)}function G4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>md(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?yo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=yo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function a(u){t=u(e)}function o(u){const{props:d}=e,h=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<q4;E++){const w=H4[E],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=ho(A),O=w===u?C.isActive:null;O===!1&&(S=E);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&O===null||!A&&!C.prevProp||Ua(A)||typeof A=="boolean")continue;const V=Z4(C.prevProp,A);let F=V||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ne=Q.reduce(i(w),{});O===!1&&(ne={});const{prevResolvedValues:ue={}}=C,ve={...ue,...ne},de=j=>{F=!0,p.has(j)&&(z=!0,p.delete(j)),C.needsAnimating[j]=!0;const W=e.getValue(j);W&&(W.liveStyle=!1)};for(const j in ve){const W=ne[j],q=ue[j];if(y.hasOwnProperty(j))continue;let M=!1;Lf(W)&&Lf(q)?M=!n1(W,q):M=W!==q,M?W!=null?de(j):p.add(j):W!==void 0&&p.has(j)?de(j):C.protectedKeys[j]=!0}C.prevProp=A,C.prevResolvedValues=ne,C.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&V)||z)&&m.push(...Q.map(j=>({animation:j,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=o(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J4 extends Or{constructor(t){super(t),t.animationState||(t.animationState=X4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Q4=0;class e6 extends Or{constructor(){super(...arguments),this.id=Q4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const t6={animation:{Feature:J4},exit:{Feature:e6}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n6(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Po(e){return{point:{x:e.pageX,y:e.pageY}}}const r6=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,r6(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s6(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const a1=1e-4,o6=1-a1,a6=1+a1,l1=.01,l6=0-l1,c6=0+l1;function _t(e){return e.max-e.min}function u6(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=o6&&e.scale<=a6||isNaN(e.scale))&&(e.scale=1),(e.translate>=l6&&e.translate<=c6||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f6(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Mo(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function oi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d6(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let c=0;c<i;c++){a=n[c],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,y1(e,o)),r&&oi(a.latestValues)&&cs(e,a.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ls(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const a=rt(e.min,e.max,i);vd(e,t,n,a,r)}function cs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s6(e.getBoundingClientRect(),t))}function h6(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ls(r.x,i.offset.x),ls(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m6(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m6(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!pd(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Po(t),c=bd(o,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=To(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p6(t)),velocity:g6(t,.1)}}function p6(e){return e[0]}function P1(e){return e[e.length-1]}function g6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const a=Zn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function y6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v6(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b6(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function x6(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Xn(0,1,n)}function w6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wd=.35;function S6(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T6=new WeakMap;class E6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Po(h).point)},a=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n6(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[E];A&&(w=_t(A)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=C6(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&He.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y6(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v6(i.layoutBox,n):this.constraints=!1,this.elastic=S6(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=w6(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ts(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=h6(r,i.root,this.visualElement.getTransformPagePoint());let o=b6(i.layout.layoutBox,a);if(n){const c=n(i6(o));this.hasMutatedConstraints=!!c,c&&(o=o1(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};o&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:c}=i.layout.layoutBox[n];a.set(t[n]-rt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ts(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();i[o]=x6({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(o=>{if(!Qa(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];c.set(rt(u,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;T6.set(this.visualElement,this);const t=this.visualElement.current,n=Ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ts(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const o=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P6 extends Or{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A6 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&He.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},O6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const a=Ar.createTransformer(e),o=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=c,i[1+o]/=u;const d=rt(c,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}};class M6 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;kD(_6),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||He.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(M6,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const _6={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:O6};function I6(e,t,n){const r=Et(e)?e:vo(e);return r.start(hd("",r,t,n)),r.animation}function D6(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $6=(e,t)=>e.depth-t.depth;class R6{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($6),this.isDirty=!1,this.children.forEach(t)}}function N6(e,t){const n=Nn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L6=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Te.test(e);function k6(e,t,n,r,i,a){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j6(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F6(r))):a&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<L6;o++){const c=`border${R1[o]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j6=j1(0,.5,mb),F6=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V6(e,t=0,n=1,r=.5,i,a=e,o=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=rt(a.min,a.max,r);e===a&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],a,o){V6(e,t[n],t[r],t[i],t.scale,a,o)}const B6=["x","scaleX","originX"],W6=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B6,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W6,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U6(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z6{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G6(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y6={visibility:"hidden"},Z1=1e3;let H6=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},c=t==null?void 0:t()){this.id=H6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X6),this.nodes.forEach(tR),this.nodes.forEach(nR),this.nodes.forEach(Z6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R6)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Bf),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=D6(o),this.instance=o;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N6(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||aR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!q1(this.targetLayout,S),A=!p&&y;if(this.options.layoutRoot||this.resumeFrom||A||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,A);const $={...jf(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(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(rR),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Q6),this.isUpdating=!1,this.nodes.forEach(eR),this.nodes.forEach(q6),this.nodes.forEach(K6),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J6),this.sharedNodes.forEach(iR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),lR(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(cR))){const{scroll:h}=this.root;h&&(ls(u.x,h.offset.x),ls(u.y,h.offset.y))}return u}removeElementScroll(o){var c;const u=lt();if(sn(u,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,o),ls(u.x,m.offset.x),ls(u.y,m.offset.y))}return u}applyTransform(o,c=!1){const u=lt();sn(u,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&cs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&cs(u,h.latestValues)}return oi(this.latestValues)&&cs(u,this.latestValues),u}removeTransform(o){const c=lt();sn(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&U1(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||m1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d6(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(o,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(oR));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const O=$/1e3;nx(m.x,o.x,O),nx(m.y,o.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sR(this.relativeTarget,this.relativeTargetOrigin,p,O),A&&U6(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=lt()),sn(A,this.relativeTarget)),b&&(this.animationValues=h,k6(h,d,this.latestValues,O,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I6(0,Z1,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=o;if(!(!c||!u||!d)){if(this!==o&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+p}sn(c,u),cs(c,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z6),this.sharedNodes.get(o).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",o,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,o,d,this.animationValues),Td(`skew${Sd[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y6;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=G6(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in mo){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=mo[b],A=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let O=0;O<$;O++)d[w[O]]=A}else C?this.options.visualElement.renderState.vars[b]=A:d[b]=A}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function q6(e){e.updateLayout()}function K6(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):ax(a,n.layoutBox,r)&&rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=as();Oo(c,r,n.layoutBox);const u=as();o?Oo(u,e.applyTransform(i,!0),n.measuredBox):Oo(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,y.layoutBox),q1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Z6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J6(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q6(e){e.isLayoutDirty=!1}function eR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tR(e){e.resolveTargetDelta()}function nR(e){e.calcProjection()}function rR(e){e.resetSkewAndRotation()}function iR(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function sR(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function oR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aR={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function lR(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u6(K1(t),K1(n),.2)}function cR(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const uR=Q1({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new uR({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fR={pan:{Feature:A6},drag:{Feature:P6,ProjectionNode:lx,MeasureLayout:$1}};function dR(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function cx(e,t){const n=dR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function hR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",o,i)}),a}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&He.postRender(()=>a(t,Po(t)))}class mR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=hR(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class pR extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=To(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,gR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yR(e){return gR.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Io.has(n))return;Cd(n,"down");const i=hx(()=>{Cd(n,"up")}),a=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return pd(e)&&!s1()}function bR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{const u=c.currentTarget;if(!mx(c)||Io.has(u))return;Io.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!Io.has(u))&&(Io.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>vR(d,i)),!yR(c)&&c.tabIndex===null&&(c.tabIndex=0))}),a}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&He.postRender(()=>a(t,Po(t)))}class xR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=bR(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:a})=>px(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,wR=e=>{const t=Pd.get(e.target);t&&t(e)},SR=e=>{e.forEach(wR)};function TR({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(SR,{root:e,...t})),r[i]}function ER(e,t,n){const r=TR(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const CR={some:0,all:1};class PR extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:CR[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return ER(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AR(t,n))&&this.startObserver()}unmount(){}}function AR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OR={inView:{Feature:PR},tap:{Feature:xR},focus:{Feature:pR},hover:{Feature:mR}},MR={layout:{ProjectionNode:lx,MeasureLayout:$1}},Od={current:null},gx={current:!1};function _R(){if(gx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const IR=[...Nb,Ct,Ar],DR=e=>IR.find(Rb(e)),$R=new WeakMap;function RR(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(a))e.addValue(r,vo(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,vo(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=za(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,$R.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((n,r)=>this.bindToMotionValue(r,n)),gx.current||_R(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in es){const n=es[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=RR(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!DR(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Et(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends NR{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function LR(e){return window.getComputedStyle(e)}class kR extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return W$(t,n);{const r=LR(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class jR extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const FR=(e,t)=>Df(e)?new jR(t):new kR(t,{allowProjection:e!==I.Fragment}),VR=a$({...t6,...OR,...fR,...MR},FR),Ze=ED(VR),Md={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Md),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a})=>{const{t:o}=ze(),c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i==null||i(),r()},h=()=>{a==null||a(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[a&&v.jsx(jo,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:o("cancel")}),i&&v.jsx(jo,{onClick:d,className:"px-24 py-16 text-lg!",children:o("confirm")})]})]})})})})})};/*!
|
|
659
|
+
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(hD,{isPresent:t,childRef:i,sizeRef:a,children:X.cloneElement(e,{ref:i})})}const pD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=bf(gD),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),a?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(mD,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function gD(){return new Map}function Cv(e=!0){const t=I.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const ja=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:c="left"})=>{const[u,d]=Cv(o),h=I.useMemo(()=>Pv(e),[e]),m=o&&!u?[]:h.map(ja),p=I.useRef(!0),y=I.useRef(h),S=bf(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let O=0;O<w.length;O++){const R=ja(w[O]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const A=[];if(h!==b){let O=[...h];for(let R=0;R<w.length;R++){const V=w[R],F=ja(V);m.includes(F)||(O.splice(R,0,V),A.push(V))}return a==="wait"&&A.length&&(O=A),C(Pv(O)),E(h),null}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(O=>{const R=ja(O),V=o&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(pD,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:V?void 0:F,anchorX:c,children:O},R)})})},Nt=e=>e;let Qi=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(Qi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const yD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function vD(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){o.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const bD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fa.reduce((w,C)=>(w[C]=vD(a,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=o,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,bD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,C)=>{const A=o[C];return w[C]=($,O=!1,R=!1)=>(n||S(),A.schedule($,O,R)),w},{}),cancel:w=>{for(let C=0;C<Fa.length;C++)o[Fa[C]].cancel(w)},state:i,steps:o}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Mv=I.createContext({strict:!1}),_v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},es={};for(const e in _v)es[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function xD(e){for(const t in e)es[t]={...es[t],...e[t]}}const wD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wD.has(e)}let Iv=e=>!Va(e);function SD(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{SD(require("@emotion/is-prop-valid").default)}catch{}function TD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Ba(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function ED(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Wa=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ho(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>ho(e[t]))}function $v(e){return!!(za(e)||e.variants)}function CD(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ho(n)?n:void 0,animate:ho(r)?r:void 0}}return e.inherit!==!1?t:{}}function PD(e){const{initial:t,animate:n}=CD(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const AD=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OD(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ts(n)&&(n.current=r))},[t])}const{schedule:Cf}=Ov(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=I.createContext({});function MD(e,t,n,r,i){var a,o;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Mv),d=I.useContext(ka),h=I.useContext(wf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_D(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],E=I.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return Ev(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function _D(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||c&&ts(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function ID({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&xD(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:DD(d)},{isStatic:y}=p,S=PD(d),b=r(d,y);if(!y&&xf){$D(p,e);const E=RD(p);m=E.MeasureLayout,S.visualElement=MD(i,b,p,t,E.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,OD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const u=I.forwardRef(c);return u[AD]=i,u}function DD({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function $D(e,t){const n=I.useContext(Mv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qi(!1,r):Er(!1,r)}}function RD(e){const{drag:t,layout:n}=es;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),ND=jv("var(--"),Of=e=>ND(e)?LD.test(e.split("/*")[0].trim()):!1,LD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function kD(e){for(const t in e)mo[t]=e[t],Af(t)&&(mo[t].isCSSVariable=!0)}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(ns);function Fv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...rs,transform:e=>Xn(0,1,e)},Ga={...rs,default:1},go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=go("deg"),Rn=go("%"),Te=go("px"),jD=go("vh"),FD=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},VD={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},BD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:po,originX:Bv,originY:Bv,originZ:Te},Wv={...rs,transform:Math.round},Mf={...VD,...BD,zIndex:Wv,size:Te,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},WD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UD=ns.length;function zD(e,t,n){let r="",i=!0;for(let a=0;a<UD;a++){const o=ns[a],c=e[o];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(o.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Mf[o]);if(!u){i=!1;const h=WD[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){o=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Mf[u]);u.startsWith("origin")?(c=!0,a[u]=h):r[u]=h}}if(t.transform||(o||n?r.transform=zD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function GD({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function YD(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,GD(e,t)),r}function HD(e,t){const n={},r=YD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const qD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(e){return typeof e!="string"||e.includes("-")?!1:!!(qD.indexOf(e)>-1||/[A-Z]/u.test(e))}const KD={offset:"stroke-dashoffset",array:"stroke-dasharray"},XD={offset:"strokeDashoffset",array:"strokeDasharray"};function ZD(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?KD:XD;e[a.offset]=Te.transform(-r);const o=Te.transform(t),c=Te.transform(n);e[a.array]=`${o} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function JD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=JD(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&ZD(p,o,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,t,n,r){const i=I.useMemo(()=>{const a=Gv();return $f(a,t,Rf(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Uv(a,e.style,e),i.style={...a,...i.style}}return i}function e$(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Df(n)?QD:HD)(r,a,o,n),d=TD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const Lf=e=>Array.isArray(e),t$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return t$(t)?t.toValue():t}function r$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:i$(r,i,a,e),renderState:t()};return n&&(o.onMount=c=>n({props:r,current:c,...o}),o.onUpdate=c=>n(c)),o}const Hv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),a=()=>r$(e,t,r,i);return n?a():bf(a)};function i$(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ya(a[p]);let{initial:o,animate:c}=e;const u=za(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?c:o;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const $=h?A.length-1:0;A=A[$]}A!==null&&(i[C]=A)}for(const C in b)i[C]=b[C]}}}return i}function kf(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Et(i[o])||t.style&&Et(t.style[o])||Fv(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const s$={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Xv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const a=ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],o$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in i)if(ti.has(c)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(o=!0)}o&&He.read(()=>{qv(n,r),He.render(()=>{$f(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function a$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Df(r)?o$:s$,preloadedFeatures:e,useRender:e$(i),createVisualElement:t,Component:r};return ID(o)}}function yo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...ns]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ha;function l$(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||yD.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(l$)}},nb=30,c$=e=>!isNaN(parseFloat(e));class u${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Nn.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new u$(e,t)}function f$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function d$(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=n$(a[o]);f$(e,o,c)}}function h$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(h$(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m$=Uf(()=>window.ScrollTimeline!==void 0);class p${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(m$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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 startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g$ extends p${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",y$={linearEasing:void 0};function v$(e,t){const n=Uf(e);return()=>{var r;return(r=y$[t])!==null&&r!==void 0?r:n()}}const qa=v$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(is(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?bo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b$=1e-7,x$=12;function w$(e,t,n,r,i){let a,o,c=0;do o=t+(n-t)/2,a=lb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>b$&&++c<x$);return o}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=a=>w$(a,0,1,e,n);return a=>a===0||a===1?a:lb(i(a),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=xo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function S$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const wo=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T$(e){return e==null}const E$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&E$.test(n)&&n.startsWith(e)||t&&!T$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},C$=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(C$(e))},ni={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+wo(po.transform(r))+")"};function P$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jf={test:Xf("#"),parse:P$,transform:ni.transform},ss={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(wo(t))+", "+Rn.transform(wo(n))+", "+wo(po.transform(r))+")"},Ct={test:e=>ni.test(e)||Jf.test(e)||ss.test(e),parse:e=>ni.test(e)?ni.parse(e):ss.test(e)?ss.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):ss.transform(e)},A$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",M$="var",_$="var(",xb="${}",I$=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const c=t.replace(I$,u=>(Ct.test(u)?(r.color.push(a),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_$)?(r.var.push(a),i.push(M$),n.push(u)):(r.number.push(a),i.push(vb),n.push(parseFloat(u))),++a,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return So(e).values}function Sb(e){const{split:t,types:n}=So(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const c=n[o];c===vb?a+=wo(i[o]):c===bb?a+=Ct.transform(i[o]):a+=i[o]}return a}}const D$=e=>typeof e=="number"?0:e;function $$(e){const t=wb(e);return Sb(e)(t.map(D$))}const Ar={test:O$,parse:wb,createTransformer:Sb,getAnimatableNone:$$},R$=new Set(["brightness","contrast","saturate","opacity"]);function N$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let a=R$.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const L$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(L$);return t?t.map(N$).join(" "):e}},k$={...Mf,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},Tb=e=>k$[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j$=new Set(["auto","none","0"]);function F$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!j$.has(a)&&So(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Eb(n,i)}const ri=e=>e*180/Math.PI,ed=e=>{const t=ri(Math.atan2(e[1],e[0]));return td(t)},V$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ri(Math.atan2(e[6],e[5]))),rotateY:e=>td(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=B$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V$,i=c}if(!i)return Ob(t);const a=r[t],o=i[1].split(",").map(U$);return typeof a=="function"?a(o):o[a]}const W$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function U$(e){return parseFloat(e.trim())}const Mb=e=>e===rs||e===Te,z$=new Set(["x","y","z"]),G$=ns.filter(e=>!z$.has(e));function Y$(e){const t=[];return G$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const os={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};os.translateX=os.x,os.translateY=os.y;const ii=new Set;let rd=!1,id=!1;function _b(){if(id){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var c;(c=r.getValue(a))===null||c===void 0||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function H$(){Ib(),_b()}class sd{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K$(e){const t=q$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const X$=4;function $b(e,t,n=1){Er(n<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=K$(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return Db(o)?parseFloat(o):o}return Of(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Te,Rn,Pr,FD,jD,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb extends sd{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Of(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,a]=t,o=Lb(i),c=Lb(a);if(o!==c)if(Mb(o)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)S$(t[i])&&r.push(i);r.length&&F$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=os[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,c=i[o];i[o]=os[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function Z$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function J$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=jb(i,t),c=jb(a,t);return Qi(o===c,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!c?!1:Z$(e)||(n==="spring"||zf(n))&&r}const Q$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Q$),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const e4=40;class Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!J$(t,r,i,a))if(o)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),a=ad(u,c,e),o=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},n4=[Jf,ni,ss],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(Qi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ss&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Xa(e,t);const i={...n};return a=>(i.red=ld(n.red,r.red,a),i.green=ld(n.green,r.green,a),i.blue=ld(n.blue,r.blue,a),i.alpha=rt(n.alpha,r.alpha,a),ni.transform(i))},i4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>ud(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function a4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function l4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],c=e.indexes[o][i[o]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const c4=(e,t)=>{const n=Ar.createTransformer(t),r=So(e),i=So(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?s4(e,t):To(Ub(l4(r,i),i.values),n):(Qi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,a;Qi(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Xn(it.minDamping,it.maxDamping,o),e=Xn(it.minDuration,it.maxDuration,Zn(e)),o<1?(i=d=>{const h=d*o,m=h*e,p=h-n,y=fd(d,o),S=Math.exp(-m);return Yb-p/y*S},a=d=>{const m=d*o*e,p=m*n+n,y=Math.pow(o,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),o);return(-i(d)+Yb>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=h4(i,a,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:a}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=o-a,w=Zn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let A;if(b<1){const O=fd(w,b);A=R=>{const V=Math.exp(-b*w*R);return o-V*((S+b*w*E)/O*Math.sin(O*R)+E*Math.cos(O*R))}}else if(b===1)A=O=>o-Math.exp(-w*O)*(E+(S+w*E)*O);else{const O=w*Math.sqrt(b*b-1);A=R=>{const V=Math.exp(-b*w*R),F=Math.min(O*R,300);return o-V*((S+b*w*E)*Math.sinh(F)+O*E*Math.cosh(F))/O}}const $={calculatedDuration:y&&m||null,next:O=>{const R=A(O);if(y)c.done=O>=m;else{let V=0;b<1&&(V=O===0?Ln(S):Gb(A,O,R));const F=Math.abs(V)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const O=Math.min(Vb($),od),R=sb(V=>$.next(O*V).value,O,30);return O+"ms "+R}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const E=m+b,w=o===void 0?E:o(E);w!==E&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),$=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let O,R;const V=F=>{y(p.value)&&(O=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&O===void 0&&(z=!0,$(F),V(F)),O!==void 0&&F>=O?R.next(F-O):(!z&&$(F),p)}}}const y4=xo(.42,0,1,1),v4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return xo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,a=e.length-1;for(let o=0;o<a;o++){let c=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Nt:t;c=To(u,c)}r.push(c)}return r}function w4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Er(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=x4(t,r,i),u=c.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=is(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[a-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),a={done:!1,value:t[0]},o=E4(n&&n.length===t.length?n:T4(t),e),c=w4(o,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Eo,keyframes:Eo,spring:qb},O4=e=>e/100;class dd extends Fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new o(a,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,c=zf(n)?n:A4[n]||Eo;let u,d;process.env.NODE_ENV!=="production"&&c!==Eo&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Eo&&typeof t[0]!="number"&&(u=To(O4,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});a==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let A=this.currentTime,$=a;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=o)),A=Xn(0,1,Q)*m}const O=C?{done:!1,value:u[0]}:$.next(A);c&&(O.value=c(O.value));let{done:R}=O;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return V&&i!==void 0&&(O.value=Ka(u,this.options,i)),E&&E(O.value),V&&this.finish(),O}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const M4=new Set(["opacity","clipPath","filter","transform"]);function _4(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,D4=2e4;function $4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<D4;)r=n.sample(a),i.push(r.value),a+=Za;return{times:void 0,keyframes:i,duration:a-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new kb(a,(o,c)=>this.onKeyframesResolved(o,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&qa()&&N4(a)&&(a=Qb[a]),$4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=R4(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,a=E.ease,o="keyframes"}const h=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:a});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;ib(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:a,ease:o,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I4()&&r&&M4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:ti.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,a)=>o=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new g$([])}return!a&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),y=u[m];if(y===void 0||h&&W4(h,m))continue;const S={delay:n,...jf(o||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const C=window.MotionHandoffAnimation(w,m,He);C!==null&&(S.startTime=C,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&d$(e,c)})}),d}function md(e,t,n={}){var r;const i=yo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=a;return U4(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,h]=u==="beforeChildren"?[o,c]:[c,o];return d().then(()=>h())}else return Promise.all([o(),c(n.delay)])}function U4(e,t,n=0,r=0,i=1,a){const o=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(z4).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(md(d,t,{...a,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function z4(e,t){return e.sortNodePosition(t)}function G4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>md(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?yo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=yo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function a(u){t=u(e)}function o(u){const{props:d}=e,h=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<q4;E++){const w=H4[E],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=ho(A),O=w===u?C.isActive:null;O===!1&&(S=E);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&O===null||!A&&!C.prevProp||Ua(A)||typeof A=="boolean")continue;const V=Z4(C.prevProp,A);let F=V||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ne=Q.reduce(i(w),{});O===!1&&(ne={});const{prevResolvedValues:ue={}}=C,ve={...ue,...ne},de=j=>{F=!0,p.has(j)&&(z=!0,p.delete(j)),C.needsAnimating[j]=!0;const W=e.getValue(j);W&&(W.liveStyle=!1)};for(const j in ve){const W=ne[j],q=ue[j];if(y.hasOwnProperty(j))continue;let M=!1;Lf(W)&&Lf(q)?M=!n1(W,q):M=W!==q,M?W!=null?de(j):p.add(j):W!==void 0&&p.has(j)?de(j):C.protectedKeys[j]=!0}C.prevProp=A,C.prevResolvedValues=ne,C.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&V)||z)&&m.push(...Q.map(j=>({animation:j,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=o(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J4 extends Or{constructor(t){super(t),t.animationState||(t.animationState=X4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Q4=0;class e6 extends Or{constructor(){super(...arguments),this.id=Q4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const t6={animation:{Feature:J4},exit:{Feature:e6}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n6(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Po(e){return{point:{x:e.pageX,y:e.pageY}}}const r6=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,r6(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s6(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const a1=1e-4,o6=1-a1,a6=1+a1,l1=.01,l6=0-l1,c6=0+l1;function _t(e){return e.max-e.min}function u6(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=o6&&e.scale<=a6||isNaN(e.scale))&&(e.scale=1),(e.translate>=l6&&e.translate<=c6||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f6(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Mo(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function oi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d6(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let c=0;c<i;c++){a=n[c],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,y1(e,o)),r&&oi(a.latestValues)&&cs(e,a.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ls(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const a=rt(e.min,e.max,i);vd(e,t,n,a,r)}function cs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s6(e.getBoundingClientRect(),t))}function h6(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ls(r.x,i.offset.x),ls(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m6(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m6(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!pd(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Po(t),c=bd(o,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=To(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p6(t)),velocity:g6(t,.1)}}function p6(e){return e[0]}function P1(e){return e[e.length-1]}function g6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const a=Zn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function y6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v6(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b6(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function x6(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Xn(0,1,n)}function w6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wd=.35;function S6(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T6=new WeakMap;class E6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Po(h).point)},a=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n6(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[E];A&&(w=_t(A)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=C6(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&He.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y6(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v6(i.layoutBox,n):this.constraints=!1,this.elastic=S6(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=w6(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ts(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=h6(r,i.root,this.visualElement.getTransformPagePoint());let o=b6(i.layout.layoutBox,a);if(n){const c=n(i6(o));this.hasMutatedConstraints=!!c,c&&(o=o1(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};o&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:c}=i.layout.layoutBox[n];a.set(t[n]-rt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ts(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();i[o]=x6({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(o=>{if(!Qa(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];c.set(rt(u,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;T6.set(this.visualElement,this);const t=this.visualElement.current,n=Ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ts(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const o=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P6 extends Or{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A6 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&He.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},O6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const a=Ar.createTransformer(e),o=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=c,i[1+o]/=u;const d=rt(c,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}};class M6 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;kD(_6),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||He.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(M6,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const _6={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:O6};function I6(e,t,n){const r=Et(e)?e:vo(e);return r.start(hd("",r,t,n)),r.animation}function D6(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $6=(e,t)=>e.depth-t.depth;class R6{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($6),this.isDirty=!1,this.children.forEach(t)}}function N6(e,t){const n=Nn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L6=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Te.test(e);function k6(e,t,n,r,i,a){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j6(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F6(r))):a&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<L6;o++){const c=`border${R1[o]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j6=j1(0,.5,mb),F6=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V6(e,t=0,n=1,r=.5,i,a=e,o=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=rt(a.min,a.max,r);e===a&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],a,o){V6(e,t[n],t[r],t[i],t.scale,a,o)}const B6=["x","scaleX","originX"],W6=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B6,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W6,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U6(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z6{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G6(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y6={visibility:"hidden"},Z1=1e3;let H6=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},c=t==null?void 0:t()){this.id=H6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X6),this.nodes.forEach(tR),this.nodes.forEach(nR),this.nodes.forEach(Z6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R6)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Bf),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=D6(o),this.instance=o;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N6(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||aR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!q1(this.targetLayout,S),A=!p&&y;if(this.options.layoutRoot||this.resumeFrom||A||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,A);const $={...jf(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(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(rR),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Q6),this.isUpdating=!1,this.nodes.forEach(eR),this.nodes.forEach(q6),this.nodes.forEach(K6),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J6),this.sharedNodes.forEach(iR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),lR(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(cR))){const{scroll:h}=this.root;h&&(ls(u.x,h.offset.x),ls(u.y,h.offset.y))}return u}removeElementScroll(o){var c;const u=lt();if(sn(u,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,o),ls(u.x,m.offset.x),ls(u.y,m.offset.y))}return u}applyTransform(o,c=!1){const u=lt();sn(u,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&cs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&cs(u,h.latestValues)}return oi(this.latestValues)&&cs(u,this.latestValues),u}removeTransform(o){const c=lt();sn(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&U1(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||m1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d6(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(o,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(oR));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const O=$/1e3;nx(m.x,o.x,O),nx(m.y,o.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sR(this.relativeTarget,this.relativeTargetOrigin,p,O),A&&U6(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=lt()),sn(A,this.relativeTarget)),b&&(this.animationValues=h,k6(h,d,this.latestValues,O,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I6(0,Z1,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=o;if(!(!c||!u||!d)){if(this!==o&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+p}sn(c,u),cs(c,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z6),this.sharedNodes.get(o).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",o,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,o,d,this.animationValues),Td(`skew${Sd[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y6;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=G6(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in mo){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=mo[b],A=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let O=0;O<$;O++)d[w[O]]=A}else C?this.options.visualElement.renderState.vars[b]=A:d[b]=A}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function q6(e){e.updateLayout()}function K6(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):ax(a,n.layoutBox,r)&&rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=as();Oo(c,r,n.layoutBox);const u=as();o?Oo(u,e.applyTransform(i,!0),n.measuredBox):Oo(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,y.layoutBox),q1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Z6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J6(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q6(e){e.isLayoutDirty=!1}function eR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tR(e){e.resolveTargetDelta()}function nR(e){e.calcProjection()}function rR(e){e.resetSkewAndRotation()}function iR(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function sR(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function oR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aR={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function lR(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u6(K1(t),K1(n),.2)}function cR(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const uR=Q1({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new uR({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fR={pan:{Feature:A6},drag:{Feature:P6,ProjectionNode:lx,MeasureLayout:$1}};function dR(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function cx(e,t){const n=dR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function hR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",o,i)}),a}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&He.postRender(()=>a(t,Po(t)))}class mR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=hR(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class pR extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=To(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,gR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yR(e){return gR.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Io.has(n))return;Cd(n,"down");const i=hx(()=>{Cd(n,"up")}),a=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return pd(e)&&!s1()}function bR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{const u=c.currentTarget;if(!mx(c)||Io.has(u))return;Io.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!Io.has(u))&&(Io.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>vR(d,i)),!yR(c)&&c.tabIndex===null&&(c.tabIndex=0))}),a}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&He.postRender(()=>a(t,Po(t)))}class xR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=bR(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:a})=>px(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,wR=e=>{const t=Pd.get(e.target);t&&t(e)},SR=e=>{e.forEach(wR)};function TR({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(SR,{root:e,...t})),r[i]}function ER(e,t,n){const r=TR(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const CR={some:0,all:1};class PR extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:CR[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return ER(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AR(t,n))&&this.startObserver()}unmount(){}}function AR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OR={inView:{Feature:PR},tap:{Feature:xR},focus:{Feature:pR},hover:{Feature:mR}},MR={layout:{ProjectionNode:lx,MeasureLayout:$1}},Od={current:null},gx={current:!1};function _R(){if(gx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const IR=[...Nb,Ct,Ar],DR=e=>IR.find(Rb(e)),$R=new WeakMap;function RR(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(a))e.addValue(r,vo(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,vo(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=za(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,$R.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((n,r)=>this.bindToMotionValue(r,n)),gx.current||_R(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in es){const n=es[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=RR(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!DR(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Et(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends NR{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function LR(e){return window.getComputedStyle(e)}class kR extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return W$(t,n);{const r=LR(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class jR extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const FR=(e,t)=>Df(e)?new jR(t):new kR(t,{allowProjection:e!==I.Fragment}),VR=a$({...t6,...OR,...fR,...MR},FR),Ze=ED(VR),Md={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Md),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a,showCloseButton:o=!0})=>{const{t:c}=ze(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{a==null||a(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),o&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[a&&v.jsx(jo,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(jo,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
660
660
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
661
661
|
* License - https://fontawesome.com/license (Commercial License)
|
|
662
662
|
* Copyright 2024 Fonticons, Inc.
|
|
@@ -684,7 +684,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
684
684
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
685
685
|
${u&&"hover:!cursor-pointer"}
|
|
686
686
|
group-disabled:bg-gray-500
|
|
687
|
-
`,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:a,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},tw=e=>$n(e,"dd/MM/yyyy"),nw=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:a,futureDates:o=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=ze(),y=p(t),S=p(i),[b,E]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(tw(u)):C("")},[u]);const A=nw(w),$=R=>{const V=R.replace(/\D/g,"").slice(0,8),F=[];V.length>0&&F.push(V.slice(0,2)),V.length>2&&F.push(V.slice(2,4)),V.length>4&&F.push(V.slice(4,8));const z=F.join("/");if(C(z),E(!1),z.length===10){const Q=nw(z);d(Q)}},O=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>E(!1),className:"p-0!",component:v.jsx(Xd,{date:A||new Date,onDateChange:R=>{C(tw(R)),d(R),E(!1)},showTimeSelector:n,futureDates:o,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),E(!0)},disabledInput:!0,onChange:R=>$(R),placeholder:a,error:m==null?void 0:m.message,rightSide:!!A&&v.jsx(De,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:O})})})},rw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a,icon:o=GR})=>{const
|
|
687
|
+
`,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:a,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},tw=e=>$n(e,"dd/MM/yyyy"),nw=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:a,futureDates:o=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=ze(),y=p(t),S=p(i),[b,E]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(tw(u)):C("")},[u]);const A=nw(w),$=R=>{const V=R.replace(/\D/g,"").slice(0,8),F=[];V.length>0&&F.push(V.slice(0,2)),V.length>2&&F.push(V.slice(2,4)),V.length>4&&F.push(V.slice(4,8));const z=F.join("/");if(C(z),E(!1),z.length===10){const Q=nw(z);d(Q)}},O=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>E(!1),className:"p-0!",component:v.jsx(Xd,{date:A||new Date,onDateChange:R=>{C(tw(R)),d(R),E(!1)},showTimeSelector:n,futureDates:o,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),E(!0)},disabledInput:!0,onChange:R=>$(R),placeholder:a,error:m==null?void 0:m.message,rightSide:!!A&&v.jsx(De,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:O})})})},rw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a,icon:o=GR,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{a==null||a(),r()},{t:p}=ze();return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:y=>y.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-20 p-32",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("div",{className:"flex justify-end",children:c&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),v.jsx("div",{className:"flex justify-center",children:v.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:v.jsx(De,{icon:o,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!a&&v.jsx(jo,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(jo,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},iw={duration:.3,ease:[.32,.72,0,1]},sN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},oN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(De,{icon:WR,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),aN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:a="",labelClassName:o=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return v.jsxs(Ze.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[v.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
688
688
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
689
689
|
transition-all duration-200 ease-in-out ${o} focus:outline-none hover:bg-gray-50/50
|
|
690
690
|
flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),v.jsxs("div",{className:"flex gap-10 items-center",children:[v.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),v.jsx(oN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...sN,transition:{height:{duration:iw.duration,ease:iw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${a}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},lN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),a=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[o,c]=I.useState(a()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=a();c(b);let E;if(b===Ht.LOADING&&u<100){const A=100/(r/100);E=setInterval(()=>{d($=>{const O=Math.min($+A,99),R=Math.max(0,Math.round((100-O)/10));return m(R),O})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{E&&clearInterval(E)}},[e.loading,e.error,r,a,u]);const p=()=>{switch(o){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(o){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(De,{icon:zC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),o===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(De,{icon:UC})}),o===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(De,{icon:BC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),o===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},sw=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
|
|
@@ -707,7 +707,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
707
707
|
${u}
|
|
708
708
|
`,onError:A,...d}),v.jsx("div",{className:`
|
|
709
709
|
flex items-center justify-center leading-none text-center absolute
|
|
710
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})};function uw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uw(e))&&(r&&(r+=" "),r+=t);return r}const fw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},dw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},hw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},mw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},PN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},ON=(e="filled",t="blue",n="base")=>{const r=tr(PN,AN[n]),i={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(r,i)},MN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",_N={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},IN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},DN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(MN,_N[n],IN[r]),a={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(i,a)},$N={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},ko=(e="base")=>$N[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:a,className:o,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return v.jsxs("button",{type:"button",className:ON(r,d,i)+" "+o,...c,children:[e&&v.jsx(De,{icon:e,className:ko(i)}),a,t&&v.jsx(De,{icon:t,className:ko(i)})]})},pw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),gw=({open:e,onClose:t,title:n,children:r,className:i=""})=>{const a={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:c=>c.stopPropagation(),children:v.jsxs(bs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(pw,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},RN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...a})=>{const o={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?o:"border-gray-400"} ${r}`,style:u(i),...a,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?o:""}`,style:u(i*.7)})})};var nh,yw;function NN(){if(yw)return nh;yw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,o=512,c=new e(o),u=new e(o),d=new e(o);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var C=h(w);return u.get(w)||u.set(w,function($,O){for(var R=0,V=C.length,F=$;R<V-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[C[R++]]}F[C[R]]=O})},getter:function(w,C){var A=h(w);return d.get(w)||d.set(w,function(O){for(var R=0,V=A.length;R<V;)if(O!=null||!C)O=O[A[R++]];else return;return O})},join:function(w){return w.reduce(function(C,A){return C+(y(A)||n.test(A)?"["+A+"]":(C?".":"")+A)},"")},forEach:function(w,C,A){p(Array.isArray(w)?w:m(w),C,A)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(C){return C.replace(a,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,C,A){var $=w.length,O,R,V,F;for(R=0;R<$;R++)O=w[R],O&&(E(O)&&(O='"'+O+'"'),F=y(O),V=!F&&/^\d+$/.test(O),C.call(A,O,F,V,R,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||b(w))}return nh}var vi=NN(),rh,vw;function LN(){if(vw)return rh;vw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=LN(),dl={exports:{}},bw;function kN(){if(bw)return dl.exports;bw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,a){var o=i.length,c=new Array(o),u={},d=o,h=n(a),m=r(i);for(a.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var C=w[--S];p(C,m.get(C),b)}while(S);b.delete(y)}c[--o]=y}}}function t(i){for(var a=new Set,o=0,c=i.length;o<c;o++){var u=i[o];a.add(u[0]),a.add(u[1])}return Array.from(a)}function n(i){for(var a=new Map,o=0,c=i.length;o<c;o++){var u=i[o];a.has(u[0])||a.set(u[0],new Set),a.has(u[1])||a.set(u[1],new Set),a.get(u[0]).add(u[1])}return a}function r(i){for(var a=new Map,o=0,c=i.length;o<c;o++)a.set(i[o],o);return a}return dl.exports}var jN=kN();const FN=_m(jN),VN=Object.prototype.toString,BN=Error.prototype.toString,WN=RegExp.prototype.toString,UN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",zN=/^Symbol\((.*)\)(.*)$/;function GN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function xw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return GN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return UN.call(e).replace(zN,"Symbol($1)");const r=VN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+BN.call(e)+"]":r==="RegExp"?WN.call(e):null}function $r(e,t){let n=xw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=xw(this[r],t);return a!==null?a:i},2)}function ww(e){return e==null?[]:[].concat(e)}let Sw,Tw,Ew,YN=/\$\{\s*(\w+)\s*\}/g;Sw=Symbol.toStringTag;class Cw{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],ww(t).forEach(a=>{if(jt.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Tw=Symbol.hasInstance,Ew=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YN,(i,a)=>$r(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,a){const o=new Cw(t,n,r,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Ew]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[Tw](t){return Cw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},HN={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qN={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Fn,string:Ft,number:HN,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:qN,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,o=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=o(...c)?i:a;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class bi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bi.prototype.__isYupRef=!0;const xi=e=>e==null;function xs(e){function t({value:n,path:r="",options:i,originalValue:a,schema:o},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:E=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=i;function C(ne){return bi.isRef(ne)?ne.getValue(n,S,b):ne}function A(ne={}){const ue=Object.assign({value:n,originalValue:a,label:o.spec.label,path:ne.path||r,spec:o.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const de of Object.keys(ue))ue[de]=C(ue[de]);const ve=new jt(jt.formatError(ne.message||p,ue),n,ue.path,ne.type||d,ue.disableStackTrace);return ve.params=ue,ve}const $=E?c:u;let O={path:r,parent:S,type:d,from:i.from,createError:A,resolve:C,options:i,originalValue:a,schema:o};const R=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(A())},V=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(O,n,O),typeof((Q=z)==null?void 0:Q.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(R,V)}}catch(ne){V(ne);return}R(z)}return t.OPTIONS=e,t}function KN(e,t,n,r=n){let i,a,o;return t?(vi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}a=h,o=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(bi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function ws(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=ws(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,ws(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(ws(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=ws(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Fn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ws(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&xi(a))return a;let o=$r(t),c=$r(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
710
|
+
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})};function uw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uw(e))&&(r&&(r+=" "),r+=t);return r}const fw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},dw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},hw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},mw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},PN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},ON=(e="filled",t="blue",n="base")=>{const r=tr(PN,AN[n]),i={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(r,i)},MN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",_N={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},IN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},DN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(MN,_N[n],IN[r]),a={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(i,a)},$N={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},ko=(e="base")=>$N[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:a,className:o,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return v.jsxs("button",{type:"button",className:ON(r,d,i)+" "+o,...c,children:[e&&v.jsx(De,{icon:e,className:ko(i)}),a,t&&v.jsx(De,{icon:t,className:ko(i)})]})},pw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),gw=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:a=!0})=>{const o={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:o,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(bs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),a&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(pw,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},RN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...a})=>{const o={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?o:"border-gray-400"} ${r}`,style:u(i),...a,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?o:""}`,style:u(i*.7)})})};var nh,yw;function NN(){if(yw)return nh;yw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,o=512,c=new e(o),u=new e(o),d=new e(o);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var C=h(w);return u.get(w)||u.set(w,function($,O){for(var R=0,V=C.length,F=$;R<V-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[C[R++]]}F[C[R]]=O})},getter:function(w,C){var A=h(w);return d.get(w)||d.set(w,function(O){for(var R=0,V=A.length;R<V;)if(O!=null||!C)O=O[A[R++]];else return;return O})},join:function(w){return w.reduce(function(C,A){return C+(y(A)||n.test(A)?"["+A+"]":(C?".":"")+A)},"")},forEach:function(w,C,A){p(Array.isArray(w)?w:m(w),C,A)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(C){return C.replace(a,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,C,A){var $=w.length,O,R,V,F;for(R=0;R<$;R++)O=w[R],O&&(E(O)&&(O='"'+O+'"'),F=y(O),V=!F&&/^\d+$/.test(O),C.call(A,O,F,V,R,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||b(w))}return nh}var vi=NN(),rh,vw;function LN(){if(vw)return rh;vw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=LN(),dl={exports:{}},bw;function kN(){if(bw)return dl.exports;bw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,a){var o=i.length,c=new Array(o),u={},d=o,h=n(a),m=r(i);for(a.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var C=w[--S];p(C,m.get(C),b)}while(S);b.delete(y)}c[--o]=y}}}function t(i){for(var a=new Set,o=0,c=i.length;o<c;o++){var u=i[o];a.add(u[0]),a.add(u[1])}return Array.from(a)}function n(i){for(var a=new Map,o=0,c=i.length;o<c;o++){var u=i[o];a.has(u[0])||a.set(u[0],new Set),a.has(u[1])||a.set(u[1],new Set),a.get(u[0]).add(u[1])}return a}function r(i){for(var a=new Map,o=0,c=i.length;o<c;o++)a.set(i[o],o);return a}return dl.exports}var jN=kN();const FN=_m(jN),VN=Object.prototype.toString,BN=Error.prototype.toString,WN=RegExp.prototype.toString,UN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",zN=/^Symbol\((.*)\)(.*)$/;function GN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function xw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return GN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return UN.call(e).replace(zN,"Symbol($1)");const r=VN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+BN.call(e)+"]":r==="RegExp"?WN.call(e):null}function $r(e,t){let n=xw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=xw(this[r],t);return a!==null?a:i},2)}function ww(e){return e==null?[]:[].concat(e)}let Sw,Tw,Ew,YN=/\$\{\s*(\w+)\s*\}/g;Sw=Symbol.toStringTag;class Cw{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],ww(t).forEach(a=>{if(jt.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Tw=Symbol.hasInstance,Ew=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YN,(i,a)=>$r(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,a){const o=new Cw(t,n,r,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Ew]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[Tw](t){return Cw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},HN={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qN={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Fn,string:Ft,number:HN,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:qN,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,o=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=o(...c)?i:a;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class bi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bi.prototype.__isYupRef=!0;const xi=e=>e==null;function xs(e){function t({value:n,path:r="",options:i,originalValue:a,schema:o},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:E=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=i;function C(ne){return bi.isRef(ne)?ne.getValue(n,S,b):ne}function A(ne={}){const ue=Object.assign({value:n,originalValue:a,label:o.spec.label,path:ne.path||r,spec:o.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const de of Object.keys(ue))ue[de]=C(ue[de]);const ve=new jt(jt.formatError(ne.message||p,ue),n,ue.path,ne.type||d,ue.disableStackTrace);return ve.params=ue,ve}const $=E?c:u;let O={path:r,parent:S,type:d,from:i.from,createError:A,resolve:C,options:i,originalValue:a,schema:o};const R=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(A())},V=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(O,n,O),typeof((Q=z)==null?void 0:Q.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(R,V)}}catch(ne){V(ne);return}R(z)}return t.OPTIONS=e,t}function KN(e,t,n,r=n){let i,a,o;return t?(vi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}a=h,o=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(bi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function ws(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=ws(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,ws(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(ws(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=ws(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Fn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ws(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&xi(a))return a;let o=$r(t),c=$r(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
711
711
|
|
|
712
712
|
attempted value: ${o}
|
|
713
713
|
`+(c!==o?`result of cast: ${c}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:a,originalValue:o=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:a,value:u,originalValue:o,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:a,value:u,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:o,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,o))},m=b=>{i||(i=!0,r(b,o))},p=a.length,y=[];if(!p)return m([]);let S={value:o,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<a.length;b++){const E=a[b];E(S,h,function(C){C&&(Array.isArray(C)?y.push(...C):y.push(C)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:o}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},o,{strict:!0,parent:r,value:d,originalValue:a[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,a)):o(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,o);a=u}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ws(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=xs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Fn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Fn.notNull){return this.nullability(!1,t)}required(t=Fn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Fn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=xs(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=ww(t).map(a=>new bi(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Fn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=xs({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),r}notOneOf(t,n=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=xs({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:a,nullable:o}=n.spec;return{meta:i,label:r,optional:a,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=KN(this,t,n,r.context);return o[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const XN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ZN(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=XN.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let JN=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,QN=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,eL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,tL="^\\d{4}-\\d{2}-\\d{2}",nL="\\d{2}:\\d{2}:\\d{2}",rL="(([+-]\\d{2}(:?\\d{2})?)|Z)",iL=new RegExp(`${tL}T${nL}(\\.\\d+)?${rL}$`),sL=e=>xi(e)||e===e.trim(),oL={}.toString();function Rr(){return new Pw}class Pw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===oL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,a;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:a}=n:i=n),this.test({name:a||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Ft.email){return this.matches(JN,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(QN,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(eL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(iL,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:a=>{if(!a||r)return!0;const o=ah(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=ah(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:sL})}lowercase(t=Ft.lowercase){return this.transform(n=>xi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>xi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toUpperCase()})}}Rr.prototype=Pw.prototype;let aL=new Date(""),lL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return lL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ZN(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bi.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=aL;function cL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,c])=>`${o}-${c}`));function a(o,c){let u=vi.split(o)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const o of Object.keys(e)){let c=e[o];r.add(o),bi.isRef(c)&&c.isSibling?a(c.path,o):oh(c)&&"deps"in c&&c.deps.forEach(u=>a(u,o))}return FN.array(Array.from(r),n).reverse()}function Aw(e,t){let n=1/0;return e.some((r,i)=>{var a;if((a=t.path)!=null&&a.includes(r))return n=i,!0}),n}function Ow(e){return(t,n)=>Aw(e,t)-Aw(e,n)}const uL=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const fL=(e,t)=>{const n=[...vi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=vi.getter(vi.join(n),!0)(e);return!!(i&&r in i)};let Mw=e=>Object.prototype.toString.call(e)==="[object Object]";function _w(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const dL=Ow([]);function ch(e){return new Iw(e)}class Iw extends Vn{constructor(t){super({type:"object",check(n){return Mw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=dL,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let a=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=a[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let E=p instanceof Vn?p.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!o&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:a=[],originalValue:o=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:o},...a],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(u,d)=>{if(!c||!Mw(d)){i(u,d);return}o=o||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bi.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:o}))}this.runTests({tests:h,value:d,originalValue:o,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,a]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?a:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const a=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=a&&"getDefault"in a?a.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=cL(t,n),r._sortErrors=Ow(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=vi.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return fL(a,t)&&(o=Object.assign({},a),r||delete o[t],o[n]=i(a)),o})}json(){return this.transform(uL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=_w(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const a=_w(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[a,o]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),r.fields[a]=o.describe(c)}return r}}ch.prototype=Iw.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Dw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],hL=({countries:e=Dw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",className:o="",translateKey:c})=>{var xe,Le,ie;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=I.useState(!1),[y,S]=I.useState(""),[b,E]=I.useState(d.value||null),w=I.useRef(null),C=I.useRef(null),A=I.useRef(null),{x:$,y:O,strategy:R,refs:V,context:F,placement:z,middlewareData:Q}=gi({open:m,onOpenChange:p,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:pe,elements:ke}){Object.assign(ke.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),ps({element:C})],placement:"bottom-start",whileElementsMounted:ui}),ne=gs(F),ue=pi(F),{getReferenceProps:ve,getFloatingProps:de}=yi([ne,ue]),{isMounted:re,styles:oe}=vs(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),W=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const ke=a==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return ke.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),q=pe=>{E(pe),p(!1),S(""),d.onChange(pe)},M=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const pe=ke=>{A.current&&!A.current.contains(ke.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const Z=pe=>{var ke;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((ke=pe.code)==null?void 0:ke.toLowerCase())||"":""},ee=(xe=Q.arrow)==null?void 0:xe.x,se=(Le=Q.arrow)==null?void 0:Le.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],te=ve({onClick:M,onBlur:k}),he=u(r),ce=u(i),ye=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:A,className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${ye&&"!text-red-500"} text-label`,children:he}),v.jsxs("div",{ref:V.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ye&&"border-red-500 hover:border-red-600"} ${re?"border-blue-400":"border-blue-100"}`,...te,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[Z(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Z(b)}.png`,srcSet:`https://flagcdn.com/w40/${Z(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[a==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ce}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ye&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ye,{x:u(c||"")||u(t)})}),re&&v.jsxs("div",{ref:V.setFloating,style:{position:R,top:O??0,left:$??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ee!=null?`${ee}px`:"",top:se!=null?`${se}px`:"",right:"",bottom:"",[G]:"-2px",borderRight:G==="left"?"1px solid":"none",borderBottom:G==="top"?"1px solid":"none",borderLeft:G==="right"?"1px solid":"none",borderTop:G==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:W.length>0?v.jsx("ul",{className:"flex flex-col",children:W.map((pe,ke)=>{var wi;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((wi=pe.code)==null?void 0:wi.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),q(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[a==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${ke}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},mL=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),v.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},pL=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",className:o=""})=>{const{t:c}=ze();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(gL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:a,error:h==null?void 0:h.message,className:o})})},gL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",error:o,className:c=""})=>{var ee,se;const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),E=I.useRef(null),{x:w,y:C,strategy:A,refs:$,context:O,placement:R,middlewareData:V}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:G,elements:te}){Object.assign(te.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),ps({element:E})],placement:"bottom-start",whileElementsMounted:ui}),F=gs(O),z=pi(O),{getReferenceProps:Q,getFloatingProps:ne}=yi([F,z]),{isMounted:ue,styles:ve}=vs(O,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),re=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const te=a==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),he=G.code?G.code.toLowerCase():"";return te.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),oe=G=>{S(G),h(!1),p(""),n(G)},j=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const W=G=>{var te;return G?G.codeISO2?G.codeISO2.toLowerCase():((te=G.code)==null?void 0:te.toLowerCase())||"":""},q=(ee=V.arrow)==null?void 0:ee.x,M=(se=V.arrow)==null?void 0:se.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],Z=Q({onClick:j});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${o&&"border-red-500 hover:border-red-600"} ${ue?"border-blue-400":"border-blue-100"}`,...Z,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[W(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${W(y)}.png`,srcSet:`https://flagcdn.com/w40/${W(y)}.png 2x`,alt:y.label,onError:G=>{G.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[a==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),ue&&v.jsxs("div",{ref:$.setFloating,style:{position:A,top:C??0,left:w??0,...ve},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ne(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:q!=null?`${q}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:G=>p(G.target.value),onClick:G=>G.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:re.length>0?v.jsx("ul",{className:"flex flex-col",children:re.map((G,te)=>{var ce;const he=G.codeISO2?G.codeISO2.toLowerCase():((ce=G.code)==null?void 0:ce.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ye=>{ye.stopPropagation(),oe(G)},children:[he&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:G.label,onError:ye=>{ye.currentTarget.style.display="none"}}),v.jsxs("span",{children:[a==="es"&&G.labelES?G.labelES:G.label,G.code?` (${G.code})`:"Country not found"]})]},`${G.code}-${te}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:a={},children:o,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return v.jsx("button",{...u,className:`${DN(e,h,n,r)} ${c}`,children:i?v.jsx(De,{...a,className:ko(n),icon:i}):o})};function yL(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const vL=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:a,control:o,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),p=I.useRef(null),y=hr.useController({name:a,control:o}),S=!!o;I.useEffect(()=>{if(S){const C=y==null?void 0:y.field.value;if(yL(C)){const A=URL.createObjectURL(C);return d(A),m(!0),()=>URL.revokeObjectURL(A)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var C;n&&((C=p.current)==null||C.click())},E=C=>{var $;const A=($=C.target.files)==null?void 0:$[0];if(A){const O=URL.createObjectURL(A);d(O),m(!0),S&&(y==null||y.field.onChange(A)),r&&r(A)}},w=C=>{C.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return v.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&v.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),v.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:b,children:[u?v.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):v.jsx(cw,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:C=>{p.current=C,y&&y.field.ref(C)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&v.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:v.jsx(De,{icon:UR,className:"text-blue-500"})})]})]})]})},bL=ch({name:Rr(),base64:Rr()}),xL=({imageUrl:e,title:t,subtitle:n})=>v.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[v.jsx("img",{src:e,alt:t,width:100,height:100}),v.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),v.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),wL=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},SL=({description:e,title:t,className:n,icon:r,type:i="informative"})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${wL(i)} rounded-lg ${n}`,children:[r?v.jsx(De,{icon:r,className:"text-blue-500 min-h-20 h-20"}):v.jsx(De,{icon:nN,className:"text-blue-500 min-h-20 h-20"}),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),v.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),TL=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,a=2*Math.PI*i,{className:o="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${o}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:a+" "+a,strokeDashoffset:a/4,r:i,cx:e/2,cy:e/2})})})},EL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:a=!1,leftSide:o})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=I.useState(!1),{t:S}=ze();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${a&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${a&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
|