@townco/gui-template 0.1.90 → 0.1.93
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-C76JZERC.js +1 -0
- package/dist/assets/{framer-motion-DBbHpXpX.js → framer-motion-C-FfYRqi.js} +2 -2
- package/dist/assets/{icons-1FDIcXQd.js → icons-Hw9CPBRX.js} +1 -1
- package/dist/assets/{index-rBLGThrv.js → index-BtK_kE58.js} +1 -1
- package/dist/assets/{markdown-C0NpIQMG.js → markdown-D44wP98Y.js} +13 -13
- package/dist/assets/{radix-BaMamYBO.js → radix-CCc9gvVp.js} +2 -2
- package/dist/assets/{react-DGEdbr_j.js → react-CiYvVQki.js} +6 -6
- package/dist/assets/{vendor-CfDyrXXV.js → vendor-D6ejVflZ.js} +279 -279
- package/dist/index.html +8 -8
- package/package.json +4 -4
- package/dist/assets/acp-sdk-CS-scXJG.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as h,a as p,s as e,o,r as a,u as t,b as l,l as n,c as s,d as m}from"./vendor-D6ejVflZ.js";const Qe=1,x=h(),C=p(),w=e(),q=o({_meta:a(t()).optional(),content:e(),path:e(),sessionId:e()}),f=o({_meta:a(t()).optional(),limit:p().optional().nullable(),line:p().optional().nullable(),path:e(),sessionId:e()}),M=o({_meta:a(t()).optional(),sessionId:e(),terminalId:e()}),k=o({_meta:a(t()).optional(),sessionId:e(),terminalId:e()}),v=o({_meta:a(t()).optional(),sessionId:e(),terminalId:e()}),O=o({_meta:a(t()).optional(),sessionId:e(),terminalId:e()}),F=a(t()),U=l([n("assistant"),n("user")]),z=o({_meta:a(t()).optional(),mimeType:e().optional().nullable(),text:e(),uri:e()}),N=o({_meta:a(t()).optional(),blob:e(),mimeType:e().optional().nullable(),uri:e()}),b=l([n("read"),n("edit"),n("delete"),n("move"),n("search"),n("execute"),n("think"),n("fetch"),n("switch_mode"),n("other")]),_=l([n("pending"),n("in_progress"),n("completed"),n("failed")]),S=o({code:p(),data:a(t()).optional(),message:e()}),E=o({_meta:a(t()).optional()}),P=o({_meta:t().optional()}),V=o({_meta:a(t()).optional(),stopReason:l([n("end_turn"),n("max_tokens"),n("max_turn_requests"),n("refusal"),n("cancelled")])}),j=o({_meta:a(t()).optional()}),L=a(t()),B=e(),H=a(t()),K=o({hint:e()}),A=h(),D=p(),G=e(),J=o({_meta:a(t()).optional(),methodId:e()}),Q=o({_meta:a(t()).optional(),modeId:e(),sessionId:e()}),W=o({_meta:a(t()).optional(),modelId:e(),sessionId:e()}),X=a(t()),d=o({_meta:a(t()).optional(),name:e(),value:e()}),i=o({_meta:a(t()).optional(),audience:s(U).optional().nullable(),lastModified:e().optional().nullable(),priority:p().optional().nullable()}),c=l([z,N]),Y=o({_meta:a(t()).optional()}),Z=o({_meta:a(t()).optional(),content:e()}),$=o({_meta:a(t()).optional(),outcome:l([o({outcome:n("cancelled")}),o({optionId:e(),outcome:n("selected")})])}),ee=o({_meta:a(t()).optional(),terminalId:e()}),oe=o({_meta:a(t()).optional()}),te=o({_meta:a(t()).optional(),exitCode:p().optional().nullable(),signal:e().optional().nullable()}),ae=o({_meta:a(t()).optional()}),ne=a(t()),le=o({_meta:a(t()).optional(),sessionId:e()}),ie=a(t()),se=o({_meta:a(t()).optional(),kind:l([n("allow_once"),n("allow_always"),n("reject_once"),n("reject_always")]),name:e(),optionId:e()}),u=l([o({content:l([o({_meta:a(t()).optional(),annotations:i.optional().nullable(),text:e(),type:n("text")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("image"),uri:e().optional().nullable()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("audio")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),description:e().optional().nullable(),mimeType:e().optional().nullable(),name:e(),size:p().optional().nullable(),title:e().optional().nullable(),type:n("resource_link"),uri:e()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),resource:c,type:n("resource")})]),type:n("content")}),o({_meta:a(t()).optional(),newText:e(),oldText:e().optional().nullable(),path:e(),type:n("diff")}),o({terminalId:e(),type:n("terminal")})]),r=o({_meta:a(t()).optional(),line:p().optional().nullable(),path:e()}),y=o({_meta:a(t()).optional(),name:e(),value:e()}),R=o({name:e(),title:e().optional().nullable(),version:e()}),pe=o({_meta:a(t()).optional(),description:e().optional().nullable(),id:e(),name:e()}),me=o({_meta:a(t()).optional(),http:m().optional(),sse:m().optional()}),ce=o({_meta:a(t()).optional(),audio:m().optional(),embeddedContext:m().optional(),image:m().optional()}),ue=o({_meta:a(t()).optional(),description:e().optional().nullable(),modelId:e(),name:e()}),re=o({_meta:a(t()).optional(),description:e().optional().nullable(),id:B,name:e()}),T=o({_meta:a(t()).optional(),availableModels:s(ue),currentModelId:e()}),I=o({_meta:a(t()).optional(),availableModes:s(re),currentModeId:e()}),de=o({_meta:a(t()).optional(),content:e(),priority:l([n("high"),n("medium"),n("low")]),status:l([n("pending"),n("in_progress"),n("completed")])}),he=K,be=o({_meta:a(t()).optional(),readTextFile:m().optional(),writeTextFile:m().optional()}),_e=o({args:s(e()),command:e(),env:s(y),name:e()}),g=l([o({headers:s(d),name:e(),type:n("http"),url:e()}),o({headers:s(d),name:e(),type:n("sse"),url:e()}),_e]),Se=l([o({_meta:a(t()).optional(),annotations:i.optional().nullable(),text:e(),type:n("text")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("image"),uri:e().optional().nullable()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("audio")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),description:e().optional().nullable(),mimeType:e().optional().nullable(),name:e(),size:p().optional().nullable(),title:e().optional().nullable(),type:n("resource_link"),uri:e()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),resource:c,type:n("resource")})]),ye=o({_meta:a(t()).optional(),exitCode:p().optional().nullable(),signal:e().optional().nullable()}),Re=l([le,ie]),Te=o({_meta:a(t()).optional(),options:s(se),sessionId:e(),toolCall:o({_meta:a(t()).optional(),content:s(u).optional().nullable(),kind:b.optional().nullable(),locations:s(r).optional().nullable(),rawInput:a(t()).optional(),rawOutput:a(t()).optional(),status:_.optional().nullable(),title:e().optional().nullable(),toolCallId:e()})}),Ie=o({_meta:a(t()).optional(),args:s(e()).optional(),command:e(),cwd:e().optional().nullable(),env:s(y).optional(),outputByteLimit:p().optional().nullable(),sessionId:e()}),ge=o({_meta:a(t()).optional(),models:T.optional().nullable(),modes:I.optional().nullable(),sessionId:e()}),xe=o({_meta:a(t()).optional(),models:T.optional().nullable(),modes:I.optional().nullable()}),Ce=o({method:e(),params:Re.optional().nullable()}),we=o({_meta:a(t()).optional(),cwd:e(),mcpServers:s(g)}),qe=o({_meta:a(t()).optional(),cwd:e(),mcpServers:s(g),sessionId:e()}),fe=o({_meta:a(t()).optional(),prompt:s(Se),sessionId:e()}),Me=o({_meta:a(t()).optional(),exitStatus:ye.optional().nullable(),output:e(),truncated:m()}),ke=l([q,f,Te,Ie,M,k,v,O,F]),ve=o({_meta:a(t()).optional(),loadSession:m().optional(),mcpCapabilities:me.optional(),promptCapabilities:ce.optional()}),Oe=o({_meta:a(t()).optional(),description:e(),input:he.optional().nullable(),name:e()}),Fe=o({_meta:a(t()).optional(),fs:be.optional(),terminal:m().optional()}),Ue=o({id:l([x,C,w]),method:e(),params:ke.optional().nullable()}),ze=o({_meta:a(t()).optional(),agentCapabilities:ve.optional(),agentInfo:R.optional().nullable(),authMethods:s(pe).optional(),protocolVersion:p()}),Ne=o({_meta:a(t()).optional(),sessionId:e(),update:l([o({_meta:a(t()).optional(),content:l([o({_meta:a(t()).optional(),annotations:i.optional().nullable(),text:e(),type:n("text")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("image"),uri:e().optional().nullable()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("audio")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),description:e().optional().nullable(),mimeType:e().optional().nullable(),name:e(),size:p().optional().nullable(),title:e().optional().nullable(),type:n("resource_link"),uri:e()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),resource:c,type:n("resource")})]),sessionUpdate:n("user_message_chunk")}),o({_meta:a(t()).optional(),content:l([o({_meta:a(t()).optional(),annotations:i.optional().nullable(),text:e(),type:n("text")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("image"),uri:e().optional().nullable()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("audio")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),description:e().optional().nullable(),mimeType:e().optional().nullable(),name:e(),size:p().optional().nullable(),title:e().optional().nullable(),type:n("resource_link"),uri:e()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),resource:c,type:n("resource")})]),sessionUpdate:n("agent_message_chunk")}),o({_meta:a(t()).optional(),content:l([o({_meta:a(t()).optional(),annotations:i.optional().nullable(),text:e(),type:n("text")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("image"),uri:e().optional().nullable()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),data:e(),mimeType:e(),type:n("audio")}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),description:e().optional().nullable(),mimeType:e().optional().nullable(),name:e(),size:p().optional().nullable(),title:e().optional().nullable(),type:n("resource_link"),uri:e()}),o({_meta:a(t()).optional(),annotations:i.optional().nullable(),resource:c,type:n("resource")})]),sessionUpdate:n("agent_thought_chunk")}),o({_meta:a(t()).optional(),content:s(u).optional(),kind:l([n("read"),n("edit"),n("delete"),n("move"),n("search"),n("execute"),n("think"),n("fetch"),n("switch_mode"),n("other")]).optional(),locations:s(r).optional(),rawInput:a(t()).optional(),rawOutput:a(t()).optional(),sessionUpdate:n("tool_call"),status:l([n("pending"),n("in_progress"),n("completed"),n("failed")]).optional(),title:e(),toolCallId:e()}),o({_meta:a(t()).optional(),content:s(u).optional().nullable(),kind:b.optional().nullable(),locations:s(r).optional().nullable(),rawInput:a(t()).optional(),rawOutput:a(t()).optional(),sessionUpdate:n("tool_call_update"),status:_.optional().nullable(),title:e().optional().nullable(),toolCallId:e()}),o({_meta:a(t()).optional(),entries:s(de),sessionUpdate:n("plan")}),o({_meta:a(t()).optional(),availableCommands:s(Oe),sessionUpdate:n("available_commands_update")}),o({_meta:a(t()).optional(),currentModeId:e(),sessionUpdate:n("current_mode_update")})])}),Ee=o({_meta:a(t()).optional(),clientCapabilities:Fe.optional(),clientInfo:R.optional().nullable(),protocolVersion:p()}),Pe=l([Y,Z,$,ee,Me,oe,te,ae,ne]),Ve=l([Ne,H]),je=l([Ee,J,we,qe,Q,fe,W,X]),Le=o({method:e(),params:Ve.optional().nullable()}),Be=l([ze,E,ge,xe,P,V,j,L]),He=o({id:l([A,D,G]),method:e(),params:je.optional().nullable()}),Ke=l([o({result:Pe}),o({error:S})]),Ae=l([He,Ke,Ce]),De=l([o({result:Be}),o({error:S})]),Ge=l([Ue,De,Le]);l([Ge,Ae]);export{Qe as P,Ge 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-CiYvVQki.js";import{i as si,p as nt,e as bt,m as S,t as Q,f as Ht,g as on,h as rn,j as an,k as D,q as Z,K as oi,v as Gt,w as T,x as $,y as ri,z as ai,A as li,B as ui,S as ln,C as zt,D as ci,E as hi,F as fi,G as di,M as dt,H as _t,I as ct,J as ue,L as mi,N as pi,O as gi,P as un,Q as L,R as cn,T as yi,U as Bt,V as hn,W as vi,X as mt,Y,Z as fn,_ as dn,$ as xi,a0 as Pi,a1 as Ti,a2 as Vt,a3 as Vi,a4 as Si}from"./vendor-D6ejVflZ.js";const Kt=m.createContext({});function Xt(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const Yt=typeof window<"u",mn=Yt?m.useLayoutEffect:m.useEffect,vt=m.createContext(null),qt=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ce(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=ce(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():ce(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(qt),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-DGEdbr_j.js";import{i as si,p as nt,c as bt,m
|
|
|
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(vt.Provider,{value:f,children:t})};function Ri(){return new Map}function pn(t=!0){const e=m.useContext(vt);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 lt=t=>t.key||"";function he(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const cr=({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(()=>he(t),[t]),f=s&&!c?[]:h.map(lt),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=lt(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],H=lt(I);f.includes(H)||(M.splice(A,0,I),C.push(I))}return r==="wait"&&C.length&&(M=C),x(he(M)),y(h),null}const{forceRender:E}=m.useContext(_t);return k.jsx(k.Fragment,{children:g.map(M=>{const A=lt(M),I=s&&!c?!1:h===g||f.includes(A),H=()=>{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:H,anchorX:a,children:M},A)})})},gn=m.createContext({strict:!1}),fe={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 fe)J[t]={isEnabled:e=>fe[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 pt(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=>!pt(t);function bi(t){typeof t=="function"&&(yn=e=>e.startsWith("on")?!pt(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&&pt(o)||!e&&!pt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}const xt=m.createContext({});function Pt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ot(t){return typeof t=="string"||Array.isArray(t)}const Zt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jt=["initial",...Zt];function Tt(t){return Pt(t.animate)||Jt.some(e=>ot(t[e]))}function vn(t){return!!(Tt(t)||t.variants)}function ji(t,e){if(Tt(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(xt));return m.useMemo(()=>({initial:e,animate:n}),[de(e),de(n)])}function de(t){return Array.isArray(t)?t.join(" "):t}function me(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=me(t,e.target.x),i=me(t,e.target.y);return`${n}% ${i}%`}},ki={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=bt.parse(t);if(o.length>5)return i;const r=bt.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)}},jt={borderRadius:{...et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomLeftRadius:et,borderBottomRightRadius:et,boxShadow:ki};function xn(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!jt[t]||t==="opacity")}const Fi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oi=Ht.length;function Ui(t,e,n){let i="",o=!0;for(let r=0;r<Oi;r++){const s=Ht[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=on(a,rn[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 Qt(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(an(l)){o[l]=c;continue}else{const u=on(c,rn[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 te=()=>({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=te();return Qt(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(Qt(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=()=>({...te(),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 ee(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=(ee(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 ne(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 ht(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]=ht(r[f]);let{initial:s,animate:a}=t;const l=Tt(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"&&!Pt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=ne(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(xt),o=m.useContext(vt),r=()=>Yi(t,e,i,o);return n?r():Xt(r)};function ie(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:ie,createRenderState:te});function An(t,e,n){const i=ie(t,e,n);for(const o in t)if(D(t[o])||D(e[o])){const r=Ht.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 z(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):z(n)&&(n.current=i))},[e])}const se=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),es="framerAppearId",wn="data-"+se(es),Dn=m.createContext({});function ns(t,e,n,i,o){const{visualElement:r}=m.useContext(xt),s=m.useContext(gn),a=m.useContext(vt),l=m.useContext(qt).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&&z(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 St(t,{forwardMotionProps:e=!1}={},n,i){n&&Li(n);const o=ee(t)?Ji:Zi;function r(a,l){let c;const u={...m.useContext(qt),...a,layoutId:ss(a)},{isStatic:h}=u,f=Ii(a),d=o(a,h);if(!h&&Yt){os();const p=rs(u);c=p.MeasureLayout,f.visualElement=ns(t,d,u,i,p.ProjectionNode)}return k.jsxs(xt.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(_t).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 St;const n=new Map,i=(r,s)=>St(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,St(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 Ct(t){return t===void 0||t===1}function It({scale:t,scaleX:e,scaleY:n}){return!Ct(t)||!Ct(e)||!Ct(n)}function W(t){return It(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 gt(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=gt(t,o,i)),gt(t,n,i)+e}function kt(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}){kt(t.x,e.translate,e.scale,e.originPoint),kt(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&&_(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)&&_(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);kt(t,e,n,r,i)}function _(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}),X=()=>({x:Te(),y:Te()}),Ve=()=>({min:0,max:0}),V=()=>({x:Ve(),y:Ve()}),Ft={current:null},Bn={current:!1};function fs(){if(Bn.current=!0,!!Yt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ft.current=t.matches;t.addEventListener("change",e),e()}else Ft.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,Z(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,Z(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=Gt.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=Tt(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:Ft.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$(this.notifyUpdate),$(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=Z(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)&&bt.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=ne(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(){zt.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=(an(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){Qt(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ie(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:se(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:se(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)=>ee(t)?new xs(e):new ys(e,{allowProjection:t!==m.Fragment});function q(t,e,n){const i=t.getProps();return ne(i,e,n!==void 0?n:i.custom,t)}const Ot=t=>Array.isArray(t);function Ts(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Z(n))}function Vs(t){return Ot(t)?t[t.length-1]||0:t}function Ss(t,e){const n=q(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 Ut(t,e){const n=t.getValue("willChange");if(Cs(n))return n.add(e);if(!n&&dt.WillChange){const i=new dt.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 oe=(t,e,n,i={},o,r)=>s=>{const a=Kt(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-ct(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=ct(u.duration)),u.repeatDelay&&(u.repeatDelay=ct(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ue(u),u.delay===0&&(h=!0)),(dt.instantAnimations||dt.skipAnimations)&&(h=!0,ue(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,...Kt(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)}}Ut(t,u),h.start(oe(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 Nt(t,e,n={}){const i=q(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(Nt(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=>Nt(t,r,n));i=Promise.all(o)}else if(typeof e=="string")i=Nt(t,e,n);else{const o=typeof e=="function"?q(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=Jt.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=Jt[n],o=t.props[i];(ot(o)||o===!1)&&(e[i]=o)}return e}const Fs=[...Zt].reverse(),Os=Zt.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=q(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||Pt(x)||typeof x=="boolean")continue;const A=Ws(g.prevProp,x);let I=A||y===l&&g.isActive&&!M&&C||P>p&&C,H=!1;const tt=Array.isArray(x)?x:[x];let O=tt.reduce(o(y),{});E===!1&&(O={});const{prevResolvedValues:re={}}=g,ni={...re,...O},ae=w=>{I=!0,f.has(w)&&(H=!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=re[w];if(d.hasOwnProperty(w))continue;let G=!1;Ot(b)&&Ot(U)?G=!Nn(b,U):G=b!==U,G?b!=null?ae(w):f.add(w):b!==void 0&&f.has(w)?ae(w):g.protectedKeys[w]=!0}g.prevProp=x,g.prevResolvedValues=O,g.isActive&&(d={...d,...O}),i&&t.blockInitialAnimation&&(I=!1);const le=M&&A;I&&(!le||H)&&h.push(...tt.map(w=>{const b={type:y};if(typeof w=="string"&&i&&!le&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,G=q(U,w);if(U.enteringChildren&&G){const{delayChildren:ii}=G.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=q(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();Pt(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 rt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function at(t){return{point:{x:t.pageX,y:t.pageY}}}const Ks=t=>e=>un(e)&&t(e,at(e));function it(t,e,n,i){return rt(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 yt(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=wt(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=At(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=wt(f.type==="pointercancel"?this.lastMoveEventInfo:At(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=at(e),l=At(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=L;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,wt(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(),$(this.updatePoint)}}function At(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 wt({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>ct(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=Bt(e.min,e.max-i,t.min):i>o&&(n=Bt(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 Wt=.35;function ao(t=Wt){return t===!1?t=0:t===!0&&(t=Wt),{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(at(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(mt.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)),Ut(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||!ut(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&&z(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||!z(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(!ut(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 Ut(this.visualElement,e),i.start(oe(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(!ut(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(!z(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(!ut(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();z(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=rt(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=Wt,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ut(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=Y,this.removeListeners=Y,this.controls=new uo(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}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=Y}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 ft={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Dt=!1;class mo extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),Dt&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ft.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,Dt=!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(),zt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;Dt=!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(_t);return k.jsx(mo,{...t,layoutGroup:i,switchLayoutGroup:m.useContext(Dn),isPresent:e,safeToRemove:n})}function po(t,e,n){const i=D(t)?t:Z(t);return i.start(oe("",i,e,n)),i.animation}const go=(t,e)=>t.depth-e.depth;class yo{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(go),this.isDirty=!1,this.children.forEach(e)}}function vo(t,e){const n=Gt.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&($(i),t(r-e))};return T.setup(i,!0),()=>$(i)}const Xn=["TopLeft","TopRight","BottomLeft","BottomRight"],xo=Xn.length,Ie=t=>typeof t=="string"?parseFloat(t):t,ke=t=>typeof t=="number"||nt.test(t);function Po(t,e,n,i,o,r){o?(t.opacity=S(0,n.opacity??1,To(i)),t.opacityExit=S(e.opacity??1,0,Vo(i))):r&&(t.opacity=S(e.opacity??1,n.opacity??1,i));for(let s=0;s<xo;s++){const a=`border${Xn[s]}Radius`;let l=Fe(e,a),c=Fe(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ke(l)===ke(c)?(t[a]=Math.max(S(Ie(l),Ie(c),i),0),(mt.test(c)||mt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=S(e.rotate||0,n.rotate||0,i))}function Fe(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const To=Yn(0,.5,xi),Vo=Yn(.5,.95,Y);function Yn(t,e,n){return i=>i<t?0:i>e?1:n(Bt(t,e,i))}function Oe(t,e){t.min=e.min,t.max=e.max}function j(t,e){Oe(t.x,e.x),Oe(t.y,e.y)}function Ue(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ne(t,e,n,i,o){return t-=e,t=gt(t,1/n,i),o!==void 0&&(t=gt(t,1/o,i)),t}function So(t,e=0,n=1,i=.5,o,r=t,s=t){if(mt.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=Ne(t.min,e,n,a,o),t.max=Ne(t.max,e,n,a,o)}function We(t,e,[n,i,o],r,s){So(t,e[n],e[i],e[o],e.scale,r,s)}const Co=["x","scaleX","originX"],Ao=["y","scaleY","originY"];function $e(t,e,n,i){We(t.x,e,Co,n?n.x:void 0,i?i.x:void 0),We(t.y,e,Ao,n?n.y:void 0,i?i.y:void 0)}function He(t){return t.translate===0&&t.scale===1}function qn(t){return He(t.x)&&He(t.y)}function Ge(t,e){return t.min===e.min&&t.max===e.max}function wo(t,e){return Ge(t.x,e.x)&&Ge(t.y,e.y)}function ze(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zn(t,e){return ze(t.x,e.x)&&ze(t.y,e.y)}function Ke(t){return R(t.x)/R(t.y)}function _e(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Do{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 Mo(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 Mt=["","X","Y","Z"],Ro=1e3;let Lo=0;function Rt(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=Lo++,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(Bo),this.nodes.forEach(Fo),this.nodes.forEach(Oo),this.nodes.forEach(jo)},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 yo)}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=vo(f,250),ft.hasAnimatedSinceResize&&(ft.hasAnimatedSinceResize=!1,this.nodes.forEach(qe)))})}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()||Ho,{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={...Kt(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||qe(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(),$(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(Uo),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(Xe);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ye);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ko),this.nodes.forEach(Eo),this.nodes.forEach(bo)):this.nodes.forEach(Ye),this.clearAllSnapshots();const a=Gt.now();L.delta=hn(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,Vt.update.process(L),Vt.preRender.process(L),Vt.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Io),this.sharedNodes.forEach(No)}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)),Go(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(zo))){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&&_(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),W(u.latestValues)&&_(l,u.latestValues)}return W(this.latestValues)&&_(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;It(c.latestValues)&&c.updateSnapshot();const u=V(),h=c.measurePageBox();j(u,h),$e(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return W(this.latestValues)&&$e(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||It(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(),yt(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():(Ue(this.prevProjectionDelta.x,this.projectionDelta.x),Ue(this.prevProjectionDelta.y,this.projectionDelta.y)),st(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!_e(this.projectionDelta.x,this.prevProjectionDelta.x)||!_e(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=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=X();(!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($o));this.animationProgress=0;let x;this.mixTargetDelta=C=>{const E=C/1e3;Ze(h.x,s.x,E),Ze(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wo(this.relativeTarget,this.relativeTargetOrigin,f,E),x&&wo(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=V()),j(x,this.relativeTarget)),v&&(this.animationValues=u,Po(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&&($(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{ft.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Z(0)),this.currentAnimation=po(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(Ro),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),_(a,u),st(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Do),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&&Rt("z",s,c,this.animationValues);for(let u=0;u<Mt.length;u++)Rt(`rotate${Mt[u]}`,s,c,this.animationValues),Rt(`skew${Mt[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=ht(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=ht(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=Mo(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 jt){if(u[p]===void 0)continue;const{correct:v,applyTo:P,isCSSVariable:y}=jt[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?ht(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Xe),this.root.sharedNodes.clear()}}}function Eo(t){t.updateLayout()}function bo(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=X();st(s,n,e.layoutBox);const a=X();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();yt(d,e.layoutBox,h.layoutBox);const p=V();yt(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 Bo(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 jo(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Io(t){t.clearSnapshot()}function Xe(t){t.clearMeasurements()}function Ye(t){t.isLayoutDirty=!1}function ko(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qe(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Fo(t){t.resolveTargetDelta()}function Oo(t){t.calcProjection()}function Uo(t){t.resetSkewAndRotation()}function No(t){t.removeLeadSnapshot()}function Ze(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 Je(t,e,n,i){t.min=S(e.min,n.min,i),t.max=S(e.max,n.max,i)}function Wo(t,e,n,i){Je(t.x,e.x,n.x,i),Je(t.y,e.y,n.y,i)}function $o(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ho={duration:.45,ease:[.4,0,.1,1]},Qe=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tn=Qe("applewebkit/")&&!Qe("chrome/")?Math.round:Y;function en(t){t.min=tn(t.min),t.max=tn(t.max)}function Go(t){en(t.x),en(t.y)}function ti(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zs(Ke(e),Ke(n),.2)}function zo(t){return t!==t.root&&t.scroll?.wasRoot}const Ko=Qn({attachResizeListener:(t,e)=>rt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lt={current:void 0},ei=Qn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Lt.current){const t=new Ko({});t.mount(window),t.setOptions({layoutScroll:!0}),Lt.current=t}return Lt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_o={pan:{Feature:fo},drag:{Feature:ho,ProjectionNode:ei,MeasureLayout:_n}};function nn(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,at(e)))}class Xo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Vi(e,(n,i)=>(nn(this.node,i,"Start"),o=>nn(this.node,o,"End"))))}unmount(){}}class Yo 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(rt(this.node.current,"focus",()=>this.onFocus()),rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sn(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,at(e)))}class qo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Si(e,(n,i)=>(sn(this.node,i,"Start"),(o,{success:r})=>sn(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const $t=new WeakMap,Et=new WeakMap,Zo=t=>{const e=$t.get(t.target);e&&e(t)},Jo=t=>{t.forEach(Zo)};function Qo({root:t,...e}){const n=t||document;Et.has(n)||Et.set(n,{});const i=Et.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(Jo,{root:t,...e})),i[o]}function tr(t,e,n){const i=Qo(e);return $t.set(t,n),i.observe(t),()=>{$t.delete(t),i.unobserve(t)}}const er={some:0,all:1};class nr 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:er[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 tr(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(ir(e,n))&&this.startObserver()}unmount(){}}function ir({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const sr={inView:{Feature:nr},tap:{Feature:qo},focus:{Feature:Yo},hover:{Feature:Xo}},or={layout:{ProjectionNode:ei,MeasureLayout:_n}},rr={...zs,...sr,..._o,...or},fr=as(rr,Ps);export{cr as A,fr as m};
|
|
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(vt.Provider,{value:f,children:t})};function Ri(){return new Map}function pn(t=!0){const e=m.useContext(vt);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 lt=t=>t.key||"";function he(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const cr=({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(()=>he(t),[t]),f=s&&!c?[]:h.map(lt),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=lt(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],H=lt(I);f.includes(H)||(M.splice(A,0,I),C.push(I))}return r==="wait"&&C.length&&(M=C),x(he(M)),y(h),null}const{forceRender:E}=m.useContext(Kt);return k.jsx(k.Fragment,{children:g.map(M=>{const A=lt(M),I=s&&!c?!1:h===g||f.includes(A),H=()=>{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:H,anchorX:a,children:M},A)})})},gn=m.createContext({strict:!1}),fe={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 fe)J[t]={isEnabled:e=>fe[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 pt(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=>!pt(t);function bi(t){typeof t=="function"&&(yn=e=>e.startsWith("on")?!pt(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&&pt(o)||!e&&!pt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}const xt=m.createContext({});function Pt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ot(t){return typeof t=="string"||Array.isArray(t)}const Zt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jt=["initial",...Zt];function Tt(t){return Pt(t.animate)||Jt.some(e=>ot(t[e]))}function vn(t){return!!(Tt(t)||t.variants)}function ji(t,e){if(Tt(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(xt));return m.useMemo(()=>({initial:e,animate:n}),[de(e),de(n)])}function de(t){return Array.isArray(t)?t.join(" "):t}function me(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=me(t,e.target.x),i=me(t,e.target.y);return`${n}% ${i}%`}},ki={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=bt.parse(t);if(o.length>5)return i;const r=bt.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)}},jt={borderRadius:{...et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomLeftRadius:et,borderBottomRightRadius:et,boxShadow:ki};function xn(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!jt[t]||t==="opacity")}const Fi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oi=Ht.length;function Ui(t,e,n){let i="",o=!0;for(let r=0;r<Oi;r++){const s=Ht[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=on(a,rn[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 Qt(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(an(l)){o[l]=c;continue}else{const u=on(c,rn[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 te=()=>({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=te();return Qt(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(Qt(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=()=>({...te(),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 ee(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=(ee(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 ne(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 ht(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]=ht(r[f]);let{initial:s,animate:a}=t;const l=Tt(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"&&!Pt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=ne(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(xt),o=m.useContext(vt),r=()=>Yi(t,e,i,o);return n?r():Xt(r)};function ie(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:ie,createRenderState:te});function An(t,e,n){const i=ie(t,e,n);for(const o in t)if(D(t[o])||D(e[o])){const r=Ht.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 z(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):z(n)&&(n.current=i))},[e])}const se=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),es="framerAppearId",wn="data-"+se(es),Dn=m.createContext({});function ns(t,e,n,i,o){const{visualElement:r}=m.useContext(xt),s=m.useContext(gn),a=m.useContext(vt),l=m.useContext(qt).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&&z(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 St(t,{forwardMotionProps:e=!1}={},n,i){n&&Li(n);const o=ee(t)?Ji:Zi;function r(a,l){let c;const u={...m.useContext(qt),...a,layoutId:ss(a)},{isStatic:h}=u,f=Ii(a),d=o(a,h);if(!h&&Yt){os();const p=rs(u);c=p.MeasureLayout,f.visualElement=ns(t,d,u,i,p.ProjectionNode)}return k.jsxs(xt.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(Kt).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 St;const n=new Map,i=(r,s)=>St(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,St(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 Ct(t){return t===void 0||t===1}function It({scale:t,scaleX:e,scaleY:n}){return!Ct(t)||!Ct(e)||!Ct(n)}function W(t){return It(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 gt(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=gt(t,o,i)),gt(t,n,i)+e}function kt(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}){kt(t.x,e.translate,e.scale,e.originPoint),kt(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&&K(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)&&K(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);kt(t,e,n,r,i)}function K(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}),X=()=>({x:Te(),y:Te()}),Ve=()=>({min:0,max:0}),V=()=>({x:Ve(),y:Ve()}),Ft={current:null},Bn={current:!1};function fs(){if(Bn.current=!0,!!Yt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ft.current=t.matches;t.addEventListener("change",e),e()}else Ft.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,Z(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,Z(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=Gt.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=Tt(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:Ft.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$(this.notifyUpdate),$(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=Z(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)&&bt.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=ne(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(){zt.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=(an(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){Qt(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ie(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:se(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:se(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)=>ee(t)?new xs(e):new ys(e,{allowProjection:t!==m.Fragment});function q(t,e,n){const i=t.getProps();return ne(i,e,n!==void 0?n:i.custom,t)}const Ot=t=>Array.isArray(t);function Ts(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Z(n))}function Vs(t){return Ot(t)?t[t.length-1]||0:t}function Ss(t,e){const n=q(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 Ut(t,e){const n=t.getValue("willChange");if(Cs(n))return n.add(e);if(!n&&dt.WillChange){const i=new dt.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 oe=(t,e,n,i={},o,r)=>s=>{const a=_t(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-ct(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=ct(u.duration)),u.repeatDelay&&(u.repeatDelay=ct(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ue(u),u.delay===0&&(h=!0)),(dt.instantAnimations||dt.skipAnimations)&&(h=!0,ue(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,..._t(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)}}Ut(t,u),h.start(oe(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 Nt(t,e,n={}){const i=q(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(Nt(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=>Nt(t,r,n));i=Promise.all(o)}else if(typeof e=="string")i=Nt(t,e,n);else{const o=typeof e=="function"?q(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=Jt.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=Jt[n],o=t.props[i];(ot(o)||o===!1)&&(e[i]=o)}return e}const Fs=[...Zt].reverse(),Os=Zt.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=q(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||Pt(x)||typeof x=="boolean")continue;const A=Ws(g.prevProp,x);let I=A||y===l&&g.isActive&&!M&&C||P>p&&C,H=!1;const tt=Array.isArray(x)?x:[x];let O=tt.reduce(o(y),{});E===!1&&(O={});const{prevResolvedValues:re={}}=g,ni={...re,...O},ae=w=>{I=!0,f.has(w)&&(H=!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=re[w];if(d.hasOwnProperty(w))continue;let G=!1;Ot(b)&&Ot(U)?G=!Nn(b,U):G=b!==U,G?b!=null?ae(w):f.add(w):b!==void 0&&f.has(w)?ae(w):g.protectedKeys[w]=!0}g.prevProp=x,g.prevResolvedValues=O,g.isActive&&(d={...d,...O}),i&&t.blockInitialAnimation&&(I=!1);const le=M&&A;I&&(!le||H)&&h.push(...tt.map(w=>{const b={type:y};if(typeof w=="string"&&i&&!le&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,G=q(U,w);if(U.enteringChildren&&G){const{delayChildren:ii}=G.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=q(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();Pt(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 rt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function at(t){return{point:{x:t.pageX,y:t.pageY}}}const _s=t=>e=>un(e)&&t(e,at(e));function it(t,e,n,i){return rt(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 yt(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=wt(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=At(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=wt(f.type==="pointercancel"?this.lastMoveEventInfo:At(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=at(e),l=At(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=L;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,wt(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(),$(this.updatePoint)}}function At(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 wt({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>ct(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=Bt(e.min,e.max-i,t.min):i>o&&(n=Bt(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 Wt=.35;function ao(t=Wt){return t===!1?t=0:t===!0&&(t=Wt),{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(at(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(mt.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)),Ut(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||!ut(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&&z(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||!z(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(!ut(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 Ut(this.visualElement,e),i.start(oe(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(!ut(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(!z(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(!ut(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();z(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=rt(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=Wt,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ut(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=Y,this.removeListeners=Y,this.controls=new uo(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}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=Y}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 ft={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Dt=!1;class mo extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),Dt&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ft.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,Dt=!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(),zt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;Dt=!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(Kt);return k.jsx(mo,{...t,layoutGroup:i,switchLayoutGroup:m.useContext(Dn),isPresent:e,safeToRemove:n})}function po(t,e,n){const i=D(t)?t:Z(t);return i.start(oe("",i,e,n)),i.animation}const go=(t,e)=>t.depth-e.depth;class yo{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(go),this.isDirty=!1,this.children.forEach(e)}}function vo(t,e){const n=Gt.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&($(i),t(r-e))};return T.setup(i,!0),()=>$(i)}const Xn=["TopLeft","TopRight","BottomLeft","BottomRight"],xo=Xn.length,Ie=t=>typeof t=="string"?parseFloat(t):t,ke=t=>typeof t=="number"||nt.test(t);function Po(t,e,n,i,o,r){o?(t.opacity=S(0,n.opacity??1,To(i)),t.opacityExit=S(e.opacity??1,0,Vo(i))):r&&(t.opacity=S(e.opacity??1,n.opacity??1,i));for(let s=0;s<xo;s++){const a=`border${Xn[s]}Radius`;let l=Fe(e,a),c=Fe(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ke(l)===ke(c)?(t[a]=Math.max(S(Ie(l),Ie(c),i),0),(mt.test(c)||mt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=S(e.rotate||0,n.rotate||0,i))}function Fe(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const To=Yn(0,.5,xi),Vo=Yn(.5,.95,Y);function Yn(t,e,n){return i=>i<t?0:i>e?1:n(Bt(t,e,i))}function Oe(t,e){t.min=e.min,t.max=e.max}function j(t,e){Oe(t.x,e.x),Oe(t.y,e.y)}function Ue(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ne(t,e,n,i,o){return t-=e,t=gt(t,1/n,i),o!==void 0&&(t=gt(t,1/o,i)),t}function So(t,e=0,n=1,i=.5,o,r=t,s=t){if(mt.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=Ne(t.min,e,n,a,o),t.max=Ne(t.max,e,n,a,o)}function We(t,e,[n,i,o],r,s){So(t,e[n],e[i],e[o],e.scale,r,s)}const Co=["x","scaleX","originX"],Ao=["y","scaleY","originY"];function $e(t,e,n,i){We(t.x,e,Co,n?n.x:void 0,i?i.x:void 0),We(t.y,e,Ao,n?n.y:void 0,i?i.y:void 0)}function He(t){return t.translate===0&&t.scale===1}function qn(t){return He(t.x)&&He(t.y)}function Ge(t,e){return t.min===e.min&&t.max===e.max}function wo(t,e){return Ge(t.x,e.x)&&Ge(t.y,e.y)}function ze(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zn(t,e){return ze(t.x,e.x)&&ze(t.y,e.y)}function _e(t){return R(t.x)/R(t.y)}function Ke(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Do{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 Mo(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 Mt=["","X","Y","Z"],Ro=1e3;let Lo=0;function Rt(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=Lo++,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(Bo),this.nodes.forEach(Fo),this.nodes.forEach(Oo),this.nodes.forEach(jo)},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 yo)}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=vo(f,250),ft.hasAnimatedSinceResize&&(ft.hasAnimatedSinceResize=!1,this.nodes.forEach(qe)))})}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()||Ho,{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={..._t(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||qe(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(),$(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(Uo),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(Xe);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ye);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ko),this.nodes.forEach(Eo),this.nodes.forEach(bo)):this.nodes.forEach(Ye),this.clearAllSnapshots();const a=Gt.now();L.delta=hn(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,Vt.update.process(L),Vt.preRender.process(L),Vt.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Io),this.sharedNodes.forEach(No)}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)),Go(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(zo))){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&&K(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),W(u.latestValues)&&K(l,u.latestValues)}return W(this.latestValues)&&K(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;It(c.latestValues)&&c.updateSnapshot();const u=V(),h=c.measurePageBox();j(u,h),$e(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return W(this.latestValues)&&$e(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||It(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(),yt(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():(Ue(this.prevProjectionDelta.x,this.projectionDelta.x),Ue(this.prevProjectionDelta.y,this.projectionDelta.y)),st(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ke(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ke(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=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=X();(!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($o));this.animationProgress=0;let x;this.mixTargetDelta=C=>{const E=C/1e3;Ze(h.x,s.x,E),Ze(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wo(this.relativeTarget,this.relativeTargetOrigin,f,E),x&&wo(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=V()),j(x,this.relativeTarget)),v&&(this.animationValues=u,Po(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&&($(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{ft.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Z(0)),this.currentAnimation=po(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(Ro),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),K(a,u),st(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Do),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&&Rt("z",s,c,this.animationValues);for(let u=0;u<Mt.length;u++)Rt(`rotate${Mt[u]}`,s,c,this.animationValues),Rt(`skew${Mt[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=ht(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=ht(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=Mo(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 jt){if(u[p]===void 0)continue;const{correct:v,applyTo:P,isCSSVariable:y}=jt[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?ht(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Xe),this.root.sharedNodes.clear()}}}function Eo(t){t.updateLayout()}function bo(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=X();st(s,n,e.layoutBox);const a=X();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();yt(d,e.layoutBox,h.layoutBox);const p=V();yt(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 Bo(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 jo(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Io(t){t.clearSnapshot()}function Xe(t){t.clearMeasurements()}function Ye(t){t.isLayoutDirty=!1}function ko(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qe(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Fo(t){t.resolveTargetDelta()}function Oo(t){t.calcProjection()}function Uo(t){t.resetSkewAndRotation()}function No(t){t.removeLeadSnapshot()}function Ze(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 Je(t,e,n,i){t.min=S(e.min,n.min,i),t.max=S(e.max,n.max,i)}function Wo(t,e,n,i){Je(t.x,e.x,n.x,i),Je(t.y,e.y,n.y,i)}function $o(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ho={duration:.45,ease:[.4,0,.1,1]},Qe=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tn=Qe("applewebkit/")&&!Qe("chrome/")?Math.round:Y;function en(t){t.min=tn(t.min),t.max=tn(t.max)}function Go(t){en(t.x),en(t.y)}function ti(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zs(_e(e),_e(n),.2)}function zo(t){return t!==t.root&&t.scroll?.wasRoot}const _o=Qn({attachResizeListener:(t,e)=>rt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lt={current:void 0},ei=Qn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Lt.current){const t=new _o({});t.mount(window),t.setOptions({layoutScroll:!0}),Lt.current=t}return Lt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ko={pan:{Feature:fo},drag:{Feature:ho,ProjectionNode:ei,MeasureLayout:Kn}};function nn(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,at(e)))}class Xo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Vi(e,(n,i)=>(nn(this.node,i,"Start"),o=>nn(this.node,o,"End"))))}unmount(){}}class Yo 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(rt(this.node.current,"focus",()=>this.onFocus()),rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sn(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,at(e)))}class qo extends F{mount(){const{current:e}=this.node;e&&(this.unmount=Si(e,(n,i)=>(sn(this.node,i,"Start"),(o,{success:r})=>sn(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const $t=new WeakMap,Et=new WeakMap,Zo=t=>{const e=$t.get(t.target);e&&e(t)},Jo=t=>{t.forEach(Zo)};function Qo({root:t,...e}){const n=t||document;Et.has(n)||Et.set(n,{});const i=Et.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(Jo,{root:t,...e})),i[o]}function tr(t,e,n){const i=Qo(e);return $t.set(t,n),i.observe(t),()=>{$t.delete(t),i.unobserve(t)}}const er={some:0,all:1};class nr 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:er[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 tr(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(ir(e,n))&&this.startObserver()}unmount(){}}function ir({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const sr={inView:{Feature:nr},tap:{Feature:qo},focus:{Feature:Yo},hover:{Feature:Xo}},or={layout:{ProjectionNode:ei,MeasureLayout:Kn}},rr={...zs,...sr,...Ko,...or},fr=as(rr,Ps);export{cr as A,fr as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n}from"./react-DGEdbr_j.js";const x=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,c,o)=>o?o.toUpperCase():c.toLowerCase()),l=t=>{const a=u(t);return a.charAt(0).toUpperCase()+a.slice(1)},M=(...t)=>t.filter((a,c,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===c).join(" ").trim(),v=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var $={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 g=n.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...r},i)=>n.createElement("svg",{ref:i,...$,width:a,height:a,stroke:t,strokeWidth:o?Number(c)*24/Number(a):c,className:M("lucide",d),...!s&&!v(r)&&{"aria-hidden":"true"},...r},[...y.map(([k,p])=>n.createElement(k,p)),...Array.isArray(s)?s:[s]]));const e=(t,a)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(g,{ref:s,iconNode:a,className:M(`lucide-${x(l(t))}`,`lucide-${t}`,o),...d}));return c.displayName=l(t),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"}]],D1=e("archive",w);const f=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],R1=e("arrow-down",f);const N=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],B1=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"}]],F1=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"}]],U1=e("bug",b);const j=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],I1=e("check",j);const z=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W1=e("chevron-down",z);const q=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],O1=e("chevron-right",q);const A=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],T1=e("chevron-up",A);const L=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],K1=e("chevrons-up-down",L);const V=[["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"}]],G1=e("circle-alert",V);const H=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X1=e("circle-check",H);const S=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],J1=e("circle-dot",S);const E=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q1=e("circle",E);const P=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Y1=e("cloud",P);const Z=[["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"}]],ee=e("copy",Z);const D=[["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"}]],ae=e("database",D);const R=[["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"}]],te=e("download",R);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"}]],ce=e("ellipsis-vertical",B);const F=[["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"}]],oe=e("ellipsis",F);const U=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],se=e("external-link",U);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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],ne=e("file-code",I);const W=[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],he=e("file-spreadsheet",W);const O=[["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"}]],de=e("file-text",O);const T=[["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:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],re=e("file-type",T);const K=[["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"}]],ye=e("fold-vertical",K);const G=[["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"}]],ie=e("folder-open",G);const X=[["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"}]],ke=e("folder",X);const J=[["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"}]],pe=e("globe",J);const Q=[["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"}]],le=e("image",Q);const Y=[["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"}]],_e=e("link-2",Y);const e1=[["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"}]],Me=e("link",e1);const a1=[["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"}]],me=e("list-video",a1);const t1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xe=e("loader-circle",t1);const c1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ue=e("menu",c1);const o1=[["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"}]],ve=e("mic",o1);const s1=[["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"}]],$e=e("moon",s1);const n1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ge=e("panel-left",n1);const h1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],we=e("panel-right",h1);const d1=[["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"}]],fe=e("paperclip",d1);const r1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ne=e("pencil",r1);const y1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ce=e("plus",y1);const i1=[["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"}]],be=e("rotate-ccw",i1);const k1=[["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"}]],je=e("scissors-line-dashed",k1);const p1=[["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"}]],ze=e("scissors",p1);const l1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qe=e("search",l1);const _1=[["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"}]],Ae=e("settings",_1);const M1=[["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"}]],Le=e("square-check-big",M1);const m1=[["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"}]],Ve=e("square-pen",m1);const x1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],He=e("square-slash",x1);const u1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Se=e("square",u1);const v1=[["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"}]],Ee=e("sun",v1);const $1=[["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"}]],Pe=e("triangle-alert",$1);const g1=[["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"}]],Ze=e("wrench",g1);const w1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],De=e("x",w1);const f1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N1=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,c,o)=>o?o.toUpperCase():c.toLowerCase()),_=t=>{const a=N1(t);return a.charAt(0).toUpperCase()+a.slice(1)},m=(...t)=>t.filter((a,c,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===c).join(" ").trim(),C1=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var b1={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 j1=n.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...r},i)=>n.createElement("svg",{ref:i,...b1,width:a,height:a,stroke:t,strokeWidth:o?Number(c)*24/Number(a):c,className:m("lucide",d),...!s&&!C1(r)&&{"aria-hidden":"true"},...r},[...y.map(([k,p])=>n.createElement(k,p)),...Array.isArray(s)?s:[s]]));const h=(t,a)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(j1,{ref:s,iconNode:a,className:m(`lucide-${f1(_(t))}`,`lucide-${t}`,o),...d}));return c.displayName=_(t),c};const z1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Re=h("check",z1);const q1=[["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"}]],Be=h("copy",q1);const A1=[["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"}]],Fe=h("download",A1);const L1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ue=h("loader-circle",L1);const V1=[["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"}]],Ie=h("maximize-2",V1);const H1=[["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"}]],We=h("rotate-ccw",H1);const S1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oe=h("x",S1);const E1=[["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"}]],Te=h("zoom-in",E1);const P1=[["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"}]],Ke=h("zoom-out",P1);export{Me as $,B1 as A,U1 as B,Re as C,Fe as D,oe as E,ie as F,pe as G,G1 as H,D1 as I,ze as J,me as K,Ue as L,Ie as M,je as N,ye as O,ge as P,J1 as Q,We as R,Ee as S,Pe as T,F1 as U,Ve as V,Ze as W,Oe as X,qe as Y,Te as Z,Y1 as _,Ke as a,le as a0,ee as a1,Ne as a2,be as a3,te as a4,he as a5,re as a6,K1 as a7,T1 as a8,ue as a9,Be as b,O1 as c,I1 as d,Q1 as e,$e as f,Ce as g,Ae as h,Se as i,He as j,fe as k,ve as l,W1 as m,R1 as n,De as o,ke as p,ne as q,ce as r,X1 as s,Le as t,de as u,ae as v,_e as w,we as x,se as y,xe as z};
|
|
1
|
+
import{r as n}from"./react-CiYvVQki.js";const x=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,c,o)=>o?o.toUpperCase():c.toLowerCase()),l=t=>{const a=u(t);return a.charAt(0).toUpperCase()+a.slice(1)},M=(...t)=>t.filter((a,c,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===c).join(" ").trim(),v=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var $={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 g=n.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...r},i)=>n.createElement("svg",{ref:i,...$,width:a,height:a,stroke:t,strokeWidth:o?Number(c)*24/Number(a):c,className:M("lucide",d),...!s&&!v(r)&&{"aria-hidden":"true"},...r},[...y.map(([k,p])=>n.createElement(k,p)),...Array.isArray(s)?s:[s]]));const e=(t,a)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(g,{ref:s,iconNode:a,className:M(`lucide-${x(l(t))}`,`lucide-${t}`,o),...d}));return c.displayName=l(t),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"}]],D1=e("archive",w);const f=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],R1=e("arrow-down",f);const N=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],B1=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"}]],F1=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"}]],U1=e("bug",b);const j=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],I1=e("check",j);const z=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W1=e("chevron-down",z);const q=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],O1=e("chevron-right",q);const A=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],T1=e("chevron-up",A);const L=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],K1=e("chevrons-up-down",L);const V=[["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"}]],G1=e("circle-alert",V);const H=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X1=e("circle-check",H);const S=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],J1=e("circle-dot",S);const E=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q1=e("circle",E);const P=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Y1=e("cloud",P);const Z=[["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"}]],ee=e("copy",Z);const D=[["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"}]],ae=e("database",D);const R=[["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"}]],te=e("download",R);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"}]],ce=e("ellipsis-vertical",B);const F=[["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"}]],oe=e("ellipsis",F);const U=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],se=e("external-link",U);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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],ne=e("file-code",I);const W=[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],he=e("file-spreadsheet",W);const O=[["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"}]],de=e("file-text",O);const T=[["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:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],re=e("file-type",T);const K=[["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"}]],ye=e("fold-vertical",K);const G=[["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"}]],ie=e("folder-open",G);const X=[["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"}]],ke=e("folder",X);const J=[["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"}]],pe=e("globe",J);const Q=[["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"}]],le=e("image",Q);const Y=[["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"}]],_e=e("link-2",Y);const e1=[["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"}]],Me=e("link",e1);const a1=[["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"}]],me=e("list-video",a1);const t1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xe=e("loader-circle",t1);const c1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ue=e("menu",c1);const o1=[["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"}]],ve=e("mic",o1);const s1=[["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"}]],$e=e("moon",s1);const n1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ge=e("panel-left",n1);const h1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],we=e("panel-right",h1);const d1=[["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"}]],fe=e("paperclip",d1);const r1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ne=e("pencil",r1);const y1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ce=e("plus",y1);const i1=[["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"}]],be=e("rotate-ccw",i1);const k1=[["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"}]],je=e("scissors-line-dashed",k1);const p1=[["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"}]],ze=e("scissors",p1);const l1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qe=e("search",l1);const _1=[["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"}]],Ae=e("settings",_1);const M1=[["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"}]],Le=e("square-check-big",M1);const m1=[["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"}]],Ve=e("square-pen",m1);const x1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],He=e("square-slash",x1);const u1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Se=e("square",u1);const v1=[["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"}]],Ee=e("sun",v1);const $1=[["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"}]],Pe=e("triangle-alert",$1);const g1=[["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"}]],Ze=e("wrench",g1);const w1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],De=e("x",w1);const f1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N1=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,c,o)=>o?o.toUpperCase():c.toLowerCase()),_=t=>{const a=N1(t);return a.charAt(0).toUpperCase()+a.slice(1)},m=(...t)=>t.filter((a,c,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===c).join(" ").trim(),C1=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var b1={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 j1=n.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:y,...r},i)=>n.createElement("svg",{ref:i,...b1,width:a,height:a,stroke:t,strokeWidth:o?Number(c)*24/Number(a):c,className:m("lucide",d),...!s&&!C1(r)&&{"aria-hidden":"true"},...r},[...y.map(([k,p])=>n.createElement(k,p)),...Array.isArray(s)?s:[s]]));const h=(t,a)=>{const c=n.forwardRef(({className:o,...d},s)=>n.createElement(j1,{ref:s,iconNode:a,className:m(`lucide-${f1(_(t))}`,`lucide-${t}`,o),...d}));return c.displayName=_(t),c};const z1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Re=h("check",z1);const q1=[["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"}]],Be=h("copy",q1);const A1=[["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"}]],Fe=h("download",A1);const L1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ue=h("loader-circle",L1);const V1=[["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"}]],Ie=h("maximize-2",V1);const H1=[["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"}]],We=h("rotate-ccw",H1);const S1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oe=h("x",S1);const E1=[["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"}]],Te=h("zoom-in",E1);const P1=[["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"}]],Ke=h("zoom-out",P1);export{Me as $,B1 as A,U1 as B,Re as C,Fe as D,oe as E,ie as F,pe as G,G1 as H,D1 as I,ze as J,me as K,Ue as L,Ie as M,je as N,ye as O,ge as P,J1 as Q,We as R,Ee as S,Pe as T,F1 as U,Ve as V,Ze as W,Oe as X,qe as Y,Te as Z,Y1 as _,Ke as a,le as a0,ee as a1,Ne as a2,be as a3,te as a4,he as a5,re as a6,K1 as a7,T1 as a8,ue as a9,Be as b,O1 as c,I1 as d,Q1 as e,$e as f,Ce as g,Ae as h,Se as i,He as j,fe as k,ve as l,W1 as m,R1 as n,De as o,ke as p,ne as q,ce as r,X1 as s,Le as t,de as u,ae as v,_e as w,we as x,se as y,xe as z};
|