@townco/gui-template 0.1.77 → 0.1.79
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/assets/acp-sdk-BPJAiXAT.js +1 -0
- package/dist/assets/{framer-motion-CZge_vRQ.js → framer-motion-CG8fRfWs.js} +2 -2
- package/dist/assets/{icons-Bnyv_yj2.js → icons-BzukJGLW.js} +1 -1
- package/dist/assets/{index-Bjes2WDZ.js → index-B_P_9iMa.js} +1 -1
- package/dist/assets/index-TToiz9B0.css +1 -0
- package/dist/assets/{katex-D_C5EOCM.js → katex-Dnem94XJ.js} +8 -8
- package/dist/assets/{katex-CyAuISp2.css → katex-DvXFAOB1.css} +1 -1
- package/dist/assets/{markdown-DxfY7oCC.js → markdown-BdUZ9kJE.js} +13 -13
- package/dist/assets/{radix-htOb34Il.js → radix-Zq6vt5Ln.js} +2 -2
- package/dist/assets/{react-B42e77sA.js → react-CTCEofFK.js} +1 -1
- package/dist/assets/{vendor-DJ_E-kWT.js → vendor-LcGNELL1.js} +280 -280
- package/dist/index.html +11 -11
- package/package.json +4 -4
- package/dist/assets/acp-sdk-gsCuRd1n.js +0 -1
- package/dist/assets/index-BTP0uDMO.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as n}from"./vendor-LcGNELL1.js";const Ln=1,b=n.null(),g=n.number(),h=n.string(),w=n.object({_meta:n.record(n.unknown()).optional(),content:n.string(),path:n.string(),sessionId:n.string()}),_=n.object({_meta:n.record(n.unknown()).optional(),limit:n.number().optional().nullable(),line:n.number().optional().nullable(),path:n.string(),sessionId:n.string()}),k=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string(),terminalId:n.string()}),S=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string(),terminalId:n.string()}),j=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string(),terminalId:n.string()}),y=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string(),terminalId:n.string()}),R=n.record(n.unknown()),I=n.union([n.literal("assistant"),n.literal("user")]),x=n.object({_meta:n.record(n.unknown()).optional(),mimeType:n.string().optional().nullable(),text:n.string(),uri:n.string()}),T=n.object({_meta:n.record(n.unknown()).optional(),blob:n.string(),mimeType:n.string().optional().nullable(),uri:n.string()}),i=n.union([n.literal("read"),n.literal("edit"),n.literal("delete"),n.literal("move"),n.literal("search"),n.literal("execute"),n.literal("think"),n.literal("fetch"),n.literal("switch_mode"),n.literal("other")]),r=n.union([n.literal("pending"),n.literal("in_progress"),n.literal("completed"),n.literal("failed")]),s=n.object({code:n.number(),data:n.record(n.unknown()).optional(),message:n.string()}),C=n.object({_meta:n.record(n.unknown()).optional()}),q=n.object({_meta:n.unknown().optional()}),f=n.object({_meta:n.record(n.unknown()).optional(),stopReason:n.union([n.literal("end_turn"),n.literal("max_tokens"),n.literal("max_turn_requests"),n.literal("refusal"),n.literal("cancelled")])}),M=n.object({_meta:n.record(n.unknown()).optional()}),v=n.record(n.unknown()),O=n.string(),z=n.record(n.unknown()),F=n.object({hint:n.string()}),U=n.null(),N=n.number(),E=n.string(),P=n.object({_meta:n.record(n.unknown()).optional(),methodId:n.string()}),V=n.object({_meta:n.record(n.unknown()).optional(),modeId:n.string(),sessionId:n.string()}),L=n.object({_meta:n.record(n.unknown()).optional(),modelId:n.string(),sessionId:n.string()}),B=n.record(n.unknown()),l=n.object({_meta:n.record(n.unknown()).optional(),name:n.string(),value:n.string()}),o=n.object({_meta:n.record(n.unknown()).optional(),audience:n.array(I).optional().nullable(),lastModified:n.string().optional().nullable(),priority:n.number().optional().nullable()}),t=n.union([x,T]),H=n.object({_meta:n.record(n.unknown()).optional()}),K=n.object({_meta:n.record(n.unknown()).optional(),content:n.string()}),A=n.object({_meta:n.record(n.unknown()).optional(),outcome:n.union([n.object({outcome:n.literal("cancelled")}),n.object({optionId:n.string(),outcome:n.literal("selected")})])}),D=n.object({_meta:n.record(n.unknown()).optional(),terminalId:n.string()}),G=n.object({_meta:n.record(n.unknown()).optional()}),J=n.object({_meta:n.record(n.unknown()).optional(),exitCode:n.number().optional().nullable(),signal:n.string().optional().nullable()}),Q=n.object({_meta:n.record(n.unknown()).optional()}),W=n.record(n.unknown()),X=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string()}),Y=n.record(n.unknown()),Z=n.object({_meta:n.record(n.unknown()).optional(),kind:n.union([n.literal("allow_once"),n.literal("allow_always"),n.literal("reject_once"),n.literal("reject_always")]),name:n.string(),optionId:n.string()}),e=n.union([n.object({content:n.union([n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),text:n.string(),type:n.literal("text")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("image"),uri:n.string().optional().nullable()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("audio")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),description:n.string().optional().nullable(),mimeType:n.string().optional().nullable(),name:n.string(),size:n.number().optional().nullable(),title:n.string().optional().nullable(),type:n.literal("resource_link"),uri:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),resource:t,type:n.literal("resource")})]),type:n.literal("content")}),n.object({_meta:n.record(n.unknown()).optional(),newText:n.string(),oldText:n.string().optional().nullable(),path:n.string(),type:n.literal("diff")}),n.object({terminalId:n.string(),type:n.literal("terminal")})]),a=n.object({_meta:n.record(n.unknown()).optional(),line:n.number().optional().nullable(),path:n.string()}),c=n.object({_meta:n.record(n.unknown()).optional(),name:n.string(),value:n.string()}),u=n.object({name:n.string(),title:n.string().optional().nullable(),version:n.string()}),$=n.object({_meta:n.record(n.unknown()).optional(),description:n.string().optional().nullable(),id:n.string(),name:n.string()}),nn=n.object({_meta:n.record(n.unknown()).optional(),http:n.boolean().optional(),sse:n.boolean().optional()}),on=n.object({_meta:n.record(n.unknown()).optional(),audio:n.boolean().optional(),embeddedContext:n.boolean().optional(),image:n.boolean().optional()}),tn=n.object({_meta:n.record(n.unknown()).optional(),description:n.string().optional().nullable(),modelId:n.string(),name:n.string()}),en=n.object({_meta:n.record(n.unknown()).optional(),description:n.string().optional().nullable(),id:O,name:n.string()}),p=n.object({_meta:n.record(n.unknown()).optional(),availableModels:n.array(tn),currentModelId:n.string()}),m=n.object({_meta:n.record(n.unknown()).optional(),availableModes:n.array(en),currentModeId:n.string()}),an=n.object({_meta:n.record(n.unknown()).optional(),content:n.string(),priority:n.union([n.literal("high"),n.literal("medium"),n.literal("low")]),status:n.union([n.literal("pending"),n.literal("in_progress"),n.literal("completed")])}),ln=F,rn=n.object({_meta:n.record(n.unknown()).optional(),readTextFile:n.boolean().optional(),writeTextFile:n.boolean().optional()}),sn=n.object({args:n.array(n.string()),command:n.string(),env:n.array(c),name:n.string()}),d=n.union([n.object({headers:n.array(l),name:n.string(),type:n.literal("http"),url:n.string()}),n.object({headers:n.array(l),name:n.string(),type:n.literal("sse"),url:n.string()}),sn]),cn=n.union([n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),text:n.string(),type:n.literal("text")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("image"),uri:n.string().optional().nullable()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("audio")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),description:n.string().optional().nullable(),mimeType:n.string().optional().nullable(),name:n.string(),size:n.number().optional().nullable(),title:n.string().optional().nullable(),type:n.literal("resource_link"),uri:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),resource:t,type:n.literal("resource")})]),un=n.object({_meta:n.record(n.unknown()).optional(),exitCode:n.number().optional().nullable(),signal:n.string().optional().nullable()}),pn=n.union([X,Y]),mn=n.object({_meta:n.record(n.unknown()).optional(),options:n.array(Z),sessionId:n.string(),toolCall:n.object({_meta:n.record(n.unknown()).optional(),content:n.array(e).optional().nullable(),kind:i.optional().nullable(),locations:n.array(a).optional().nullable(),rawInput:n.record(n.unknown()).optional(),rawOutput:n.record(n.unknown()).optional(),status:r.optional().nullable(),title:n.string().optional().nullable(),toolCallId:n.string()})}),dn=n.object({_meta:n.record(n.unknown()).optional(),args:n.array(n.string()).optional(),command:n.string(),cwd:n.string().optional().nullable(),env:n.array(c).optional(),outputByteLimit:n.number().optional().nullable(),sessionId:n.string()}),bn=n.object({_meta:n.record(n.unknown()).optional(),models:p.optional().nullable(),modes:m.optional().nullable(),sessionId:n.string()}),gn=n.object({_meta:n.record(n.unknown()).optional(),models:p.optional().nullable(),modes:m.optional().nullable()}),hn=n.object({method:n.string(),params:pn.optional().nullable()}),wn=n.object({_meta:n.record(n.unknown()).optional(),cwd:n.string(),mcpServers:n.array(d)}),_n=n.object({_meta:n.record(n.unknown()).optional(),cwd:n.string(),mcpServers:n.array(d),sessionId:n.string()}),kn=n.object({_meta:n.record(n.unknown()).optional(),prompt:n.array(cn),sessionId:n.string()}),Sn=n.object({_meta:n.record(n.unknown()).optional(),exitStatus:un.optional().nullable(),output:n.string(),truncated:n.boolean()}),jn=n.union([w,_,mn,dn,k,S,j,y,R]),yn=n.object({_meta:n.record(n.unknown()).optional(),loadSession:n.boolean().optional(),mcpCapabilities:nn.optional(),promptCapabilities:on.optional()}),Rn=n.object({_meta:n.record(n.unknown()).optional(),description:n.string(),input:ln.optional().nullable(),name:n.string()}),In=n.object({_meta:n.record(n.unknown()).optional(),fs:rn.optional(),terminal:n.boolean().optional()}),xn=n.object({id:n.union([b,g,h]),method:n.string(),params:jn.optional().nullable()}),Tn=n.object({_meta:n.record(n.unknown()).optional(),agentCapabilities:yn.optional(),agentInfo:u.optional().nullable(),authMethods:n.array($).optional(),protocolVersion:n.number()}),Cn=n.object({_meta:n.record(n.unknown()).optional(),sessionId:n.string(),update:n.union([n.object({_meta:n.record(n.unknown()).optional(),content:n.union([n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),text:n.string(),type:n.literal("text")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("image"),uri:n.string().optional().nullable()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("audio")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),description:n.string().optional().nullable(),mimeType:n.string().optional().nullable(),name:n.string(),size:n.number().optional().nullable(),title:n.string().optional().nullable(),type:n.literal("resource_link"),uri:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),resource:t,type:n.literal("resource")})]),sessionUpdate:n.literal("user_message_chunk")}),n.object({_meta:n.record(n.unknown()).optional(),content:n.union([n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),text:n.string(),type:n.literal("text")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("image"),uri:n.string().optional().nullable()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("audio")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),description:n.string().optional().nullable(),mimeType:n.string().optional().nullable(),name:n.string(),size:n.number().optional().nullable(),title:n.string().optional().nullable(),type:n.literal("resource_link"),uri:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),resource:t,type:n.literal("resource")})]),sessionUpdate:n.literal("agent_message_chunk")}),n.object({_meta:n.record(n.unknown()).optional(),content:n.union([n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),text:n.string(),type:n.literal("text")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("image"),uri:n.string().optional().nullable()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),data:n.string(),mimeType:n.string(),type:n.literal("audio")}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),description:n.string().optional().nullable(),mimeType:n.string().optional().nullable(),name:n.string(),size:n.number().optional().nullable(),title:n.string().optional().nullable(),type:n.literal("resource_link"),uri:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),annotations:o.optional().nullable(),resource:t,type:n.literal("resource")})]),sessionUpdate:n.literal("agent_thought_chunk")}),n.object({_meta:n.record(n.unknown()).optional(),content:n.array(e).optional(),kind:n.union([n.literal("read"),n.literal("edit"),n.literal("delete"),n.literal("move"),n.literal("search"),n.literal("execute"),n.literal("think"),n.literal("fetch"),n.literal("switch_mode"),n.literal("other")]).optional(),locations:n.array(a).optional(),rawInput:n.record(n.unknown()).optional(),rawOutput:n.record(n.unknown()).optional(),sessionUpdate:n.literal("tool_call"),status:n.union([n.literal("pending"),n.literal("in_progress"),n.literal("completed"),n.literal("failed")]).optional(),title:n.string(),toolCallId:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),content:n.array(e).optional().nullable(),kind:i.optional().nullable(),locations:n.array(a).optional().nullable(),rawInput:n.record(n.unknown()).optional(),rawOutput:n.record(n.unknown()).optional(),sessionUpdate:n.literal("tool_call_update"),status:r.optional().nullable(),title:n.string().optional().nullable(),toolCallId:n.string()}),n.object({_meta:n.record(n.unknown()).optional(),entries:n.array(an),sessionUpdate:n.literal("plan")}),n.object({_meta:n.record(n.unknown()).optional(),availableCommands:n.array(Rn),sessionUpdate:n.literal("available_commands_update")}),n.object({_meta:n.record(n.unknown()).optional(),currentModeId:n.string(),sessionUpdate:n.literal("current_mode_update")})])}),qn=n.object({_meta:n.record(n.unknown()).optional(),clientCapabilities:In.optional(),clientInfo:u.optional().nullable(),protocolVersion:n.number()}),fn=n.union([H,K,A,D,Sn,G,J,Q,W]),Mn=n.union([Cn,z]),vn=n.union([qn,P,wn,_n,V,kn,L,B]),On=n.object({method:n.string(),params:Mn.optional().nullable()}),zn=n.union([Tn,C,bn,gn,q,f,M,v]),Fn=n.object({id:n.union([U,N,E]),method:n.string(),params:vn.optional().nullable()}),Un=n.union([n.object({result:fn}),n.object({error:s})]),Nn=n.union([Fn,Un,hn]),En=n.union([n.object({result:zn}),n.object({error:s})]),Pn=n.union([xn,En,On]);n.union([Pn,Nn]);export{Ln as P,Pn as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as m,j as k}from"./react-
|
|
1
|
+
import{r as m,j as k}from"./react-CTCEofFK.js";import{i as si,a as zt,t as Q,b as Kt,g as rn,n as an,c as D,p as nt,m as S,d as $,K as oi,e as _t,f as T,h as H,j as ri,k as ai,l as li,o as It,q as ui,S as ln,r as Xt,D as ci,s as hi,u as fi,v as di,M as mt,w as Yt,x as ht,y as ce,J as mi,A as pi,B as gi,C as un,E as L,F as cn,G as yi,H as kt,I as hn,L as vi,N as pt,O as q,P as fn,Q as dn,R as xi,T as Pi,U as Ti,V as At,W as Vi,X as Si}from"./vendor-LcGNELL1.js";const qt=m.createContext({});function xt(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const Zt=typeof window<"u",mn=Zt?m.useLayoutEffect:m.useEffect,Pt=m.createContext(null),Tt=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function he(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ci(...t){return e=>{let n=!1;const i=t.map(o=>{const r=he(o,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let o=0;o<i.length;o++){const r=i[o];typeof r=="function"?r():he(t[o],null)}}}}function Ai(...t){return m.useCallback(Ci(...t),t)}class wi extends m.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=n.offsetParent,o=si(i)&&i.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=o-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Di({children:t,isPresent:e,anchorX:n,root:i}){const o=m.useId(),r=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(Tt),l=Ai(r,t?.ref);return m.useInsertionEffect(()=>{const{width:c,height:u,top:h,left:f,right:d}=s.current;if(e||!r.current||!c||!u)return;const p=n==="left"?`left: ${f}`:`right: ${d}`;r.current.dataset.motionPopId=o;const v=document.createElement("style");a&&(v.nonce=a);const P=i??document.head;return P.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${o}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${c}px !important;
|
|
@@ -6,4 +6,4 @@ import{r as m,j as k}from"./react-B42e77sA.js";import{i as si,e as zt,t as Q,f a
|
|
|
6
6
|
${p}px !important;
|
|
7
7
|
top: ${h}px !important;
|
|
8
8
|
}
|
|
9
|
-
`),()=>{P.contains(v)&&P.removeChild(v)}},[e]),k.jsx(wi,{isPresent:e,childRef:r,sizeRef:s,children:m.cloneElement(t,{ref:l})})}const Mi=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:r,mode:s,anchorX:a,root:l})=>{const c=xt(Ri),u=m.useId();let h=!0,f=m.useMemo(()=>(h=!1,{id:u,initial:e,isPresent:n,custom:o,onExitComplete:d=>{c.set(d,!0);for(const p of c.values())if(!p)return;i&&i()},register:d=>(c.set(d,!1),()=>c.delete(d))}),[n,c,i]);return r&&h&&(f={...f}),m.useMemo(()=>{c.forEach((d,p)=>c.set(p,!1))},[n]),m.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),s==="popLayout"&&(t=k.jsx(Di,{isPresent:n,anchorX:a,root:l,children:t})),k.jsx(Pt.Provider,{value:f,children:t})};function Ri(){return new Map}function pn(t=!0){const e=m.useContext(Pt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,r=m.useId();m.useEffect(()=>{if(t)return o(r)},[t]);const s=m.useCallback(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,s]:[!0]}const ut=t=>t.key||"";function fe(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const fr=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=pn(s),h=m.useMemo(()=>fe(t),[t]),f=s&&!c?[]:h.map(ut),d=m.useRef(!0),p=m.useRef(h),v=xt(()=>new Map),[P,y]=m.useState(h),[g,x]=m.useState(h);mn(()=>{d.current=!1,p.current=h;for(let M=0;M<g.length;M++){const A=ut(g[M]);f.includes(A)?v.delete(A):v.get(A)!==!0&&v.set(A,!1)}},[g,f.length,f.join("-")]);const C=[];if(h!==P){let M=[...h];for(let A=0;A<g.length;A++){const I=g[A],G=ut(I);f.includes(G)||(M.splice(A,0,I),C.push(I))}return r==="wait"&&C.length&&(M=C),x(fe(M)),y(h),null}const{forceRender:E}=m.useContext(qt);return k.jsx(k.Fragment,{children:g.map(M=>{const A=ut(M),I=s&&!c?!1:h===g||f.includes(A),G=()=>{if(v.has(A))v.set(A,!0);else return;let tt=!0;v.forEach(O=>{O||(tt=!1)}),tt&&(E?.(),x(p.current),s&&u?.(),i&&i())};return k.jsx(Mi,{isPresent:I,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:r,root:l,onExitComplete:I?void 0:G,anchorX:a,children:M},A)})})},gn=m.createContext({strict:!1}),de={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"]},J={};for(const t in de)J[t]={isEnabled:e=>de[t].some(n=>!!e[n])};function Li(t){for(const e in t)J[e]={...J[e],...t[e]}}const Ei=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 gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ei.has(t)}let yn=t=>!gt(t);function bi(t){typeof t=="function"&&(yn=e=>e.startsWith("on")?!gt(e):t(e))}try{bi(require("@emotion/is-prop-valid").default)}catch{}function Bi(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(yn(o)||n===!0&>(o)||!e&&!gt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}const Vt=m.createContext({});function St(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ot(t){return typeof t=="string"||Array.isArray(t)}const Jt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qt=["initial",...Jt];function Ct(t){return St(t.animate)||Qt.some(e=>ot(t[e]))}function vn(t){return!!(Ct(t)||t.variants)}function ji(t,e){if(Ct(t)){const{initial:n,animate:i}=t;return{initial:n===!1||ot(n)?n:void 0,animate:ot(i)?i:void 0}}return t.inherit!==!1?e:{}}function Ii(t){const{initial:e,animate:n}=ji(t,m.useContext(Vt));return m.useMemo(()=>({initial:e,animate:n}),[me(e),me(n)])}function me(t){return Array.isArray(t)?t.join(" "):t}const rt={};function ki(t){for(const e in t)rt[e]=t[e],zt(e)&&(rt[e].isCSSVariable=!0)}function xn(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rt[t]||t==="opacity")}const Fi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oi=_t.length;function Ui(t,e,n){let i="",o=!0;for(let r=0;r<Oi;r++){const s=_t[r],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=rn(a,an[s]);if(!l){o=!1;const u=Fi[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function te(t,e,n){const{style:i,vars:o,transformOrigin:r}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Q.has(l)){s=!0;continue}else if(zt(l)){o[l]=c;continue}else{const u=rn(c,an[l]);l.startsWith("origin")?(a=!0,r[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=Ui(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;i.transformOrigin=`${l} ${c} ${u}`}}const ee=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pn(t,e,n){for(const i in e)!D(e[i])&&!xn(i,n)&&(t[i]=e[i])}function Ni({transformTemplate:t},e){return m.useMemo(()=>{const n=ee();return te(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Wi(t,e){const n=t.style||{},i={};return Pn(i,n,t),Object.assign(i,Ni(t,e)),i}function $i(t,e){const n={},i=Wi(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Hi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gi={offset:"strokeDashoffset",array:"strokeDasharray"};function zi(t,e,n=1,i=0,o=!0){t.pathLength=1;const r=o?Hi:Gi;t[r.offset]=nt.transform(-i);const s=nt.transform(e),a=nt.transform(n);t[r.array]=`${s} ${a}`}function Tn(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:r=1,pathOffset:s=0,...a},l,c,u){if(te(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),o!==void 0&&zi(h,o,r,s,!1)}const Vn=()=>({...ee(),attrs:{}}),Sn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _i(t,e,n,i){const o=m.useMemo(()=>{const r=Vn();return Tn(r,e,Sn(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Pn(r,t.style,t),o.style={...r,...o.style}}return o}const Ki=["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 ne(t){return typeof t!="string"||t.includes("-")?!1:!!(Ki.indexOf(t)>-1||/[A-Z]/u.test(t))}function Xi(t,e,n,{latestValues:i},o,r=!1){const a=(ne(t)?_i:$i)(e,i,o,t),l=Bi(e,typeof t=="string",r),c=t!==m.Fragment?{...l,...a,ref:n}:{},{children:u}=e,h=m.useMemo(()=>D(u)?u.get():u,[u]);return m.createElement(t,{...c,children:h})}function pe(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ie(t,e,n,i){if(typeof e=="function"){const[o,r]=pe(i);e=e(n!==void 0?n:t.custom,o,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,r]=pe(i);e=e(n!==void 0?n:t.custom,o,r)}return e}function ft(t){return D(t)?t.get():t}function Yi({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:qi(n,i,o,t),renderState:e()}}function qi(t,e,n,i){const o={},r=i(t,{});for(const f in r)o[f]=ft(r[f]);let{initial:s,animate:a}=t;const l=Ct(t),c=vn(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const h=u?a:s;if(h&&typeof h!="boolean"&&!St(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=ie(t,f[d]);if(p){const{transitionEnd:v,transition:P,...y}=p;for(const g in y){let x=y[g];if(Array.isArray(x)){const C=u?x.length-1:0;x=x[C]}x!==null&&(o[g]=x)}for(const g in v)o[g]=v[g]}}}return o}const Cn=t=>(e,n)=>{const i=m.useContext(Vt),o=m.useContext(Pt),r=()=>Yi(t,e,i,o);return n?r():xt(r)};function se(t,e,n){const{style:i}=t,o={};for(const r in i)(D(i[r])||e.style&&D(e.style[r])||xn(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}const Zi=Cn({scrapeMotionValuesFromProps:se,createRenderState:ee});function An(t,e,n){const i=se(t,e,n);for(const o in t)if(D(t[o])||D(e[o])){const r=_t.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[r]=t[o]}return i}const Ji=Cn({scrapeMotionValuesFromProps:An,createRenderState:Vn}),Qi=Symbol.for("motionComponentSymbol");function _(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ts(t,e,n){return m.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):_(n)&&(n.current=i))},[e])}const oe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),es="framerAppearId",wn="data-"+oe(es),Dn=m.createContext({});function ns(t,e,n,i,o){const{visualElement:r}=m.useContext(Vt),s=m.useContext(gn),a=m.useContext(Pt),l=m.useContext(Tt).reducedMotion,c=m.useRef(null);i=i||s.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,h=m.useContext(Dn);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&is(c.current,n,o,h);const f=m.useRef(!1);m.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const d=n[wn],p=m.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return mn(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),m.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),p.current=!1),u.enteringChildren=void 0)}),u}function is(t,e,n,i){const{layoutId:o,layout:r,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Mn(t.parent)),t.projection.setOptions({layoutId:o,layout:r,alwaysMeasureLayout:!!s||a&&_(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c})}function Mn(t){if(t)return t.options.allowProjection!==!1?t.projection:Mn(t.parent)}function wt(t,{forwardMotionProps:e=!1}={},n,i){n&&Li(n);const o=ne(t)?Ji:Zi;function r(a,l){let c;const u={...m.useContext(Tt),...a,layoutId:ss(a)},{isStatic:h}=u,f=Ii(a),d=o(a,h);if(!h&&Zt){os();const p=rs(u);c=p.MeasureLayout,f.visualElement=ns(t,d,u,i,p.ProjectionNode)}return k.jsxs(Vt.Provider,{value:f,children:[c&&f.visualElement?k.jsx(c,{visualElement:f.visualElement,...u}):null,Xi(t,a,ts(d,f.visualElement,l),d,h,e)]})}r.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=m.forwardRef(r);return s[Qi]=t,s}function ss({layoutId:t}){const e=m.useContext(qt).id;return e&&t!==void 0?e+"-"+t:t}function os(t,e){m.useContext(gn).strict}function rs(t){const{drag:e,layout:n}=J;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function as(t,e){if(typeof Proxy>"u")return wt;const n=new Map,i=(r,s)=>wt(r,s,t,e),o=(r,s)=>i(r,s);return new Proxy(o,{get:(r,s)=>s==="create"?i:(n.has(s)||n.set(s,wt(s,void 0,t,e)),n.get(s))})}function Rn({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ls({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function us(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Dt(t){return t===void 0||t===1}function Ft({scale:t,scaleX:e,scaleY:n}){return!Dt(t)||!Dt(e)||!Dt(n)}function W(t){return Ft(t)||Ln(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ln(t){return ge(t.x)||ge(t.y)}function ge(t){return t&&t!=="0%"}function yt(t,e,n){const i=t-n,o=e*i;return n+o}function ye(t,e,n,i,o){return o!==void 0&&(t=yt(t,o,i)),yt(t,n,i)+e}function Ot(t,e=0,n=1,i,o){t.min=ye(t.min,e,n,i,o),t.max=ye(t.max,e,n,i,o)}function En(t,{x:e,y:n}){Ot(t.x,e.translate,e.scale,e.originPoint),Ot(t.y,n.translate,n.scale,n.originPoint)}const ve=.999999999999,xe=1.0000000000001;function cs(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let r,s;for(let a=0;a<o;a++){r=n[a],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&X(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,En(t,s)),i&&W(r.latestValues)&&X(t,r.latestValues))}e.x<xe&&e.x>ve&&(e.x=1),e.y<xe&&e.y>ve&&(e.y=1)}function K(t,e){t.min=t.min+e,t.max=t.max+e}function Pe(t,e,n,i,o=.5){const r=S(t.min,t.max,o);Ot(t,e,n,r,i)}function X(t,e){Pe(t.x,e.x,e.scaleX,e.scale,e.originX),Pe(t.y,e.y,e.scaleY,e.scale,e.originY)}function bn(t,e){return Rn(us(t.getBoundingClientRect(),e))}function hs(t,e,n){const i=bn(t,n),{scroll:o}=e;return o&&(K(i.x,o.offset.x),K(i.y,o.offset.y)),i}const Te=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:Te(),y:Te()}),Ve=()=>({min:0,max:0}),V=()=>({x:Ve(),y:Ve()}),Ut={current:null},Bn={current:!1};function fs(){if(Bn.current=!0,!!Zt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ut.current=t.matches;t.addEventListener("change",e),e()}else Ut.current=!1}const ds=new WeakMap;function ms(t,e,n){for(const i in e){const o=e[i],r=n[i];if(D(o))t.addValue(i,o);else if(D(r))t.addValue(i,$(o,{owner:t}));else if(r!==o)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=t.getStaticValue(i);t.addValue(i,$(s!==void 0?s:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Se=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ps{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Kt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,T.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ct(n),this.isVariantNode=vn(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&D(d)&&d.set(l[f])}}mount(e){this.current=e,ds.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Bn.current||fs(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ut.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Q.has(e);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&T.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in J){const n=J[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Se.length;i++){const o=Se[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const r="on"+o,s=e[r];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=ms(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=$(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ri(i)||ai(i))?i=parseFloat(i):!li(i)&&It.test(n)&&(i=ui(e,n)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const r=ie(this.props,n,this.presenceContext?.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!D(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ln),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Xt.render(this.render)}}class jn extends ps{constructor(){super(...arguments),this.KeyframeResolver=ci}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function In(t,{style:e,vars:n},i,o){const r=t.style;let s;for(s in e)r[s]=e[s];o?.applyProjectionStyles(r,i);for(s in n)r.setProperty(s,n[s])}function gs(t){return window.getComputedStyle(t)}class ys extends jn{constructor(){super(...arguments),this.type="html",this.renderInstance=In}readValueFromInstance(e,n){if(Q.has(n))return this.projection?.isProjecting?hi(n):fi(e,n);{const i=gs(e),o=(zt(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return bn(e,n)}build(e,n,i){te(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return se(e,n,i)}}const kn=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 vs(t,e,n,i){In(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(kn.has(o)?o:oe(o),e.attrs[o])}class xs extends jn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=V}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const i=di(n);return i&&i.default||0}return n=kn.has(n)?n:oe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return An(e,n,i)}build(e,n,i){Tn(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){vs(e,n,i,o)}mount(e){this.isSVGTag=Sn(e.tagName),super.mount(e)}}const Ps=(t,e)=>ne(t)?new xs(e):new ys(e,{allowProjection:t!==m.Fragment});function Z(t,e,n){const i=t.getProps();return ie(i,e,n!==void 0?n:i.custom,t)}const Nt=t=>Array.isArray(t);function Ts(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,$(n))}function Vs(t){return Nt(t)?t[t.length-1]||0:t}function Ss(t,e){const n=Z(t,e);let{transitionEnd:i={},transition:o={},...r}=n||{};r={...r,...i};for(const s in r){const a=Vs(r[s]);Ts(t,s,a)}}function Cs(t){return!!(D(t)&&t.add)}function Wt(t,e){const n=t.getValue("willChange");if(Cs(n))return n.add(e);if(!n&&mt.WillChange){const i=new mt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function Fn(t){return t.props[wn]}const As=t=>t!==null;function ws(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(As),r=e&&n!=="loop"&&e%2===1?0:o.length-1;return o[r]}const Ds={type:"spring",stiffness:500,damping:25,restSpeed:10},Ms=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Rs={type:"keyframes",duration:.8},Ls={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Es=(t,{keyframes:e})=>e.length>2?Rs:Q.has(t)?t.startsWith("scale")?Ms(e[1]):Ds:Ls;function bs({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:r,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const re=(t,e,n,i={},o,r)=>s=>{const a=Yt(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-ht(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:o};bs(a)||Object.assign(u,Es(t,u)),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ce(u),u.delay===0&&(h=!0)),(mt.instantAnimations||mt.skipAnimations)&&(h=!0,ce(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=ws(u.keyframes,a);if(f!==void 0){T.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new mi(u):new pi(u)};function Bs({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function On(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(r=i);const l=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),f=a[u];if(f===void 0||c&&Bs(c,u))continue;const d={delay:n,...Yt(r||{},u)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!d.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Fn(t);if(y){const g=window.MotionHandoffAnimation(y,u,T);g!==null&&(d.startTime=g,v=!0)}}Wt(t,u),h.start(re(u,h,f,t.shouldReduceMotion&&gi.has(u)?{type:!1}:d,t,v));const P=h.animation;P&&l.push(P)}return s&&Promise.all(l).then(()=>{T.update(()=>{s&&Ss(t,s)})}),l}function Un(t,e,n,i=0,o=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),s=t.size,a=(s-1)*i;return typeof n=="function"?n(r,s):o===1?r*i:a-r*i}function $t(t,e,n={}){const i=Z(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(On(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=o;return js(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[r,s]:[s,r];return l().then(()=>c())}else return Promise.all([r(),s(n.delay)])}function js(t,e,n=0,i=0,o=0,r=1,s){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push($t(l,e,{...s,delay:n+(typeof i=="function"?0:i)+Un(t.variantChildren,l,i,o,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Is(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(r=>$t(t,r,n));i=Promise.all(o)}else if(typeof e=="string")i=$t(t,e,n);else{const o=typeof e=="function"?Z(t,e,n.custom):e;i=Promise.all(On(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Nn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const ks=Qt.length;function Wn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Wn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ks;n++){const i=Qt[n],o=t.props[i];(ot(o)||o===!1)&&(e[i]=o)}return e}const Fs=[...Jt].reverse(),Os=Jt.length;function Us(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Is(t,n,i)))}function Ns(t){let e=Us(t),n=Ce(),i=!0;const o=l=>(c,u)=>{const h=Z(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...p}=h;c={...c,...p,...d}}return c};function r(l){e=l(t)}function s(l){const{props:c}=t,u=Wn(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let P=0;P<Os;P++){const y=Fs[P],g=n[y],x=c[y]!==void 0?c[y]:u[y],C=ot(x),E=y===l?g.isActive:null;E===!1&&(p=P);let M=x===u[y]&&x!==c[y]&&C;if(M&&i&&t.manuallyAnimateOnMount&&(M=!1),g.protectedKeys={...d},!g.isActive&&E===null||!x&&!g.prevProp||St(x)||typeof x=="boolean")continue;const A=Ws(g.prevProp,x);let I=A||y===l&&g.isActive&&!M&&C||P>p&&C,G=!1;const tt=Array.isArray(x)?x:[x];let O=tt.reduce(o(y),{});E===!1&&(O={});const{prevResolvedValues:ae={}}=g,ni={...ae,...O},le=w=>{I=!0,f.has(w)&&(G=!0,f.delete(w)),g.needsAnimating[w]=!0;const b=t.getValue(w);b&&(b.liveStyle=!1)};for(const w in ni){const b=O[w],U=ae[w];if(d.hasOwnProperty(w))continue;let z=!1;Nt(b)&&Nt(U)?z=!Nn(b,U):z=b!==U,z?b!=null?le(w):f.add(w):b!==void 0&&f.has(w)?le(w):g.protectedKeys[w]=!0}g.prevProp=x,g.prevResolvedValues=O,g.isActive&&(d={...d,...O}),i&&t.blockInitialAnimation&&(I=!1);const ue=M&&A;I&&(!ue||G)&&h.push(...tt.map(w=>{const b={type:y};if(typeof w=="string"&&i&&!ue&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,z=Z(U,w);if(U.enteringChildren&&z){const{delayChildren:ii}=z.transition||{};b.delay=Un(U.enteringChildren,t,ii)}}return{animation:w,options:b}}))}if(f.size){const P={};if(typeof c.initial!="boolean"){const y=Z(t,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(P.transition=y.transition)}f.forEach(y=>{const g=t.getBaseTarget(y),x=t.getValue(y);x&&(x.liveStyle=!0),P[y]=g??null}),h.push({animation:P})}let v=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,v?e(h):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Ce()}}}function Ws(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Nn(e,t):!1}function N(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ce(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}class F{constructor(e){this.isMounted=!1,this.node=e}update(){}}class $s extends F{constructor(e){super(e),e.animationState||(e.animationState=Ns(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();St(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Hs=0;class Gs extends F{constructor(){super(...arguments),this.id=Hs++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const zs={animation:{Feature:$s},exit:{Feature:Gs}};function at(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function lt(t){return{point:{x:t.pageX,y:t.pageY}}}const _s=t=>e=>un(e)&&t(e,lt(e));function it(t,e,n,i){return at(t,e,_s(n),i)}const $n=1e-4,Ks=1-$n,Xs=1+$n,Hn=.01,Ys=0-Hn,qs=0+Hn;function R(t){return t.max-t.min}function Zs(t,e,n){return Math.abs(t-e)<=n}function Ae(t,e,n,i=.5){t.origin=i,t.originPoint=S(e.min,e.max,t.origin),t.scale=R(n)/R(e),t.translate=S(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ks&&t.scale<=Xs||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ys&&t.translate<=qs||isNaN(t.translate))&&(t.translate=0)}function st(t,e,n,i){Ae(t.x,e.x,n.x,i?i.originX:void 0),Ae(t.y,e.y,n.y,i?i.originY:void 0)}function we(t,e,n){t.min=n.min+e.min,t.max=t.min+R(e)}function Js(t,e,n){we(t.x,e.x,n.x),we(t.y,e.y,n.y)}function De(t,e,n){t.min=e.min-n.min,t.max=t.min+R(e)}function vt(t,e,n){De(t.x,e.x,n.x),De(t.y,e.y,n.y)}function B(t){return[t("x"),t("y")]}const Gn=({current:t})=>t?t.ownerDocument.defaultView:null,Me=(t,e)=>Math.abs(t-e);function Qs(t,e){const n=Me(t.x,e.x),i=Me(t.y,e.y);return Math.sqrt(n**2+i**2)}class zn{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Rt(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Qs(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:v}=f,{timestamp:P}=L;this.history.push({...v,timestamp:P});const{onStart:y,onMove:g}=this.handlers;d||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Mt(d,this.transformPagePoint),T.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Rt(f.type==="pointercancel"?this.lastMoveEventInfo:Mt(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,y),v&&v(f,y)},!un(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=o||window;const a=lt(e),l=Mt(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=L;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,Rt(l,this.history)),this.removeListeners=cn(it(this.contextWindow,"pointermove",this.handlePointerMove),it(this.contextWindow,"pointerup",this.handlePointerUp),it(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),H(this.updatePoint)}}function Mt(t,e){return e?{point:e(t.point)}:t}function Re(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rt({point:t},e){return{point:t,delta:Re(t,_n(e)),offset:Re(t,to(e)),velocity:eo(e,.1)}}function to(t){return t[0]}function _n(t){return t[t.length-1]}function eo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=_n(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>ht(e)));)n--;if(!i)return{x:0,y:0};const r=yi(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function no(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?S(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?S(n,t,i.max):Math.min(t,n)),t}function Le(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function io(t,{top:e,left:n,bottom:i,right:o}){return{x:Le(t.x,n,o),y:Le(t.y,e,i)}}function Ee(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function so(t,e){return{x:Ee(t.x,e.x),y:Ee(t.y,e.y)}}function oo(t,e){let n=.5;const i=R(t),o=R(e);return o>i?n=kt(e.min,e.max-i,t.min):i>o&&(n=kt(t.min,t.max-o,e.min)),hn(0,1,n)}function ro(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ht=.35;function ao(t=Ht){return t===!1?t=0:t===!0&&(t=Ht),{x:be(t,"left","right"),y:be(t,"top","bottom")}}function be(t,e,n){return{min:Be(t,e),max:Be(t,n)}}function Be(t,e){return typeof t=="number"?t:t[e]||0}const lo=new WeakMap;class uo{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=V(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lt(h).point)},s=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:v}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vi(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),B(y=>{let g=this.getAxisMotionValue(y).get()||0;if(pt.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const C=x.layout.layoutBox[y];C&&(g=R(C)*(parseFloat(g)/100))}}this.originPoint[y]=g}),v&&T.postRender(()=>v(h,f)),Wt(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:v,onDrag:P}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=f;if(p&&this.currentDirection===null){this.currentDirection=co(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),P&&P(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>B(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zn(e,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:Gn(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,o=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!o||!i)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&T.postRender(()=>a(i,o))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!ct(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=no(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;e&&_(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=io(i.layoutBox,e):this.constraints=!1,this.elastic=ao(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&B(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ro(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!_(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=hs(i,o.root,this.visualElement.getTransformPagePoint());let s=so(o.layout.layoutBox,r);if(n){const a=n(ls(s));this.hasMutatedConstraints=!!a,a&&(s=Rn(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=B(u=>{if(!ct(u,n,this.currentDirection))return;let h=l&&l[u]||{};s&&(h={min:0,max:0});const f=o?200:1e6,d=o?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Wt(this.visualElement,e),i.start(re(e,i,0,n,this.visualElement,!1))}stopAnimation(){B(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){B(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){B(n=>{const{drag:i}=this.getProps();if(!ct(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];r.set(e[n]-S(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!_(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};B(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=oo({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),B(s=>{if(!ct(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(S(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;lo.set(this.visualElement,this);const e=this.visualElement.current,n=it(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();_(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),T.read(i);const s=at(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(B(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:s=Ht,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ct(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function co(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class ho extends F{constructor(e){super(e),this.removeGroupControls=q,this.removeListeners=q,this.controls=new uo(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const je=t=>(e,n)=>{t&&T.postRender(()=>t(e,n))};class fo extends F{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(e){this.session=new zn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:je(e),onStart:je(n),onMove:i,onEnd:(r,s)=>{delete this.session,o&&T.postRender(()=>o(r,s))}}}mount(){this.removePointerDownListener=it(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const dt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ie(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const et={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(nt.test(t))t=parseFloat(t);else return t;const n=Ie(t,e.target.x),i=Ie(t,e.target.y);return`${n}% ${i}%`}},mo={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=It.parse(t);if(o.length>5)return i;const r=It.createTransformer(t),s=typeof o[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=a,o[1+s]/=l;const c=S(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),r(o)}};let Lt=!1;class po extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;ki(go),r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),Lt&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),dt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,Lt=!0,o||e.layoutDependency!==n||n===void 0||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||T.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Xt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;Lt=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Kn(t){const[e,n]=pn(),i=m.useContext(qt);return k.jsx(po,{...t,layoutGroup:i,switchLayoutGroup:m.useContext(Dn),isPresent:e,safeToRemove:n})}const go={borderRadius:{...et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomLeftRadius:et,borderBottomRightRadius:et,boxShadow:mo};function yo(t,e,n){const i=D(t)?t:$(t);return i.start(re("",i,e,n)),i.animation}const vo=(t,e)=>t.depth-e.depth;class xo{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){dn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vo),this.isDirty=!1,this.children.forEach(e)}}function Po(t,e){const n=Kt.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&(H(i),t(r-e))};return T.setup(i,!0),()=>H(i)}const Xn=["TopLeft","TopRight","BottomLeft","BottomRight"],To=Xn.length,ke=t=>typeof t=="string"?parseFloat(t):t,Fe=t=>typeof t=="number"||nt.test(t);function Vo(t,e,n,i,o,r){o?(t.opacity=S(0,n.opacity??1,So(i)),t.opacityExit=S(e.opacity??1,0,Co(i))):r&&(t.opacity=S(e.opacity??1,n.opacity??1,i));for(let s=0;s<To;s++){const a=`border${Xn[s]}Radius`;let l=Oe(e,a),c=Oe(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Fe(l)===Fe(c)?(t[a]=Math.max(S(ke(l),ke(c),i),0),(pt.test(c)||pt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=S(e.rotate||0,n.rotate||0,i))}function Oe(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const So=Yn(0,.5,xi),Co=Yn(.5,.95,q);function Yn(t,e,n){return i=>i<t?0:i>e?1:n(kt(t,e,i))}function Ue(t,e){t.min=e.min,t.max=e.max}function j(t,e){Ue(t.x,e.x),Ue(t.y,e.y)}function Ne(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function We(t,e,n,i,o){return t-=e,t=yt(t,1/n,i),o!==void 0&&(t=yt(t,1/o,i)),t}function Ao(t,e=0,n=1,i=.5,o,r=t,s=t){if(pt.test(e)&&(e=parseFloat(e),e=S(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=S(r.min,r.max,i);t===r&&(a-=e),t.min=We(t.min,e,n,a,o),t.max=We(t.max,e,n,a,o)}function $e(t,e,[n,i,o],r,s){Ao(t,e[n],e[i],e[o],e.scale,r,s)}const wo=["x","scaleX","originX"],Do=["y","scaleY","originY"];function He(t,e,n,i){$e(t.x,e,wo,n?n.x:void 0,i?i.x:void 0),$e(t.y,e,Do,n?n.y:void 0,i?i.y:void 0)}function Ge(t){return t.translate===0&&t.scale===1}function qn(t){return Ge(t.x)&&Ge(t.y)}function ze(t,e){return t.min===e.min&&t.max===e.max}function Mo(t,e){return ze(t.x,e.x)&&ze(t.y,e.y)}function _e(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zn(t,e){return _e(t.x,e.x)&&_e(t.y,e.y)}function Ke(t){return R(t.x)/R(t.y)}function Xe(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ro{constructor(){this.members=[]}add(e){fn(this.members,e),e.scheduleRender()}remove(e){if(dn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Lo(t,e,n){let i="";const o=t.x.translate/e.x,r=t.y.translate/e.y,s=n?.z||0;if((o||r||s)&&(i=`translate3d(${o}px, ${r}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Et=["","X","Y","Z"],Eo=1e3;let bo=0;function bt(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Jn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Fn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",T,!(o||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Jn(i)}function Qn({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(s={},a=e?.()){this.id=bo++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Io),this.nodes.forEach(Uo),this.nodes.forEach(No),this.nodes.forEach(ko)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new xo)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ln),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Pi(s)&&!Ti(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;T.read(()=>{h=window.innerWidth}),t(s,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=Po(f,250),dt.hasAnimatedSinceResize&&(dt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ze)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||zo,{onLayoutAnimationStart:v,onLayoutAnimationComplete:P}=c.getProps(),y=!this.targetLayout||!Zn(this.targetLayout,d),g=!h&&f;if(this.options.layoutRoot||this.resumeFrom||g||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Yt(p,"layout"),onPlay:v,onComplete:P};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,g)}else h||Ze(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),H(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(Wo),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ye);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qe);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oo),this.nodes.forEach(Bo),this.nodes.forEach(jo)):this.nodes.forEach(qe),this.clearAllSnapshots();const a=Kt.now();L.delta=hn(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,At.update.process(L),At.preRender.process(L),At.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fo),this.sharedNodes.forEach($o)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,T.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){T.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!R(this.snapshot.measuredBox.x)&&!R(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 s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=V(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!qn(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||W(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),_o(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return V();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ko))){const{scroll:c}=this.root;c&&(K(a.x,c.offset.x),K(a.y,c.offset.y))}return a}removeElementScroll(s){const a=V();if(j(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&j(a,s),K(a.x,u.offset.x),K(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=V();j(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&X(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),W(u.latestValues)&&X(l,u.latestValues)}return W(this.latestValues)&&X(l,this.latestValues),l}removeTransform(s){const a=V();j(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!W(c.latestValues))continue;Ft(c.latestValues)&&c.updateSnapshot();const u=V(),h=c.measurePageBox();j(u,h),He(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return W(this.latestValues)&&He(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=L.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Js(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):j(this.target,this.layout.layoutBox),En(this.target,this.targetDelta)):j(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ft(this.parent.latestValues)||Ln(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),vt(this.relativeTargetOrigin,a,l),j(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===L.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;j(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;cs(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=V());const{target:d}=s;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ne(this.prevProjectionDelta.x,this.projectionDelta.x),Ne(this.prevProjectionDelta.y,this.projectionDelta.y)),st(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Xe(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Y();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=V(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,v=d!==p,P=this.getStack(),y=!P||P.members.length<=1,g=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(Go));this.animationProgress=0;let x;this.mixTargetDelta=C=>{const E=C/1e3;Je(h.x,s.x,E),Je(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ho(this.relativeTarget,this.relativeTargetOrigin,f,E),x&&Mo(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=V()),j(x,this.relativeTarget)),v&&(this.animationValues=u,Vo(u,c,this.latestValues,E,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(H(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{dt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$(0)),this.currentAnimation=yo(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Eo),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ti(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||V();const h=R(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=R(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}j(a,l),X(a,u),st(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ro),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&bt("z",s,c,this.animationValues);for(let u=0;u<Et.length;u++)bt(`rotate${Et[u]}`,s,c,this.animationValues),bt(`skew${Et[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ft(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ft(a?.pointerEvents)||""),this.hasProjected&&!W(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Lo(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),s.transform=h;const{x:f,y:d}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in rt){if(u[p]===void 0)continue;const{correct:v,applyTo:P,isCSSVariable:y}=rt[p],g=h==="none"?u[p]:v(u[p],c);if(P){const x=P.length;for(let C=0;C<x;C++)s[P[C]]=g}else y?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=c===this?ft(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Ye),this.root.sharedNodes.clear()}}}function Bo(t){t.updateLayout()}function jo(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?B(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=R(h);h.min=n[u].min,h.max=h.min+f}):ti(o,e.layoutBox,n)&&B(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=R(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const s=Y();st(s,n,e.layoutBox);const a=Y();r?st(a,t.applyTransform(i,!0),e.measuredBox):st(a,n,e.layoutBox);const l=!qn(s);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=V();vt(d,e.layoutBox,h.layoutBox);const p=V();vt(p,n,f.layoutBox),Zn(d,p)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Io(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ko(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fo(t){t.clearSnapshot()}function Ye(t){t.clearMeasurements()}function qe(t){t.isLayoutDirty=!1}function Oo(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ze(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Uo(t){t.resolveTargetDelta()}function No(t){t.calcProjection()}function Wo(t){t.resetSkewAndRotation()}function $o(t){t.removeLeadSnapshot()}function Je(t,e,n){t.translate=S(e.translate,0,n),t.scale=S(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qe(t,e,n,i){t.min=S(e.min,n.min,i),t.max=S(e.max,n.max,i)}function Ho(t,e,n,i){Qe(t.x,e.x,n.x,i),Qe(t.y,e.y,n.y,i)}function Go(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zo={duration:.45,ease:[.4,0,.1,1]},tn=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),en=tn("applewebkit/")&&!tn("chrome/")?Math.round:q;function nn(t){t.min=en(t.min),t.max=en(t.max)}function _o(t){nn(t.x),nn(t.y)}function ti(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zs(Ke(e),Ke(n),.2)}function Ko(t){return t!==t.root&&t.scroll?.wasRoot}const Xo=Qn({attachResizeListener:(t,e)=>at(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bt={current:void 0},ei=Qn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Bt.current){const t=new Xo({});t.mount(window),t.setOptions({layoutScroll:!0}),Bt.current=t}return Bt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Yo={pan:{Feature:fo},drag:{Feature:ho,ProjectionNode:ei,MeasureLayout:Kn}};function sn(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,r=i[o];r&&T.postRender(()=>r(e,lt(e)))}class qo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Vi(e,(n,i)=>(sn(this.node,i,"Start"),o=>sn(this.node,o,"End"))))}unmount(){}}class Zo extends F{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cn(at(this.node.current,"focus",()=>this.onFocus()),at(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function on(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),r=i[o];r&&T.postRender(()=>r(e,lt(e)))}class Jo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Si(e,(n,i)=>(on(this.node,i,"Start"),(o,{success:r})=>on(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Gt=new WeakMap,jt=new WeakMap,Qo=t=>{const e=Gt.get(t.target);e&&e(t)},tr=t=>{t.forEach(Qo)};function er({root:t,...e}){const n=t||document;jt.has(n)||jt.set(n,{});const i=jt.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(tr,{root:t,...e})),i[o]}function nr(t,e,n){const i=er(e);return Gt.set(t,n),i.observe(t),()=>{Gt.delete(t),i.unobserve(t)}}const ir={some:0,all:1};class sr extends F{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:r}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:ir[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return nr(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(or(e,n))&&this.startObserver()}unmount(){}}function or({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const rr={inView:{Feature:sr},tap:{Feature:Jo},focus:{Feature:Zo},hover:{Feature:qo}},ar={layout:{ProjectionNode:ei,MeasureLayout:Kn}},lr={...zs,...rr,...Yo,...ar},mr=as(lr,Ps);function pr(t){const e=xt(()=>$(t)),{isStatic:n}=m.useContext(Tt);if(n){const[,i]=m.useState(t);m.useEffect(()=>e.on("change",i),[])}return e}export{fr as A,mr as m,pr as u};
|
|
9
|
+
`),()=>{P.contains(v)&&P.removeChild(v)}},[e]),k.jsx(wi,{isPresent:e,childRef:r,sizeRef:s,children:m.cloneElement(t,{ref:l})})}const Mi=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:r,mode:s,anchorX:a,root:l})=>{const c=xt(Ri),u=m.useId();let h=!0,f=m.useMemo(()=>(h=!1,{id:u,initial:e,isPresent:n,custom:o,onExitComplete:d=>{c.set(d,!0);for(const p of c.values())if(!p)return;i&&i()},register:d=>(c.set(d,!1),()=>c.delete(d))}),[n,c,i]);return r&&h&&(f={...f}),m.useMemo(()=>{c.forEach((d,p)=>c.set(p,!1))},[n]),m.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),s==="popLayout"&&(t=k.jsx(Di,{isPresent:n,anchorX:a,root:l,children:t})),k.jsx(Pt.Provider,{value:f,children:t})};function Ri(){return new Map}function pn(t=!0){const e=m.useContext(Pt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,r=m.useId();m.useEffect(()=>{if(t)return o(r)},[t]);const s=m.useCallback(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,s]:[!0]}const ut=t=>t.key||"";function fe(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const fr=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=pn(s),h=m.useMemo(()=>fe(t),[t]),f=s&&!c?[]:h.map(ut),d=m.useRef(!0),p=m.useRef(h),v=xt(()=>new Map),[P,y]=m.useState(h),[g,x]=m.useState(h);mn(()=>{d.current=!1,p.current=h;for(let M=0;M<g.length;M++){const A=ut(g[M]);f.includes(A)?v.delete(A):v.get(A)!==!0&&v.set(A,!1)}},[g,f.length,f.join("-")]);const C=[];if(h!==P){let M=[...h];for(let A=0;A<g.length;A++){const I=g[A],G=ut(I);f.includes(G)||(M.splice(A,0,I),C.push(I))}return r==="wait"&&C.length&&(M=C),x(fe(M)),y(h),null}const{forceRender:E}=m.useContext(qt);return k.jsx(k.Fragment,{children:g.map(M=>{const A=ut(M),I=s&&!c?!1:h===g||f.includes(A),G=()=>{if(v.has(A))v.set(A,!0);else return;let tt=!0;v.forEach(O=>{O||(tt=!1)}),tt&&(E?.(),x(p.current),s&&u?.(),i&&i())};return k.jsx(Mi,{isPresent:I,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:r,root:l,onExitComplete:I?void 0:G,anchorX:a,children:M},A)})})},gn=m.createContext({strict:!1}),de={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"]},J={};for(const t in de)J[t]={isEnabled:e=>de[t].some(n=>!!e[n])};function Li(t){for(const e in t)J[e]={...J[e],...t[e]}}const Ei=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 gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ei.has(t)}let yn=t=>!gt(t);function bi(t){typeof t=="function"&&(yn=e=>e.startsWith("on")?!gt(e):t(e))}try{bi(require("@emotion/is-prop-valid").default)}catch{}function Bi(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(yn(o)||n===!0&>(o)||!e&&!gt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}const Vt=m.createContext({});function St(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ot(t){return typeof t=="string"||Array.isArray(t)}const Jt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qt=["initial",...Jt];function Ct(t){return St(t.animate)||Qt.some(e=>ot(t[e]))}function vn(t){return!!(Ct(t)||t.variants)}function ji(t,e){if(Ct(t)){const{initial:n,animate:i}=t;return{initial:n===!1||ot(n)?n:void 0,animate:ot(i)?i:void 0}}return t.inherit!==!1?e:{}}function Ii(t){const{initial:e,animate:n}=ji(t,m.useContext(Vt));return m.useMemo(()=>({initial:e,animate:n}),[me(e),me(n)])}function me(t){return Array.isArray(t)?t.join(" "):t}const rt={};function ki(t){for(const e in t)rt[e]=t[e],zt(e)&&(rt[e].isCSSVariable=!0)}function xn(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rt[t]||t==="opacity")}const Fi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oi=Kt.length;function Ui(t,e,n){let i="",o=!0;for(let r=0;r<Oi;r++){const s=Kt[r],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=rn(a,an[s]);if(!l){o=!1;const u=Fi[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function te(t,e,n){const{style:i,vars:o,transformOrigin:r}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Q.has(l)){s=!0;continue}else if(zt(l)){o[l]=c;continue}else{const u=rn(c,an[l]);l.startsWith("origin")?(a=!0,r[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=Ui(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;i.transformOrigin=`${l} ${c} ${u}`}}const ee=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pn(t,e,n){for(const i in e)!D(e[i])&&!xn(i,n)&&(t[i]=e[i])}function Ni({transformTemplate:t},e){return m.useMemo(()=>{const n=ee();return te(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Wi(t,e){const n=t.style||{},i={};return Pn(i,n,t),Object.assign(i,Ni(t,e)),i}function $i(t,e){const n={},i=Wi(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Hi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gi={offset:"strokeDashoffset",array:"strokeDasharray"};function zi(t,e,n=1,i=0,o=!0){t.pathLength=1;const r=o?Hi:Gi;t[r.offset]=nt.transform(-i);const s=nt.transform(e),a=nt.transform(n);t[r.array]=`${s} ${a}`}function Tn(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:r=1,pathOffset:s=0,...a},l,c,u){if(te(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),o!==void 0&&zi(h,o,r,s,!1)}const Vn=()=>({...ee(),attrs:{}}),Sn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ki(t,e,n,i){const o=m.useMemo(()=>{const r=Vn();return Tn(r,e,Sn(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Pn(r,t.style,t),o.style={...r,...o.style}}return o}const _i=["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 ne(t){return typeof t!="string"||t.includes("-")?!1:!!(_i.indexOf(t)>-1||/[A-Z]/u.test(t))}function Xi(t,e,n,{latestValues:i},o,r=!1){const a=(ne(t)?Ki:$i)(e,i,o,t),l=Bi(e,typeof t=="string",r),c=t!==m.Fragment?{...l,...a,ref:n}:{},{children:u}=e,h=m.useMemo(()=>D(u)?u.get():u,[u]);return m.createElement(t,{...c,children:h})}function pe(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ie(t,e,n,i){if(typeof e=="function"){const[o,r]=pe(i);e=e(n!==void 0?n:t.custom,o,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,r]=pe(i);e=e(n!==void 0?n:t.custom,o,r)}return e}function ft(t){return D(t)?t.get():t}function Yi({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:qi(n,i,o,t),renderState:e()}}function qi(t,e,n,i){const o={},r=i(t,{});for(const f in r)o[f]=ft(r[f]);let{initial:s,animate:a}=t;const l=Ct(t),c=vn(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const h=u?a:s;if(h&&typeof h!="boolean"&&!St(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=ie(t,f[d]);if(p){const{transitionEnd:v,transition:P,...y}=p;for(const g in y){let x=y[g];if(Array.isArray(x)){const C=u?x.length-1:0;x=x[C]}x!==null&&(o[g]=x)}for(const g in v)o[g]=v[g]}}}return o}const Cn=t=>(e,n)=>{const i=m.useContext(Vt),o=m.useContext(Pt),r=()=>Yi(t,e,i,o);return n?r():xt(r)};function se(t,e,n){const{style:i}=t,o={};for(const r in i)(D(i[r])||e.style&&D(e.style[r])||xn(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}const Zi=Cn({scrapeMotionValuesFromProps:se,createRenderState:ee});function An(t,e,n){const i=se(t,e,n);for(const o in t)if(D(t[o])||D(e[o])){const r=Kt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[r]=t[o]}return i}const Ji=Cn({scrapeMotionValuesFromProps:An,createRenderState:Vn}),Qi=Symbol.for("motionComponentSymbol");function K(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ts(t,e,n){return m.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):K(n)&&(n.current=i))},[e])}const oe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),es="framerAppearId",wn="data-"+oe(es),Dn=m.createContext({});function ns(t,e,n,i,o){const{visualElement:r}=m.useContext(Vt),s=m.useContext(gn),a=m.useContext(Pt),l=m.useContext(Tt).reducedMotion,c=m.useRef(null);i=i||s.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,h=m.useContext(Dn);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&is(c.current,n,o,h);const f=m.useRef(!1);m.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const d=n[wn],p=m.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return mn(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),m.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),p.current=!1),u.enteringChildren=void 0)}),u}function is(t,e,n,i){const{layoutId:o,layout:r,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Mn(t.parent)),t.projection.setOptions({layoutId:o,layout:r,alwaysMeasureLayout:!!s||a&&K(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c})}function Mn(t){if(t)return t.options.allowProjection!==!1?t.projection:Mn(t.parent)}function wt(t,{forwardMotionProps:e=!1}={},n,i){n&&Li(n);const o=ne(t)?Ji:Zi;function r(a,l){let c;const u={...m.useContext(Tt),...a,layoutId:ss(a)},{isStatic:h}=u,f=Ii(a),d=o(a,h);if(!h&&Zt){os();const p=rs(u);c=p.MeasureLayout,f.visualElement=ns(t,d,u,i,p.ProjectionNode)}return k.jsxs(Vt.Provider,{value:f,children:[c&&f.visualElement?k.jsx(c,{visualElement:f.visualElement,...u}):null,Xi(t,a,ts(d,f.visualElement,l),d,h,e)]})}r.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=m.forwardRef(r);return s[Qi]=t,s}function ss({layoutId:t}){const e=m.useContext(qt).id;return e&&t!==void 0?e+"-"+t:t}function os(t,e){m.useContext(gn).strict}function rs(t){const{drag:e,layout:n}=J;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function as(t,e){if(typeof Proxy>"u")return wt;const n=new Map,i=(r,s)=>wt(r,s,t,e),o=(r,s)=>i(r,s);return new Proxy(o,{get:(r,s)=>s==="create"?i:(n.has(s)||n.set(s,wt(s,void 0,t,e)),n.get(s))})}function Rn({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ls({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function us(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Dt(t){return t===void 0||t===1}function Ft({scale:t,scaleX:e,scaleY:n}){return!Dt(t)||!Dt(e)||!Dt(n)}function W(t){return Ft(t)||Ln(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ln(t){return ge(t.x)||ge(t.y)}function ge(t){return t&&t!=="0%"}function yt(t,e,n){const i=t-n,o=e*i;return n+o}function ye(t,e,n,i,o){return o!==void 0&&(t=yt(t,o,i)),yt(t,n,i)+e}function Ot(t,e=0,n=1,i,o){t.min=ye(t.min,e,n,i,o),t.max=ye(t.max,e,n,i,o)}function En(t,{x:e,y:n}){Ot(t.x,e.translate,e.scale,e.originPoint),Ot(t.y,n.translate,n.scale,n.originPoint)}const ve=.999999999999,xe=1.0000000000001;function cs(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let r,s;for(let a=0;a<o;a++){r=n[a],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&X(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,En(t,s)),i&&W(r.latestValues)&&X(t,r.latestValues))}e.x<xe&&e.x>ve&&(e.x=1),e.y<xe&&e.y>ve&&(e.y=1)}function _(t,e){t.min=t.min+e,t.max=t.max+e}function Pe(t,e,n,i,o=.5){const r=S(t.min,t.max,o);Ot(t,e,n,r,i)}function X(t,e){Pe(t.x,e.x,e.scaleX,e.scale,e.originX),Pe(t.y,e.y,e.scaleY,e.scale,e.originY)}function bn(t,e){return Rn(us(t.getBoundingClientRect(),e))}function hs(t,e,n){const i=bn(t,n),{scroll:o}=e;return o&&(_(i.x,o.offset.x),_(i.y,o.offset.y)),i}const Te=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:Te(),y:Te()}),Ve=()=>({min:0,max:0}),V=()=>({x:Ve(),y:Ve()}),Ut={current:null},Bn={current:!1};function fs(){if(Bn.current=!0,!!Zt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ut.current=t.matches;t.addEventListener("change",e),e()}else Ut.current=!1}const ds=new WeakMap;function ms(t,e,n){for(const i in e){const o=e[i],r=n[i];if(D(o))t.addValue(i,o);else if(D(r))t.addValue(i,$(o,{owner:t}));else if(r!==o)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=t.getStaticValue(i);t.addValue(i,$(s!==void 0?s:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Se=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ps{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=_t.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,T.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ct(n),this.isVariantNode=vn(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&D(d)&&d.set(l[f])}}mount(e){this.current=e,ds.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Bn.current||fs(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ut.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Q.has(e);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&T.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in J){const n=J[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Se.length;i++){const o=Se[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const r="on"+o,s=e[r];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=ms(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=$(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ri(i)||ai(i))?i=parseFloat(i):!li(i)&&It.test(n)&&(i=ui(e,n)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const r=ie(this.props,n,this.presenceContext?.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!D(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ln),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Xt.render(this.render)}}class jn extends ps{constructor(){super(...arguments),this.KeyframeResolver=ci}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function In(t,{style:e,vars:n},i,o){const r=t.style;let s;for(s in e)r[s]=e[s];o?.applyProjectionStyles(r,i);for(s in n)r.setProperty(s,n[s])}function gs(t){return window.getComputedStyle(t)}class ys extends jn{constructor(){super(...arguments),this.type="html",this.renderInstance=In}readValueFromInstance(e,n){if(Q.has(n))return this.projection?.isProjecting?hi(n):fi(e,n);{const i=gs(e),o=(zt(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return bn(e,n)}build(e,n,i){te(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return se(e,n,i)}}const kn=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 vs(t,e,n,i){In(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(kn.has(o)?o:oe(o),e.attrs[o])}class xs extends jn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=V}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const i=di(n);return i&&i.default||0}return n=kn.has(n)?n:oe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return An(e,n,i)}build(e,n,i){Tn(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){vs(e,n,i,o)}mount(e){this.isSVGTag=Sn(e.tagName),super.mount(e)}}const Ps=(t,e)=>ne(t)?new xs(e):new ys(e,{allowProjection:t!==m.Fragment});function Z(t,e,n){const i=t.getProps();return ie(i,e,n!==void 0?n:i.custom,t)}const Nt=t=>Array.isArray(t);function Ts(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,$(n))}function Vs(t){return Nt(t)?t[t.length-1]||0:t}function Ss(t,e){const n=Z(t,e);let{transitionEnd:i={},transition:o={},...r}=n||{};r={...r,...i};for(const s in r){const a=Vs(r[s]);Ts(t,s,a)}}function Cs(t){return!!(D(t)&&t.add)}function Wt(t,e){const n=t.getValue("willChange");if(Cs(n))return n.add(e);if(!n&&mt.WillChange){const i=new mt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function Fn(t){return t.props[wn]}const As=t=>t!==null;function ws(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(As),r=e&&n!=="loop"&&e%2===1?0:o.length-1;return o[r]}const Ds={type:"spring",stiffness:500,damping:25,restSpeed:10},Ms=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Rs={type:"keyframes",duration:.8},Ls={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Es=(t,{keyframes:e})=>e.length>2?Rs:Q.has(t)?t.startsWith("scale")?Ms(e[1]):Ds:Ls;function bs({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:r,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const re=(t,e,n,i={},o,r)=>s=>{const a=Yt(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-ht(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:o};bs(a)||Object.assign(u,Es(t,u)),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ce(u),u.delay===0&&(h=!0)),(mt.instantAnimations||mt.skipAnimations)&&(h=!0,ce(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=ws(u.keyframes,a);if(f!==void 0){T.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new mi(u):new pi(u)};function Bs({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function On(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(r=i);const l=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),f=a[u];if(f===void 0||c&&Bs(c,u))continue;const d={delay:n,...Yt(r||{},u)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!d.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Fn(t);if(y){const g=window.MotionHandoffAnimation(y,u,T);g!==null&&(d.startTime=g,v=!0)}}Wt(t,u),h.start(re(u,h,f,t.shouldReduceMotion&&gi.has(u)?{type:!1}:d,t,v));const P=h.animation;P&&l.push(P)}return s&&Promise.all(l).then(()=>{T.update(()=>{s&&Ss(t,s)})}),l}function Un(t,e,n,i=0,o=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),s=t.size,a=(s-1)*i;return typeof n=="function"?n(r,s):o===1?r*i:a-r*i}function $t(t,e,n={}){const i=Z(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(On(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=o;return js(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[r,s]:[s,r];return l().then(()=>c())}else return Promise.all([r(),s(n.delay)])}function js(t,e,n=0,i=0,o=0,r=1,s){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push($t(l,e,{...s,delay:n+(typeof i=="function"?0:i)+Un(t.variantChildren,l,i,o,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Is(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(r=>$t(t,r,n));i=Promise.all(o)}else if(typeof e=="string")i=$t(t,e,n);else{const o=typeof e=="function"?Z(t,e,n.custom):e;i=Promise.all(On(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Nn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const ks=Qt.length;function Wn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Wn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ks;n++){const i=Qt[n],o=t.props[i];(ot(o)||o===!1)&&(e[i]=o)}return e}const Fs=[...Jt].reverse(),Os=Jt.length;function Us(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Is(t,n,i)))}function Ns(t){let e=Us(t),n=Ce(),i=!0;const o=l=>(c,u)=>{const h=Z(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...p}=h;c={...c,...p,...d}}return c};function r(l){e=l(t)}function s(l){const{props:c}=t,u=Wn(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let P=0;P<Os;P++){const y=Fs[P],g=n[y],x=c[y]!==void 0?c[y]:u[y],C=ot(x),E=y===l?g.isActive:null;E===!1&&(p=P);let M=x===u[y]&&x!==c[y]&&C;if(M&&i&&t.manuallyAnimateOnMount&&(M=!1),g.protectedKeys={...d},!g.isActive&&E===null||!x&&!g.prevProp||St(x)||typeof x=="boolean")continue;const A=Ws(g.prevProp,x);let I=A||y===l&&g.isActive&&!M&&C||P>p&&C,G=!1;const tt=Array.isArray(x)?x:[x];let O=tt.reduce(o(y),{});E===!1&&(O={});const{prevResolvedValues:ae={}}=g,ni={...ae,...O},le=w=>{I=!0,f.has(w)&&(G=!0,f.delete(w)),g.needsAnimating[w]=!0;const b=t.getValue(w);b&&(b.liveStyle=!1)};for(const w in ni){const b=O[w],U=ae[w];if(d.hasOwnProperty(w))continue;let z=!1;Nt(b)&&Nt(U)?z=!Nn(b,U):z=b!==U,z?b!=null?le(w):f.add(w):b!==void 0&&f.has(w)?le(w):g.protectedKeys[w]=!0}g.prevProp=x,g.prevResolvedValues=O,g.isActive&&(d={...d,...O}),i&&t.blockInitialAnimation&&(I=!1);const ue=M&&A;I&&(!ue||G)&&h.push(...tt.map(w=>{const b={type:y};if(typeof w=="string"&&i&&!ue&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,z=Z(U,w);if(U.enteringChildren&&z){const{delayChildren:ii}=z.transition||{};b.delay=Un(U.enteringChildren,t,ii)}}return{animation:w,options:b}}))}if(f.size){const P={};if(typeof c.initial!="boolean"){const y=Z(t,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(P.transition=y.transition)}f.forEach(y=>{const g=t.getBaseTarget(y),x=t.getValue(y);x&&(x.liveStyle=!0),P[y]=g??null}),h.push({animation:P})}let v=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,v?e(h):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Ce()}}}function Ws(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Nn(e,t):!1}function N(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ce(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}class F{constructor(e){this.isMounted=!1,this.node=e}update(){}}class $s extends F{constructor(e){super(e),e.animationState||(e.animationState=Ns(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();St(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Hs=0;class Gs extends F{constructor(){super(...arguments),this.id=Hs++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const zs={animation:{Feature:$s},exit:{Feature:Gs}};function at(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function lt(t){return{point:{x:t.pageX,y:t.pageY}}}const Ks=t=>e=>un(e)&&t(e,lt(e));function it(t,e,n,i){return at(t,e,Ks(n),i)}const $n=1e-4,_s=1-$n,Xs=1+$n,Hn=.01,Ys=0-Hn,qs=0+Hn;function R(t){return t.max-t.min}function Zs(t,e,n){return Math.abs(t-e)<=n}function Ae(t,e,n,i=.5){t.origin=i,t.originPoint=S(e.min,e.max,t.origin),t.scale=R(n)/R(e),t.translate=S(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_s&&t.scale<=Xs||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ys&&t.translate<=qs||isNaN(t.translate))&&(t.translate=0)}function st(t,e,n,i){Ae(t.x,e.x,n.x,i?i.originX:void 0),Ae(t.y,e.y,n.y,i?i.originY:void 0)}function we(t,e,n){t.min=n.min+e.min,t.max=t.min+R(e)}function Js(t,e,n){we(t.x,e.x,n.x),we(t.y,e.y,n.y)}function De(t,e,n){t.min=e.min-n.min,t.max=t.min+R(e)}function vt(t,e,n){De(t.x,e.x,n.x),De(t.y,e.y,n.y)}function B(t){return[t("x"),t("y")]}const Gn=({current:t})=>t?t.ownerDocument.defaultView:null,Me=(t,e)=>Math.abs(t-e);function Qs(t,e){const n=Me(t.x,e.x),i=Me(t.y,e.y);return Math.sqrt(n**2+i**2)}class zn{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Rt(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Qs(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:v}=f,{timestamp:P}=L;this.history.push({...v,timestamp:P});const{onStart:y,onMove:g}=this.handlers;d||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Mt(d,this.transformPagePoint),T.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Rt(f.type==="pointercancel"?this.lastMoveEventInfo:Mt(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,y),v&&v(f,y)},!un(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=o||window;const a=lt(e),l=Mt(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=L;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,Rt(l,this.history)),this.removeListeners=cn(it(this.contextWindow,"pointermove",this.handlePointerMove),it(this.contextWindow,"pointerup",this.handlePointerUp),it(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),H(this.updatePoint)}}function Mt(t,e){return e?{point:e(t.point)}:t}function Re(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rt({point:t},e){return{point:t,delta:Re(t,Kn(e)),offset:Re(t,to(e)),velocity:eo(e,.1)}}function to(t){return t[0]}function Kn(t){return t[t.length-1]}function eo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Kn(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>ht(e)));)n--;if(!i)return{x:0,y:0};const r=yi(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function no(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?S(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?S(n,t,i.max):Math.min(t,n)),t}function Le(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function io(t,{top:e,left:n,bottom:i,right:o}){return{x:Le(t.x,n,o),y:Le(t.y,e,i)}}function Ee(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function so(t,e){return{x:Ee(t.x,e.x),y:Ee(t.y,e.y)}}function oo(t,e){let n=.5;const i=R(t),o=R(e);return o>i?n=kt(e.min,e.max-i,t.min):i>o&&(n=kt(t.min,t.max-o,e.min)),hn(0,1,n)}function ro(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ht=.35;function ao(t=Ht){return t===!1?t=0:t===!0&&(t=Ht),{x:be(t,"left","right"),y:be(t,"top","bottom")}}function be(t,e,n){return{min:Be(t,e),max:Be(t,n)}}function Be(t,e){return typeof t=="number"?t:t[e]||0}const lo=new WeakMap;class uo{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=V(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lt(h).point)},s=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:v}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vi(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),B(y=>{let g=this.getAxisMotionValue(y).get()||0;if(pt.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const C=x.layout.layoutBox[y];C&&(g=R(C)*(parseFloat(g)/100))}}this.originPoint[y]=g}),v&&T.postRender(()=>v(h,f)),Wt(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:v,onDrag:P}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=f;if(p&&this.currentDirection===null){this.currentDirection=co(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),P&&P(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>B(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zn(e,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:Gn(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,o=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!o||!i)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&T.postRender(()=>a(i,o))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!ct(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=no(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;e&&K(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=io(i.layoutBox,e):this.constraints=!1,this.elastic=ao(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&B(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ro(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!K(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=hs(i,o.root,this.visualElement.getTransformPagePoint());let s=so(o.layout.layoutBox,r);if(n){const a=n(ls(s));this.hasMutatedConstraints=!!a,a&&(s=Rn(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=B(u=>{if(!ct(u,n,this.currentDirection))return;let h=l&&l[u]||{};s&&(h={min:0,max:0});const f=o?200:1e6,d=o?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Wt(this.visualElement,e),i.start(re(e,i,0,n,this.visualElement,!1))}stopAnimation(){B(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){B(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){B(n=>{const{drag:i}=this.getProps();if(!ct(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];r.set(e[n]-S(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!K(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};B(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=oo({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),B(s=>{if(!ct(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(S(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;lo.set(this.visualElement,this);const e=this.visualElement.current,n=it(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();K(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),T.read(i);const s=at(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(B(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:s=Ht,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ct(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function co(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class ho extends F{constructor(e){super(e),this.removeGroupControls=q,this.removeListeners=q,this.controls=new uo(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const je=t=>(e,n)=>{t&&T.postRender(()=>t(e,n))};class fo extends F{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(e){this.session=new zn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:je(e),onStart:je(n),onMove:i,onEnd:(r,s)=>{delete this.session,o&&T.postRender(()=>o(r,s))}}}mount(){this.removePointerDownListener=it(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const dt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ie(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const et={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(nt.test(t))t=parseFloat(t);else return t;const n=Ie(t,e.target.x),i=Ie(t,e.target.y);return`${n}% ${i}%`}},mo={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=It.parse(t);if(o.length>5)return i;const r=It.createTransformer(t),s=typeof o[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=a,o[1+s]/=l;const c=S(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),r(o)}};let Lt=!1;class po extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;ki(go),r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),Lt&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),dt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,Lt=!0,o||e.layoutDependency!==n||n===void 0||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||T.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Xt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;Lt=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function _n(t){const[e,n]=pn(),i=m.useContext(qt);return k.jsx(po,{...t,layoutGroup:i,switchLayoutGroup:m.useContext(Dn),isPresent:e,safeToRemove:n})}const go={borderRadius:{...et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomLeftRadius:et,borderBottomRightRadius:et,boxShadow:mo};function yo(t,e,n){const i=D(t)?t:$(t);return i.start(re("",i,e,n)),i.animation}const vo=(t,e)=>t.depth-e.depth;class xo{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){dn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vo),this.isDirty=!1,this.children.forEach(e)}}function Po(t,e){const n=_t.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&(H(i),t(r-e))};return T.setup(i,!0),()=>H(i)}const Xn=["TopLeft","TopRight","BottomLeft","BottomRight"],To=Xn.length,ke=t=>typeof t=="string"?parseFloat(t):t,Fe=t=>typeof t=="number"||nt.test(t);function Vo(t,e,n,i,o,r){o?(t.opacity=S(0,n.opacity??1,So(i)),t.opacityExit=S(e.opacity??1,0,Co(i))):r&&(t.opacity=S(e.opacity??1,n.opacity??1,i));for(let s=0;s<To;s++){const a=`border${Xn[s]}Radius`;let l=Oe(e,a),c=Oe(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Fe(l)===Fe(c)?(t[a]=Math.max(S(ke(l),ke(c),i),0),(pt.test(c)||pt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=S(e.rotate||0,n.rotate||0,i))}function Oe(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const So=Yn(0,.5,xi),Co=Yn(.5,.95,q);function Yn(t,e,n){return i=>i<t?0:i>e?1:n(kt(t,e,i))}function Ue(t,e){t.min=e.min,t.max=e.max}function j(t,e){Ue(t.x,e.x),Ue(t.y,e.y)}function Ne(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function We(t,e,n,i,o){return t-=e,t=yt(t,1/n,i),o!==void 0&&(t=yt(t,1/o,i)),t}function Ao(t,e=0,n=1,i=.5,o,r=t,s=t){if(pt.test(e)&&(e=parseFloat(e),e=S(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=S(r.min,r.max,i);t===r&&(a-=e),t.min=We(t.min,e,n,a,o),t.max=We(t.max,e,n,a,o)}function $e(t,e,[n,i,o],r,s){Ao(t,e[n],e[i],e[o],e.scale,r,s)}const wo=["x","scaleX","originX"],Do=["y","scaleY","originY"];function He(t,e,n,i){$e(t.x,e,wo,n?n.x:void 0,i?i.x:void 0),$e(t.y,e,Do,n?n.y:void 0,i?i.y:void 0)}function Ge(t){return t.translate===0&&t.scale===1}function qn(t){return Ge(t.x)&&Ge(t.y)}function ze(t,e){return t.min===e.min&&t.max===e.max}function Mo(t,e){return ze(t.x,e.x)&&ze(t.y,e.y)}function Ke(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zn(t,e){return Ke(t.x,e.x)&&Ke(t.y,e.y)}function _e(t){return R(t.x)/R(t.y)}function Xe(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ro{constructor(){this.members=[]}add(e){fn(this.members,e),e.scheduleRender()}remove(e){if(dn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Lo(t,e,n){let i="";const o=t.x.translate/e.x,r=t.y.translate/e.y,s=n?.z||0;if((o||r||s)&&(i=`translate3d(${o}px, ${r}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Et=["","X","Y","Z"],Eo=1e3;let bo=0;function bt(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Jn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Fn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",T,!(o||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Jn(i)}function Qn({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(s={},a=e?.()){this.id=bo++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Io),this.nodes.forEach(Uo),this.nodes.forEach(No),this.nodes.forEach(ko)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new xo)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ln),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Pi(s)&&!Ti(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;T.read(()=>{h=window.innerWidth}),t(s,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=Po(f,250),dt.hasAnimatedSinceResize&&(dt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ze)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||zo,{onLayoutAnimationStart:v,onLayoutAnimationComplete:P}=c.getProps(),y=!this.targetLayout||!Zn(this.targetLayout,d),g=!h&&f;if(this.options.layoutRoot||this.resumeFrom||g||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Yt(p,"layout"),onPlay:v,onComplete:P};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,g)}else h||Ze(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),H(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(Wo),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ye);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qe);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oo),this.nodes.forEach(Bo),this.nodes.forEach(jo)):this.nodes.forEach(qe),this.clearAllSnapshots();const a=_t.now();L.delta=hn(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,At.update.process(L),At.preRender.process(L),At.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fo),this.sharedNodes.forEach($o)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,T.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){T.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!R(this.snapshot.measuredBox.x)&&!R(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 s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=V(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!qn(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||W(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Ko(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return V();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_o))){const{scroll:c}=this.root;c&&(_(a.x,c.offset.x),_(a.y,c.offset.y))}return a}removeElementScroll(s){const a=V();if(j(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&j(a,s),_(a.x,u.offset.x),_(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=V();j(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&X(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),W(u.latestValues)&&X(l,u.latestValues)}return W(this.latestValues)&&X(l,this.latestValues),l}removeTransform(s){const a=V();j(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!W(c.latestValues))continue;Ft(c.latestValues)&&c.updateSnapshot();const u=V(),h=c.measurePageBox();j(u,h),He(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return W(this.latestValues)&&He(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=L.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Js(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):j(this.target,this.layout.layoutBox),En(this.target,this.targetDelta)):j(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ft(this.parent.latestValues)||Ln(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),vt(this.relativeTargetOrigin,a,l),j(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===L.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;j(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;cs(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=V());const{target:d}=s;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ne(this.prevProjectionDelta.x,this.projectionDelta.x),Ne(this.prevProjectionDelta.y,this.projectionDelta.y)),st(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Xe(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Y();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=V(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,v=d!==p,P=this.getStack(),y=!P||P.members.length<=1,g=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(Go));this.animationProgress=0;let x;this.mixTargetDelta=C=>{const E=C/1e3;Je(h.x,s.x,E),Je(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ho(this.relativeTarget,this.relativeTargetOrigin,f,E),x&&Mo(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=V()),j(x,this.relativeTarget)),v&&(this.animationValues=u,Vo(u,c,this.latestValues,E,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(H(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{dt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$(0)),this.currentAnimation=yo(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Eo),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ti(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||V();const h=R(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=R(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}j(a,l),X(a,u),st(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ro),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&bt("z",s,c,this.animationValues);for(let u=0;u<Et.length;u++)bt(`rotate${Et[u]}`,s,c,this.animationValues),bt(`skew${Et[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ft(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ft(a?.pointerEvents)||""),this.hasProjected&&!W(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Lo(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),s.transform=h;const{x:f,y:d}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in rt){if(u[p]===void 0)continue;const{correct:v,applyTo:P,isCSSVariable:y}=rt[p],g=h==="none"?u[p]:v(u[p],c);if(P){const x=P.length;for(let C=0;C<x;C++)s[P[C]]=g}else y?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=c===this?ft(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Ye),this.root.sharedNodes.clear()}}}function Bo(t){t.updateLayout()}function jo(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?B(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=R(h);h.min=n[u].min,h.max=h.min+f}):ti(o,e.layoutBox,n)&&B(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=R(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const s=Y();st(s,n,e.layoutBox);const a=Y();r?st(a,t.applyTransform(i,!0),e.measuredBox):st(a,n,e.layoutBox);const l=!qn(s);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=V();vt(d,e.layoutBox,h.layoutBox);const p=V();vt(p,n,f.layoutBox),Zn(d,p)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Io(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ko(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fo(t){t.clearSnapshot()}function Ye(t){t.clearMeasurements()}function qe(t){t.isLayoutDirty=!1}function Oo(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ze(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Uo(t){t.resolveTargetDelta()}function No(t){t.calcProjection()}function Wo(t){t.resetSkewAndRotation()}function $o(t){t.removeLeadSnapshot()}function Je(t,e,n){t.translate=S(e.translate,0,n),t.scale=S(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qe(t,e,n,i){t.min=S(e.min,n.min,i),t.max=S(e.max,n.max,i)}function Ho(t,e,n,i){Qe(t.x,e.x,n.x,i),Qe(t.y,e.y,n.y,i)}function Go(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zo={duration:.45,ease:[.4,0,.1,1]},tn=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),en=tn("applewebkit/")&&!tn("chrome/")?Math.round:q;function nn(t){t.min=en(t.min),t.max=en(t.max)}function Ko(t){nn(t.x),nn(t.y)}function ti(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zs(_e(e),_e(n),.2)}function _o(t){return t!==t.root&&t.scroll?.wasRoot}const Xo=Qn({attachResizeListener:(t,e)=>at(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bt={current:void 0},ei=Qn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Bt.current){const t=new Xo({});t.mount(window),t.setOptions({layoutScroll:!0}),Bt.current=t}return Bt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Yo={pan:{Feature:fo},drag:{Feature:ho,ProjectionNode:ei,MeasureLayout:_n}};function sn(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,r=i[o];r&&T.postRender(()=>r(e,lt(e)))}class qo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Vi(e,(n,i)=>(sn(this.node,i,"Start"),o=>sn(this.node,o,"End"))))}unmount(){}}class Zo extends F{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cn(at(this.node.current,"focus",()=>this.onFocus()),at(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function on(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),r=i[o];r&&T.postRender(()=>r(e,lt(e)))}class Jo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Si(e,(n,i)=>(on(this.node,i,"Start"),(o,{success:r})=>on(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Gt=new WeakMap,jt=new WeakMap,Qo=t=>{const e=Gt.get(t.target);e&&e(t)},tr=t=>{t.forEach(Qo)};function er({root:t,...e}){const n=t||document;jt.has(n)||jt.set(n,{});const i=jt.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(tr,{root:t,...e})),i[o]}function nr(t,e,n){const i=er(e);return Gt.set(t,n),i.observe(t),()=>{Gt.delete(t),i.unobserve(t)}}const ir={some:0,all:1};class sr extends F{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:r}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:ir[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return nr(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(or(e,n))&&this.startObserver()}unmount(){}}function or({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const rr={inView:{Feature:sr},tap:{Feature:Jo},focus:{Feature:Zo},hover:{Feature:qo}},ar={layout:{ProjectionNode:ei,MeasureLayout:_n}},lr={...zs,...rr,...Yo,...ar},mr=as(lr,Ps);function pr(t){const e=xt(()=>$(t)),{isStatic:n}=m.useContext(Tt);if(n){const[,i]=m.useState(t);m.useEffect(()=>e.on("change",i),[])}return e}export{fr as A,mr as m,pr as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n}from"./react-B42e77sA.js";const x=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,c,o)=>o?o.toUpperCase():c.toLowerCase()),p=a=>{const t=u(a);return t.charAt(0).toUpperCase()+t.slice(1)},m=(...a)=>a.filter((t,c,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===c).join(" ").trim(),g=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const $=n.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...i},h)=>n.createElement("svg",{ref:h,...v,width:t,height:t,stroke:a,strokeWidth:o?Number(c)*24/Number(t):c,className:m("lucide",d),...!s&&!g(i)&&{"aria-hidden":"true"},...i},[...y.map(([l,k])=>n.createElement(l,k)),...Array.isArray(s)?s:[s]]));const e=(a,t)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement($,{ref:s,iconNode:t,className:m(`lucide-${x(p(a))}`,`lucide-${a}`,o),...d}));return c.displayName=p(a),c};const w=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],q1=e("archive",w);const f=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],L1=e("arrow-down",f);const N=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],H1=e("arrow-up",N);const C=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],V1=e("brain-circuit",C);const b=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],E1=e("bug",b);const j=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],P1=e("check",j);const A=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],S1=e("chevron-down",A);const z=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Z1=e("chevron-right",z);const q=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],B1=e("chevron-up",q);const L=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],D1=e("chevrons-up-down",L);const H=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],R1=e("circle-alert",H);const V=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],I1=e("circle-check",V);const E=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],U1=e("circle-dot",E);const P=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],F1=e("circle",P);const S=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],O1=e("cloud",S);const Z=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],W1=e("database",Z);const B=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],K1=e("ellipsis-vertical",B);const D=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],T1=e("ellipsis",D);const R=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],G1=e("file-code",R);const I=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],J1=e("file-text",I);const U=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],Q1=e("fold-vertical",U);const F=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],X1=e("folder-open",F);const O=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y1=e("folder",O);const W=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ee=e("globe",W);const K=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],te=e("image",K);const T=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],ae=e("link-2",T);const G=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],ce=e("link",G);const J=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["path",{d:"M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"ms4nik"}]],oe=e("list-video",J);const Q=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],se=e("loader-circle",Q);const X=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ne=e("menu",X);const Y=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],re=e("mic",Y);const e1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],de=e("moon",e1);const t1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ie=e("panel-left",t1);const a1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],ye=e("panel-right",a1);const c1=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],he=e("paperclip",c1);const o1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],le=e("plus",o1);const s1=[["path",{d:"M5.42 9.42 8 12",key:"12pkuq"}],["circle",{cx:"4",cy:"8",r:"2",key:"107mxr"}],["path",{d:"m14 6-8.58 8.58",key:"gvzu5l"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"M10.8 14.8 14 18",key:"ax7m9r"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]],ke=e("scissors-line-dashed",s1);const n1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],pe=e("scissors",n1);const r1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_e=e("search",r1);const d1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],me=e("settings",d1);const i1=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Me=e("square-check-big",i1);const y1=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],xe=e("square-pen",y1);const h1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],ue=e("square-slash",h1);const l1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ge=e("sun",l1);const k1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ve=e("triangle-alert",k1);const p1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],$e=e("wrench",p1);const _1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],we=e("x",_1);const m1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,c,o)=>o?o.toUpperCase():c.toLowerCase()),_=a=>{const t=M1(a);return t.charAt(0).toUpperCase()+t.slice(1)},M=(...a)=>a.filter((t,c,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===c).join(" ").trim(),x1=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var u1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g1=n.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...i},h)=>n.createElement("svg",{ref:h,...u1,width:t,height:t,stroke:a,strokeWidth:o?Number(c)*24/Number(t):c,className:M("lucide",d),...!s&&!x1(i)&&{"aria-hidden":"true"},...i},[...y.map(([l,k])=>n.createElement(l,k)),...Array.isArray(s)?s:[s]]));const r=(a,t)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(g1,{ref:s,iconNode:t,className:M(`lucide-${m1(_(a))}`,`lucide-${a}`,o),...d}));return c.displayName=_(a),c};const v1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fe=r("check",v1);const $1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ne=r("copy",$1);const w1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ce=r("download",w1);const f1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],be=r("loader-circle",f1);const N1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],je=r("maximize-2",N1);const C1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ae=r("rotate-ccw",C1);const b1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ze=r("x",b1);const j1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],qe=r("zoom-in",j1);const A1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Le=r("zoom-out",A1);export{D1 as $,L1 as A,E1 as B,fe as C,Ce as D,T1 as E,X1 as F,pe as G,oe as H,ke as I,Q1 as J,U1 as K,be as L,je as M,V1 as N,xe as O,ie as P,_e as Q,Ae as R,ge as S,ve as T,O1 as U,ce as V,$e as W,ze as X,te as Y,qe as Z,ee as _,Le as a,B1 as a0,ne as a1,Ne as b,Z1 as c,P1 as d,F1 as e,de as f,le as g,me as h,ue as i,he as j,re as k,we as l,Y1 as m,G1 as n,K1 as o,S1 as p,I1 as q,Me as r,J1 as s,W1 as t,ae as u,ye as v,H1 as w,se as x,R1 as y,q1 as z};
|
|
1
|
+
import{r as n}from"./react-CTCEofFK.js";const x=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,c,o)=>o?o.toUpperCase():c.toLowerCase()),p=a=>{const t=u(a);return t.charAt(0).toUpperCase()+t.slice(1)},m=(...a)=>a.filter((t,c,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===c).join(" ").trim(),g=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const $=n.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...i},h)=>n.createElement("svg",{ref:h,...v,width:t,height:t,stroke:a,strokeWidth:o?Number(c)*24/Number(t):c,className:m("lucide",d),...!s&&!g(i)&&{"aria-hidden":"true"},...i},[...y.map(([l,k])=>n.createElement(l,k)),...Array.isArray(s)?s:[s]]));const e=(a,t)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement($,{ref:s,iconNode:t,className:m(`lucide-${x(p(a))}`,`lucide-${a}`,o),...d}));return c.displayName=p(a),c};const w=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],q1=e("archive",w);const f=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],L1=e("arrow-down",f);const N=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],H1=e("arrow-up",N);const C=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],V1=e("brain-circuit",C);const b=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],E1=e("bug",b);const j=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],P1=e("check",j);const A=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],S1=e("chevron-down",A);const z=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Z1=e("chevron-right",z);const q=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],B1=e("chevron-up",q);const L=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],D1=e("chevrons-up-down",L);const H=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],R1=e("circle-alert",H);const V=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],I1=e("circle-check",V);const E=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],U1=e("circle-dot",E);const P=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],F1=e("circle",P);const S=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],O1=e("cloud",S);const Z=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],W1=e("database",Z);const B=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],K1=e("ellipsis-vertical",B);const D=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],T1=e("ellipsis",D);const R=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],G1=e("file-code",R);const I=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],J1=e("file-text",I);const U=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],Q1=e("fold-vertical",U);const F=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],X1=e("folder-open",F);const O=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y1=e("folder",O);const W=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ee=e("globe",W);const K=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],te=e("image",K);const T=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],ae=e("link-2",T);const G=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],ce=e("link",G);const J=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["path",{d:"M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"ms4nik"}]],oe=e("list-video",J);const Q=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],se=e("loader-circle",Q);const X=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ne=e("menu",X);const Y=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],re=e("mic",Y);const e1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],de=e("moon",e1);const t1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ie=e("panel-left",t1);const a1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],ye=e("panel-right",a1);const c1=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],he=e("paperclip",c1);const o1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],le=e("plus",o1);const s1=[["path",{d:"M5.42 9.42 8 12",key:"12pkuq"}],["circle",{cx:"4",cy:"8",r:"2",key:"107mxr"}],["path",{d:"m14 6-8.58 8.58",key:"gvzu5l"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"M10.8 14.8 14 18",key:"ax7m9r"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]],ke=e("scissors-line-dashed",s1);const n1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],pe=e("scissors",n1);const r1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_e=e("search",r1);const d1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],me=e("settings",d1);const i1=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Me=e("square-check-big",i1);const y1=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],xe=e("square-pen",y1);const h1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],ue=e("square-slash",h1);const l1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ge=e("sun",l1);const k1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ve=e("triangle-alert",k1);const p1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],$e=e("wrench",p1);const _1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],we=e("x",_1);const m1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,c,o)=>o?o.toUpperCase():c.toLowerCase()),_=a=>{const t=M1(a);return t.charAt(0).toUpperCase()+t.slice(1)},M=(...a)=>a.filter((t,c,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===c).join(" ").trim(),x1=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var u1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g1=n.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...i},h)=>n.createElement("svg",{ref:h,...u1,width:t,height:t,stroke:a,strokeWidth:o?Number(c)*24/Number(t):c,className:M("lucide",d),...!s&&!x1(i)&&{"aria-hidden":"true"},...i},[...y.map(([l,k])=>n.createElement(l,k)),...Array.isArray(s)?s:[s]]));const r=(a,t)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(g1,{ref:s,iconNode:t,className:M(`lucide-${m1(_(a))}`,`lucide-${a}`,o),...d}));return c.displayName=_(a),c};const v1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fe=r("check",v1);const $1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ne=r("copy",$1);const w1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ce=r("download",w1);const f1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],be=r("loader-circle",f1);const N1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],je=r("maximize-2",N1);const C1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ae=r("rotate-ccw",C1);const b1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ze=r("x",b1);const j1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],qe=r("zoom-in",j1);const A1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Le=r("zoom-out",A1);export{D1 as $,L1 as A,E1 as B,fe as C,Ce as D,T1 as E,X1 as F,pe as G,oe as H,ke as I,Q1 as J,U1 as K,be as L,je as M,V1 as N,xe as O,ie as P,_e as Q,Ae as R,ge as S,ve as T,O1 as U,ce as V,$e as W,ze as X,te as Y,qe as Z,ee as _,Le as a,B1 as a0,ne as a1,Ne as b,Z1 as c,P1 as d,F1 as e,de as f,le as g,me as h,ue as i,he as j,re as k,we as l,Y1 as m,G1 as n,K1 as o,S1 as p,I1 as q,Me as r,J1 as s,W1 as t,ae as u,ye as v,H1 as w,se as x,R1 as y,q1 as z};
|