@3sc/common-component 0.0.113 → 0.0.114
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -245,7 +245,7 @@ const theme2 = createTheme({ palette: {
|
|
|
245
245
|
${f}px !important;
|
|
246
246
|
top: ${u}px !important;
|
|
247
247
|
}
|
|
248
|
-
`),()=>{document.head.removeChild(m)}},[t]),v.jsx(GR,{isPresent:t,childRef:r,sizeRef:s,children:E.cloneElement(e,{ref:r})})}const HR=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a,anchorX:c})=>{const l=_c(XR),u=P.useId(),d=P.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;o&&o()},[l,o]),p=P.useMemo(()=>({id:u,initial:t,isPresent:n,custom:r,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),d]:[n,d]);return P.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),E.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),a==="popLayout"&&(e=v.jsx(zR,{isPresent:n,anchorX:c,children:e})),v.jsx(oa.Provider,{value:p,children:e})};function XR(){return new Map}function Um(e=!0){const t=P.useContext(oa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=P.useId();P.useEffect(()=>{e&&r(s)},[e]);const a=P.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const ra=e=>e.key||"";function Zm(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Wc=typeof window<"u",Ym=Wc?P.useLayoutEffect:P.useEffect,Gc=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:s="sync",propagate:a=!1,anchorX:c="left"})=>{const[l,u]=Um(a),d=P.useMemo(()=>Zm(e),[e]),p=a&&!l?[]:d.map(ra),f=P.useRef(!0),m=P.useRef(d),g=_c(()=>new Map),[h,y]=P.useState(d),[b,I]=P.useState(d);Ym(()=>{f.current=!1,m.current=d;for(let x=0;x<b.length;x++){const w=ra(b[x]);p.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[b,p.length,p.join("-")]);const C=[];if(d!==h){let x=[...d];for(let w=0;w<b.length;w++){const A=b[w],O=ra(A);p.includes(O)||(x.splice(w,0,A),C.push(A))}return s==="wait"&&C.length&&(x=C),I(Zm(x)),y(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&b.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:S}=P.useContext(Lc);return v.jsx(v.Fragment,{children:b.map(x=>{const w=ra(x),A=a&&!l?!1:d===b||p.includes(w),O=()=>{if(g.has(w))g.set(w,!0);else return;let k=!0;g.forEach(N=>{N||(k=!1)}),k&&(S==null||S(),I(m.current),a&&(u==null||u()),o&&o())};return v.jsx(HR,{isPresent:A,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:s,onExitComplete:A?void 0:O,anchorX:c,children:x},w)})})},Gt=e=>e;let ur=Gt,eo=Gt;process.env.NODE_ENV!=="production"&&(ur=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},eo=(e,t)=>{if(!e)throw new Error(t)});function zc(e){let t;return()=>(t===void 0&&(t=e()),t)}const dr=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},Nn=e=>e*1e3,Ln=e=>e/1e3,UR={skipAnimations:!1,useManualTiming:!1},ia=["read","resolveKeyframes","update","preRender","render","postRender"],Jm={value:null,addProjectionMetrics:null};function ZR(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},l=0;function u(p){a.has(p)&&(d.schedule(p),e()),l++,p(c)}const d={schedule:(p,f=!1,m=!1)=>{const h=m&&r?n:o;return f&&a.add(p),h.has(p)||h.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(c=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&Jm.value&&Jm.value.frameloop[t].push(l),l=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const YR=40;function qm(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ia.reduce((b,I)=>(b[I]=ZR(s,t?I:void 0),b),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=a,m=()=>{const b=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(b-r.timestamp,YR),1),r.timestamp=b,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(m))},g=()=>{n=!0,o=!0,r.isProcessing||e(m)};return{schedule:ia.reduce((b,I)=>{const C=a[I];return b[I]=(S,x=!1,w=!1)=>(n||g(),C.schedule(S,x,w)),b},{}),cancel:b=>{for(let I=0;I<ia.length;I++)a[ia[I]].cancel(b)},state:r,steps:a}}const{schedule:Qe,cancel:to,state:St,steps:Hc}=qm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),Km=P.createContext({strict:!1}),Qm={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"]},pr={};for(const e in Qm)pr[e]={isEnabled:t=>Qm[e].some(n=>!!t[n])};function JR(e){for(const t in e)pr[t]={...pr[t],...e[t]}}const qR=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 sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qR.has(e)}let eg=e=>!sa(e);function KR(e){e&&(eg=t=>t.startsWith("on")?!sa(t):e(t))}try{KR(require("@emotion/is-prop-valid").default)}catch{}function QR(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(eg(r)||n===!0&&sa(r)||!t&&!sa(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const tg=new Set;function aa(e,t,n){e||tg.has(t)||(console.warn(t),tg.add(t))}function eP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&aa(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const la=P.createContext({});function ca(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hi(e){return typeof e=="string"||Array.isArray(e)}const Xc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uc=["initial",...Xc];function ua(e){return ca(e.animate)||Uc.some(t=>hi(e[t]))}function ng(e){return!!(ua(e)||e.variants)}function tP(e,t){if(ua(e)){const{initial:n,animate:o}=e;return{initial:n===!1||hi(n)?n:void 0,animate:hi(o)?o:void 0}}return e.inherit!==!1?t:{}}function nP(e){const{initial:t,animate:n}=tP(e,P.useContext(la));return P.useMemo(()=>({initial:t,animate:n}),[og(t),og(n)])}function og(e){return Array.isArray(e)?e.join(" "):e}const oP=Symbol.for("motionComponentSymbol");function fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rP(e,t,n){return P.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):fr(n)&&(n.current=o))},[t])}const Zc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rg="data-"+Zc("framerAppearId"),{schedule:Yc,cancel:jB}=qm(queueMicrotask,!1),ig=P.createContext({});function iP(e,t,n,o,r){var s,a;const{visualElement:c}=P.useContext(la),l=P.useContext(Km),u=P.useContext(oa),d=P.useContext($c).reducedMotion,p=P.useRef(null);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,m=P.useContext(ig);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&sP(p.current,n,r,m);const g=P.useRef(!1);P.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const h=n[rg],y=P.useRef(!!h&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,h))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,h)));return Ym(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Yc.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,h)}),y.current=!1))}),f}function sP(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sg(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||c&&fr(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function sg(e){if(e)return e.options.allowProjection!==!1?e.projection:sg(e.parent)}function aP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&JR(e);function c(u,d){let p;const f={...P.useContext($c),...u,layoutId:lP(u)},{isStatic:m}=f,g=nP(u),h=o(u,m);if(!m&&Wc){cP(f,e);const y=uP(f);p=y.MeasureLayout,g.visualElement=iP(r,h,f,t,y.ProjectionNode)}return v.jsxs(la.Provider,{value:g,children:[p&&g.visualElement?v.jsx(p,{visualElement:g.visualElement,...f}):null,n(r,u,rP(h,g.visualElement,d),h,m,g.visualElement)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const l=P.forwardRef(c);return l[oP]=r,l}function lP({layoutId:e}){const t=P.useContext(Lc).id;return t&&e!==void 0?t+"-"+e:e}function cP(e,t){const n=P.useContext(Km).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ur(!1,o):eo(!1,o)}}function uP(e){const{drag:t,layout:n}=pr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const ag=e=>t=>typeof t=="string"&&t.startsWith(e),Jc=ag("--"),dP=ag("var(--"),qc=e=>dP(e)?pP.test(e.split("/*")[0].trim()):!1,pP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mi={};function fP(e){for(const t in e)mi[t]=e[t],Jc(t)&&(mi[t].isCSSVariable=!0)}const hr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(hr);function lg(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mi[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),cg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,n)=>n>t?t:n<e?e:n,mr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gi={...mr,transform:e=>_n(0,1,e)},da={...mr,default:1},bi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),no=bi("deg"),kn=bi("%"),Ce=bi("px"),hP=bi("vh"),mP=bi("vw"),ug={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},gP={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce},bP={rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:da,scaleX:da,scaleY:da,scaleZ:da,skew:no,skewX:no,skewY:no,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:gi,originX:ug,originY:ug,originZ:Ce},dg={...mr,transform:Math.round},Kc={...gP,...bP,zIndex:dg,size:Ce,fillOpacity:gi,strokeOpacity:gi,numOctaves:dg},vP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yP=hr.length;function xP(e,t,n){let o="",r=!0;for(let s=0;s<yP;s++){const a=hr[s],c=e[a];if(c===void 0)continue;let l=!0;if(typeof c=="number"?l=c===(a.startsWith("scale")?1:0):l=parseFloat(c)===0,!l||n){const u=cg(c,Kc[a]);if(!l){r=!1;const d=vP[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Qc(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,c=!1;for(const l in t){const u=t[l];if(To.has(l)){a=!0;continue}else if(Jc(l)){r[l]=u;continue}else{const d=cg(u,Kc[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(a||n?o.transform=xP(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const eu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pg(e,t,n){for(const o in t)!Rt(t[o])&&!lg(o,n)&&(e[o]=t[o])}function CP({transformTemplate:e},t){return P.useMemo(()=>{const n=eu();return Qc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TP(e,t){const n=e.style||{},o={};return pg(o,n,e),Object.assign(o,CP(e,t)),o}function EP(e,t){const n={},o=TP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const IP=["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 tu(e){return typeof e!="string"||e.includes("-")?!1:!!(IP.indexOf(e)>-1||/[A-Z]/u.test(e))}const SP={offset:"stroke-dashoffset",array:"stroke-dasharray"},wP={offset:"strokeDashoffset",array:"strokeDasharray"};function AP(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?SP:wP;e[s.offset]=Ce.transform(-o);const a=Ce.transform(t),c=Ce.transform(n);e[s.array]=`${a} ${c}`}function fg(e,t,n){return typeof e=="string"?e:Ce.transform(t+n*e)}function OP(e,t,n){const o=fg(t,e.x,e.width),r=fg(n,e.y,e.height);return`${o} ${r}`}function nu(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(Qc(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(r!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=OP(g,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),a!==void 0&&AP(f,a,c,l,!1)}const hg=()=>({...eu(),attrs:{}}),ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function RP(e,t,n,o){const r=P.useMemo(()=>{const s=hg();return nu(s,t,ou(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};pg(s,e.style,e),r.style={...s,...r.style}}return r}function PP(e=!1){return(n,o,r,{latestValues:s},a)=>{const l=(tu(n)?RP:EP)(o,s,a,n),u=QR(o,typeof n=="string",e),d=n!==P.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=P.useMemo(()=>Rt(p)?p.get():p,[p]);return P.createElement(n,{...d,children:f})}}function mg(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ru(e,t,n,o){if(typeof t=="function"){const[r,s]=mg(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=mg(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const iu=e=>Array.isArray(e),NP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kP=e=>iu(e)?e[e.length-1]||0:e;function pa(e){const t=Rt(e)?e.get():e;return NP(t)?t.toValue():t}function MP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:DP(o,r,s,e),renderState:t()};return n&&(a.onMount=c=>n({props:o,current:c,...a}),a.onUpdate=c=>n(c)),a}const gg=e=>(t,n)=>{const o=P.useContext(la),r=P.useContext(oa),s=()=>MP(e,t,o,r);return n?s():_c(s)};function DP(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=pa(s[f]);let{initial:a,animate:c}=e;const l=ua(e),u=ng(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?c:a;if(p&&typeof p!="boolean"&&!ca(p)){const f=Array.isArray(p)?p:[p];for(let m=0;m<f.length;m++){const g=ru(e,f[m]);if(g){const{transitionEnd:h,transition:y,...b}=g;for(const I in b){let C=b[I];if(Array.isArray(C)){const S=d?C.length-1:0;C=C[S]}C!==null&&(r[I]=C)}for(const I in h)r[I]=h[I]}}}return r}function su(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||lg(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const BP={useVisualState:gg({scrapeMotionValuesFromProps:su,createRenderState:eu})};function bg(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 vg(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const yg=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 xg(e,t,n,o){vg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(yg.has(r)?r:Zc(r),t.attrs[r])}function Cg(e,t,n){const o=su(e,t,n);for(const r in e)if(Rt(e[r])||Rt(t[r])){const s=hr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Tg=["x","y","width","height","cx","cy","r"],jP={useVisualState:gg({scrapeMotionValuesFromProps:Cg,createRenderState:hg,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const c in r)if(To.has(c)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let c=0;c<Tg.length;c++){const l=Tg[c];e[l]!==t[l]&&(a=!0)}a&&Qe.read(()=>{bg(n,o),Qe.render(()=>{nu(o,r,ou(n.tagName),e.transformTemplate),xg(n,o)})})}})};function FP(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...tu(o)?jP:BP,preloadedFeatures:e,useRender:PP(r),createVisualElement:t,Component:o};return aP(a)}}function vi(e,t,n){const o=e.getProps();return ru(o,t,n!==void 0?n:o.custom,e)}const VP=zc(()=>window.ScrollTimeline!==void 0);class LP{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 o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(VP()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].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 _P extends LP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function au(e,t){return e?e[t]||e.default||e:void 0}const lu=2e4;function Eg(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<lu;)t+=n,o=e.next(t);return t>=lu?1/0:t}function cu(e){return typeof e=="function"}function Ig(e,t){e.timeline=t,e.onfinish=null}const uu=e=>Array.isArray(e)&&typeof e[0]=="number",$P={linearEasing:void 0};function WP(e,t){const n=zc(e);return()=>{var o;return(o=$P[t])!==null&&o!==void 0?o:n()}}const fa=WP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(dr(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function wg(e){return!!(typeof e=="function"&&fa()||!e||typeof e=="string"&&(e in du||fa())||uu(e)||Array.isArray(e)&&e.every(wg))}const yi=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,du={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yi([0,.65,.55,1]),circOut:yi([.55,0,1,.45]),backIn:yi([.31,.01,.66,-.59]),backOut:yi([.33,1.53,.69,.99])};function Ag(e,t){if(e)return typeof e=="function"&&fa()?Sg(e,t):uu(e)?yi(e):Array.isArray(e)?e.map(n=>Ag(n,t)||du.easeOut):du[e]}const bn={x:!1,y:!1};function Og(){return bn.x||bn.y}function GP(e,t,n){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Rg(e,t){const n=GP(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Pg(e){return!(e.pointerType==="touch"||Og())}function zP(e,t,n={}){const[o,r,s]=Rg(e,n),a=c=>{if(!Pg(c))return;const{target:l}=c,u=t(l,c);if(typeof u!="function"||!l)return;const d=p=>{Pg(p)&&(u(p),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return o.forEach(c=>{c.addEventListener("pointerenter",a,r)}),s}const Ng=(e,t)=>t?e===t?!0:Ng(e,t.parentElement):!1,pu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XP(e){return HP.has(e.tagName)||e.tabIndex!==-1}const xi=new WeakSet;function kg(e){return t=>{t.key==="Enter"&&e(t)}}function fu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const UP=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=kg(()=>{if(xi.has(n))return;fu(n,"down");const r=kg(()=>{fu(n,"up")}),s=()=>fu(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Mg(e){return pu(e)&&!Og()}function ZP(e,t,n={}){const[o,r,s]=Rg(e,n),a=c=>{const l=c.currentTarget;if(!Mg(c)||xi.has(l))return;xi.add(l);const u=t(l,c),d=(m,g)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),!(!Mg(m)||!xi.has(l))&&(xi.delete(l),typeof u=="function"&&u(m,{success:g}))},p=m=>{d(m,n.useGlobalTarget||Ng(l,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",f,r)};return o.forEach(c=>{!XP(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,r),c.addEventListener("focus",u=>UP(u,r),r)}),s}function YP(e){return e==="x"||e==="y"?bn[e]?null:(bn[e]=!0,()=>{bn[e]=!1}):bn.x||bn.y?null:(bn.x=bn.y=!0,()=>{bn.x=bn.y=!1})}const Dg=new Set(["width","height","top","left","right","bottom",...hr]);let ha;function JP(){ha=void 0}const Mn={now:()=>(ha===void 0&&Mn.set(St.isProcessing||UR.useManualTiming?St.timestamp:performance.now()),ha),set:e=>{ha=e,queueMicrotask(JP)}};function hu(e,t){e.indexOf(t)===-1&&e.push(t)}function mu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gu{constructor(){this.subscriptions=[]}add(t){return hu(this.subscriptions,t),()=>mu(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Bg(e,t){return t?e*(1e3/t):0}const jg=30,qP=e=>!isNaN(parseFloat(e));class KP{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=Mn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&aa(!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 gu);const o=this.events[t].add(n);return t==="change"?()=>{o(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jg);return Bg(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 Ci(e,t){return new KP(e,t)}function QP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function e5(e,t){const n=vi(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const c=kP(s[a]);QP(e,a,c)}}function t5(e){return!!(Rt(e)&&e.add)}function bu(e,t){const n=e.getValue("willChange");if(t5(n))return n.add(t)}function Fg(e){return e.props[rg]}const Vg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,n5=1e-7,o5=12;function r5(e,t,n,o,r){let s,a,c=0;do a=t+(n-t)/2,s=Vg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>n5&&++c<o5);return a}function Ti(e,t,n,o){if(e===t&&n===o)return Gt;const r=s=>r5(s,0,1,e,n);return s=>s===0||s===1?s:Vg(r(s),t,o)}const Lg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_g=e=>t=>1-e(1-t),$g=Ti(.33,1.53,.69,.99),vu=_g($g),Wg=Lg(vu),Gg=e=>(e*=2)<1?.5*vu(e):.5*(2-Math.pow(2,-10*(e-1))),yu=e=>1-Math.sin(Math.acos(e)),zg=_g(yu),Hg=Lg(yu),Xg=e=>/^0[^.\s]+$/u.test(e);function i5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xg(e):!0}const Ei=e=>Math.round(e*1e5)/1e5,xu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function s5(e){return e==null}const a5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cu=(e,t)=>n=>!!(typeof n=="string"&&a5.test(n)&&n.startsWith(e)||t&&!s5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ug=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,c]=o.match(xu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},l5=e=>_n(0,255,e),Tu={...mr,transform:e=>Math.round(l5(e))},Eo={test:Cu("rgb","red"),parse:Ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Tu.transform(e)+", "+Tu.transform(t)+", "+Tu.transform(n)+", "+Ei(gi.transform(o))+")"};function c5(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Eu={test:Cu("#"),parse:c5,transform:Eo.transform},gr={test:Cu("hsl","hue"),parse:Ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+kn.transform(Ei(t))+", "+kn.transform(Ei(n))+", "+Ei(gi.transform(o))+")"},Pt={test:e=>Eo.test(e)||Eu.test(e)||gr.test(e),parse:e=>Eo.test(e)?Eo.parse(e):gr.test(e)?gr.parse(e):Eu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eo.transform(e):gr.transform(e)},u5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function d5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(u5))===null||n===void 0?void 0:n.length)||0)>0}const Zg="number",Yg="color",p5="var",f5="var(",Jg="${}",h5=/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 Ii(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(h5,l=>(Pt.test(l)?(o.color.push(s),r.push(Yg),n.push(Pt.parse(l))):l.startsWith(f5)?(o.var.push(s),r.push(p5),n.push(l)):(o.number.push(s),r.push(Zg),n.push(parseFloat(l))),++s,Jg)).split(Jg);return{values:n,split:c,indexes:o,types:r}}function qg(e){return Ii(e).values}function Kg(e){const{split:t,types:n}=Ii(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const c=n[a];c===Zg?s+=Ei(r[a]):c===Yg?s+=Pt.transform(r[a]):s+=r[a]}return s}}const m5=e=>typeof e=="number"?0:e;function g5(e){const t=qg(e);return Kg(e)(t.map(m5))}const oo={test:d5,parse:qg,createTransformer:Kg,getAnimatableNone:g5},b5=new Set(["brightness","contrast","saturate","opacity"]);function v5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(xu)||[];if(!o)return e;const r=n.replace(o,"");let s=b5.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const y5=/\b([a-z-]*)\(.*?\)/gu,Iu={...oo,getAnimatableNone:e=>{const t=e.match(y5);return t?t.map(v5).join(" "):e}},x5={...Kc,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:Iu,WebkitFilter:Iu},Su=e=>x5[e];function Qg(e,t){let n=Su(e);return n!==Iu&&(n=oo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const C5=new Set(["auto","none","0"]);function T5(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!C5.has(s)&&Ii(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Qg(n,r)}const e0=e=>e===mr||e===Ce,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return t0(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?t0(s[1],e):0}},E5=new Set(["x","y","z"]),I5=hr.filter(e=>!E5.has(e));function S5(e){const t=[];return I5.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const br={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:n0(4,13),y:n0(5,14)};br.translateX=br.x,br.translateY=br.y;const Io=new Set;let wu=!1,Au=!1;function o0(){if(Au){const e=Array.from(Io).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=S5(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Au=!1,wu=!1,Io.forEach(e=>e.complete()),Io.clear()}function r0(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Au=!0)})}function w5(){r0(),o0()}class Ou{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),wu||(wu=!0,Qe.read(r0),Qe.resolveKeyframes(o0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const l=o.readValue(n,c);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=c),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),A5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O5(e){const t=A5.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const R5=4;function s0(e,t,n=1){eo(n<=R5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=O5(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return i0(a)?parseFloat(a):a}return qc(r)?s0(r,t,n+1):r}const a0=e=>t=>t.test(e),l0=[mr,Ce,kn,no,mP,hP,{test:e=>e==="auto",parse:e=>e}],c0=e=>l0.find(a0(e));class u0 extends Ou{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),qc(u))){const d=s0(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Dg.has(o)||t.length!==2)return;const[r,s]=t,a=c0(r),c=c0(s);if(a!==c)if(e0(a)&&e0(c))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)i5(t[r])&&o.push(r);o.length&&T5(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=br[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,c=r[a];r[a]=br[o](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(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const d0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(oo.test(e)||e==="0")&&!e.startsWith("url("));function P5(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 N5(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=d0(r,t),c=d0(s,t);return ur(a===c,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!c?!1:P5(e)||(n==="spring"||cu(n))&&o}const k5=e=>e!==null;function ma(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(k5),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const M5=40;class p0{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>M5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&w5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:c,onUpdate:l,isGenerator:u}=this.options;if(!u&&!N5(t,o,r,s))if(a)this.options.duration=0;else{l&&l(ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const at=(e,t,n)=>e+(t-e)*n;function Ru(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 D5({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=Ru(l,c,e+1/3),s=Ru(l,c,e),a=Ru(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function ga(e,t){return n=>n>0?t:e}const Pu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},B5=[Eu,Eo,gr],j5=e=>B5.find(t=>t.test(e));function f0(e){const t=j5(e);if(ur(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===gr&&(n=D5(n)),n}const h0=(e,t)=>{const n=f0(e),o=f0(t);if(!n||!o)return ga(e,t);const r={...n};return s=>(r.red=Pu(n.red,o.red,s),r.green=Pu(n.green,o.green,s),r.blue=Pu(n.blue,o.blue,s),r.alpha=at(n.alpha,o.alpha,s),Eo.transform(r))},F5=(e,t)=>n=>t(e(n)),Si=(...e)=>e.reduce(F5),Nu=new Set(["none","hidden"]);function V5(e,t){return Nu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function L5(e,t){return n=>at(e,t,n)}function ku(e){return typeof e=="number"?L5:typeof e=="string"?qc(e)?ga:Pt.test(e)?h0:W5:Array.isArray(e)?m0:typeof e=="object"?Pt.test(e)?h0:_5:ga}function m0(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ku(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function _5(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ku(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function $5(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],c=e.indexes[a][r[a]],l=(n=e.values[c])!==null&&n!==void 0?n:0;o[s]=l,r[a]++}return o}const W5=(e,t)=>{const n=oo.createTransformer(t),o=Ii(e),r=Ii(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Nu.has(e)&&!r.values.length||Nu.has(t)&&!o.values.length?V5(e,t):Si(m0($5(o,r),r.values),n):(ur(!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.`),ga(e,t))};function g0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?at(e,t,n):ku(e)(e,t)}const G5=5;function b0(e,t,n){const o=Math.max(t-G5,0);return Bg(n-e(o),t-o)}const lt={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},Mu=.001;function z5({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,s;ur(e<=Nn(lt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=_n(lt.minDamping,lt.maxDamping,a),e=_n(lt.minDuration,lt.maxDuration,Ln(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,m=Du(u,a),g=Math.exp(-p);return Mu-f/m*g},s=u=>{const p=u*a*e,f=p*n+n,m=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-p),h=Du(Math.pow(u,2),a);return(-r(u)+Mu>0?-1:1)*((f-m)*g)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Mu+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=X5(r,s,c);if(e=Nn(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const H5=12;function X5(e,t,n){let o=n;for(let r=1;r<H5;r++)o=o-e(o)/t(o);return o}function Du(e,t){return e*Math.sqrt(1-t*t)}const U5=["duration","bounce"],Z5=["stiffness","damping","mass"];function v0(e,t){return t.some(n=>e[n]!==void 0)}function Y5(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!v0(e,Z5)&&v0(e,U5))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*_n(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:s}}else{const n=z5(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function y0(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=Y5({...n,velocity:-Ln(n.velocity||0)}),g=f||0,h=u/(2*Math.sqrt(l*d)),y=a-s,b=Ln(Math.sqrt(l/d)),I=Math.abs(y)<5;o||(o=I?lt.restSpeed.granular:lt.restSpeed.default),r||(r=I?lt.restDelta.granular:lt.restDelta.default);let C;if(h<1){const x=Du(b,h);C=w=>{const A=Math.exp(-h*b*w);return a-A*((g+h*b*y)/x*Math.sin(x*w)+y*Math.cos(x*w))}}else if(h===1)C=x=>a-Math.exp(-b*x)*(y+(g+b*y)*x);else{const x=b*Math.sqrt(h*h-1);C=w=>{const A=Math.exp(-h*b*w),O=Math.min(x*w,300);return a-A*((g+h*b*y)*Math.sinh(O)+x*y*Math.cosh(O))/x}}const S={calculatedDuration:m&&p||null,next:x=>{const w=C(x);if(m)c.done=x>=p;else{let A=0;h<1&&(A=x===0?Nn(g):b0(C,x,w));const O=Math.abs(A)<=o,k=Math.abs(a-w)<=r;c.done=O&&k}return c.value=c.done?a:w,c},toString:()=>{const x=Math.min(Eg(S),lu),w=Sg(A=>S.next(x*A).value,x,30);return x+"ms "+w}};return S}function x0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},m=O=>c!==void 0&&O<c||l!==void 0&&O>l,g=O=>c===void 0?l:l===void 0||Math.abs(c-O)<Math.abs(l-O)?c:l;let h=n*t;const y=p+h,b=a===void 0?y:a(y);b!==y&&(h=b-p);const I=O=>-h*Math.exp(-O/o),C=O=>b+I(O),S=O=>{const k=I(O),N=C(O);f.done=Math.abs(k)<=u,f.value=f.done?b:N};let x,w;const A=O=>{m(f.value)&&(x=O,w=y0({keyframes:[f.value,g(f.value)],velocity:b0(C,O,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:O=>{let k=!1;return!w&&x===void 0&&(k=!0,S(O),A(O)),x!==void 0&&O>=x?w.next(O-x):(!k&&S(O),f)}}}const J5=Ti(.42,0,1,1),q5=Ti(0,0,.58,1),C0=Ti(.42,0,.58,1),K5=e=>Array.isArray(e)&&typeof e[0]!="number",T0={linear:Gt,easeIn:J5,easeInOut:C0,easeOut:q5,circIn:yu,circInOut:Hg,circOut:zg,backIn:vu,backInOut:Wg,backOut:$g,anticipate:Gg},E0=e=>{if(uu(e)){eo(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return Ti(t,n,o,r)}else if(typeof e=="string")return eo(T0[e]!==void 0,`Invalid easing type '${e}'`),T0[e];return e};function Q5(e,t,n){const o=[],r=n||g0,s=e.length-1;for(let a=0;a<s;a++){let c=r(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Gt:t;c=Si(l,c)}o.push(c)}return o}function e3(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(eo(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Q5(t,o,r),l=c.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=dr(e[p],e[p+1],d);return c[p](f)};return n?d=>u(_n(e[0],e[s-1],d)):u}function t3(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=dr(0,t,o);e.push(at(n,1,r))}}function n3(e){const t=[0];return t3(t,e.length-1),t}function o3(e,t){return e.map(n=>n*t)}function r3(e,t){return e.map(()=>t||C0).splice(0,e.length-1)}function wi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=K5(o)?o.map(E0):E0(o),s={done:!1,value:t[0]},a=o3(n&&n.length===t.length?n:n3(t),e),c=e3(a,t,{ease:Array.isArray(r)?r:r3(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const i3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qe.update(t,!0),stop:()=>to(t),now:()=>St.isProcessing?St.timestamp:Mn.now()}},s3={decay:x0,inertia:x0,tween:wi,keyframes:wi,spring:y0},a3=e=>e/100;class Bu extends p0{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:l}=this.options;l&&l()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||Ou,c=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(s,c,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,c=cu(n)?n:s3[n]||wi;let l,u;process.env.NODE_ENV!=="production"&&c!==wi&&eo(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==wi&&typeof t[0]!="number"&&(l=Si(a3,g0(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Eg(d));const{calculatedDuration:p}=d,f=p+r,m=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:m}}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:o}=this;if(!o){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 b=this.currentTime-f*(this.speed>=0?1:-1),I=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let C=this.currentTime,S=s;if(m){const O=Math.min(this.currentTime,d)/p;let k=Math.floor(O),N=O%1;!N&&O>=1&&(N=1),N===1&&k--,k=Math.min(k,m+1),!!(k%2)&&(g==="reverse"?(N=1-N,h&&(N-=h/p)):g==="mirror"&&(S=a)),C=_n(0,1,N)*p}const x=I?{done:!1,value:l[0]}:S.next(C);c&&(x.value=c(x.value));let{done:w}=x;!I&&u!==null&&(w=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return A&&r!==void 0&&(x.value=ma(l,this.options,r)),y&&y(x.value),A&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Ln(t.calculatedDuration):0}get time(){return Ln(this.currentTime)}set time(t){t=Nn(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=Ln(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=i3,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??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 l3=new Set(["opacity","clipPath","filter","transform"]);function c3(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:c="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=Ag(c,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const u3=zc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ba=10,d3=2e4;function p3(e){return cu(e.type)||e.type==="spring"||!wg(e.ease)}function f3(e,t){const n=new Bu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<d3;)o=n.sample(s),r.push(o.value),s+=ba;return{times:void 0,keyframes:r,duration:s-ba,ease:"linear"}}const I0={anticipate:Gg,backInOut:Wg,circInOut:Hg};function h3(e){return e in I0}class S0 extends p0{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new u0(s,(a,c)=>this.onKeyframesResolved(a,c),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:c,name:l,startTime:u}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof s=="string"&&fa()&&h3(s)&&(s=I0[s]),p3(this.options)){const{onComplete:p,onUpdate:f,motionValue:m,element:g,...h}=this.options,y=f3(t,h);t=y.keyframes,t.length===1&&(t[1]=t[0]),o=y.duration,r=y.times,s=y.ease,a="keyframes"}const d=c3(c.owner.current,l,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ig(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;c.set(ma(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ln(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ln(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Nn(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:o}=n;o.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 Gt;const{animation:o}=n;Ig(o,t)}return Gt}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:o,duration:r,type:s,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:f,...m}=this.options,g=new Bu({...m,keyframes:o,duration:r,type:s,ease:a,times:c,isGenerator:!0}),h=Nn(this.time);u.setWithVelocity(g.sample(h-ba).value,g.sample(h).value,ba)}const{onStop:l}=this.options;l&&l(),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:o,repeatDelay:r,repeatType:s,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return u3()&&o&&l3.has(o)&&!l&&!u&&!r&&s!=="mirror"&&a!==0&&c!=="inertia"}}const m3={type:"spring",stiffness:500,damping:25,restSpeed:10},g3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),b3={type:"keyframes",duration:.8},v3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},y3=(e,{keyframes:t})=>t.length>2?b3:To.has(e)?e.startsWith("scale")?g3(t[1]):m3:v3;function x3({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const ju=(e,t,n,o={},r,s)=>a=>{const c=au(o,e)||{},l=c.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Nn(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-u,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:r};x3(c)||(d={...d,...y3(e,d)}),d.duration&&(d.duration=Nn(d.duration)),d.repeatDelay&&(d.repeatDelay=Nn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const f=ma(d.keyframes,c);if(f!==void 0)return Qe.update(()=>{d.onUpdate(f),d.onComplete()}),new _P([])}return!s&&S0.supports(d)?new S0(d):new Bu(d)};function C3({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function w0(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),m=l[p];if(m===void 0||d&&C3(d,p))continue;const g={delay:n,...au(a||{},p)};let h=!1;if(window.MotionHandoffAnimation){const b=Fg(e);if(b){const I=window.MotionHandoffAnimation(b,p,Qe);I!==null&&(g.startTime=I,h=!0)}}bu(e,p),f.start(ju(p,f,m,e.shouldReduceMotion&&Dg.has(p)?{type:!1}:g,e,h));const y=f.animation;y&&u.push(y)}return c&&Promise.all(u).then(()=>{Qe.update(()=>{c&&e5(e,c)})}),u}function Fu(e,t,n={}){var o;const r=vi(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(w0(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return T3(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[a,c]:[c,a];return u().then(()=>d())}else return Promise.all([a(),c(n.delay)])}function T3(e,t,n=0,o=0,r=1,s){const a=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(E3).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(Fu(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function E3(e,t){return e.sortNodePosition(t)}function I3(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>Fu(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=Fu(e,t,n);else{const r=typeof t=="function"?vi(e,t,n.custom):t;o=Promise.all(w0(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function A0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const S3=Uc.length;function O0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?O0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<S3;n++){const o=Uc[n],r=e.props[o];(hi(r)||r===!1)&&(t[o]=r)}return t}const w3=[...Xc].reverse(),A3=Xc.length;function O3(e){return t=>Promise.all(t.map(({animation:n,options:o})=>I3(e,n,o)))}function R3(e){let t=O3(e),n=R0(),o=!0;const r=l=>(u,d)=>{var p;const f=vi(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;u={...u,...h,...g}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,d=O0(e.parent)||{},p=[],f=new Set;let m={},g=1/0;for(let y=0;y<A3;y++){const b=w3[y],I=n[b],C=u[b]!==void 0?u[b]:d[b],S=hi(C),x=b===l?I.isActive:null;x===!1&&(g=y);let w=C===d[b]&&C!==u[b]&&S;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),I.protectedKeys={...m},!I.isActive&&x===null||!C&&!I.prevProp||ca(C)||typeof C=="boolean")continue;const A=P3(I.prevProp,C);let O=A||b===l&&I.isActive&&!w&&S||y>g&&S,k=!1;const N=Array.isArray(C)?C:[C];let j=N.reduce(r(b),{});x===!1&&(j={});const{prevResolvedValues:W={}}=I,B={...W,...j},L=$=>{O=!0,f.has($)&&(k=!0,f.delete($)),I.needsAnimating[$]=!0;const M=e.getValue($);M&&(M.liveStyle=!1)};for(const $ in B){const M=j[$],H=W[$];if(m.hasOwnProperty($))continue;let D=!1;iu(M)&&iu(H)?D=!A0(M,H):D=M!==H,D?M!=null?L($):f.add($):M!==void 0&&f.has($)?L($):I.protectedKeys[$]=!0}I.prevProp=C,I.prevResolvedValues=j,I.isActive&&(m={...m,...j}),o&&e.blockInitialAnimation&&(O=!1),O&&(!(w&&A)||k)&&p.push(...N.map($=>({animation:$,options:{type:b}})))}if(f.size){const y={};if(typeof u.initial!="boolean"){const b=vi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(y.transition=b.transition)}f.forEach(b=>{const I=e.getBaseTarget(b),C=e.getValue(b);C&&(C.liveStyle=!0),y[b]=I??null}),p.push({animation:y})}let h=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const p=a(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=R0(),o=!0}}}function P3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!A0(t,e):!1}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class N3 extends ro{constructor(t){super(t),t.animationState||(t.animationState=R3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ca(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 k3=0;class M3 extends ro{constructor(){super(...arguments),this.id=k3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 D3={animation:{Feature:N3},exit:{Feature:M3}};function Ai(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Oi(e){return{point:{x:e.pageX,y:e.pageY}}}const B3=e=>t=>pu(t)&&e(t,Oi(t));function Ri(e,t,n,o){return Ai(e,t,B3(n),o)}const P0=(e,t)=>Math.abs(e-t);function j3(e,t){const n=P0(e.x,t.x),o=P0(e.y,t.y);return Math.sqrt(n**2+o**2)}class N0{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!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 p=Lu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=j3(p.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=p,{timestamp:h}=St;this.history.push({...g,timestamp:h});const{onStart:y,onMove:b}=this.handlers;f||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Vu(f,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Lu(p.type==="pointercancel"?this.lastMoveEventInfo:Vu(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,y),g&&g(p,y)},!pu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const a=Oi(t),c=Vu(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=St;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Lu(c,this.history)),this.removeListeners=Si(Ri(this.contextWindow,"pointermove",this.handlePointerMove),Ri(this.contextWindow,"pointerup",this.handlePointerUp),Ri(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),to(this.updatePoint)}}function Vu(e,t){return t?{point:t(e.point)}:e}function k0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lu({point:e},t){return{point:e,delta:k0(e,M0(t)),offset:k0(e,F3(t)),velocity:V3(t,.1)}}function F3(e){return e[0]}function M0(e){return e[e.length-1]}function V3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=M0(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Nn(t)));)n--;if(!o)return{x:0,y:0};const s=Ln(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const D0=1e-4,L3=1-D0,_3=1+D0,B0=.01,$3=0-B0,W3=0+B0;function Bt(e){return e.max-e.min}function G3(e,t,n){return Math.abs(e-t)<=n}function j0(e,t,n,o=.5){e.origin=o,e.originPoint=at(t.min,t.max,e.origin),e.scale=Bt(n)/Bt(t),e.translate=at(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L3&&e.scale<=_3||isNaN(e.scale))&&(e.scale=1),(e.translate>=$3&&e.translate<=W3||isNaN(e.translate))&&(e.translate=0)}function Pi(e,t,n,o){j0(e.x,t.x,n.x,o?o.originX:void 0),j0(e.y,t.y,n.y,o?o.originY:void 0)}function F0(e,t,n){e.min=n.min+t.min,e.max=e.min+Bt(t)}function z3(e,t,n){F0(e.x,t.x,n.x),F0(e.y,t.y,n.y)}function V0(e,t,n){e.min=t.min-n.min,e.max=e.min+Bt(t)}function Ni(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}function H3(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?at(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?at(n,e,o.max):Math.min(e,n)),e}function L0(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 X3(e,{top:t,left:n,bottom:o,right:r}){return{x:L0(e.x,n,r),y:L0(e.y,t,o)}}function _0(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function U3(e,t){return{x:_0(e.x,t.x),y:_0(e.y,t.y)}}function Z3(e,t){let n=.5;const o=Bt(e),r=Bt(t);return r>o?n=dr(t.min,t.max-o,e.min):o>r&&(n=dr(e.min,e.max-r,t.min)),_n(0,1,n)}function Y3(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 _u=.35;function J3(e=_u){return e===!1?e=0:e===!0&&(e=_u),{x:$0(e,"left","right"),y:$0(e,"top","bottom")}}function $0(e,t,n){return{min:W0(e,t),max:W0(e,n)}}function W0(e,t){return typeof e=="number"?e:e[t]||0}const G0=()=>({translate:0,scale:1,origin:0,originPoint:0}),vr=()=>({x:G0(),y:G0()}),z0=()=>({min:0,max:0}),mt=()=>({x:z0(),y:z0()});function cn(e){return[e("x"),e("y")]}function H0({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function q3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function K3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function $u(e){return e===void 0||e===1}function Wu({scale:e,scaleX:t,scaleY:n}){return!$u(e)||!$u(t)||!$u(n)}function wo(e){return Wu(e)||X0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function X0(e){return U0(e.x)||U0(e.y)}function U0(e){return e&&e!=="0%"}function va(e,t,n){const o=e-n,r=t*o;return n+r}function Z0(e,t,n,o,r){return r!==void 0&&(e=va(e,r,o)),va(e,n,o)+t}function Gu(e,t=0,n=1,o,r){e.min=Z0(e.min,t,n,o,r),e.max=Z0(e.max,t,n,o,r)}function Y0(e,{x:t,y:n}){Gu(e.x,t.translate,t.scale,t.originPoint),Gu(e.y,n.translate,n.scale,n.originPoint)}const J0=.999999999999,q0=1.0000000000001;function Q3(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let c=0;c<r;c++){s=n[c],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&xr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Y0(e,a)),o&&wo(s.latestValues)&&xr(e,s.latestValues))}t.x<q0&&t.x>J0&&(t.x=1),t.y<q0&&t.y>J0&&(t.y=1)}function yr(e,t){e.min=e.min+t,e.max=e.max+t}function K0(e,t,n,o,r=.5){const s=at(e.min,e.max,r);Gu(e,t,n,s,o)}function xr(e,t){K0(e.x,t.x,t.scaleX,t.scale,t.originX),K0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Q0(e,t){return H0(K3(e.getBoundingClientRect(),t))}function e9(e,t,n){const o=Q0(e,n),{scroll:r}=t;return r&&(yr(o.x,r.offset.x),yr(o.y,r.offset.y)),o}const eb=({current:e})=>e?e.ownerDocument.defaultView:null,t9=new WeakMap;class n9{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=mt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oi(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YP(f),!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),cn(y=>{let b=this.getAxisMotionValue(y).get()||0;if(kn.test(b)){const{projection:I}=this.visualElement;if(I&&I.layout){const C=I.layout.layoutBox[y];C&&(b=Bt(C)*(parseFloat(b)/100))}}this.originPoint[y]=b}),g&&Qe.postRender(()=>g(d,p)),bu(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=p;if(m&&this.currentDirection===null){this.currentDirection=o9(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),h&&h(d,p)},c=(d,p)=>this.stop(d,p),l=()=>cn(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new N0(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:eb(this.visualElement)})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Qe.postRender(()=>s(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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ya(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=H3(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&fr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=X3(r.layoutBox,n):this.constraints=!1,this.elastic=J3(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Y3(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fr(t))return!1;const o=t.current;eo(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=e9(o,r.root,this.visualElement.getTransformPagePoint());let a=U3(r.layout.layoutBox,s);if(n){const c=n(q3(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=cn(d=>{if(!ya(d,n,this.currentDirection))return;let p=l&&l[d]||{};a&&(p={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,g={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return bu(this.visualElement,t),o.start(ju(t,o,0,n,this.visualElement,!1))}stopAnimation(){cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cn(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()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){cn(n=>{const{drag:o}=this.getProps();if(!ya(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n];s.set(t[n]-at(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!fr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};cn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const l=c.get();r[a]=Z3({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),cn(a=>{if(!ya(a,t,null))return;const c=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];c.set(at(l,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;t9.set(this.visualElement,this);const t=this.visualElement.current,n=Ri(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();fr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Qe.read(o);const a=Ai(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(cn(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=_u,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function ya(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function o9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class r9 extends ro{constructor(t){super(t),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new n9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const tb=e=>(t,n)=>{e&&Qe.postRender(()=>e(t,n))};class i9 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(t){this.session=new N0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:tb(t),onStart:tb(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Qe.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=Ri(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 xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=nb(e,t.target.x),o=nb(e,t.target.y);return`${n}% ${o}%`}},s9={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=oo.parse(e);if(r.length>5)return o;const s=oo.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=l;const u=at(c,l,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class a9 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;fP(l9),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ob(e){const[t,n]=Um(),o=P.useContext(Lc);return v.jsx(a9,{...e,layoutGroup:o,switchLayoutGroup:P.useContext(ig),isPresent:t,safeToRemove:n})}const l9={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:s9};function c9(e,t,n){const o=Rt(e)?e:Ci(e);return o.start(ju("",o,t,n)),o.animation}function u9(e){return e instanceof SVGElement&&e.tagName!=="svg"}const d9=(e,t)=>e.depth-t.depth;class p9{constructor(){this.children=[],this.isDirty=!1}add(t){hu(this.children,t),this.isDirty=!0}remove(t){mu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d9),this.isDirty=!1,this.children.forEach(t)}}function f9(e,t){const n=Mn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(to(o),e(s-t))};return Qe.read(o,!0),()=>to(o)}const rb=["TopLeft","TopRight","BottomLeft","BottomRight"],h9=rb.length,ib=e=>typeof e=="string"?parseFloat(e):e,sb=e=>typeof e=="number"||Ce.test(e);function m9(e,t,n,o,r,s){r?(e.opacity=at(0,n.opacity!==void 0?n.opacity:1,g9(o)),e.opacityExit=at(t.opacity!==void 0?t.opacity:1,0,b9(o))):s&&(e.opacity=at(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<h9;a++){const c=`border${rb[a]}Radius`;let l=ab(t,c),u=ab(n,c);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||sb(l)===sb(u)?(e[c]=Math.max(at(ib(l),ib(u),o),0),(kn.test(u)||kn.test(l))&&(e[c]+="%")):e[c]=u}(t.rotate||n.rotate)&&(e.rotate=at(t.rotate||0,n.rotate||0,o))}function ab(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const g9=lb(0,.5,zg),b9=lb(.5,.95,Gt);function lb(e,t,n){return o=>o<e?0:o>t?1:n(dr(e,t,o))}function cb(e,t){e.min=t.min,e.max=t.max}function un(e,t){cb(e.x,t.x),cb(e.y,t.y)}function ub(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function db(e,t,n,o,r){return e-=t,e=va(e,1/n,o),r!==void 0&&(e=va(e,1/r,o)),e}function v9(e,t=0,n=1,o=.5,r,s=e,a=e){if(kn.test(t)&&(t=parseFloat(t),t=at(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=at(s.min,s.max,o);e===s&&(c-=t),e.min=db(e.min,t,n,c,r),e.max=db(e.max,t,n,c,r)}function pb(e,t,[n,o,r],s,a){v9(e,t[n],t[o],t[r],t.scale,s,a)}const y9=["x","scaleX","originX"],x9=["y","scaleY","originY"];function fb(e,t,n,o){pb(e.x,t,y9,n?n.x:void 0,o?o.x:void 0),pb(e.y,t,x9,n?n.y:void 0,o?o.y:void 0)}function hb(e){return e.translate===0&&e.scale===1}function mb(e){return hb(e.x)&&hb(e.y)}function gb(e,t){return e.min===t.min&&e.max===t.max}function C9(e,t){return gb(e.x,t.x)&&gb(e.y,t.y)}function bb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vb(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function yb(e){return Bt(e.x)/Bt(e.y)}function xb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class T9{constructor(){this.members=[]}add(t){hu(this.members,t),t.scheduleRender()}remove(t){if(mu(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(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function E9(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:m,skewY:g}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),m&&(o+=`skewX(${m}deg) `),g&&(o+=`skewY(${g}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const zu=["","X","Y","Z"],I9={visibility:"hidden"},Cb=1e3;let S9=0;function Hu(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Tb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qe,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Tb(o)}function Eb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},c=t==null?void 0:t()){this.id=S9++,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(O9),this.nodes.forEach(M9),this.nodes.forEach(D9),this.nodes.forEach(R9)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new p9)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new gu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const l=this.eventHandlers.get(a);l&&l.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=u9(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(u||l)&&(this.isLayoutDirty=!0),e){let p;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=f9(f,250),xa.hasAnimatedSinceResize&&(xa.hasAnimatedSinceResize=!1,this.nodes.forEach(Sb))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||L9,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=d.getProps(),I=!this.targetLayout||!vb(this.targetLayout,g),C=!f&&m;if(this.options.layoutRoot||this.resumeFrom||C||f&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const S={...au(h,"layout"),onPlay:y,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,to(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(B9),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ib);return}this.isUpdating||this.nodes.forEach(N9),this.isUpdating=!1,this.nodes.forEach(k9),this.nodes.forEach(w9),this.nodes.forEach(A9),this.clearAllSnapshots();const c=Mn.now();St.delta=_n(0,1e3/60,c-St.timestamp),St.timestamp=c,St.isProcessing=!0,Hc.update.process(St),Hc.preRender.process(St),Hc.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(P9),this.sharedNodes.forEach(j9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Bt(this.snapshot.measuredBox.x)&&!Bt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!mb(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(c||wo(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let l=this.removeElementScroll(c);return a&&(l=this.removeTransform(l)),_9(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return mt();const l=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some($9))){const{scroll:d}=this.root;d&&(yr(l.x,d.offset.x),yr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=mt();if(un(l,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:f}=d;d!==this.root&&p&&f.layoutScroll&&(p.wasRoot&&un(l,a),yr(l.x,p.offset.x),yr(l.y,p.offset.y))}return l}applyTransform(a,c=!1){const l=mt();un(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&xr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),wo(d.latestValues)&&xr(l,d.latestValues)}return wo(this.latestValues)&&xr(l,this.latestValues),l}removeTransform(a){const c=mt();un(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!wo(u.latestValues))continue;Wu(u.latestValues)&&u.updateSnapshot();const d=mt(),p=u.measurePageBox();un(d,p),fb(c,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return wo(this.latestValues)&&fb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:f}=this.options;if(!(!this.layout||!(p||f))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ni(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),z3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):un(this.target,this.layout.layoutBox),Y0(this.target,this.targetDelta)):un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ni(this.relativeTargetOrigin,this.target,m.target),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Wu(this.parent.latestValues)||X0(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 a;const c=this.getLead(),l=!!this.resumingFrom||this!==c;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===St.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;un(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;Q3(this.layoutCorrected,this.treeScale,this.path,l),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=mt());const{target:g}=c;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ub(this.prevProjectionDelta.x,this.projectionDelta.x),ub(this.prevProjectionDelta.y,this.projectionDelta.y)),Pi(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!xb(this.projectionDelta.x,this.prevProjectionDelta.x)||!xb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vr(),this.projectionDelta=vr(),this.projectionDeltaWithTransform=vr()}setAnimationOrigin(a,c=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},p=vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const f=mt(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,h=m!==g,y=this.getStack(),b=!y||y.members.length<=1,I=!!(h&&!b&&this.options.crossfade===!0&&!this.path.some(V9));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const x=S/1e3;wb(p.x,a.x,x),wb(p.y,a.y,x),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ni(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F9(this.relativeTarget,this.relativeTargetOrigin,f,x),C&&C9(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=mt()),un(C,this.relativeTarget)),h&&(this.animationValues=d,m9(d,u,this.latestValues,x,I,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(to(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{xa.hasAnimatedSinceResize=!0,this.currentAnimation=c9(0,Cb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=a;if(!(!c||!l||!u)){if(this!==a&&this.layout&&u&&Nb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||mt();const p=Bt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+p;const f=Bt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}un(c,l),xr(c,d),Pi(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new T9),this.sharedNodes.get(a).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Hu("z",a,u,this.animationValues);for(let d=0;d<zu.length;d++)Hu(`rotate${zu[d]}`,a,u,this.animationValues),Hu(`skew${zu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var c,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return I9;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=pa(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=pa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!wo(this.latestValues)&&(h.transform=d?d({},""):"none",this.hasProjected=!1),h}const f=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=E9(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:m,y:g}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,p.animationValues?u.opacity=p===this?(l=(c=f.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=p===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const h in mi){if(f[h]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:I}=mi[h],C=u.transform==="none"?f[h]:y(f[h],p);if(b){const S=b.length;for(let x=0;x<S;x++)u[b[x]]=C}else I?this.options.visualElement.renderState.vars[h]=C:u[h]=C}return this.options.layoutId&&(u.pointerEvents=p===this?pa(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ib),this.root.sharedNodes.clear()}}}function w9(e){e.updateLayout()}function A9(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:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?cn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Bt(f);f.min=o[p].min,f.max=f.min+m}):Nb(s,n.layoutBox,o)&&cn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Bt(o[p]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+m)});const c=vr();Pi(c,o,n.layoutBox);const l=vr();a?Pi(l,e.applyTransform(r,!0),n.measuredBox):Pi(l,o,n.layoutBox);const u=!mb(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:m}=p;if(f&&m){const g=mt();Ni(g,n.layoutBox,f.layoutBox);const h=mt();Ni(h,o,m.layoutBox),vb(g,h)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function O9(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 R9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function P9(e){e.clearSnapshot()}function Ib(e){e.clearMeasurements()}function N9(e){e.isLayoutDirty=!1}function k9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function M9(e){e.resolveTargetDelta()}function D9(e){e.calcProjection()}function B9(e){e.resetSkewAndRotation()}function j9(e){e.removeLeadSnapshot()}function wb(e,t,n){e.translate=at(t.translate,0,n),e.scale=at(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ab(e,t,n,o){e.min=at(t.min,n.min,o),e.max=at(t.max,n.max,o)}function F9(e,t,n,o){Ab(e.x,t.x,n.x,o),Ab(e.y,t.y,n.y,o)}function V9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const L9={duration:.45,ease:[.4,0,.1,1]},Ob=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rb=Ob("applewebkit/")&&!Ob("chrome/")?Math.round:Gt;function Pb(e){e.min=Rb(e.min),e.max=Rb(e.max)}function _9(e){Pb(e.x),Pb(e.y)}function Nb(e,t,n){return e==="position"||e==="preserve-aspect"&&!G3(yb(t),yb(n),.2)}function $9(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W9=Eb({attachResizeListener:(e,t)=>Ai(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xu={current:void 0},kb=Eb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xu.current){const e=new W9({});e.mount(window),e.setOptions({layoutScroll:!0}),Xu.current=e}return Xu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G9={pan:{Feature:i9},drag:{Feature:r9,ProjectionNode:kb,MeasureLayout:ob}};function Mb(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Qe.postRender(()=>s(t,Oi(t)))}class z9 extends ro{mount(){const{current:t}=this.node;t&&(this.unmount=zP(t,(n,o)=>(Mb(this.node,o,"Start"),r=>Mb(this.node,r,"End"))))}unmount(){}}class H9 extends ro{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=Si(Ai(this.node.current,"focus",()=>this.onFocus()),Ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Db(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Qe.postRender(()=>s(t,Oi(t)))}class X9 extends ro{mount(){const{current:t}=this.node;t&&(this.unmount=ZP(t,(n,o)=>(Db(this.node,o,"Start"),(r,{success:s})=>Db(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Uu=new WeakMap,Zu=new WeakMap,U9=e=>{const t=Uu.get(e.target);t&&t(e)},Z9=e=>{e.forEach(U9)};function Y9({root:e,...t}){const n=e||document;Zu.has(n)||Zu.set(n,{});const o=Zu.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Z9,{root:e,...t})),o[r]}function J9(e,t,n){const o=Y9(t);return Uu.set(e,n),o.observe(e),()=>{Uu.delete(e),o.unobserve(e)}}const q9={some:0,all:1};class K9 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:q9[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return J9(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Q9(t,n))&&this.startObserver()}unmount(){}}function Q9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const e4={inView:{Feature:K9},tap:{Feature:X9},focus:{Feature:H9},hover:{Feature:z9}},t4={layout:{ProjectionNode:kb,MeasureLayout:ob}},Yu={current:null},Bb={current:!1};function n4(){if(Bb.current=!0,!!Wc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yu.current=e.matches;e.addListener(t),t()}else Yu.current=!1}const o4=[...l0,Pt,oo],r4=e=>o4.find(a0(e)),i4=new WeakMap;function s4(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Rt(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&aa(r.version==="12.4.3",`Attempting to mix Motion versions ${r.version} with 12.4.3 may not work as expected.`);else if(Rt(s))e.addValue(o,Ci(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,Ci(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const jb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a4{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ou,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 m=Mn.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Qe.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=ua(n),this.isVariantNode=ng(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const g=f[m];l[m]!==void 0&&Rt(g)&&g.set(l[m],!1)}}mount(t){this.current=t,i4.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,o)=>this.bindToMotionValue(o,n)),Bb.current||n4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yu.current,process.env.NODE_ENV!=="production"&&aa(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(),to(this.notifyUpdate),to(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 o=To.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),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 pr){const n=pr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}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 o=0;o<jb.length;o++){const r=jb[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=s4(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 o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(i0(r)||Xg(r))?r=parseFloat(r):!r4(r)&&oo.test(n)&&(r=Qg(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=ru(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Rt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fb extends a4{constructor(){super(...arguments),this.KeyframeResolver=u0}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:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function l4(e){return window.getComputedStyle(e)}class c4 extends Fb{constructor(){super(...arguments),this.type="html",this.renderInstance=vg}readValueFromInstance(t,n){if(To.has(n)){const o=Su(n);return o&&o.default||0}else{const o=l4(t),r=(Jc(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Q0(t,n)}build(t,n,o){Qc(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return su(t,n,o)}}class u4 extends Fb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&bg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const o=Su(n);return o&&o.default||0}return n=yg.has(n)?n:Zc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Cg(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Qe.postRender(this.updateDimensions)}build(t,n,o){nu(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){xg(t,n,o,r)}mount(t){this.isSVGTag=ou(t.tagName),super.mount(t)}}const d4=(e,t)=>tu(e)?new u4(t):new c4(t,{allowProjection:e!==P.Fragment}),p4=FP({...D3,...e4,...G9,...t4},d4),vn=eP(p4),Ao=({styles:e,label:t,disabled:n,...o})=>{const r=nt(),s=(t==null?void 0:t.length)*((t==null?void 0:t.length)>=10?6.5:7.5)+38||0,[a,c]=P.useState(!1);return v.jsxs(vn.button,{onMouseEnter:()=>(e==null?void 0:e.isAnimate)&&c(!0),onMouseLeave:()=>(e==null?void 0:e.isAnimate)&&c(!1),initial:{width:e!=null&&e.isAnimate||!t?"3rem":`${s/10}rem`,borderRadius:"0.7rem"},animate:{width:e!=null&&e.isAnimate?`${a?s/10:3}rem`:`${t?s/10:3}rem`},transition:{duration:.2,ease:"easeInOut"},style:{height:"3rem",outline:"none",overflow:"hidden",backgroundColor:(e==null?void 0:e.variant)!=="outlined"?(e==null?void 0:e.color)==="secondary"?r.palette.brandColor.blue:r.palette.brandColor.orange:r.palette.primary.notifyBackground,border:(e==null?void 0:e.variant)==="outlined"?`0.1rem solid ${r.palette.primary.notifyBorderColor}`:"none",display:"flex",cursor:"pointer",alignItems:"center",gap:a||!(e!=null&&e.isAnimate)?"0.5rem":0,color:(e==null?void 0:e.variant)==="outlined"?r.palette.primary.notifyActiveText:"white",justifyContent:a?"flex-start":"center",padding:a||!(e!=null&&e.isAnimate)?"1.2rem":"0.8rem",whiteSpace:"nowrap",...n?{backgroundColor:r.palette.primary.notifyIconColor,opacity:.8,cursor:"auto"}:{}},layout:!0,disabled:!0,...o,children:[(e==null?void 0:e.icon)&&(!(e!=null&&e.iconPosition)||(e==null?void 0:e.iconPosition)==="start")&&v.jsx(de,{component:"img",src:e==null?void 0:e.icon}),t&&v.jsx(vn.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:a||!(e!=null&&e.isAnimate)?1:0,width:a||!(e!=null&&e.isAnimate)?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:a?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap"},children:v.jsx(Ot,{sx:{fontSize:"1.1rem"},children:t})}),(e==null?void 0:e.iconPosition)==="end"&&v.jsx(de,{component:"img",src:e==null?void 0:e.icon})]})};Ao.propTypes={styles:i.object.isRequired,label:i.string};const gt={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.56152%2012.937V3.06201C6.56152%202.12451%206.16152%201.74951%205.16777%201.74951H2.64277C1.64902%201.74951%201.24902%202.12451%201.24902%203.06201V12.937C1.24902%2013.8745%201.64902%2014.2495%202.64277%2014.2495H5.16777C6.16152%2014.2495%206.56152%2013.8745%206.56152%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.75%2012.937V3.06201C13.75%202.12451%2013.35%201.74951%2012.3563%201.74951H9.83125C8.8375%201.74951%208.4375%202.12451%208.4375%203.06201V12.937C8.4375%2013.8745%208.8375%2014.2495%209.83125%2014.2495H12.3563C13.35%2014.2495%2013.75%2013.8745%2013.75%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3332%203.5665C14.3332%204.17317%2014.0465%204.71317%2013.6065%205.05984C13.2865%205.31317%2012.8799%205.4665%2012.4332%205.4665C11.3799%205.4665%2010.5332%204.61984%2010.5332%203.5665C10.5332%203.11984%2010.6865%202.71984%2010.9399%202.39317H10.9465C11.2865%201.95317%2011.8265%201.6665%2012.4332%201.6665C13.4865%201.6665%2014.3332%202.51317%2014.3332%203.5665Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.46602%203.5665C5.46602%204.61984%204.61935%205.4665%203.56602%205.4665C3.11935%205.4665%202.71935%205.31317%202.39268%205.05984C1.95268%204.71317%201.66602%204.17317%201.66602%203.5665C1.66602%202.51317%202.51268%201.6665%203.56602%201.6665C4.17268%201.6665%204.71268%201.95317%205.05935%202.39317C5.31268%202.71984%205.46602%203.11984%205.46602%203.5665Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.3332%2012.4332C14.3332%2013.4865%2013.4865%2014.3332%2012.4332%2014.3332C11.8265%2014.3332%2011.2865%2014.0465%2010.9465%2013.6065H10.9399C10.6865%2013.2865%2010.5332%2012.8799%2010.5332%2012.4332C10.5332%2011.3799%2011.3799%2010.5332%2012.4332%2010.5332C12.8799%2010.5332%2013.2799%2010.6865%2013.6065%2010.9399V10.9465C14.0465%2011.2865%2014.3332%2011.8265%2014.3332%2012.4332Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.46602%2012.4332C5.46602%2012.8799%205.31268%2013.2799%205.05935%2013.6065C4.71268%2014.0532%204.17268%2014.3332%203.56602%2014.3332C2.51268%2014.3332%201.66602%2013.4865%201.66602%2012.4332C1.66602%2011.8265%201.95268%2011.2865%202.39268%2010.9465V10.9399C2.71268%2010.6865%203.11935%2010.5332%203.56602%2010.5332C4.61935%2010.5332%205.46602%2011.3799%205.46602%2012.4332Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.3327%207.99984C14.3327%209.0665%2014.0727%2010.0598%2013.606%2010.9398C13.286%2010.6865%2012.8793%2010.5332%2012.4327%2010.5332C11.3793%2010.5332%2010.5327%2011.3798%2010.5327%2012.4332C10.5327%2012.8798%2010.686%2013.2798%2010.9393%2013.6065C10.0593%2014.0732%209.06602%2014.3332%207.99935%2014.3332C6.93935%2014.3332%205.93935%2014.0732%205.05935%2013.6065C5.31268%2013.2865%205.46602%2012.8798%205.46602%2012.4332C5.46602%2011.3798%204.61935%2010.5332%203.56602%2010.5332C3.11935%2010.5332%202.71935%2010.6865%202.39268%2010.9398C1.92602%2010.0598%201.66602%209.0665%201.66602%207.99984C1.66602%206.93984%201.92602%205.93984%202.39268%205.05984C2.71935%205.31317%203.11935%205.4665%203.56602%205.4665C4.61935%205.4665%205.46602%204.61984%205.46602%203.5665C5.46602%203.11984%205.31268%202.71984%205.05935%202.39317C5.93935%201.9265%206.93935%201.6665%207.99935%201.6665C9.06602%201.6665%2010.0593%201.9265%2010.9393%202.39317C10.686%202.71317%2010.5327%203.11984%2010.5327%203.5665C10.5327%204.61984%2011.3793%205.4665%2012.4327%205.4665C12.8793%205.4665%2013.2793%205.31317%2013.606%205.05984C14.0727%205.93984%2014.3327%206.93984%2014.3327%207.99984Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e"},Vb=({styles:e,label:t,hasFooter:n=!1,showCheckBox:o=!1,options:r,defaultValue:s=!0,isMulti:a=!1,onChange:c})=>{var C,S;const l=nt(),[u,d]=P.useState(!1),p=P.useRef(null),f=P.useRef(null);P.useState("auto");const[m,g]=P.useState(s?(C=r==null?void 0:r[0])==null?void 0:C.label:"Select option"),[h,y]=P.useState(r||[]);((S=h==null?void 0:h.filter(x=>!(x!=null&&x.isMandatory)))==null?void 0:S.length)>7,P.useRef(null),P.useRef(null),P.useCallback(x=>{let w=[...h];w=w==null?void 0:w.map(A=>(A==null?void 0:A.key)===x?{...A,hidden:!A.hidden}:A),y(w),d(!0)},[h]),P.useCallback(()=>{},[h]);const b=()=>{},I=()=>{};return P.useEffect(()=>{const x=w=>{f.current&&!f.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]),v.jsxs(de,{ref:f,sx:{position:"relative",width:"100%",flexShrink:0},children:[v.jsx(de,{sx:{cursor:"pointer",height:"3rem",width:"100%",position:"relative",zIndex:1}}),v.jsxs(vn.div,{style:{position:"relative",maxHeight:"3rem",position:"absolute",top:0,left:0,width:"100%",zIndex:1e3,border:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,overflow:"hidden"},animate:{maxHeight:u?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[v.jsxs(de,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>d(!u),children:[v.jsx(de,{component:"img",className:"select-icon",src:e==null?void 0:e.icon,sx:{cursor:"pointer"}}),v.jsx(Ot,{ref:p,sx:{color:l.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem",whiteSpace:"nowrap"},children:t||m}),v.jsx(de,{component:"img",className:"child",src:u?gt.ArrowSelectDown:gt.ArrowSelectUp,sx:{cursor:"pointer"}})]}),u&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:l.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}}),v.jsx(Gc,{children:u&&v.jsx(vn.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,opacity:1,visibility:"visible",maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${l.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:r==null?void 0:r.map((x,w)=>v.jsxs("li",{style:{padding:o?"0.4rem 0":"0.2rem 0.4rem",cursor:"pointer",display:"flex",alignItems:"center",color:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,whiteSpace:"nowrap"},onClick:()=>{d(!1),c(x)},children:[o&&v.jsx(Xs,{size:"medium",sx:{color:l.palette.primary.notifyIconColor,"&.Mui-checked":{color:l.palette.brandColor.orange},p:"0.2rem 0.5rem"},checked:!(x!=null&&x.isHidden)}),v.jsx(Ot,{sx:{fontSize:"1.1rem"},children:x==null?void 0:x.label})]},w))})}),n&&u&&v.jsxs(vn.div,{style:{display:"flex",flexDirection:"row",padding:"0.5rem 1rem",justifyContent:"space-between",borderTop:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,position:"sticky",bottom:0,opacity:1,visibility:"visible"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:[v.jsx(vn.button,{onClick:b,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:l.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Apply"}),v.jsx(vn.button,{onClick:I,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:l.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Cancel"})]})]})]})},Me={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API"},dn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},f4={light:xs({palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:gt.CrossLight}}),dark:xs({palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:gt.Cross}})},Lb={THEME:"THEME"};function Ca({children:e}){var r,s;const t=((s=(r=JSON.parse(localStorage.getItem("settings")))==null?void 0:r.platform)==null?void 0:s.theme)||"light",[n,o]=P.useState(t);return P.useEffect(()=>{const a=c=>{o(c==null?void 0:c.detail)};return window.addEventListener(Lb.THEME,a),()=>{window.removeEventListener(Lb.THEME,a)}},[]),v.jsx(th,{theme:f4[n],children:e})}const Ta=P.createContext(null),Mi=P.createContext(null);function _b({children:e}){const[t,n]=P.useReducer(h4,m4);return v.jsx(Ta.Provider,{value:t,children:v.jsx(Mi.Provider,{value:n,children:v.jsx(Ca,{children:e})})})}function h4(e,t){switch(t.type){case Me.SET_GRID_DATA:return{...e,...t.payload};case Me.HAS_SETTING_CHANGE:return{...e,...t.payload};case Me.TRIGGER_API:return{...e,...t.payload};default:throw new Error(`${dn.UNHANDLED}: ${t}`)}}const m4={visibleGridColumns:[],hasChange:!1,triggerApi:!1};_b.propTypes={children:i.node.isRequired};function $b(e,t){return function(){return e.apply(t,arguments)}}const{toString:g4}=Object.prototype,{getPrototypeOf:Ju}=Object,Ea=(e=>t=>{const n=g4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yn=e=>(e=e.toLowerCase(),t=>Ea(t)===e),Ia=e=>t=>typeof t===e,{isArray:Cr}=Array,Di=Ia("undefined");function b4(e){return e!==null&&!Di(e)&&e.constructor!==null&&!Di(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wb=yn("ArrayBuffer");function v4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wb(e.buffer),t}const y4=Ia("string"),pn=Ia("function"),Gb=Ia("number"),Sa=e=>e!==null&&typeof e=="object",x4=e=>e===!0||e===!1,wa=e=>{if(Ea(e)!=="object")return!1;const t=Ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C4=yn("Date"),T4=yn("File"),E4=yn("Blob"),I4=yn("FileList"),S4=e=>Sa(e)&&pn(e.pipe),w4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pn(e.append)&&((t=Ea(e))==="formdata"||t==="object"&&pn(e.toString)&&e.toString()==="[object FormData]"))},A4=yn("URLSearchParams"),[O4,R4,P4,N4]=["ReadableStream","Request","Response","Headers"].map(yn),k4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Cr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function zb(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Hb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xb=e=>!Di(e)&&e!==Hb;function qu(){const{caseless:e}=Xb(this)&&this||{},t={},n=(o,r)=>{const s=e&&zb(t,r)||r;wa(t[s])&&wa(o)?t[s]=qu(t[s],o):wa(o)?t[s]=qu({},o):Cr(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Bi(arguments[o],n);return t}const M4=(e,t,n,{allOwnKeys:o}={})=>(Bi(t,(r,s)=>{n&&pn(r)?e[s]=$b(r,n):e[s]=r},{allOwnKeys:o}),e),D4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),B4=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j4=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Ju(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},F4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},V4=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!Gb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},L4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ju(Uint8Array)),_4=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},$4=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},W4=yn("HTMLFormElement"),G4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Ub=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z4=yn("RegExp"),Zb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Bi(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},H4=e=>{Zb(e,(t,n)=>{if(pn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(pn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X4=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return Cr(e)?o(e):o(String(e).split(t)),n},U4=()=>{},Z4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ku="abcdefghijklmnopqrstuvwxyz",Yb="0123456789",Jb={DIGIT:Yb,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Yb},Y4=(e=16,t=Jb.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function J4(e){return!!(e&&pn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q4=e=>{const t=new Array(10),n=(o,r)=>{if(Sa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=Cr(o)?[]:{};return Bi(o,(a,c)=>{const l=n(a,r+1);!Di(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},K4=yn("AsyncFunction"),G={isArray:Cr,isArrayBuffer:Wb,isBuffer:b4,isFormData:w4,isArrayBufferView:v4,isString:y4,isNumber:Gb,isBoolean:x4,isObject:Sa,isPlainObject:wa,isReadableStream:O4,isRequest:R4,isResponse:P4,isHeaders:N4,isUndefined:Di,isDate:C4,isFile:T4,isBlob:E4,isRegExp:z4,isFunction:pn,isStream:S4,isURLSearchParams:A4,isTypedArray:L4,isFileList:I4,forEach:Bi,merge:qu,extend:M4,trim:k4,stripBOM:D4,inherits:B4,toFlatObject:j4,kindOf:Ea,kindOfTest:yn,endsWith:F4,toArray:V4,forEachEntry:_4,matchAll:$4,isHTMLForm:W4,hasOwnProperty:Ub,hasOwnProp:Ub,reduceDescriptors:Zb,freezeMethods:H4,toObjectSet:X4,toCamelCase:G4,noop:U4,toFiniteNumber:Z4,findKey:zb,global:Hb,isContextDefined:Xb,ALPHABET:Jb,generateString:Y4,isSpecCompliantForm:J4,toJSONObject:q4,isAsyncFn:K4,isThenable:e=>e&&(Sa(e)||pn(e))&&pn(e.then)&&pn(e.catch)};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}G.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qb=we.prototype,Kb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kb[e]={value:e}}),Object.defineProperties(we,Kb),Object.defineProperty(qb,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(qb);return G.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Q4=null;function Qu(e){return G.isPlainObject(e)||G.isArray(e)}function Qb(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ev(e,t,n){return e?e.concat(t).map(function(r,s){return r=Qb(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function eN(e){return G.isArray(e)&&!e.some(Qu)}const tN=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Aa(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!G.isUndefined(y[h])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(G.isDate(g))return g.toISOString();if(!l&&G.isBlob(g))throw new we("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(g)||G.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,y){let b=g;if(g&&!y&&typeof g=="object"){if(G.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(G.isArray(g)&&eN(g)||(G.isFileList(g)||G.endsWith(h,"[]"))&&(b=G.toArray(g)))return h=Qb(h),b.forEach(function(C,S){!(G.isUndefined(C)||C===null)&&t.append(a===!0?ev([h],S,s):a===null?h:h+"[]",u(C))}),!1}return Qu(g)?!0:(t.append(ev(y,h,s),u(g)),!1)}const p=[],f=Object.assign(tN,{defaultVisitor:d,convertValue:u,isVisitable:Qu});function m(g,h){if(!G.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(g),G.forEach(g,function(b,I){(!(G.isUndefined(b)||b===null)&&r.call(t,b,G.isString(I)?I.trim():I,h,f))===!0&&m(b,h?h.concat(I):[I])}),p.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return m(e),t}function tv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ed(e,t){this._pairs=[],e&&Aa(e,this,t)}const nv=ed.prototype;nv.append=function(t,n){this._pairs.push([t,n])},nv.toString=function(t){const n=t?function(o){return t.call(this,o,tv)}:tv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function nN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ov(e,t,n){if(!t)return e;const o=n&&n.encode||nN,r=n&&n.serialize;let s;if(r?s=r(t,n):s=G.isURLSearchParams(t)?t.toString():new ed(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rv{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(o){o!==null&&t(o)})}}const iv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oN={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ed,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",rN=(e=>td&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),iN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sN=td&&window.location.href||"http://localhost",xn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:rN,hasStandardBrowserWebWorkerEnv:iN,origin:sN},Symbol.toStringTag,{value:"Module"})),...oN};function aN(e,t){return Aa(e,new xn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return xn.isNode&&G.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lN(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cN(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function sv(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&G.isArray(r)?r.length:a,l?(G.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!G.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&G.isArray(r[a])&&(r[a]=cN(r[a])),!c)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(o,r)=>{t(lN(o),r,n,0)}),n}return null}function uN(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ji={transitional:iv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return r?JSON.stringify(sv(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return aN(t,this.formSerializer).toString();if((c=G.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Aa(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),uN(t)):t}],transformResponse:[function(t){const n=this.transitional||ji.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?we.from(c,we.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ji.headers[e]={}});const dN=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pN=e=>{const t={};let n,o,r;return e&&e.split(`
|
|
248
|
+
`),()=>{document.head.removeChild(m)}},[t]),v.jsx(GR,{isPresent:t,childRef:r,sizeRef:s,children:E.cloneElement(e,{ref:r})})}const HR=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a,anchorX:c})=>{const l=_c(XR),u=P.useId(),d=P.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;o&&o()},[l,o]),p=P.useMemo(()=>({id:u,initial:t,isPresent:n,custom:r,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),d]:[n,d]);return P.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),E.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),a==="popLayout"&&(e=v.jsx(zR,{isPresent:n,anchorX:c,children:e})),v.jsx(oa.Provider,{value:p,children:e})};function XR(){return new Map}function Um(e=!0){const t=P.useContext(oa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=P.useId();P.useEffect(()=>{e&&r(s)},[e]);const a=P.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const ra=e=>e.key||"";function Zm(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Wc=typeof window<"u",Ym=Wc?P.useLayoutEffect:P.useEffect,Gc=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:s="sync",propagate:a=!1,anchorX:c="left"})=>{const[l,u]=Um(a),d=P.useMemo(()=>Zm(e),[e]),p=a&&!l?[]:d.map(ra),f=P.useRef(!0),m=P.useRef(d),g=_c(()=>new Map),[h,y]=P.useState(d),[b,I]=P.useState(d);Ym(()=>{f.current=!1,m.current=d;for(let x=0;x<b.length;x++){const w=ra(b[x]);p.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[b,p.length,p.join("-")]);const C=[];if(d!==h){let x=[...d];for(let w=0;w<b.length;w++){const A=b[w],O=ra(A);p.includes(O)||(x.splice(w,0,A),C.push(A))}return s==="wait"&&C.length&&(x=C),I(Zm(x)),y(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&b.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:S}=P.useContext(Lc);return v.jsx(v.Fragment,{children:b.map(x=>{const w=ra(x),A=a&&!l?!1:d===b||p.includes(w),O=()=>{if(g.has(w))g.set(w,!0);else return;let k=!0;g.forEach(N=>{N||(k=!1)}),k&&(S==null||S(),I(m.current),a&&(u==null||u()),o&&o())};return v.jsx(HR,{isPresent:A,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:s,onExitComplete:A?void 0:O,anchorX:c,children:x},w)})})},Gt=e=>e;let ur=Gt,eo=Gt;process.env.NODE_ENV!=="production"&&(ur=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},eo=(e,t)=>{if(!e)throw new Error(t)});function zc(e){let t;return()=>(t===void 0&&(t=e()),t)}const dr=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},Nn=e=>e*1e3,Ln=e=>e/1e3,UR={skipAnimations:!1,useManualTiming:!1},ia=["read","resolveKeyframes","update","preRender","render","postRender"],Jm={value:null,addProjectionMetrics:null};function ZR(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},l=0;function u(p){a.has(p)&&(d.schedule(p),e()),l++,p(c)}const d={schedule:(p,f=!1,m=!1)=>{const h=m&&r?n:o;return f&&a.add(p),h.has(p)||h.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(c=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&Jm.value&&Jm.value.frameloop[t].push(l),l=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const YR=40;function qm(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ia.reduce((b,I)=>(b[I]=ZR(s,t?I:void 0),b),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=a,m=()=>{const b=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(b-r.timestamp,YR),1),r.timestamp=b,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(m))},g=()=>{n=!0,o=!0,r.isProcessing||e(m)};return{schedule:ia.reduce((b,I)=>{const C=a[I];return b[I]=(S,x=!1,w=!1)=>(n||g(),C.schedule(S,x,w)),b},{}),cancel:b=>{for(let I=0;I<ia.length;I++)a[ia[I]].cancel(b)},state:r,steps:a}}const{schedule:Qe,cancel:to,state:St,steps:Hc}=qm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),Km=P.createContext({strict:!1}),Qm={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"]},pr={};for(const e in Qm)pr[e]={isEnabled:t=>Qm[e].some(n=>!!t[n])};function JR(e){for(const t in e)pr[t]={...pr[t],...e[t]}}const qR=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 sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qR.has(e)}let eg=e=>!sa(e);function KR(e){e&&(eg=t=>t.startsWith("on")?!sa(t):e(t))}try{KR(require("@emotion/is-prop-valid").default)}catch{}function QR(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(eg(r)||n===!0&&sa(r)||!t&&!sa(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const tg=new Set;function aa(e,t,n){e||tg.has(t)||(console.warn(t),tg.add(t))}function eP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&aa(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const la=P.createContext({});function ca(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hi(e){return typeof e=="string"||Array.isArray(e)}const Xc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uc=["initial",...Xc];function ua(e){return ca(e.animate)||Uc.some(t=>hi(e[t]))}function ng(e){return!!(ua(e)||e.variants)}function tP(e,t){if(ua(e)){const{initial:n,animate:o}=e;return{initial:n===!1||hi(n)?n:void 0,animate:hi(o)?o:void 0}}return e.inherit!==!1?t:{}}function nP(e){const{initial:t,animate:n}=tP(e,P.useContext(la));return P.useMemo(()=>({initial:t,animate:n}),[og(t),og(n)])}function og(e){return Array.isArray(e)?e.join(" "):e}const oP=Symbol.for("motionComponentSymbol");function fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rP(e,t,n){return P.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):fr(n)&&(n.current=o))},[t])}const Zc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rg="data-"+Zc("framerAppearId"),{schedule:Yc,cancel:jB}=qm(queueMicrotask,!1),ig=P.createContext({});function iP(e,t,n,o,r){var s,a;const{visualElement:c}=P.useContext(la),l=P.useContext(Km),u=P.useContext(oa),d=P.useContext($c).reducedMotion,p=P.useRef(null);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,m=P.useContext(ig);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&sP(p.current,n,r,m);const g=P.useRef(!1);P.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const h=n[rg],y=P.useRef(!!h&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,h))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,h)));return Ym(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Yc.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,h)}),y.current=!1))}),f}function sP(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sg(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||c&&fr(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function sg(e){if(e)return e.options.allowProjection!==!1?e.projection:sg(e.parent)}function aP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&JR(e);function c(u,d){let p;const f={...P.useContext($c),...u,layoutId:lP(u)},{isStatic:m}=f,g=nP(u),h=o(u,m);if(!m&&Wc){cP(f,e);const y=uP(f);p=y.MeasureLayout,g.visualElement=iP(r,h,f,t,y.ProjectionNode)}return v.jsxs(la.Provider,{value:g,children:[p&&g.visualElement?v.jsx(p,{visualElement:g.visualElement,...f}):null,n(r,u,rP(h,g.visualElement,d),h,m,g.visualElement)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const l=P.forwardRef(c);return l[oP]=r,l}function lP({layoutId:e}){const t=P.useContext(Lc).id;return t&&e!==void 0?t+"-"+e:e}function cP(e,t){const n=P.useContext(Km).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ur(!1,o):eo(!1,o)}}function uP(e){const{drag:t,layout:n}=pr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const ag=e=>t=>typeof t=="string"&&t.startsWith(e),Jc=ag("--"),dP=ag("var(--"),qc=e=>dP(e)?pP.test(e.split("/*")[0].trim()):!1,pP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mi={};function fP(e){for(const t in e)mi[t]=e[t],Jc(t)&&(mi[t].isCSSVariable=!0)}const hr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(hr);function lg(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mi[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),cg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,n)=>n>t?t:n<e?e:n,mr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gi={...mr,transform:e=>_n(0,1,e)},da={...mr,default:1},bi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),no=bi("deg"),kn=bi("%"),Ce=bi("px"),hP=bi("vh"),mP=bi("vw"),ug={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},gP={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce},bP={rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:da,scaleX:da,scaleY:da,scaleZ:da,skew:no,skewX:no,skewY:no,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:gi,originX:ug,originY:ug,originZ:Ce},dg={...mr,transform:Math.round},Kc={...gP,...bP,zIndex:dg,size:Ce,fillOpacity:gi,strokeOpacity:gi,numOctaves:dg},vP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yP=hr.length;function xP(e,t,n){let o="",r=!0;for(let s=0;s<yP;s++){const a=hr[s],c=e[a];if(c===void 0)continue;let l=!0;if(typeof c=="number"?l=c===(a.startsWith("scale")?1:0):l=parseFloat(c)===0,!l||n){const u=cg(c,Kc[a]);if(!l){r=!1;const d=vP[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Qc(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,c=!1;for(const l in t){const u=t[l];if(To.has(l)){a=!0;continue}else if(Jc(l)){r[l]=u;continue}else{const d=cg(u,Kc[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(a||n?o.transform=xP(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const eu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pg(e,t,n){for(const o in t)!Rt(t[o])&&!lg(o,n)&&(e[o]=t[o])}function CP({transformTemplate:e},t){return P.useMemo(()=>{const n=eu();return Qc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TP(e,t){const n=e.style||{},o={};return pg(o,n,e),Object.assign(o,CP(e,t)),o}function EP(e,t){const n={},o=TP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const IP=["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 tu(e){return typeof e!="string"||e.includes("-")?!1:!!(IP.indexOf(e)>-1||/[A-Z]/u.test(e))}const SP={offset:"stroke-dashoffset",array:"stroke-dasharray"},wP={offset:"strokeDashoffset",array:"strokeDasharray"};function AP(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?SP:wP;e[s.offset]=Ce.transform(-o);const a=Ce.transform(t),c=Ce.transform(n);e[s.array]=`${a} ${c}`}function fg(e,t,n){return typeof e=="string"?e:Ce.transform(t+n*e)}function OP(e,t,n){const o=fg(t,e.x,e.width),r=fg(n,e.y,e.height);return`${o} ${r}`}function nu(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(Qc(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(r!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=OP(g,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),a!==void 0&&AP(f,a,c,l,!1)}const hg=()=>({...eu(),attrs:{}}),ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function RP(e,t,n,o){const r=P.useMemo(()=>{const s=hg();return nu(s,t,ou(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};pg(s,e.style,e),r.style={...s,...r.style}}return r}function PP(e=!1){return(n,o,r,{latestValues:s},a)=>{const l=(tu(n)?RP:EP)(o,s,a,n),u=QR(o,typeof n=="string",e),d=n!==P.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=P.useMemo(()=>Rt(p)?p.get():p,[p]);return P.createElement(n,{...d,children:f})}}function mg(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ru(e,t,n,o){if(typeof t=="function"){const[r,s]=mg(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=mg(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const iu=e=>Array.isArray(e),NP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kP=e=>iu(e)?e[e.length-1]||0:e;function pa(e){const t=Rt(e)?e.get():e;return NP(t)?t.toValue():t}function MP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:DP(o,r,s,e),renderState:t()};return n&&(a.onMount=c=>n({props:o,current:c,...a}),a.onUpdate=c=>n(c)),a}const gg=e=>(t,n)=>{const o=P.useContext(la),r=P.useContext(oa),s=()=>MP(e,t,o,r);return n?s():_c(s)};function DP(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=pa(s[f]);let{initial:a,animate:c}=e;const l=ua(e),u=ng(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?c:a;if(p&&typeof p!="boolean"&&!ca(p)){const f=Array.isArray(p)?p:[p];for(let m=0;m<f.length;m++){const g=ru(e,f[m]);if(g){const{transitionEnd:h,transition:y,...b}=g;for(const I in b){let C=b[I];if(Array.isArray(C)){const S=d?C.length-1:0;C=C[S]}C!==null&&(r[I]=C)}for(const I in h)r[I]=h[I]}}}return r}function su(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||lg(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const BP={useVisualState:gg({scrapeMotionValuesFromProps:su,createRenderState:eu})};function bg(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 vg(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const yg=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 xg(e,t,n,o){vg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(yg.has(r)?r:Zc(r),t.attrs[r])}function Cg(e,t,n){const o=su(e,t,n);for(const r in e)if(Rt(e[r])||Rt(t[r])){const s=hr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Tg=["x","y","width","height","cx","cy","r"],jP={useVisualState:gg({scrapeMotionValuesFromProps:Cg,createRenderState:hg,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const c in r)if(To.has(c)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let c=0;c<Tg.length;c++){const l=Tg[c];e[l]!==t[l]&&(a=!0)}a&&Qe.read(()=>{bg(n,o),Qe.render(()=>{nu(o,r,ou(n.tagName),e.transformTemplate),xg(n,o)})})}})};function FP(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...tu(o)?jP:BP,preloadedFeatures:e,useRender:PP(r),createVisualElement:t,Component:o};return aP(a)}}function vi(e,t,n){const o=e.getProps();return ru(o,t,n!==void 0?n:o.custom,e)}const VP=zc(()=>window.ScrollTimeline!==void 0);class LP{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 o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(VP()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].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 _P extends LP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function au(e,t){return e?e[t]||e.default||e:void 0}const lu=2e4;function Eg(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<lu;)t+=n,o=e.next(t);return t>=lu?1/0:t}function cu(e){return typeof e=="function"}function Ig(e,t){e.timeline=t,e.onfinish=null}const uu=e=>Array.isArray(e)&&typeof e[0]=="number",$P={linearEasing:void 0};function WP(e,t){const n=zc(e);return()=>{var o;return(o=$P[t])!==null&&o!==void 0?o:n()}}const fa=WP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(dr(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function wg(e){return!!(typeof e=="function"&&fa()||!e||typeof e=="string"&&(e in du||fa())||uu(e)||Array.isArray(e)&&e.every(wg))}const yi=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,du={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yi([0,.65,.55,1]),circOut:yi([.55,0,1,.45]),backIn:yi([.31,.01,.66,-.59]),backOut:yi([.33,1.53,.69,.99])};function Ag(e,t){if(e)return typeof e=="function"&&fa()?Sg(e,t):uu(e)?yi(e):Array.isArray(e)?e.map(n=>Ag(n,t)||du.easeOut):du[e]}const bn={x:!1,y:!1};function Og(){return bn.x||bn.y}function GP(e,t,n){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Rg(e,t){const n=GP(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Pg(e){return!(e.pointerType==="touch"||Og())}function zP(e,t,n={}){const[o,r,s]=Rg(e,n),a=c=>{if(!Pg(c))return;const{target:l}=c,u=t(l,c);if(typeof u!="function"||!l)return;const d=p=>{Pg(p)&&(u(p),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return o.forEach(c=>{c.addEventListener("pointerenter",a,r)}),s}const Ng=(e,t)=>t?e===t?!0:Ng(e,t.parentElement):!1,pu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XP(e){return HP.has(e.tagName)||e.tabIndex!==-1}const xi=new WeakSet;function kg(e){return t=>{t.key==="Enter"&&e(t)}}function fu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const UP=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=kg(()=>{if(xi.has(n))return;fu(n,"down");const r=kg(()=>{fu(n,"up")}),s=()=>fu(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Mg(e){return pu(e)&&!Og()}function ZP(e,t,n={}){const[o,r,s]=Rg(e,n),a=c=>{const l=c.currentTarget;if(!Mg(c)||xi.has(l))return;xi.add(l);const u=t(l,c),d=(m,g)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),!(!Mg(m)||!xi.has(l))&&(xi.delete(l),typeof u=="function"&&u(m,{success:g}))},p=m=>{d(m,n.useGlobalTarget||Ng(l,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",f,r)};return o.forEach(c=>{!XP(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,r),c.addEventListener("focus",u=>UP(u,r),r)}),s}function YP(e){return e==="x"||e==="y"?bn[e]?null:(bn[e]=!0,()=>{bn[e]=!1}):bn.x||bn.y?null:(bn.x=bn.y=!0,()=>{bn.x=bn.y=!1})}const Dg=new Set(["width","height","top","left","right","bottom",...hr]);let ha;function JP(){ha=void 0}const Mn={now:()=>(ha===void 0&&Mn.set(St.isProcessing||UR.useManualTiming?St.timestamp:performance.now()),ha),set:e=>{ha=e,queueMicrotask(JP)}};function hu(e,t){e.indexOf(t)===-1&&e.push(t)}function mu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gu{constructor(){this.subscriptions=[]}add(t){return hu(this.subscriptions,t),()=>mu(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Bg(e,t){return t?e*(1e3/t):0}const jg=30,qP=e=>!isNaN(parseFloat(e));class KP{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=Mn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&aa(!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 gu);const o=this.events[t].add(n);return t==="change"?()=>{o(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jg);return Bg(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 Ci(e,t){return new KP(e,t)}function QP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function e5(e,t){const n=vi(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const c=kP(s[a]);QP(e,a,c)}}function t5(e){return!!(Rt(e)&&e.add)}function bu(e,t){const n=e.getValue("willChange");if(t5(n))return n.add(t)}function Fg(e){return e.props[rg]}const Vg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,n5=1e-7,o5=12;function r5(e,t,n,o,r){let s,a,c=0;do a=t+(n-t)/2,s=Vg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>n5&&++c<o5);return a}function Ti(e,t,n,o){if(e===t&&n===o)return Gt;const r=s=>r5(s,0,1,e,n);return s=>s===0||s===1?s:Vg(r(s),t,o)}const Lg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_g=e=>t=>1-e(1-t),$g=Ti(.33,1.53,.69,.99),vu=_g($g),Wg=Lg(vu),Gg=e=>(e*=2)<1?.5*vu(e):.5*(2-Math.pow(2,-10*(e-1))),yu=e=>1-Math.sin(Math.acos(e)),zg=_g(yu),Hg=Lg(yu),Xg=e=>/^0[^.\s]+$/u.test(e);function i5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xg(e):!0}const Ei=e=>Math.round(e*1e5)/1e5,xu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function s5(e){return e==null}const a5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cu=(e,t)=>n=>!!(typeof n=="string"&&a5.test(n)&&n.startsWith(e)||t&&!s5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ug=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,c]=o.match(xu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},l5=e=>_n(0,255,e),Tu={...mr,transform:e=>Math.round(l5(e))},Eo={test:Cu("rgb","red"),parse:Ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Tu.transform(e)+", "+Tu.transform(t)+", "+Tu.transform(n)+", "+Ei(gi.transform(o))+")"};function c5(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Eu={test:Cu("#"),parse:c5,transform:Eo.transform},gr={test:Cu("hsl","hue"),parse:Ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+kn.transform(Ei(t))+", "+kn.transform(Ei(n))+", "+Ei(gi.transform(o))+")"},Pt={test:e=>Eo.test(e)||Eu.test(e)||gr.test(e),parse:e=>Eo.test(e)?Eo.parse(e):gr.test(e)?gr.parse(e):Eu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eo.transform(e):gr.transform(e)},u5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function d5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(u5))===null||n===void 0?void 0:n.length)||0)>0}const Zg="number",Yg="color",p5="var",f5="var(",Jg="${}",h5=/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 Ii(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(h5,l=>(Pt.test(l)?(o.color.push(s),r.push(Yg),n.push(Pt.parse(l))):l.startsWith(f5)?(o.var.push(s),r.push(p5),n.push(l)):(o.number.push(s),r.push(Zg),n.push(parseFloat(l))),++s,Jg)).split(Jg);return{values:n,split:c,indexes:o,types:r}}function qg(e){return Ii(e).values}function Kg(e){const{split:t,types:n}=Ii(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const c=n[a];c===Zg?s+=Ei(r[a]):c===Yg?s+=Pt.transform(r[a]):s+=r[a]}return s}}const m5=e=>typeof e=="number"?0:e;function g5(e){const t=qg(e);return Kg(e)(t.map(m5))}const oo={test:d5,parse:qg,createTransformer:Kg,getAnimatableNone:g5},b5=new Set(["brightness","contrast","saturate","opacity"]);function v5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(xu)||[];if(!o)return e;const r=n.replace(o,"");let s=b5.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const y5=/\b([a-z-]*)\(.*?\)/gu,Iu={...oo,getAnimatableNone:e=>{const t=e.match(y5);return t?t.map(v5).join(" "):e}},x5={...Kc,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:Iu,WebkitFilter:Iu},Su=e=>x5[e];function Qg(e,t){let n=Su(e);return n!==Iu&&(n=oo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const C5=new Set(["auto","none","0"]);function T5(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!C5.has(s)&&Ii(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Qg(n,r)}const e0=e=>e===mr||e===Ce,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return t0(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?t0(s[1],e):0}},E5=new Set(["x","y","z"]),I5=hr.filter(e=>!E5.has(e));function S5(e){const t=[];return I5.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const br={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:n0(4,13),y:n0(5,14)};br.translateX=br.x,br.translateY=br.y;const Io=new Set;let wu=!1,Au=!1;function o0(){if(Au){const e=Array.from(Io).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=S5(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Au=!1,wu=!1,Io.forEach(e=>e.complete()),Io.clear()}function r0(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Au=!0)})}function w5(){r0(),o0()}class Ou{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),wu||(wu=!0,Qe.read(r0),Qe.resolveKeyframes(o0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const l=o.readValue(n,c);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=c),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),A5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O5(e){const t=A5.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const R5=4;function s0(e,t,n=1){eo(n<=R5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=O5(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return i0(a)?parseFloat(a):a}return qc(r)?s0(r,t,n+1):r}const a0=e=>t=>t.test(e),l0=[mr,Ce,kn,no,mP,hP,{test:e=>e==="auto",parse:e=>e}],c0=e=>l0.find(a0(e));class u0 extends Ou{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),qc(u))){const d=s0(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Dg.has(o)||t.length!==2)return;const[r,s]=t,a=c0(r),c=c0(s);if(a!==c)if(e0(a)&&e0(c))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)i5(t[r])&&o.push(r);o.length&&T5(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=br[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,c=r[a];r[a]=br[o](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(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const d0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(oo.test(e)||e==="0")&&!e.startsWith("url("));function P5(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 N5(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=d0(r,t),c=d0(s,t);return ur(a===c,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!c?!1:P5(e)||(n==="spring"||cu(n))&&o}const k5=e=>e!==null;function ma(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(k5),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const M5=40;class p0{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>M5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&w5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:c,onUpdate:l,isGenerator:u}=this.options;if(!u&&!N5(t,o,r,s))if(a)this.options.duration=0;else{l&&l(ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const at=(e,t,n)=>e+(t-e)*n;function Ru(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 D5({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=Ru(l,c,e+1/3),s=Ru(l,c,e),a=Ru(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function ga(e,t){return n=>n>0?t:e}const Pu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},B5=[Eu,Eo,gr],j5=e=>B5.find(t=>t.test(e));function f0(e){const t=j5(e);if(ur(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===gr&&(n=D5(n)),n}const h0=(e,t)=>{const n=f0(e),o=f0(t);if(!n||!o)return ga(e,t);const r={...n};return s=>(r.red=Pu(n.red,o.red,s),r.green=Pu(n.green,o.green,s),r.blue=Pu(n.blue,o.blue,s),r.alpha=at(n.alpha,o.alpha,s),Eo.transform(r))},F5=(e,t)=>n=>t(e(n)),Si=(...e)=>e.reduce(F5),Nu=new Set(["none","hidden"]);function V5(e,t){return Nu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function L5(e,t){return n=>at(e,t,n)}function ku(e){return typeof e=="number"?L5:typeof e=="string"?qc(e)?ga:Pt.test(e)?h0:W5:Array.isArray(e)?m0:typeof e=="object"?Pt.test(e)?h0:_5:ga}function m0(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ku(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function _5(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ku(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function $5(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],c=e.indexes[a][r[a]],l=(n=e.values[c])!==null&&n!==void 0?n:0;o[s]=l,r[a]++}return o}const W5=(e,t)=>{const n=oo.createTransformer(t),o=Ii(e),r=Ii(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Nu.has(e)&&!r.values.length||Nu.has(t)&&!o.values.length?V5(e,t):Si(m0($5(o,r),r.values),n):(ur(!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.`),ga(e,t))};function g0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?at(e,t,n):ku(e)(e,t)}const G5=5;function b0(e,t,n){const o=Math.max(t-G5,0);return Bg(n-e(o),t-o)}const lt={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},Mu=.001;function z5({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,s;ur(e<=Nn(lt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=_n(lt.minDamping,lt.maxDamping,a),e=_n(lt.minDuration,lt.maxDuration,Ln(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,m=Du(u,a),g=Math.exp(-p);return Mu-f/m*g},s=u=>{const p=u*a*e,f=p*n+n,m=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-p),h=Du(Math.pow(u,2),a);return(-r(u)+Mu>0?-1:1)*((f-m)*g)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Mu+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=X5(r,s,c);if(e=Nn(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const H5=12;function X5(e,t,n){let o=n;for(let r=1;r<H5;r++)o=o-e(o)/t(o);return o}function Du(e,t){return e*Math.sqrt(1-t*t)}const U5=["duration","bounce"],Z5=["stiffness","damping","mass"];function v0(e,t){return t.some(n=>e[n]!==void 0)}function Y5(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!v0(e,Z5)&&v0(e,U5))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*_n(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:s}}else{const n=z5(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function y0(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=Y5({...n,velocity:-Ln(n.velocity||0)}),g=f||0,h=u/(2*Math.sqrt(l*d)),y=a-s,b=Ln(Math.sqrt(l/d)),I=Math.abs(y)<5;o||(o=I?lt.restSpeed.granular:lt.restSpeed.default),r||(r=I?lt.restDelta.granular:lt.restDelta.default);let C;if(h<1){const x=Du(b,h);C=w=>{const A=Math.exp(-h*b*w);return a-A*((g+h*b*y)/x*Math.sin(x*w)+y*Math.cos(x*w))}}else if(h===1)C=x=>a-Math.exp(-b*x)*(y+(g+b*y)*x);else{const x=b*Math.sqrt(h*h-1);C=w=>{const A=Math.exp(-h*b*w),O=Math.min(x*w,300);return a-A*((g+h*b*y)*Math.sinh(O)+x*y*Math.cosh(O))/x}}const S={calculatedDuration:m&&p||null,next:x=>{const w=C(x);if(m)c.done=x>=p;else{let A=0;h<1&&(A=x===0?Nn(g):b0(C,x,w));const O=Math.abs(A)<=o,k=Math.abs(a-w)<=r;c.done=O&&k}return c.value=c.done?a:w,c},toString:()=>{const x=Math.min(Eg(S),lu),w=Sg(A=>S.next(x*A).value,x,30);return x+"ms "+w}};return S}function x0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},m=O=>c!==void 0&&O<c||l!==void 0&&O>l,g=O=>c===void 0?l:l===void 0||Math.abs(c-O)<Math.abs(l-O)?c:l;let h=n*t;const y=p+h,b=a===void 0?y:a(y);b!==y&&(h=b-p);const I=O=>-h*Math.exp(-O/o),C=O=>b+I(O),S=O=>{const k=I(O),N=C(O);f.done=Math.abs(k)<=u,f.value=f.done?b:N};let x,w;const A=O=>{m(f.value)&&(x=O,w=y0({keyframes:[f.value,g(f.value)],velocity:b0(C,O,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:O=>{let k=!1;return!w&&x===void 0&&(k=!0,S(O),A(O)),x!==void 0&&O>=x?w.next(O-x):(!k&&S(O),f)}}}const J5=Ti(.42,0,1,1),q5=Ti(0,0,.58,1),C0=Ti(.42,0,.58,1),K5=e=>Array.isArray(e)&&typeof e[0]!="number",T0={linear:Gt,easeIn:J5,easeInOut:C0,easeOut:q5,circIn:yu,circInOut:Hg,circOut:zg,backIn:vu,backInOut:Wg,backOut:$g,anticipate:Gg},E0=e=>{if(uu(e)){eo(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return Ti(t,n,o,r)}else if(typeof e=="string")return eo(T0[e]!==void 0,`Invalid easing type '${e}'`),T0[e];return e};function Q5(e,t,n){const o=[],r=n||g0,s=e.length-1;for(let a=0;a<s;a++){let c=r(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Gt:t;c=Si(l,c)}o.push(c)}return o}function e3(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(eo(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Q5(t,o,r),l=c.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=dr(e[p],e[p+1],d);return c[p](f)};return n?d=>u(_n(e[0],e[s-1],d)):u}function t3(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=dr(0,t,o);e.push(at(n,1,r))}}function n3(e){const t=[0];return t3(t,e.length-1),t}function o3(e,t){return e.map(n=>n*t)}function r3(e,t){return e.map(()=>t||C0).splice(0,e.length-1)}function wi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=K5(o)?o.map(E0):E0(o),s={done:!1,value:t[0]},a=o3(n&&n.length===t.length?n:n3(t),e),c=e3(a,t,{ease:Array.isArray(r)?r:r3(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const i3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qe.update(t,!0),stop:()=>to(t),now:()=>St.isProcessing?St.timestamp:Mn.now()}},s3={decay:x0,inertia:x0,tween:wi,keyframes:wi,spring:y0},a3=e=>e/100;class Bu extends p0{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:l}=this.options;l&&l()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||Ou,c=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(s,c,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,c=cu(n)?n:s3[n]||wi;let l,u;process.env.NODE_ENV!=="production"&&c!==wi&&eo(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==wi&&typeof t[0]!="number"&&(l=Si(a3,g0(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Eg(d));const{calculatedDuration:p}=d,f=p+r,m=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:m}}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:o}=this;if(!o){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 b=this.currentTime-f*(this.speed>=0?1:-1),I=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let C=this.currentTime,S=s;if(m){const O=Math.min(this.currentTime,d)/p;let k=Math.floor(O),N=O%1;!N&&O>=1&&(N=1),N===1&&k--,k=Math.min(k,m+1),!!(k%2)&&(g==="reverse"?(N=1-N,h&&(N-=h/p)):g==="mirror"&&(S=a)),C=_n(0,1,N)*p}const x=I?{done:!1,value:l[0]}:S.next(C);c&&(x.value=c(x.value));let{done:w}=x;!I&&u!==null&&(w=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return A&&r!==void 0&&(x.value=ma(l,this.options,r)),y&&y(x.value),A&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Ln(t.calculatedDuration):0}get time(){return Ln(this.currentTime)}set time(t){t=Nn(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=Ln(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=i3,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??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 l3=new Set(["opacity","clipPath","filter","transform"]);function c3(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:c="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=Ag(c,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const u3=zc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ba=10,d3=2e4;function p3(e){return cu(e.type)||e.type==="spring"||!wg(e.ease)}function f3(e,t){const n=new Bu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<d3;)o=n.sample(s),r.push(o.value),s+=ba;return{times:void 0,keyframes:r,duration:s-ba,ease:"linear"}}const I0={anticipate:Gg,backInOut:Wg,circInOut:Hg};function h3(e){return e in I0}class S0 extends p0{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new u0(s,(a,c)=>this.onKeyframesResolved(a,c),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:c,name:l,startTime:u}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof s=="string"&&fa()&&h3(s)&&(s=I0[s]),p3(this.options)){const{onComplete:p,onUpdate:f,motionValue:m,element:g,...h}=this.options,y=f3(t,h);t=y.keyframes,t.length===1&&(t[1]=t[0]),o=y.duration,r=y.times,s=y.ease,a="keyframes"}const d=c3(c.owner.current,l,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ig(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;c.set(ma(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ln(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ln(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Nn(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:o}=n;o.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 Gt;const{animation:o}=n;Ig(o,t)}return Gt}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:o,duration:r,type:s,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:f,...m}=this.options,g=new Bu({...m,keyframes:o,duration:r,type:s,ease:a,times:c,isGenerator:!0}),h=Nn(this.time);u.setWithVelocity(g.sample(h-ba).value,g.sample(h).value,ba)}const{onStop:l}=this.options;l&&l(),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:o,repeatDelay:r,repeatType:s,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return u3()&&o&&l3.has(o)&&!l&&!u&&!r&&s!=="mirror"&&a!==0&&c!=="inertia"}}const m3={type:"spring",stiffness:500,damping:25,restSpeed:10},g3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),b3={type:"keyframes",duration:.8},v3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},y3=(e,{keyframes:t})=>t.length>2?b3:To.has(e)?e.startsWith("scale")?g3(t[1]):m3:v3;function x3({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const ju=(e,t,n,o={},r,s)=>a=>{const c=au(o,e)||{},l=c.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Nn(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-u,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:r};x3(c)||(d={...d,...y3(e,d)}),d.duration&&(d.duration=Nn(d.duration)),d.repeatDelay&&(d.repeatDelay=Nn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const f=ma(d.keyframes,c);if(f!==void 0)return Qe.update(()=>{d.onUpdate(f),d.onComplete()}),new _P([])}return!s&&S0.supports(d)?new S0(d):new Bu(d)};function C3({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function w0(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),m=l[p];if(m===void 0||d&&C3(d,p))continue;const g={delay:n,...au(a||{},p)};let h=!1;if(window.MotionHandoffAnimation){const b=Fg(e);if(b){const I=window.MotionHandoffAnimation(b,p,Qe);I!==null&&(g.startTime=I,h=!0)}}bu(e,p),f.start(ju(p,f,m,e.shouldReduceMotion&&Dg.has(p)?{type:!1}:g,e,h));const y=f.animation;y&&u.push(y)}return c&&Promise.all(u).then(()=>{Qe.update(()=>{c&&e5(e,c)})}),u}function Fu(e,t,n={}){var o;const r=vi(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(w0(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return T3(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[a,c]:[c,a];return u().then(()=>d())}else return Promise.all([a(),c(n.delay)])}function T3(e,t,n=0,o=0,r=1,s){const a=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(E3).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(Fu(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function E3(e,t){return e.sortNodePosition(t)}function I3(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>Fu(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=Fu(e,t,n);else{const r=typeof t=="function"?vi(e,t,n.custom):t;o=Promise.all(w0(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function A0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const S3=Uc.length;function O0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?O0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<S3;n++){const o=Uc[n],r=e.props[o];(hi(r)||r===!1)&&(t[o]=r)}return t}const w3=[...Xc].reverse(),A3=Xc.length;function O3(e){return t=>Promise.all(t.map(({animation:n,options:o})=>I3(e,n,o)))}function R3(e){let t=O3(e),n=R0(),o=!0;const r=l=>(u,d)=>{var p;const f=vi(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;u={...u,...h,...g}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,d=O0(e.parent)||{},p=[],f=new Set;let m={},g=1/0;for(let y=0;y<A3;y++){const b=w3[y],I=n[b],C=u[b]!==void 0?u[b]:d[b],S=hi(C),x=b===l?I.isActive:null;x===!1&&(g=y);let w=C===d[b]&&C!==u[b]&&S;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),I.protectedKeys={...m},!I.isActive&&x===null||!C&&!I.prevProp||ca(C)||typeof C=="boolean")continue;const A=P3(I.prevProp,C);let O=A||b===l&&I.isActive&&!w&&S||y>g&&S,k=!1;const N=Array.isArray(C)?C:[C];let j=N.reduce(r(b),{});x===!1&&(j={});const{prevResolvedValues:W={}}=I,B={...W,...j},L=$=>{O=!0,f.has($)&&(k=!0,f.delete($)),I.needsAnimating[$]=!0;const M=e.getValue($);M&&(M.liveStyle=!1)};for(const $ in B){const M=j[$],H=W[$];if(m.hasOwnProperty($))continue;let D=!1;iu(M)&&iu(H)?D=!A0(M,H):D=M!==H,D?M!=null?L($):f.add($):M!==void 0&&f.has($)?L($):I.protectedKeys[$]=!0}I.prevProp=C,I.prevResolvedValues=j,I.isActive&&(m={...m,...j}),o&&e.blockInitialAnimation&&(O=!1),O&&(!(w&&A)||k)&&p.push(...N.map($=>({animation:$,options:{type:b}})))}if(f.size){const y={};if(typeof u.initial!="boolean"){const b=vi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(y.transition=b.transition)}f.forEach(b=>{const I=e.getBaseTarget(b),C=e.getValue(b);C&&(C.liveStyle=!0),y[b]=I??null}),p.push({animation:y})}let h=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const p=a(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=R0(),o=!0}}}function P3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!A0(t,e):!1}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class N3 extends ro{constructor(t){super(t),t.animationState||(t.animationState=R3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ca(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 k3=0;class M3 extends ro{constructor(){super(...arguments),this.id=k3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 D3={animation:{Feature:N3},exit:{Feature:M3}};function Ai(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Oi(e){return{point:{x:e.pageX,y:e.pageY}}}const B3=e=>t=>pu(t)&&e(t,Oi(t));function Ri(e,t,n,o){return Ai(e,t,B3(n),o)}const P0=(e,t)=>Math.abs(e-t);function j3(e,t){const n=P0(e.x,t.x),o=P0(e.y,t.y);return Math.sqrt(n**2+o**2)}class N0{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!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 p=Lu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=j3(p.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=p,{timestamp:h}=St;this.history.push({...g,timestamp:h});const{onStart:y,onMove:b}=this.handlers;f||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Vu(f,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Lu(p.type==="pointercancel"?this.lastMoveEventInfo:Vu(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,y),g&&g(p,y)},!pu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const a=Oi(t),c=Vu(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=St;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Lu(c,this.history)),this.removeListeners=Si(Ri(this.contextWindow,"pointermove",this.handlePointerMove),Ri(this.contextWindow,"pointerup",this.handlePointerUp),Ri(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),to(this.updatePoint)}}function Vu(e,t){return t?{point:t(e.point)}:e}function k0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lu({point:e},t){return{point:e,delta:k0(e,M0(t)),offset:k0(e,F3(t)),velocity:V3(t,.1)}}function F3(e){return e[0]}function M0(e){return e[e.length-1]}function V3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=M0(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Nn(t)));)n--;if(!o)return{x:0,y:0};const s=Ln(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const D0=1e-4,L3=1-D0,_3=1+D0,B0=.01,$3=0-B0,W3=0+B0;function Bt(e){return e.max-e.min}function G3(e,t,n){return Math.abs(e-t)<=n}function j0(e,t,n,o=.5){e.origin=o,e.originPoint=at(t.min,t.max,e.origin),e.scale=Bt(n)/Bt(t),e.translate=at(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L3&&e.scale<=_3||isNaN(e.scale))&&(e.scale=1),(e.translate>=$3&&e.translate<=W3||isNaN(e.translate))&&(e.translate=0)}function Pi(e,t,n,o){j0(e.x,t.x,n.x,o?o.originX:void 0),j0(e.y,t.y,n.y,o?o.originY:void 0)}function F0(e,t,n){e.min=n.min+t.min,e.max=e.min+Bt(t)}function z3(e,t,n){F0(e.x,t.x,n.x),F0(e.y,t.y,n.y)}function V0(e,t,n){e.min=t.min-n.min,e.max=e.min+Bt(t)}function Ni(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}function H3(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?at(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?at(n,e,o.max):Math.min(e,n)),e}function L0(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 X3(e,{top:t,left:n,bottom:o,right:r}){return{x:L0(e.x,n,r),y:L0(e.y,t,o)}}function _0(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function U3(e,t){return{x:_0(e.x,t.x),y:_0(e.y,t.y)}}function Z3(e,t){let n=.5;const o=Bt(e),r=Bt(t);return r>o?n=dr(t.min,t.max-o,e.min):o>r&&(n=dr(e.min,e.max-r,t.min)),_n(0,1,n)}function Y3(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 _u=.35;function J3(e=_u){return e===!1?e=0:e===!0&&(e=_u),{x:$0(e,"left","right"),y:$0(e,"top","bottom")}}function $0(e,t,n){return{min:W0(e,t),max:W0(e,n)}}function W0(e,t){return typeof e=="number"?e:e[t]||0}const G0=()=>({translate:0,scale:1,origin:0,originPoint:0}),vr=()=>({x:G0(),y:G0()}),z0=()=>({min:0,max:0}),mt=()=>({x:z0(),y:z0()});function cn(e){return[e("x"),e("y")]}function H0({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function q3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function K3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function $u(e){return e===void 0||e===1}function Wu({scale:e,scaleX:t,scaleY:n}){return!$u(e)||!$u(t)||!$u(n)}function wo(e){return Wu(e)||X0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function X0(e){return U0(e.x)||U0(e.y)}function U0(e){return e&&e!=="0%"}function va(e,t,n){const o=e-n,r=t*o;return n+r}function Z0(e,t,n,o,r){return r!==void 0&&(e=va(e,r,o)),va(e,n,o)+t}function Gu(e,t=0,n=1,o,r){e.min=Z0(e.min,t,n,o,r),e.max=Z0(e.max,t,n,o,r)}function Y0(e,{x:t,y:n}){Gu(e.x,t.translate,t.scale,t.originPoint),Gu(e.y,n.translate,n.scale,n.originPoint)}const J0=.999999999999,q0=1.0000000000001;function Q3(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let c=0;c<r;c++){s=n[c],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&xr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Y0(e,a)),o&&wo(s.latestValues)&&xr(e,s.latestValues))}t.x<q0&&t.x>J0&&(t.x=1),t.y<q0&&t.y>J0&&(t.y=1)}function yr(e,t){e.min=e.min+t,e.max=e.max+t}function K0(e,t,n,o,r=.5){const s=at(e.min,e.max,r);Gu(e,t,n,s,o)}function xr(e,t){K0(e.x,t.x,t.scaleX,t.scale,t.originX),K0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Q0(e,t){return H0(K3(e.getBoundingClientRect(),t))}function e9(e,t,n){const o=Q0(e,n),{scroll:r}=t;return r&&(yr(o.x,r.offset.x),yr(o.y,r.offset.y)),o}const eb=({current:e})=>e?e.ownerDocument.defaultView:null,t9=new WeakMap;class n9{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=mt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oi(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YP(f),!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),cn(y=>{let b=this.getAxisMotionValue(y).get()||0;if(kn.test(b)){const{projection:I}=this.visualElement;if(I&&I.layout){const C=I.layout.layoutBox[y];C&&(b=Bt(C)*(parseFloat(b)/100))}}this.originPoint[y]=b}),g&&Qe.postRender(()=>g(d,p)),bu(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=p;if(m&&this.currentDirection===null){this.currentDirection=o9(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),h&&h(d,p)},c=(d,p)=>this.stop(d,p),l=()=>cn(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new N0(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:eb(this.visualElement)})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Qe.postRender(()=>s(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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ya(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=H3(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&fr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=X3(r.layoutBox,n):this.constraints=!1,this.elastic=J3(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Y3(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fr(t))return!1;const o=t.current;eo(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=e9(o,r.root,this.visualElement.getTransformPagePoint());let a=U3(r.layout.layoutBox,s);if(n){const c=n(q3(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=cn(d=>{if(!ya(d,n,this.currentDirection))return;let p=l&&l[d]||{};a&&(p={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,g={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return bu(this.visualElement,t),o.start(ju(t,o,0,n,this.visualElement,!1))}stopAnimation(){cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cn(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()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){cn(n=>{const{drag:o}=this.getProps();if(!ya(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n];s.set(t[n]-at(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!fr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};cn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const l=c.get();r[a]=Z3({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),cn(a=>{if(!ya(a,t,null))return;const c=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];c.set(at(l,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;t9.set(this.visualElement,this);const t=this.visualElement.current,n=Ri(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();fr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Qe.read(o);const a=Ai(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(cn(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=_u,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function ya(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function o9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class r9 extends ro{constructor(t){super(t),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new n9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const tb=e=>(t,n)=>{e&&Qe.postRender(()=>e(t,n))};class i9 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(t){this.session=new N0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:tb(t),onStart:tb(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Qe.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=Ri(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 xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=nb(e,t.target.x),o=nb(e,t.target.y);return`${n}% ${o}%`}},s9={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=oo.parse(e);if(r.length>5)return o;const s=oo.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=l;const u=at(c,l,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class a9 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;fP(l9),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ob(e){const[t,n]=Um(),o=P.useContext(Lc);return v.jsx(a9,{...e,layoutGroup:o,switchLayoutGroup:P.useContext(ig),isPresent:t,safeToRemove:n})}const l9={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:s9};function c9(e,t,n){const o=Rt(e)?e:Ci(e);return o.start(ju("",o,t,n)),o.animation}function u9(e){return e instanceof SVGElement&&e.tagName!=="svg"}const d9=(e,t)=>e.depth-t.depth;class p9{constructor(){this.children=[],this.isDirty=!1}add(t){hu(this.children,t),this.isDirty=!0}remove(t){mu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d9),this.isDirty=!1,this.children.forEach(t)}}function f9(e,t){const n=Mn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(to(o),e(s-t))};return Qe.read(o,!0),()=>to(o)}const rb=["TopLeft","TopRight","BottomLeft","BottomRight"],h9=rb.length,ib=e=>typeof e=="string"?parseFloat(e):e,sb=e=>typeof e=="number"||Ce.test(e);function m9(e,t,n,o,r,s){r?(e.opacity=at(0,n.opacity!==void 0?n.opacity:1,g9(o)),e.opacityExit=at(t.opacity!==void 0?t.opacity:1,0,b9(o))):s&&(e.opacity=at(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<h9;a++){const c=`border${rb[a]}Radius`;let l=ab(t,c),u=ab(n,c);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||sb(l)===sb(u)?(e[c]=Math.max(at(ib(l),ib(u),o),0),(kn.test(u)||kn.test(l))&&(e[c]+="%")):e[c]=u}(t.rotate||n.rotate)&&(e.rotate=at(t.rotate||0,n.rotate||0,o))}function ab(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const g9=lb(0,.5,zg),b9=lb(.5,.95,Gt);function lb(e,t,n){return o=>o<e?0:o>t?1:n(dr(e,t,o))}function cb(e,t){e.min=t.min,e.max=t.max}function un(e,t){cb(e.x,t.x),cb(e.y,t.y)}function ub(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function db(e,t,n,o,r){return e-=t,e=va(e,1/n,o),r!==void 0&&(e=va(e,1/r,o)),e}function v9(e,t=0,n=1,o=.5,r,s=e,a=e){if(kn.test(t)&&(t=parseFloat(t),t=at(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=at(s.min,s.max,o);e===s&&(c-=t),e.min=db(e.min,t,n,c,r),e.max=db(e.max,t,n,c,r)}function pb(e,t,[n,o,r],s,a){v9(e,t[n],t[o],t[r],t.scale,s,a)}const y9=["x","scaleX","originX"],x9=["y","scaleY","originY"];function fb(e,t,n,o){pb(e.x,t,y9,n?n.x:void 0,o?o.x:void 0),pb(e.y,t,x9,n?n.y:void 0,o?o.y:void 0)}function hb(e){return e.translate===0&&e.scale===1}function mb(e){return hb(e.x)&&hb(e.y)}function gb(e,t){return e.min===t.min&&e.max===t.max}function C9(e,t){return gb(e.x,t.x)&&gb(e.y,t.y)}function bb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vb(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function yb(e){return Bt(e.x)/Bt(e.y)}function xb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class T9{constructor(){this.members=[]}add(t){hu(this.members,t),t.scheduleRender()}remove(t){if(mu(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(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function E9(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:m,skewY:g}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),m&&(o+=`skewX(${m}deg) `),g&&(o+=`skewY(${g}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const zu=["","X","Y","Z"],I9={visibility:"hidden"},Cb=1e3;let S9=0;function Hu(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Tb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qe,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Tb(o)}function Eb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},c=t==null?void 0:t()){this.id=S9++,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(O9),this.nodes.forEach(M9),this.nodes.forEach(D9),this.nodes.forEach(R9)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new p9)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new gu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const l=this.eventHandlers.get(a);l&&l.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=u9(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(u||l)&&(this.isLayoutDirty=!0),e){let p;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=f9(f,250),xa.hasAnimatedSinceResize&&(xa.hasAnimatedSinceResize=!1,this.nodes.forEach(Sb))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||L9,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=d.getProps(),I=!this.targetLayout||!vb(this.targetLayout,g),C=!f&&m;if(this.options.layoutRoot||this.resumeFrom||C||f&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const S={...au(h,"layout"),onPlay:y,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,to(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(B9),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ib);return}this.isUpdating||this.nodes.forEach(N9),this.isUpdating=!1,this.nodes.forEach(k9),this.nodes.forEach(w9),this.nodes.forEach(A9),this.clearAllSnapshots();const c=Mn.now();St.delta=_n(0,1e3/60,c-St.timestamp),St.timestamp=c,St.isProcessing=!0,Hc.update.process(St),Hc.preRender.process(St),Hc.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(P9),this.sharedNodes.forEach(j9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Bt(this.snapshot.measuredBox.x)&&!Bt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!mb(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(c||wo(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let l=this.removeElementScroll(c);return a&&(l=this.removeTransform(l)),_9(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return mt();const l=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some($9))){const{scroll:d}=this.root;d&&(yr(l.x,d.offset.x),yr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=mt();if(un(l,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:f}=d;d!==this.root&&p&&f.layoutScroll&&(p.wasRoot&&un(l,a),yr(l.x,p.offset.x),yr(l.y,p.offset.y))}return l}applyTransform(a,c=!1){const l=mt();un(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&xr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),wo(d.latestValues)&&xr(l,d.latestValues)}return wo(this.latestValues)&&xr(l,this.latestValues),l}removeTransform(a){const c=mt();un(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!wo(u.latestValues))continue;Wu(u.latestValues)&&u.updateSnapshot();const d=mt(),p=u.measurePageBox();un(d,p),fb(c,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return wo(this.latestValues)&&fb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:f}=this.options;if(!(!this.layout||!(p||f))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ni(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),z3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):un(this.target,this.layout.layoutBox),Y0(this.target,this.targetDelta)):un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ni(this.relativeTargetOrigin,this.target,m.target),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Wu(this.parent.latestValues)||X0(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 a;const c=this.getLead(),l=!!this.resumingFrom||this!==c;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===St.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;un(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;Q3(this.layoutCorrected,this.treeScale,this.path,l),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=mt());const{target:g}=c;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ub(this.prevProjectionDelta.x,this.projectionDelta.x),ub(this.prevProjectionDelta.y,this.projectionDelta.y)),Pi(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!xb(this.projectionDelta.x,this.prevProjectionDelta.x)||!xb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vr(),this.projectionDelta=vr(),this.projectionDeltaWithTransform=vr()}setAnimationOrigin(a,c=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},p=vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const f=mt(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,h=m!==g,y=this.getStack(),b=!y||y.members.length<=1,I=!!(h&&!b&&this.options.crossfade===!0&&!this.path.some(V9));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const x=S/1e3;wb(p.x,a.x,x),wb(p.y,a.y,x),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ni(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F9(this.relativeTarget,this.relativeTargetOrigin,f,x),C&&C9(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=mt()),un(C,this.relativeTarget)),h&&(this.animationValues=d,m9(d,u,this.latestValues,x,I,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(to(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{xa.hasAnimatedSinceResize=!0,this.currentAnimation=c9(0,Cb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=a;if(!(!c||!l||!u)){if(this!==a&&this.layout&&u&&Nb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||mt();const p=Bt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+p;const f=Bt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}un(c,l),xr(c,d),Pi(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new T9),this.sharedNodes.get(a).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Hu("z",a,u,this.animationValues);for(let d=0;d<zu.length;d++)Hu(`rotate${zu[d]}`,a,u,this.animationValues),Hu(`skew${zu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var c,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return I9;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=pa(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=pa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!wo(this.latestValues)&&(h.transform=d?d({},""):"none",this.hasProjected=!1),h}const f=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=E9(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:m,y:g}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,p.animationValues?u.opacity=p===this?(l=(c=f.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=p===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const h in mi){if(f[h]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:I}=mi[h],C=u.transform==="none"?f[h]:y(f[h],p);if(b){const S=b.length;for(let x=0;x<S;x++)u[b[x]]=C}else I?this.options.visualElement.renderState.vars[h]=C:u[h]=C}return this.options.layoutId&&(u.pointerEvents=p===this?pa(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ib),this.root.sharedNodes.clear()}}}function w9(e){e.updateLayout()}function A9(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:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?cn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Bt(f);f.min=o[p].min,f.max=f.min+m}):Nb(s,n.layoutBox,o)&&cn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Bt(o[p]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+m)});const c=vr();Pi(c,o,n.layoutBox);const l=vr();a?Pi(l,e.applyTransform(r,!0),n.measuredBox):Pi(l,o,n.layoutBox);const u=!mb(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:m}=p;if(f&&m){const g=mt();Ni(g,n.layoutBox,f.layoutBox);const h=mt();Ni(h,o,m.layoutBox),vb(g,h)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function O9(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 R9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function P9(e){e.clearSnapshot()}function Ib(e){e.clearMeasurements()}function N9(e){e.isLayoutDirty=!1}function k9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function M9(e){e.resolveTargetDelta()}function D9(e){e.calcProjection()}function B9(e){e.resetSkewAndRotation()}function j9(e){e.removeLeadSnapshot()}function wb(e,t,n){e.translate=at(t.translate,0,n),e.scale=at(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ab(e,t,n,o){e.min=at(t.min,n.min,o),e.max=at(t.max,n.max,o)}function F9(e,t,n,o){Ab(e.x,t.x,n.x,o),Ab(e.y,t.y,n.y,o)}function V9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const L9={duration:.45,ease:[.4,0,.1,1]},Ob=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rb=Ob("applewebkit/")&&!Ob("chrome/")?Math.round:Gt;function Pb(e){e.min=Rb(e.min),e.max=Rb(e.max)}function _9(e){Pb(e.x),Pb(e.y)}function Nb(e,t,n){return e==="position"||e==="preserve-aspect"&&!G3(yb(t),yb(n),.2)}function $9(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W9=Eb({attachResizeListener:(e,t)=>Ai(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xu={current:void 0},kb=Eb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xu.current){const e=new W9({});e.mount(window),e.setOptions({layoutScroll:!0}),Xu.current=e}return Xu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G9={pan:{Feature:i9},drag:{Feature:r9,ProjectionNode:kb,MeasureLayout:ob}};function Mb(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Qe.postRender(()=>s(t,Oi(t)))}class z9 extends ro{mount(){const{current:t}=this.node;t&&(this.unmount=zP(t,(n,o)=>(Mb(this.node,o,"Start"),r=>Mb(this.node,r,"End"))))}unmount(){}}class H9 extends ro{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=Si(Ai(this.node.current,"focus",()=>this.onFocus()),Ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Db(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Qe.postRender(()=>s(t,Oi(t)))}class X9 extends ro{mount(){const{current:t}=this.node;t&&(this.unmount=ZP(t,(n,o)=>(Db(this.node,o,"Start"),(r,{success:s})=>Db(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Uu=new WeakMap,Zu=new WeakMap,U9=e=>{const t=Uu.get(e.target);t&&t(e)},Z9=e=>{e.forEach(U9)};function Y9({root:e,...t}){const n=e||document;Zu.has(n)||Zu.set(n,{});const o=Zu.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Z9,{root:e,...t})),o[r]}function J9(e,t,n){const o=Y9(t);return Uu.set(e,n),o.observe(e),()=>{Uu.delete(e),o.unobserve(e)}}const q9={some:0,all:1};class K9 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:q9[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return J9(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Q9(t,n))&&this.startObserver()}unmount(){}}function Q9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const e4={inView:{Feature:K9},tap:{Feature:X9},focus:{Feature:H9},hover:{Feature:z9}},t4={layout:{ProjectionNode:kb,MeasureLayout:ob}},Yu={current:null},Bb={current:!1};function n4(){if(Bb.current=!0,!!Wc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yu.current=e.matches;e.addListener(t),t()}else Yu.current=!1}const o4=[...l0,Pt,oo],r4=e=>o4.find(a0(e)),i4=new WeakMap;function s4(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Rt(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&aa(r.version==="12.4.3",`Attempting to mix Motion versions ${r.version} with 12.4.3 may not work as expected.`);else if(Rt(s))e.addValue(o,Ci(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,Ci(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const jb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a4{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ou,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 m=Mn.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Qe.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=ua(n),this.isVariantNode=ng(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const g=f[m];l[m]!==void 0&&Rt(g)&&g.set(l[m],!1)}}mount(t){this.current=t,i4.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,o)=>this.bindToMotionValue(o,n)),Bb.current||n4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yu.current,process.env.NODE_ENV!=="production"&&aa(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(),to(this.notifyUpdate),to(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 o=To.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),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 pr){const n=pr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}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 o=0;o<jb.length;o++){const r=jb[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=s4(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 o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(i0(r)||Xg(r))?r=parseFloat(r):!r4(r)&&oo.test(n)&&(r=Qg(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=ru(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Rt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fb extends a4{constructor(){super(...arguments),this.KeyframeResolver=u0}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:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function l4(e){return window.getComputedStyle(e)}class c4 extends Fb{constructor(){super(...arguments),this.type="html",this.renderInstance=vg}readValueFromInstance(t,n){if(To.has(n)){const o=Su(n);return o&&o.default||0}else{const o=l4(t),r=(Jc(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Q0(t,n)}build(t,n,o){Qc(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return su(t,n,o)}}class u4 extends Fb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&bg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const o=Su(n);return o&&o.default||0}return n=yg.has(n)?n:Zc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Cg(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Qe.postRender(this.updateDimensions)}build(t,n,o){nu(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){xg(t,n,o,r)}mount(t){this.isSVGTag=ou(t.tagName),super.mount(t)}}const d4=(e,t)=>tu(e)?new u4(t):new c4(t,{allowProjection:e!==P.Fragment}),p4=FP({...D3,...e4,...G9,...t4},d4),vn=eP(p4),Ao=({styles:e,label:t,disabled:n,...o})=>{const r=nt(),s=(t==null?void 0:t.length)*((t==null?void 0:t.length)>=10?6.5:7.5)+38||0,[a,c]=P.useState(!1);return v.jsxs(vn.button,{onMouseEnter:()=>(e==null?void 0:e.isAnimate)&&c(!0),onMouseLeave:()=>(e==null?void 0:e.isAnimate)&&c(!1),initial:{width:e!=null&&e.isAnimate||!t?"3rem":`${s/10}rem`,borderRadius:"0.7rem"},animate:{width:e!=null&&e.isAnimate?`${a?s/10:3}rem`:`${t?s/10:3}rem`},transition:{duration:.2,ease:"easeInOut"},style:{height:"3rem",outline:"none",overflow:"hidden",backgroundColor:(e==null?void 0:e.variant)!=="outlined"?(e==null?void 0:e.color)==="secondary"?r.palette.brandColor.blue:r.palette.brandColor.orange:r.palette.primary.notifyBackground,border:(e==null?void 0:e.variant)==="outlined"?`0.1rem solid ${r.palette.primary.notifyBorderColor}`:"none",display:"flex",cursor:"pointer",alignItems:"center",gap:a||!(e!=null&&e.isAnimate)?"0.5rem":0,color:(e==null?void 0:e.variant)==="outlined"?r.palette.primary.notifyActiveText:"white",justifyContent:a?"flex-start":"center",padding:a||!(e!=null&&e.isAnimate)?"1.2rem":"0.8rem",whiteSpace:"nowrap",...n?{backgroundColor:r.palette.primary.notifyIconColor,opacity:.8,cursor:"auto"}:{}},layout:!0,disabled:n,...o,children:[(e==null?void 0:e.icon)&&(!(e!=null&&e.iconPosition)||(e==null?void 0:e.iconPosition)==="start")&&v.jsx(de,{component:"img",src:e==null?void 0:e.icon}),t&&v.jsx(vn.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:a||!(e!=null&&e.isAnimate)?1:0,width:a||!(e!=null&&e.isAnimate)?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:a?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap"},children:v.jsx(Ot,{sx:{fontSize:"1.1rem"},children:t})}),(e==null?void 0:e.iconPosition)==="end"&&v.jsx(de,{component:"img",src:e==null?void 0:e.icon})]})};Ao.propTypes={styles:i.object.isRequired,label:i.string};const gt={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.56152%2012.937V3.06201C6.56152%202.12451%206.16152%201.74951%205.16777%201.74951H2.64277C1.64902%201.74951%201.24902%202.12451%201.24902%203.06201V12.937C1.24902%2013.8745%201.64902%2014.2495%202.64277%2014.2495H5.16777C6.16152%2014.2495%206.56152%2013.8745%206.56152%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.75%2012.937V3.06201C13.75%202.12451%2013.35%201.74951%2012.3563%201.74951H9.83125C8.8375%201.74951%208.4375%202.12451%208.4375%203.06201V12.937C8.4375%2013.8745%208.8375%2014.2495%209.83125%2014.2495H12.3563C13.35%2014.2495%2013.75%2013.8745%2013.75%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3332%203.5665C14.3332%204.17317%2014.0465%204.71317%2013.6065%205.05984C13.2865%205.31317%2012.8799%205.4665%2012.4332%205.4665C11.3799%205.4665%2010.5332%204.61984%2010.5332%203.5665C10.5332%203.11984%2010.6865%202.71984%2010.9399%202.39317H10.9465C11.2865%201.95317%2011.8265%201.6665%2012.4332%201.6665C13.4865%201.6665%2014.3332%202.51317%2014.3332%203.5665Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.46602%203.5665C5.46602%204.61984%204.61935%205.4665%203.56602%205.4665C3.11935%205.4665%202.71935%205.31317%202.39268%205.05984C1.95268%204.71317%201.66602%204.17317%201.66602%203.5665C1.66602%202.51317%202.51268%201.6665%203.56602%201.6665C4.17268%201.6665%204.71268%201.95317%205.05935%202.39317C5.31268%202.71984%205.46602%203.11984%205.46602%203.5665Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.3332%2012.4332C14.3332%2013.4865%2013.4865%2014.3332%2012.4332%2014.3332C11.8265%2014.3332%2011.2865%2014.0465%2010.9465%2013.6065H10.9399C10.6865%2013.2865%2010.5332%2012.8799%2010.5332%2012.4332C10.5332%2011.3799%2011.3799%2010.5332%2012.4332%2010.5332C12.8799%2010.5332%2013.2799%2010.6865%2013.6065%2010.9399V10.9465C14.0465%2011.2865%2014.3332%2011.8265%2014.3332%2012.4332Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.46602%2012.4332C5.46602%2012.8799%205.31268%2013.2799%205.05935%2013.6065C4.71268%2014.0532%204.17268%2014.3332%203.56602%2014.3332C2.51268%2014.3332%201.66602%2013.4865%201.66602%2012.4332C1.66602%2011.8265%201.95268%2011.2865%202.39268%2010.9465V10.9399C2.71268%2010.6865%203.11935%2010.5332%203.56602%2010.5332C4.61935%2010.5332%205.46602%2011.3799%205.46602%2012.4332Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.3327%207.99984C14.3327%209.0665%2014.0727%2010.0598%2013.606%2010.9398C13.286%2010.6865%2012.8793%2010.5332%2012.4327%2010.5332C11.3793%2010.5332%2010.5327%2011.3798%2010.5327%2012.4332C10.5327%2012.8798%2010.686%2013.2798%2010.9393%2013.6065C10.0593%2014.0732%209.06602%2014.3332%207.99935%2014.3332C6.93935%2014.3332%205.93935%2014.0732%205.05935%2013.6065C5.31268%2013.2865%205.46602%2012.8798%205.46602%2012.4332C5.46602%2011.3798%204.61935%2010.5332%203.56602%2010.5332C3.11935%2010.5332%202.71935%2010.6865%202.39268%2010.9398C1.92602%2010.0598%201.66602%209.0665%201.66602%207.99984C1.66602%206.93984%201.92602%205.93984%202.39268%205.05984C2.71935%205.31317%203.11935%205.4665%203.56602%205.4665C4.61935%205.4665%205.46602%204.61984%205.46602%203.5665C5.46602%203.11984%205.31268%202.71984%205.05935%202.39317C5.93935%201.9265%206.93935%201.6665%207.99935%201.6665C9.06602%201.6665%2010.0593%201.9265%2010.9393%202.39317C10.686%202.71317%2010.5327%203.11984%2010.5327%203.5665C10.5327%204.61984%2011.3793%205.4665%2012.4327%205.4665C12.8793%205.4665%2013.2793%205.31317%2013.606%205.05984C14.0727%205.93984%2014.3327%206.93984%2014.3327%207.99984Z'%20stroke='%230166FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e"},Vb=({styles:e,label:t,hasFooter:n=!1,showCheckBox:o=!1,options:r,defaultValue:s=!0,isMulti:a=!1,onChange:c})=>{var C,S;const l=nt(),[u,d]=P.useState(!1),p=P.useRef(null),f=P.useRef(null);P.useState("auto");const[m,g]=P.useState(s?(C=r==null?void 0:r[0])==null?void 0:C.label:"Select option"),[h,y]=P.useState(r||[]);((S=h==null?void 0:h.filter(x=>!(x!=null&&x.isMandatory)))==null?void 0:S.length)>7,P.useRef(null),P.useRef(null),P.useCallback(x=>{let w=[...h];w=w==null?void 0:w.map(A=>(A==null?void 0:A.key)===x?{...A,hidden:!A.hidden}:A),y(w),d(!0)},[h]),P.useCallback(()=>{},[h]);const b=()=>{},I=()=>{};return P.useEffect(()=>{const x=w=>{f.current&&!f.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]),v.jsxs(de,{ref:f,sx:{position:"relative",width:"100%",flexShrink:0},children:[v.jsx(de,{sx:{cursor:"pointer",height:"3rem",width:"100%",position:"relative",zIndex:1}}),v.jsxs(vn.div,{style:{position:"relative",maxHeight:"3rem",position:"absolute",top:0,left:0,width:"100%",zIndex:1e3,border:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,overflow:"hidden"},animate:{maxHeight:u?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[v.jsxs(de,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>d(!u),children:[v.jsx(de,{component:"img",className:"select-icon",src:e==null?void 0:e.icon,sx:{cursor:"pointer"}}),v.jsx(Ot,{ref:p,sx:{color:l.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem",whiteSpace:"nowrap"},children:t||m}),v.jsx(de,{component:"img",className:"child",src:u?gt.ArrowSelectDown:gt.ArrowSelectUp,sx:{cursor:"pointer"}})]}),u&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:l.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}}),v.jsx(Gc,{children:u&&v.jsx(vn.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,opacity:1,visibility:"visible",maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${l.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:r==null?void 0:r.map((x,w)=>v.jsxs("li",{style:{padding:o?"0.4rem 0":"0.2rem 0.4rem",cursor:"pointer",display:"flex",alignItems:"center",color:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,whiteSpace:"nowrap"},onClick:()=>{d(!1),c(x)},children:[o&&v.jsx(Xs,{size:"medium",sx:{color:l.palette.primary.notifyIconColor,"&.Mui-checked":{color:l.palette.brandColor.orange},p:"0.2rem 0.5rem"},checked:!(x!=null&&x.isHidden)}),v.jsx(Ot,{sx:{fontSize:"1.1rem"},children:x==null?void 0:x.label})]},w))})}),n&&u&&v.jsxs(vn.div,{style:{display:"flex",flexDirection:"row",padding:"0.5rem 1rem",justifyContent:"space-between",borderTop:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,position:"sticky",bottom:0,opacity:1,visibility:"visible"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:[v.jsx(vn.button,{onClick:b,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:l.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Apply"}),v.jsx(vn.button,{onClick:I,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:l.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Cancel"})]})]})]})},Me={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API"},dn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},f4={light:xs({palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:gt.CrossLight}}),dark:xs({palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:gt.Cross}})},Lb={THEME:"THEME"};function Ca({children:e}){var r,s;const t=((s=(r=JSON.parse(localStorage.getItem("settings")))==null?void 0:r.platform)==null?void 0:s.theme)||"light",[n,o]=P.useState(t);return P.useEffect(()=>{const a=c=>{o(c==null?void 0:c.detail)};return window.addEventListener(Lb.THEME,a),()=>{window.removeEventListener(Lb.THEME,a)}},[]),v.jsx(th,{theme:f4[n],children:e})}const Ta=P.createContext(null),Mi=P.createContext(null);function _b({children:e}){const[t,n]=P.useReducer(h4,m4);return v.jsx(Ta.Provider,{value:t,children:v.jsx(Mi.Provider,{value:n,children:v.jsx(Ca,{children:e})})})}function h4(e,t){switch(t.type){case Me.SET_GRID_DATA:return{...e,...t.payload};case Me.HAS_SETTING_CHANGE:return{...e,...t.payload};case Me.TRIGGER_API:return{...e,...t.payload};default:throw new Error(`${dn.UNHANDLED}: ${t}`)}}const m4={visibleGridColumns:[],hasChange:!1,triggerApi:!1};_b.propTypes={children:i.node.isRequired};function $b(e,t){return function(){return e.apply(t,arguments)}}const{toString:g4}=Object.prototype,{getPrototypeOf:Ju}=Object,Ea=(e=>t=>{const n=g4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yn=e=>(e=e.toLowerCase(),t=>Ea(t)===e),Ia=e=>t=>typeof t===e,{isArray:Cr}=Array,Di=Ia("undefined");function b4(e){return e!==null&&!Di(e)&&e.constructor!==null&&!Di(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wb=yn("ArrayBuffer");function v4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wb(e.buffer),t}const y4=Ia("string"),pn=Ia("function"),Gb=Ia("number"),Sa=e=>e!==null&&typeof e=="object",x4=e=>e===!0||e===!1,wa=e=>{if(Ea(e)!=="object")return!1;const t=Ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C4=yn("Date"),T4=yn("File"),E4=yn("Blob"),I4=yn("FileList"),S4=e=>Sa(e)&&pn(e.pipe),w4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pn(e.append)&&((t=Ea(e))==="formdata"||t==="object"&&pn(e.toString)&&e.toString()==="[object FormData]"))},A4=yn("URLSearchParams"),[O4,R4,P4,N4]=["ReadableStream","Request","Response","Headers"].map(yn),k4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Cr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function zb(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Hb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xb=e=>!Di(e)&&e!==Hb;function qu(){const{caseless:e}=Xb(this)&&this||{},t={},n=(o,r)=>{const s=e&&zb(t,r)||r;wa(t[s])&&wa(o)?t[s]=qu(t[s],o):wa(o)?t[s]=qu({},o):Cr(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Bi(arguments[o],n);return t}const M4=(e,t,n,{allOwnKeys:o}={})=>(Bi(t,(r,s)=>{n&&pn(r)?e[s]=$b(r,n):e[s]=r},{allOwnKeys:o}),e),D4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),B4=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j4=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Ju(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},F4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},V4=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!Gb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},L4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ju(Uint8Array)),_4=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},$4=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},W4=yn("HTMLFormElement"),G4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Ub=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z4=yn("RegExp"),Zb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Bi(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},H4=e=>{Zb(e,(t,n)=>{if(pn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(pn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X4=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return Cr(e)?o(e):o(String(e).split(t)),n},U4=()=>{},Z4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ku="abcdefghijklmnopqrstuvwxyz",Yb="0123456789",Jb={DIGIT:Yb,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Yb},Y4=(e=16,t=Jb.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function J4(e){return!!(e&&pn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q4=e=>{const t=new Array(10),n=(o,r)=>{if(Sa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=Cr(o)?[]:{};return Bi(o,(a,c)=>{const l=n(a,r+1);!Di(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},K4=yn("AsyncFunction"),G={isArray:Cr,isArrayBuffer:Wb,isBuffer:b4,isFormData:w4,isArrayBufferView:v4,isString:y4,isNumber:Gb,isBoolean:x4,isObject:Sa,isPlainObject:wa,isReadableStream:O4,isRequest:R4,isResponse:P4,isHeaders:N4,isUndefined:Di,isDate:C4,isFile:T4,isBlob:E4,isRegExp:z4,isFunction:pn,isStream:S4,isURLSearchParams:A4,isTypedArray:L4,isFileList:I4,forEach:Bi,merge:qu,extend:M4,trim:k4,stripBOM:D4,inherits:B4,toFlatObject:j4,kindOf:Ea,kindOfTest:yn,endsWith:F4,toArray:V4,forEachEntry:_4,matchAll:$4,isHTMLForm:W4,hasOwnProperty:Ub,hasOwnProp:Ub,reduceDescriptors:Zb,freezeMethods:H4,toObjectSet:X4,toCamelCase:G4,noop:U4,toFiniteNumber:Z4,findKey:zb,global:Hb,isContextDefined:Xb,ALPHABET:Jb,generateString:Y4,isSpecCompliantForm:J4,toJSONObject:q4,isAsyncFn:K4,isThenable:e=>e&&(Sa(e)||pn(e))&&pn(e.then)&&pn(e.catch)};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}G.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qb=we.prototype,Kb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kb[e]={value:e}}),Object.defineProperties(we,Kb),Object.defineProperty(qb,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(qb);return G.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Q4=null;function Qu(e){return G.isPlainObject(e)||G.isArray(e)}function Qb(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ev(e,t,n){return e?e.concat(t).map(function(r,s){return r=Qb(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function eN(e){return G.isArray(e)&&!e.some(Qu)}const tN=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Aa(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!G.isUndefined(y[h])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(G.isDate(g))return g.toISOString();if(!l&&G.isBlob(g))throw new we("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(g)||G.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,y){let b=g;if(g&&!y&&typeof g=="object"){if(G.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(G.isArray(g)&&eN(g)||(G.isFileList(g)||G.endsWith(h,"[]"))&&(b=G.toArray(g)))return h=Qb(h),b.forEach(function(C,S){!(G.isUndefined(C)||C===null)&&t.append(a===!0?ev([h],S,s):a===null?h:h+"[]",u(C))}),!1}return Qu(g)?!0:(t.append(ev(y,h,s),u(g)),!1)}const p=[],f=Object.assign(tN,{defaultVisitor:d,convertValue:u,isVisitable:Qu});function m(g,h){if(!G.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(g),G.forEach(g,function(b,I){(!(G.isUndefined(b)||b===null)&&r.call(t,b,G.isString(I)?I.trim():I,h,f))===!0&&m(b,h?h.concat(I):[I])}),p.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return m(e),t}function tv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ed(e,t){this._pairs=[],e&&Aa(e,this,t)}const nv=ed.prototype;nv.append=function(t,n){this._pairs.push([t,n])},nv.toString=function(t){const n=t?function(o){return t.call(this,o,tv)}:tv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function nN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ov(e,t,n){if(!t)return e;const o=n&&n.encode||nN,r=n&&n.serialize;let s;if(r?s=r(t,n):s=G.isURLSearchParams(t)?t.toString():new ed(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rv{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(o){o!==null&&t(o)})}}const iv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oN={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ed,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",rN=(e=>td&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),iN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sN=td&&window.location.href||"http://localhost",xn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:rN,hasStandardBrowserWebWorkerEnv:iN,origin:sN},Symbol.toStringTag,{value:"Module"})),...oN};function aN(e,t){return Aa(e,new xn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return xn.isNode&&G.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lN(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cN(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function sv(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&G.isArray(r)?r.length:a,l?(G.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!G.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&G.isArray(r[a])&&(r[a]=cN(r[a])),!c)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(o,r)=>{t(lN(o),r,n,0)}),n}return null}function uN(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ji={transitional:iv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return r?JSON.stringify(sv(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return aN(t,this.formSerializer).toString();if((c=G.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Aa(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),uN(t)):t}],transformResponse:[function(t){const n=this.transitional||ji.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?we.from(c,we.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ji.headers[e]={}});const dN=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pN=e=>{const t={};let n,o,r;return e&&e.split(`
|
|
249
249
|
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&dN[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},av=Symbol("internals");function Fi(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:G.isArray(e)?e.map(Oa):String(e)}function fN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const hN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nd(e,t,n,o,r){if(G.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!G.isString(t)){if(G.isString(o))return t.indexOf(o)!==-1;if(G.isRegExp(o))return o.test(t)}}function mN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function gN(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}class zt{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(c,l,u){const d=Fi(l);if(!d)throw new Error("header name must be a non-empty string");const p=G.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||l]=Oa(c))}const a=(c,l)=>G.forEach(c,(u,d)=>s(u,d,l));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!hN(t))a(pN(t),n);else if(G.isHeaders(t))for(const[c,l]of t.entries())s(l,c,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=Fi(t),t){const o=G.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return fN(r);if(G.isFunction(n))return n.call(this,r,o);if(G.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fi(t),t){const o=G.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||nd(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(a){if(a=Fi(a),a){const c=G.findKey(o,a);c&&(!n||nd(o,o[c],c,n))&&(delete o[c],r=!0)}}return G.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||nd(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return G.forEach(this,(r,s)=>{const a=G.findKey(o,s);if(a){n[a]=Oa(r),delete n[s];return}const c=t?mN(s):String(s).trim();c!==s&&delete n[s],n[c]=Oa(r),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&G.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
250
250
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[av]=this[av]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Fi(a);o[c]||(gN(r,a),o[c]=!0)}return G.isArray(t)?t.forEach(s):s(t),this}}zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(zt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),G.freezeMethods(zt);function od(e,t){const n=this||ji,o=t||n,r=zt.from(o.headers);let s=o.data;return G.forEach(e,function(c){s=c.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function lv(e){return!!(e&&e.__CANCEL__)}function Tr(e,t,n){we.call(this,e??"canceled",we.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Tr,we,{__CANCEL__:!0});function cv(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function bN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vN(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=o[s];a||(a=u),n[r]=l,o[r]=u;let p=s,f=0;for(;p!==r;)f+=n[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-a<t)return;const m=d&&u-d;return m?Math.round(f*1e3/m):void 0}}function yN(e,t){let n=0;const o=1e3/t;let r=null;return function(){const a=this===!0,c=Date.now();if(a||c-n>o)return r&&(clearTimeout(r),r=null),n=c,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),o-(c-n)))}}const Ra=(e,t,n=3)=>{let o=0;const r=vN(50,250);return yN(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-o,u=r(l),d=a<=c;o=a;const p={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:s,lengthComputable:c!=null};p[t?"download":"upload"]=!0,e(p)},n)},xN=xn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const c=G.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),CN=xn.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(o)&&a.push("path="+o),G.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uv(e,t){return e&&!TN(t)?EN(e,t):t}const dv=e=>e instanceof zt?{...e}:e;function Oo(e,t){t=t||{};const n={};function o(u,d,p){return G.isPlainObject(u)&&G.isPlainObject(d)?G.merge.call({caseless:p},u,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function r(u,d,p){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u,p)}else return o(u,d,p)}function s(u,d){if(!G.isUndefined(d))return o(void 0,d)}function a(u,d){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function c(u,d,p){if(p in t)return o(u,d);if(p in e)return o(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d)=>r(dv(u),dv(d),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||r,f=p(e[d],t[d],d);G.isUndefined(f)&&p!==c||(n[d]=f)}),n}const pv=e=>{const t=Oo({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=t;t.headers=a=zt.from(a),t.url=ov(uv(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(G.isFormData(n)){if(xn.hasStandardBrowserEnv||xn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(xn.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||o!==!1&&xN(t.url))){const u=r&&s&&CN.read(s);u&&a.set(r,u)}return t},IN=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=pv(e);let s=r.data;const a=zt.from(r.headers).normalize();let{responseType:c}=r,l;function u(){r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(){if(!d)return;const m=zt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),h={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};cv(function(b){n(b),u()},function(b){o(b),u()},h),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new we("Request aborted",we.ECONNABORTED,r,d)),d=null)},d.onerror=function(){o(new we("Network Error",we.ERR_NETWORK,r,d)),d=null},d.ontimeout=function(){let g=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const h=r.transitional||iv;r.timeoutErrorMessage&&(g=r.timeoutErrorMessage),o(new we(g,h.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,r,d)),d=null},s===void 0&&a.setContentType(null),"setRequestHeader"in d&&G.forEach(a.toJSON(),function(g,h){d.setRequestHeader(h,g)}),G.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),c&&c!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",Ra(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ra(r.onUploadProgress)),(r.cancelToken||r.signal)&&(l=m=>{d&&(o(!m||m.type?new Tr(null,e,d):m),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const f=bN(r.url);if(f&&xn.protocols.indexOf(f)===-1){o(new we("Unsupported protocol "+f+":",we.ERR_BAD_REQUEST,e));return}d.send(s||null)})},SN=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof we?u:new Tr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{r(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:c}=n;return c.unsubscribe=a,[c,()=>{s&&clearTimeout(s),s=null}]},wN=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},AN=async function*(e,t,n){for await(const o of e)yield*wN(ArrayBuffer.isView(o)?o:await n(String(o)),t)},fv=(e,t,n,o,r)=>{const s=AN(e,t,r);let a=0;return new ReadableStream({type:"bytes",async pull(c){const{done:l,value:u}=await s.next();if(l){c.close(),o();return}let d=u.byteLength;n&&n(a+=d),c.enqueue(new Uint8Array(u))},cancel(c){return o(c),s.return()}},{highWaterMark:2})},hv=(e,t)=>{const n=e!=null;return o=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:o}))},Pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mv=Pa&&typeof ReadableStream=="function",rd=Pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ON=mv&&(()=>{let e=!1;const t=new Request(xn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),gv=64*1024,id=mv&&!!(()=>{try{return G.isReadableStream(new Response("").body)}catch{}})(),Na={stream:id&&(e=>e.body)};Pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Na[t]&&(Na[t]=G.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,o)})})})(new Response);const RN=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(G.isArrayBufferView(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await rd(e)).byteLength},PN=async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return n??RN(t)},sd={http:Q4,xhr:IN,fetch:Pa&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=pv(e);u=u?(u+"").toLowerCase():"text";let[m,g]=r||s||a?SN([r,s],a):[],h,y;const b=()=>{!h&&setTimeout(()=>{m&&m.unsubscribe()}),h=!0};let I;try{if(l&&ON&&n!=="get"&&n!=="head"&&(I=await PN(d,o))!==0){let w=new Request(t,{method:"POST",body:o,duplex:"half"}),A;G.isFormData(o)&&(A=w.headers.get("content-type"))&&d.setContentType(A),w.body&&(o=fv(w.body,gv,hv(I,Ra(l)),null,rd))}G.isString(p)||(p=p?"cors":"omit"),y=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",withCredentials:p});let C=await fetch(y);const S=id&&(u==="stream"||u==="response");if(id&&(c||S)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=C[O]});const A=G.toFiniteNumber(C.headers.get("content-length"));C=new Response(fv(C.body,gv,c&&hv(A,Ra(c,!0)),S&&b,rd),w)}u=u||"text";let x=await Na[G.findKey(Na,u)||"text"](C,e);return!S&&b(),g&&g(),await new Promise((w,A)=>{cv(w,A,{data:x,headers:zt.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:y})})}catch(C){throw b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,y),{cause:C.cause||C}):we.from(C,C&&C.code,e,y)}})};G.forEach(sd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bv=e=>`- ${e}`,NN=e=>G.isFunction(e)||e===null||e===!1,vv={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){n=e[s];let a;if(o=n,!NN(n)&&(o=sd[(a=String(n)).toLowerCase()],o===void 0))throw new we(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
|
|
251
251
|
`+s.map(bv).join(`
|