1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,609983,t=>{"use strict";var e=t.i(271645);let i=e.forwardRef(function({title:t,titleId:i,...s},n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":i},s),t?e.createElement("title",{id:i},t):null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.s(["XCircleIcon",0,i],609983)},88653,464978,846932,t=>{"use strict";let e,i,s;var n=t.i(843476),r=t.i(271645);let o=(0,r.createContext)({});function a(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}let l="u">typeof window?r.useLayoutEffect:r.useEffect,h=(0,r.createContext)(null),u=t=>"object"==typeof t&&null!==t;function d(t){return u(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}var c=r;let p=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function m(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class f extends c.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(d(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=d(t)&&t.offsetWidth||0,s=d(t)&&t.offsetHeight||0,n=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top,r.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function g({children:t,isPresent:e,anchorX:i,anchorY:s,root:o,pop:a}){let l=(0,c.useId)(),h=(0,c.useRef)(null),u=(0,c.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,c.useContext)(p),y=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,s=t.map(t=>{let s=m(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():m(t[e],null)}}}}(...t),t)}(h,!1!==a?t.props?.ref??t?.ref:void 0);return(0,c.useInsertionEffect)(()=>{let{width:t,height:n,top:r,left:c,right:p,bottom:m,direction:f}=u.current;if(e||!1===a||!h.current||!t||!n)return;let g="rtl"===f,y="left"===i?g?`right: ${p}`:`left: ${c}`:g?`left: ${c}`:`right: ${p}`,v="bottom"===s?`bottom: ${m}`:`top: ${r}`;h.current.dataset.motionPopId=l;let x=document.createElement("style");d&&(x.nonce=d);let w=o??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${n}px !important; 6 ${y}px !important; 7 ${v}px !important; 8 } 9 `),()=>{h.current?.removeAttribute("data-motion-pop-id"),w.contains(x)&&w.removeChild(x)}},[e]),(0,n.jsx)(f,{isPresent:e,childRef:h,sizeRef:u,pop:a,children:!1===a?t:c.cloneElement(t,{ref:y})})}let y=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:u,mode:d,anchorX:c,anchorY:p,root:m})=>{let f=a(v),y=(0,r.useId)(),x=(0,r.useRef)(i),w=(0,r.useRef)(s);l(()=>{x.current=i,w.current=s});let b=!0,T=(0,r.useMemo)(()=>(b=!1,{id:y,initial:e,isPresent:i,custom:o,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;s&&s()},register:t=>(f.set(t,!1),()=>{f.delete(t),x.current||f.size||w.current?.()})}),[i,f,s]);return u&&b&&(T={...T}),(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),r.useEffect(()=>{i||f.size||!s||s()},[i]),t=(0,n.jsx)(g,{pop:"popLayout"===d,isPresent:i,anchorX:c,anchorY:p,root:m,children:t}),(0,n.jsx)(h.Provider,{value:T,children:t})};function v(){return new Map}function x(t=!0){let e=(0,r.useContext)(h);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,o=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return n(o)},[t]);let a=(0,r.useCallback)(()=>t&&s&&s(o),[o,s,t]);return!i&&s?[!1,a]:[!0]}t.s(["useIsPresent",0,function(){var t;return null===(t=(0,r.useContext)(h))||t.isPresent},"usePresence",0,x],464978);let w=t=>t.key||"";function b(t){let e=[];
9return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:h=!0,mode:u="sync",propagate:d=!1,anchorX:c="left",anchorY:p="top",root:m})=>{let[f,g]=x(d),v=(0,r.useMemo)(()=>b(t),[t]),T=d&&!f?[]:v.map(w),S=(0,r.useRef)(!0),P=a(()=>new Map),A=(0,r.useRef)(new Set),[E,M]=(0,r.useState)(v),[k,C]=(0,r.useState)(v);l(()=>{!d||f||k.length||g?.()},[f,d,k.length,g]),l(()=>{S.current=!1;for(let t=0;t<k.length;t++){let e=w(k[t]);T.includes(e)?(P.delete(e),A.current.delete(e)):!0!==P.get(e)&&P.set(e,!1)}},[k,T.length,T.join("-")]);let V=[];if(v!==E){let t=[...v],e=0;for(let i of k){let s=T.indexOf(w(i));-1===s?(t.splice(e++,0,i),V.push(i)):e=s+V.length+1}return V.every(t=>P.get(w(t)))?t=v:"wait"===u&&(t=V),C(b(t)),M(v),null}let{forceRender:D}=(0,r.useContext)(o);return(0,n.jsx)(n.Fragment,{children:k.map(t=>{let r=w(t),o=(!d||!!f)&&(v===k||T.includes(r));return(0,n.jsx)(y,{isPresent:o,initial:(!S.current||!!i)&&void 0,custom:e,presenceAffectsLayout:h,mode:u,root:m,onExitComplete:o?void 0:()=>{if(A.current.has(r)||!P.has(r))return;A.current.add(r),P.set(r,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(D?.(),M([]),d&&g?.(),s&&s())},anchorX:c,anchorY:p,children:t},r)})})}],88653);let T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set([...T,"pathRotation"]),P=(t,e,i)=>i>e?e:i<t?t:i,A={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},E={...A,transform:t=>P(0,1,t)},M={...A,default:1},k=t=>Math.round(1e5*t)/1e5,C=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,V=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,D=(t,e)=>i=>!!("string"==typeof i&&V.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),R=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(C);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},j={...A,transform:t=>Math.round(P(0,255,t))},L={test:D("rgb","red"),parse:R("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+j.transform(t)+", "+j.transform(e)+", "+j.transform(i)+", "+k(E.transform(s))+")"},B={test:D("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:L.transform},F=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),I=F("deg"),O=F("%"),N=F("px"),U=F("vh"),$=F("vw"),W={...O,parse:t=>O.parse(t)/100,transform:t=>O.transform(100*t)},z={test:D("hsl","hue"),parse:R("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+O.transform(k(e))+", "+O.transform(k(i))+", "+k(E.transform(s))+")"},X={test:t=>L.test(t)||B.test(t)||z.test(t),parse:t=>L.test(t)?L.parse(t):z.test(t)?z.parse(t):B.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?L.transform(t):z.transform(t),getAnimatableNone:t=>{let e=X.parse(t);
9return e.alpha=0,X.transform(e)}},Y=new RegExp(C.source),_=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),H="number",K="color",G=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function q(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(G,t=>(X.test(t)?(s.color.push(r),n.push(K),i.push(X.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(H),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function Z({split:t,types:e}){let i=t.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=t[r],void 0!==s[r]){let t=e[r];t===H?n+=k(s[r]):t===K?n+=X.transform(s[r]):n+=s[r]}return n}}let J={test:function(t){return isNaN(t)&&"string"==typeof t&&(Y.test(t)||_.test(t))},parse:function(t){return q(t).values},createTransformer:function(t){return Z(q(t))},getAnimatableNone:function(t){let e=q(t);return Z(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:X.test(t)?X.getAnimatableNone(t):t)(t,e.split[i])))}},Q=new Set(["brightness","contrast","saturate","opacity"]);function tt(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(C)||[];if(!s)return t;let n=i.replace(s,""),r=+!!Q.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let te=/\b([a-z-]*)\(.*?\)/gu,ti={...J,getAnimatableNone:t=>{let e=t.match(te);return e?e.map(tt).join(" "):t}},ts={...J,getAnimatableNone:t=>{let e=J.parse(t);return J.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tn={...A,transform:Math.round},tr={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:I,pathRotation:I,rotateX:I,rotateY:I,rotateZ:I,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:I,skewX:I,skewY:I,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:E,originX:W,originY:W,originZ:N,zIndex:tn,fillOpacity:E,strokeOpacity:E,numOctaves:tn},to={...tr,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:ti,WebkitFilter:ti,mask:ts,WebkitMask:ts},ta=t=>to[t],tl=()=>({translate:0,scale:1,origin:0,originPoint:0}),th=()=>({x:tl(),y:tl()}),tu=()=>({min:0,max:0}),td=()=>({x:tu(),y:tu()}),tc=t=>!!(t&&t.getVelocity),tp=new Set(["width","height","top","left","right","bottom",...T]),tm=[A,N,O,I,$,U,{test:t=>"auto"===t,parse:t=>t}],tf=t=>tm.find(e=>e.test(t)),tg=()=>{},ty=()=>{},tv=t=>e=>"string"==typeof e&&e.startsWith(t),tx=tv("--"),tw=tv("var(--"),tb=t=>!!tw(t)&&tT.test(t.split("/*")[0].trim()),tT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tS(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tA=new Set([ti,ts]);function tE(t,e){let i=ta(t);return tA.has(i)||(i=J),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tM=t=>180*t/Math.PI,tk=t=>tV(tM(Math.atan2(t[1],t[0]))),tC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tk,rotateZ:tk,skewX:t=>tM(Math.atan(t[1])),skewY:t=>tM(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tV=t=>((t%=360)<0&&(t+=360),t),tD=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tR=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tD,scaleY:tR,scale:t=>(tD(t)+tR(t))/2,rotateX:t=>tV(tM(Math.atan2(t[6],t[5]))),rotateY:t=>tV(tM(Math.atan2(-t[2],t[0]))),rotateZ:tk,rotate:tk,skewX:t=>tM(Math.atan(t[4])),skewY:t=>tM(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tL(t){return+!!t.includes("scale")}function tB(t,e){let i,s;if(!t||"none"===t)return tL(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tj,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tC,s=e}if(!s)return tL(e);let r=i[e],o=s[1].split(",").map(tF);return"function"==typeof r?r(o):o[r]}function tF(t){return parseFloat(t.trim())}let tI=t=>t===A||t===N,tO=new Set(["x","y","z"]),tN=T.filter(t=>!tO.has(t)),tU=new Set(["bottom","right"]);function t$(t,e,i,s,n,r){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],h=l-a;return"border-box"===r?h:h-parseFloat(s)-parseFloat(n)}let tW={width:({width:t,paddingLeft:e="0",paddingRight:i="0",boxSizing:s},n)=>t$(t,n,"x",e,i,s),height:({height:t,paddingTop:e="0",paddingBottom:i="0",boxSizing:s},n)=>t$(t,n,"y",e,i,s),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:i}=e();return parseFloat(t)+(i.max-i.min)},right:({left:t},e)=>{let{x:i}=e();return parseFloat(t)+(i.max-i.min)},x:({transform:t})=>tB(t,"x"),y:({transform:t})=>tB(t,"y")};tW.translateX=tW.x,tW.translateY=tW.y;let tz=t=>t,tX={},tY=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function t_(t,e,i={delta:0,timestamp:0,isProcessing:!1}){let s=!1,n=!0,r=()=>s=!0,o=tY.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,n=!1,r=new Set,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(i.add(e),t()),e(o)}let l={schedule:(t,n=!1,o=!1)=>{let a=o&&s?e:i;return n&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,s){n=!0;return}s=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),s=!1,n&&(n=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tX.useManualTiming,o=r?i.timestamp:performance.now();s=!1,r||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),h.process(i),u.process(i),d.process(i),c.process(i),p.process(i),m.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(f))};return{schedule:tY.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!s&&(s=!0,n=!0,i.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tY.length;e++)o[tY[e]].cancel(t)},state:i,steps:o}}let tH={delta:0,timestamp:0,isProcessing:!1},{schedule:tK,cancel:tG,steps:tq}=t_("u">typeof requestAnimationFrame?requestAnimationFrame:tz,!0,tH),tZ=new Set,tJ=!1,tQ=!1,t0=!1;function t1(){if(tQ){let t=[],e=new Set,i=new Set;tZ.forEach(s=>{s.needsMeasurement&&(t.push(s),e.add(s.element),tU.has(s.name)&&i.add(s.element))});let s=new Map;
9i.forEach(t=>{let e,i=(e=[],tN.forEach(i=>{let s=t.getValue(i);if(void 0!==s){let t=s.get(),n=+!!i.startsWith("scale");if(t===n)return;e.push([i,t]),s.set(n)}}),e);i.length&&(s.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=s.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tQ=!1,tJ=!1,tZ.forEach(t=>t.complete(t0)),tZ.clear()}function t2(){tZ.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tQ=!0)})}class t5{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tZ.add(this),tJ||(tJ=!0,tK.read(t2),tK.resolveKeyframes(t1))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!J.test(t)&&J.test(i))return tE(e,i)}return t??void 0}(i.readValue(e,r),e,r);void 0!==s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tZ.delete(this)}cancel(){"scheduled"===this.state&&(tZ.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t3=new Set(["auto","none","0"]);class t9 extends t5{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&tb(s=s.trim())){let n=function t(e,i,s=1){ty(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=tP.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tb(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!tp.has(i)||2!==t.length)return;let[s,n]=t;if("number"==typeof s&&"number"==typeof n)return;let r=tf(s),o=tf(n);if(tS(s)!==tS(n)&&tW[i]){this.needsMeasurement=!0;return}if(r!==o)if(tI(r)&&tI(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tW[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!t3.has(e)&&function(t){let e=t.toString();return Y.test(e)||_.test(e)}(e)&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]!==s&&(t[n]=tE(i,s))}(t,i,e)}measure(){let{element:t,name:e}=this;return tW[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&this.motionValue?.jump(s,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,s=e[i];e[i]=this.measure(),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t4=t=>1e3*t;function t6(t,e){-1===t.indexOf(e)&&t.push(e)}function t8(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t7{constructor(){this.subscriptions=[]}add(t){return t6(this.subscriptions,t),()=>this.remove(t)}remove(t){t8(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function et(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function ee(t){let e;return()=>(void 0===e&&(e=t()),e)}let ei={};function es(t,e){let i=ee(t);return()=>ei[e]??i()}let en=es(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),er=t=>null!==t;function eo(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(er),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}class ea{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}function el(){e=void 0}let eh={now:()=>(void 0===e&&eh.set(tH.isProcessing||tX.useManualTiming?tH.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(el)}};function eu(t,e){return{kind:t,animation:e,timestamp:eh.now(),frameTimestamp:tH.timestamp,frameIsProcessing:tH.isProcessing}}function ed(t,e,i){let s=globalThis.__MOTION_INSPECT__;if(s)try{s({...eu("animation-start",t),options:i?{...e,...i}:e})}catch{}}let ec=t=>Array.isArray(t)&&"number"==typeof t[0],ep=es(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),em=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ef=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,eg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ef([0,.65,.55,1]),circOut:ef([.55,0,1,.45]),backIn:ef([.31,.01,.66,-.59]),backOut:ef([.33,1.53,.69,.99])};function ey(t){return"function"==typeof t&&"applyToOptions"in t}class ev extends ea{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,ty(t.type);const l=function({type:t,...e}){return ey(t)&&ep()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?ep()?em(e,i):"ease-out":ec(e)?ef(e):Array.isArray(e)?e.map(e=>t(e,i)||eg.easeOut):eg[e]}(a,n);Array.isArray(d)&&(u.easing=d);let c={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(c.pseudoElement=h),t.animate(u,c)}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=eo(s,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),et(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},ed(this,t,l)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t4(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:e,observe:i,...s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&en())?(this.animation.timeline=t,Object.assign(this.animation,s),e?.(this.animation),tz):i(this)}}let ex=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ew}=t_(queueMicrotask,!1),eb=(t,e)=>e?1e3/e*t:0,eT;class eS{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eh.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eh.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){var i;return"change"===t?this.onChangeSubscribe(e):((i=this.events)[t]||(i[t]=new t7)).add(e)}onChangeSubscribe(t){let{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new t7,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){tK.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eT&&eT.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=eh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return eb(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{let i;this.hasAnimated=!0;let s=!1;i=t(()=>{s=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),e()}),s||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eP(t,e){return new eS(t,e)}let eA=new WeakMap;function eE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eM(t){return"string"==typeof t||Array.isArray(t)}let ek=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eC=["initial",...ek];function eV(t){if(eE(t.animate))return!0;for(let e=0;e<eC.length;e++)if(eM(t[eC[e]]))return!0;return!1}function eD(t){return!!(eV(t)||t.variants)}let eR={current:null},ej={current:!1},eL="u">typeof window,eB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eF={};
9class eI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t5,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=eh.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tK.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=eV(e),this.isVariantNode=eD(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&tc(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];if(this.current=t,eA.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.isVariantNode&&!this.isControllingVariants){let t=this;do t=!1!==t.props.inherit&&t.parent;while(t&&!t.isVariantNode)if(t){let{variantChildren:e}=t;e.add(this),this.removeFromVariantTree=()=>e.delete(this)}}this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ej.current||function(){if(ej.current=!0,eL)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eR.current=t.matches;t.addEventListener("change",e),e()}else eR.current=!1}(),this.shouldReduceMotion=eR.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tG(this.notifyUpdate),tG(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ex.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:o}=e.accelerate,a=new ev({element:this.current,name:t,keyframes:s,times:n,ease:r,duration:t4(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=S.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tK.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i()})}sortNodePosition(t){return this.current&&t.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eF){let e=eF[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):td()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eB.length;e++){let i=eB[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(tc(n))t.addValue(s,n);else if(tc(r))t.addValue(s,eP(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,eP(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(t,e){let i=this.values.get(t);if(e!==i){i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e);let s=e.get();void 0!==s&&(this.latestValues[t]=s)}}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eP(e??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;"string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n)))?i=parseFloat(i):"number"!=typeof i&&!J.test(i)&&J.test(e)&&(i=tE(t,e)),this.setBaseTarget(t,tc(i)?i.get():i)}return tc(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}on(t,e){return this.events[t]||(this.events[t]=new t7),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ew.render(this.render)}}class eO extends eI{constructor(){super(...arguments),this.KeyframeResolver=t9}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tc(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eN(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eU=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eW=T.length;function ez(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(S.has(t)){o=!0;continue}if(tx(t)){n[t]=i;continue}{let e=eU(i,tr[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<eW;r++){let o=T[r],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=eU(a,tr[o]);if(!l){n=!1;let e=e$[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}let r=t.pathRotation;return r&&(n=!1,s+=`rotate(${eU(r,tr.pathRotation)}) `),s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let eX={offset:"stroke-dashoffset",array:"stroke-dasharray"},eY={offset:"strokeDashoffset",array:"strokeDasharray"},e_=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eH(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a}
9,l,h,u){if(ez(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of e_)void 0!==d[t]&&(c[t]=d[t],delete d[t]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?eX:eY;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(d,n,r,o,!1)}let eK=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"]),eG=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eq(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}let eZ={};function eJ(t,{layout:e,layoutId:i}){return S.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eZ[t]||"opacity"===t)}function eQ(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(tc(s[e])||n&&tc(n[e])||eJ(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function e0(t,e,i){let s=eQ(t,e,i);for(let i in t)(tc(t[i])||tc(e[i]))&&(s[-1!==T.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class e1 extends eO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=td}getBaseTargetFromProps(t,e){return S.has(e)?super.getBaseTargetFromProps(t,e)??tL(e):t[e]}getDefaultValue(t){return S.has(t)?this.latestValues[t]??tL(t):void 0}readValueFromInstance(t,e){if(S.has(e)){let t=ta(e);return t&&t.default||0}if(e_.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=eK.has(e)?e:eN(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e0(t,e,i)}build(t,e,i){eH(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eq(t,e,void 0,s),e.attrs)t.setAttribute(eK.has(i)?i:eN(i),e.attrs[i])}mount(t){this.isSVGTag=eG(t.tagName),super.mount(t)}}function e2({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}let e5=(t,e,i)=>t+(e-t)*i;function e3(t){return void 0===t||1===t}function e9({scale:t,scaleX:e,scaleY:i}){return!e3(t)||!e3(e)||!e3(i)}function e4(t){return e9(t)||e6(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e6(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e8(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function e7(t,e=0,i=1,s,n){t.min=e8(t.min,e,i,s,n),t.max=e8(t.max,e,i,s,n)}function it(t,{x:e,y:i}){e7(t.x,e.translate,e.scale,e.originPoint),e7(t.y,i.translate,i.scale,i.originPoint)}function ie(t,e){t.min+=e,t.max+=e}function ii(t,e,i,s,n=.5){let r=e5(t.min,t.max,n);e7(t,e,i,r,s)}function is(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function ir(t,e,i){let s=i??t;ii(t.x,is(e.x,s.x),e.scaleX,e.scale,e.originX),ii(t.y,is(e.y,s.y),e.scaleY,e.scale,e.originY)}function io(t,e){return e2(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class ia extends eO{constructor(){super(...arguments),this.type="html",this.renderInstance=eq}mount(t){ty(t.style),super.mount(t)}readValueFromInstance(t,e){if(S.has(e))return this.projection?.isProjecting?tL(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tB(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tx(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return io(t,e)}build(t,e,i){ez(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eQ(t,e,i)}}let il=["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 ih(t){if("string"!=typeof t||t.includes("-"));else if(il.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let iu=(0,r.createContext)({strict:!1}),id=(0,r.createContext)({});function ic(t){return Array.isArray(t)?t.join(" "):t}let ip=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function im(t,e,i){for(let s in e)tc(e[s])||eJ(s,i)||(t[s]=e[s])}let ig=()=>({...ip(),attrs:{}}),iy=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function iv(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iy.has(t)}function ix(t){return tc(t)?t.get():t}
9function iw(t,e,i,s){let n=e=>{let n;return"function"==typeof e?e(void 0!==i?i:t.custom,...(n=[{},{}],s?.values.forEach((t,e)=>{n[0][e]=t.get(),n[1][e]=t.getVelocity()}),n)):e};return"string"==typeof(e=n(e))&&(e=t.variants&&t.variants[e]),n(e)}let ib=t=>(e,i)=>{let s=(0,r.useContext)(id),n=(0,r.useContext)(h),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=ix(r[t]);let{initial:o,animate:a}=t,l=eV(t),h=eD(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!eE(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=iw(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?o():a(o)},iT=ib({scrapeMotionValuesFromProps:eQ,createRenderState:ip}),iS=ib({scrapeMotionValuesFromProps:e0,createRenderState:ig}),iP={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"]},iA=!1;function iE(){return!function(){if(iA)return;let t={};for(let e in iP)t[e]={isEnabled:t=>iP[e].some(e=>!!t[e])};eF=t,iA=!0}(),eF}let iM=Symbol.for("motionComponentSymbol"),ik="data-"+eN("framerAppearId"),iC=(0,r.createContext)({});function iV(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iD(t,{forwardMotionProps:e=!1,type:i}={},s,a){s&&function(t){let e=iE();for(let i in t)e[i]={...e[i],...t[i]};eF=e}(s);let u=i?"svg"===i:ih(t),d=u?iS:iT;function c(i,s){var c;let m,f,g,y={...(0,r.useContext)(p),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(o).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:v,isValidProp:x}=y,w=function(t){let{initial:e,animate:i}=function(t,e){if(eV(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eM(e)?e:void 0,animate:eM(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(id));return(0,r.useMemo)(()=>({initial:e,animate:i}),[ic(e),ic(i)])}(i),b=d(i,v);if(!v&&"u">typeof window){(0,r.useContext)(iu).strict;let e=function(t){let{drag:e,layout:i}=iE();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(y);m=e.MeasureLayout,w.visualElement=function(t,e,i,s,n,o){let{visualElement:a}=(0,r.useContext)(id),u=(0,r.useContext)(iu),d=(0,r.useContext)(h),c=(0,r.useContext)(p),m=c.reducedMotion,f=c.skipAnimations,g=(0,r.useRef)(null),y=(0,r.useRef)(!1);s=s||u.renderer,!g.current&&s&&(g.current=s(t,{visualState:e,parent:a,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:o}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,x=(0,r.useContext)(iC);v&&!v.projection&&n&&("html"===v.type||"svg"===v.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&iV(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(g.current,i,n,x);let w=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{v&&w.current&&v.update(i,d)});let b=i[ik],T=(0,r.useRef)(!!b&&"u">typeof window&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return l(()=>{y.current&&v&&(v.animationState?.animateChanges(),v.enteringChildren=void 0)},[]),l(()=>{y.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),T.current&&v.animationState&&v.animationState.animateChanges())}),(0,r.useEffect)(()=>{v&&(!T.current&&v.animationState&&v.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}
9),T.current=!1),v.enteringChildren=void 0)}),v}(t,b,y,a,e.ProjectionNode,u)}return(0,n.jsxs)(id.Provider,{value:w,children:[m&&w.visualElement?(0,n.jsx)(m,{visualElement:w.visualElement,...y}):null,function(t,e,i,{latestValues:s},n,o=!1,a,l){let h=(a??ih(t)?function(t,e,i,s){let n=(0,r.useMemo)(()=>{let i=ig();return eH(i,e,eG(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};im(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},o=(i=t.style||{},im(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=ip();return ez(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=o,n})(e,s,n,t),u=function(t,e,i,s){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!tc(t[r])&&((r.startsWith("on")?!iv(r):s?.(r)??!iv(r))||!0===i&&iv(r)||!e&&!iv(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o,l),d=t!==r.Fragment?{...u,...h,ref:i}:{},{children:c}=e,p=(0,r.useMemo)(()=>tc(c)?c.get():c,[c]);return(0,r.createElement)(t,{...d,children:p})}(t,i,(c=w.visualElement,f=(0,r.useRef)(s),(0,r.useInsertionEffect)(()=>{f.current=s}),g=(0,r.useRef)(null),(0,r.useCallback)(t=>{t&&b.onMount?.(t),c&&(t?c.mount(t):c.unmount());let e=f.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(g.current=i)}else g.current?(g.current(),g.current=null):e(t);else e&&(e.current=t)},[c])),b,v,e,u,x)]})}c.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let m=(0,r.forwardRef)(c);return m[iM]=t,m}class iR{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ij(t,e,i){return iw(t.getProps(),e,i,t)}let iL=(t,e)=>"exit"===e?t.presenceContext?.custom:void 0;function iB(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function iF(t,e){let i=t?.[e]??t?.default??t;return i!==t?iB(i,t):i}function iI(t,e){let i=t.getValue("willChange");if(tc(i)&&i.add)return i.add(e);if(!i&&tX.WillChange){let i=new tX.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iO=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iN(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iU(t,e){return i=>i>0?e:t}let i$=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iW=[B,L,z];function iz(t){let e=iW.find(e=>e.test(t));if(!e)return tg(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=e.parse(t);return e===z&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=iN(a,s,t+1/3),r=iN(a,s,t),o=iN(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let iX=(t,e)=>{let i=iz(t),s=iz(e);if(!i||!s)return iU(t,e);let n={...i};return t=>(n.red=i$(i.red,s.red,t),n.green=i$(i.green,s.green,t),n.blue=i$(i.blue,s.blue,t),n.alpha=e5(i.alpha,s.alpha,t),L.transform(n))},iY=new Set(["none","hidden"]);function i_(t,e){return i=>e5(t,e,i)}function iH(t){return"number"==typeof t?i_:"string"==typeof t?tb(t)?iU:X.test(t)?iX:iq:Array.isArray(t)?iK:"object"==typeof t?X.test(t)?iX:iG:iU}function iK(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iH(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function iG(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iH(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iq=(t,e)=>{let i=J.createTransformer(e),s=q(t),n=q(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return tg(`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iU(t,e);if(iY.has(t)&&!n.values.length||iY.has(e)&&!s.values.length)return iY.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iO(iK(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)},iZ=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function iJ(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return e5(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=iZ.exec(t);if(!i)return;let s=iZ.exec(e);if(!s||i[2]!==s[2])return;let n=i[2],r=parseFloat(i[1]),o=parseFloat(s[1]);return t=>k(e5(r,o,t))+n}(t,e);if(i)return i}return iH(t)(t,e)}let iQ=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tK.update(e,t),stop:()=>tG(e),now:()=>tH.isProcessing?tH.timestamp:eh.now()}};function i0(t,e=50,i=2e4,s){let n=0,r=t.next(n);for(s?.push(r.value);!r.done&&n<i;)n+=e,r=t.next(n),s?.push(r.value);return n>=i?1/0:n}let i1=.01,i2=2,i5=.005,i3=.5,i9=t=>t<0?1/Math.max(1+t,.05):Math.max(1-t,.05);function i4(t,e){if(!(t>1))return 1;let i=Math.sqrt(t*t-1),s=t-i,n=t+i,r=2*i*Math.exp(-e)*(1+e);return i8(t=>n*Math.exp(-s*t)-s*Math.exp(-n*t)-r,t=>Math.exp(-n*t)-Math.exp(-s*t),e)/e}function i6(t,e){return t*Math.sqrt(1-e*e)}function i8(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}let i7=(t,e)=>(e?t>=0:t>0)&&t<1/0;function st(t,e){if(i7(t,e))return t}function se(t=.3,e=.3){let i,s,n,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,isResolvedFromDuration:p,isTimeDefined:m}=function(t){let e=st(t.stiffness),i=st(t.damping,!0),s=st(t.mass),n={...t,stiffness:e??100,damping:i??10,mass:s??1,isResolvedFromDuration:!1,isTimeDefined:(e??i??s)===void 0&&(void 0!==t.duration||void 0!==t.bounce)};if(n.isTimeDefined){if(t.visualDuration){let e=i9(t.bounce||0),i=2*Math.PI/(1.2*t.visualDuration)*i4(e,2*Math.PI/1.2);n.stiffness=i*i,n.damping=2*e*Math.sqrt(n.stiffness)}else Object.assign(n,function({duration:t=800,bounce:e=.3}){let i,s;tg(t4(10));let n=i9(e);t=P(.01,10,t/1e3),n<1?(i=e=>{let i=e*n,s=i*t;return .001-i/i6(e,n)*Math.exp(-s)},s=e=>{let s=e*n*t,r=n*n*e*e*t,o=Math.exp(-s),a=i6(e*e,n);return-((-i(e)+.001>0?-1:1)*r)*o/a}):(i=e=>-.001+Math.exp(-e*t)*(e*t+1),s=e=>-(t*t*e*Math.exp(-e*t)));let r=i8(i,s,5/t),o=r*i4(n,r*t),a=o*o;return{stiffness:a,damping:2*n*Math.sqrt(a),duration:t4(t)}}(n)),n.isResolvedFromDuration=!0;i7(n.stiffness)&&i7(n.damping,!0)||(n.stiffness=100,n.damping=10)}return n}({...r}),f=t=>m?0:-(t/1e3),g=u/(2*Math.sqrt(h*d)),y=Math.sqrt(h/d)/1e3,v=g*y,x={target:a,delta:a-o,velocity:f(r.velocity||0)||0,restSpeed:0,restDelta:0},w=()=>{let t=5>Math.abs(x.delta);x.restSpeed=r.restSpeed||(t?i1:i2),x.restDelta=r.restDelta||(t?i5:i3)};if(w(),g<1){let t=i6(y,g),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{e.A=(x.velocity+v*x.delta)/t,e.sinC=v*e.A+x.delta*t,e.cosC=v*x.delta-e.A*t};let r=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-v*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(r(t),x.target-e.env*(e.A*e.sin+x.delta*e.cos)),s=t=>(r(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===g){i=t=>x.target-Math.exp(-y*t)*(x.delta+(x.velocity+y*x.delta)*t);let t={C:0};n=()=>{t.C=x.velocity+y*x.delta},s=e=>Math.exp(-y*e)*(y*t.C*e-x.velocity)}else{let t=y*Math.sqrt(g*g-1),e=v-t,r=v+t,o=m?1/0:300/t,a=(t,e)=>Math.exp(e>o?-t*o-v*(e-o):-t*e),l={S:0,F:0};n=()=>{let e=(x.velocity+v*x.delta)/t;l.S=(x.delta+e)/2,l.F=(x.delta-e)/2},i=t=>x.target-l.S*a(e,t)-l.F*a(r,t),s=t=>e*l.S*a(e,t)+r*l.F*a(r,t)}n();let b=p&&c||null,T={calculatedDuration:b,retarget:(t,e)=>{x.target=t[t.length-1],x.delta=x.target-t[0],x.velocity=f(e),r.restSpeed&&r.restDelta||w(),T.calculatedDuration=b,l.done=!1,n()},velocity:t=>t4(s(t)),next:t=>{let e=i(t);return p?l.done=t>=c:l.done=Math.abs(t4(s(t)))<=x.restSpeed&&Math.abs(x.target-e)<=x.restDelta,l.value=l.done?x.target:e,l},toString:()=>{let t=Math.min(i0(T),2e4),e=em(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function si({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/s),x=t=>{let e=v(t);m.done=Math.abs(e)<=h,m.value=m.done?y:y+e},w=t=>{let e;if((e=m.value)<a||e>l){var i;d=t,c=se({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(t)/s*1e3,damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,x(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||x(t),m)}}}se.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(i0(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,se);return t.ease=e.ease,t.duration=t4(e.duration),t.type="keyframes",t};let ss=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;
9function sn(t,e,i,s){return t===e&&i===s?tz:n=>0===n||1===n?n:ss(function(t,e,i,s,n){let r,o,a=0;do(r=ss(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}let sr=sn(.42,0,1,1),so=sn(0,0,.58,1),sa=sn(.42,0,.58,1),sl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sh=t=>e=>1-t(1-e),su=sn(.33,1.53,.69,.99),sd=sh(su),sc=sl(sd),sp=t=>t>=1?1:(t*=2)<1?.5*sd(t):.5*(2-Math.pow(2,-10*(t-1))),sm=t=>1-Math.sin(Math.acos(t)),sf=sh(sm),sg=sl(sm),sy={linear:tz,easeIn:sr,easeInOut:sa,easeOut:so,circIn:sm,circInOut:sg,circOut:sf,backIn:sd,backInOut:sc,backOut:su,anticipate:sp},sv=t=>{if(ec(t)){ty(t.length);let[e,i,s,n]=t;return sn(e,i,s,n)}return"string"==typeof t?(ty(sy[t],`Invalid easing type '${t}'`),sy[t]):t},sx=(t,e,i)=>{let s=e-t;return s?(i-t)/s:1};function sw({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sv):sv(s)||sa,a={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(o)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,s]=e,n=i===s?void 0:(tX.mix||iJ)(i,s);return{calculatedDuration:t,next:e=>(a.value=n?n(o(t>0?P(0,1,e/t):1)):s,a.done=e>=t,a)}}let l=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(ty(e.length),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||tX.mix||iJ,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=iO(Array.isArray(e)?e[i]||tz:e,r)),s.push(r)}return s}(e,s,n),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=sx(t[s],t[s+1],i);return a[s](n)};return i?e=>h(P(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=sx(0,e,s);t.push(e5(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||sa).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let sb={decay:si,inertia:si,tween:sw,keyframes:sw,spring:se};function sT(t){"string"==typeof t.type&&(t.type=sb[t.type])}let sS=t=>t/100;class sP extends ea{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eh.now()&&this.tick(eh.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),ed(this,this.options)}initAnimation(){let{options:t}=this;sT(t);let{type:e=sw,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||sw;a!==sw&&"number"!=typeof o[0]&&(this.mixKeyframes=iO(sS,iJ(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i0(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:u,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=s;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(w=o)),x=P(0,1,i)*a}v?(this.delayState.value=u[0],i=this.delayState):i=w.next(x),r&&!v&&(i.value=r(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&m!==si&&(i.value=eo(u,this.options,g,this.speed)),f&&f(i.value),T&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t4(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}
9getGeneratorVelocity(){return function(t,e,i=0){var s,n;let r;return e<=0?i:t.velocity?t.velocity(e):(s=e=>t.next(e).value,n=t.next(e).value,eb(n-s(r=Math.max(e-5,0)),e-r))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eh.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iQ,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eh.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let sA={anticipate:sp,backInOut:sc,circInOut:sg};class sE extends ev{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sA&&(t.ease=sA[t.ease])}(t),sT(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new sP({...r,autoplay:!1}),a=Math.max(10,eh.now()-this.startTime),l=P(0,10,a-10),h=o.sample(a).value,{name:u}=this.options;n&&u&&et(n,u,h),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,h,l),o.stop()}}let sM=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(J.test(t)||"0"===t)&&!t.startsWith("url("));function sk(t){t.duration=0,t.type="keyframes"}let sC=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sD=ee(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sR extends ea{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eh.now();const{keyframes:e,name:i,motionValue:s,element:n}=t;t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");const r=n?.KeyframeResolver||t5;this.keyframeResolver=new r(e,(e,i,s)=>this.onKeyframesResolved(e,i,t,!s),i,s,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=eh.now();let d=!0;!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=sM(n,e),a=sM(r,e);return o&&a?function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ey(i))&&s:(o!==a&&tg(`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`),!1)}(t,r,o,a)&&(d=!1,(tX.instantAnimations||!l)&&u?.(eo(t,i,e)),t[0]=t[t.length-1],sk(i),i.repeat=0);let c=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:p}=i;if(i.startTime??(i.startTime=c),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{p?.(),this.notifyFinished()},d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o,keyframes:a}=t;if(!i||!(ex.has(i)||sV.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
9let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return sD()&&(ex.has(i)||sV.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&sC.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!h&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(i)){i.element=i.motionValue?.owner?.current;try{n=new sE(i)}catch{n=new sP(i)}}else n=new sP(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),t0=!0,t2(),t1(),t0=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sj={type:"spring",stiffness:500,damping:25,restSpeed:10},sL={type:"keyframes",duration:.8},sB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sF=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sI=(t,e,i,s={},n,r)=>o=>{let a=iF(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=t4(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function(t){for(let e in t)if(!sF.has(e))return!0;return!1}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?sL:S.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sj:sB)(t,u)),u.duration&&(u.duration=t4(u.duration)),u.repeatDelay&&(u.repeatDelay=t4(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sk(u),0===u.delay&&(d=!0)),(tX.instantAnimations||tX.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,sk(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=eo(u.keyframes,a);if(void 0!==t)return void tK.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new sP(u):new sR(u)},sO="u">typeof window;function sN(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iB(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);let d=[],c=n&&t.animationState?.getState()[n],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,d),a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let s=i in t&&!e[i];return e[i]=!1,s}(c,e))continue;let o={delay:i,...iF(r||{},e)};u&&(o.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){tK.update(()=>s.set(n));continue}let p=!1;if(sO&&window.MotionHandoffAnimation){let i=t.props[ik];if(i){let t=window.MotionHandoffAnimation(i,e,tK);null!==t&&(o.startTime=t,p=!0)}}iI(t,e);let m=h??t.shouldReduceMotion;s.start(sI(e,s,n,m&&tp.has(e)?{type:!1}:o,t,p));let f=s.animation;f&&d.push(f)}if(o){let e=()=>tK.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=ij(t,e)||{};for(let e in n={...n,...i}){var r;let i=Array.isArray(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eP(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function sU(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function s$(t,e,i={}){let s=ij(t,e,iL(t,i.type)),n=i.transitionOverride||(s?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(s?sN(t,s,i):[]),o=(s=0)=>{let{variantChildren:r}=t,{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=n,h=[];return r?.forEach(t=>{t.notify("AnimationStart",e),h.push(s$(t,e,{...i,delay:s+("function"==typeof o?0:o)+sU(r,t,o,a,l)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(h)},{when:a}=n;return a?"beforeChildren"===a?r().then(()=>
9o()):o().then(r):Promise.all([r(),o(i.delay)])}function sW(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sz=[...ek].reverse();function sX(){let t={};for(let e of ek)t[e]={isActive:"animate"===e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return t}let sY=0;function s_(t){return[t("x"),t("y")]}function sH(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i,s)}let sK={x:!1,y:!1};function sG(t){return t.max-t.min}function sq(t,e,i,s=.5){t.origin=s,t.originPoint=e5(e.min,e.max,t.origin),t.scale=sG(i)/sG(e),t.translate=e5(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function sZ(t,e,i,s){sq(t.x,e.x,i.x,s?s.originX:void 0),sq(t.y,e.y,i.y,s?s.originY:void 0)}function sJ(t,e,i,s=0){t.min=(s?e5(i.min,i.max,s):i.min)+e.min,t.max=t.min+sG(e)}function sQ(t,e,i,s=0){let n=s?e5(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+sG(e)}function s0(t,e,i,s){sQ(t.x,e.x,i.x,s?.x),sQ(t.y,e.y,i.y,s?.y)}function s1(t){return u(t)&&"ownerSVGElement"in t}function s2(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let s5=new WeakMap,s3=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:s1(s)&&"getBBox"in s?s.getBBox()[e]:s[i],s9=s3("inline","width","offsetWidth"),s4=s3("block","height","offsetHeight");function s6({target:t,borderBoxSize:e}){s5.get(t)?.forEach(i=>{i(t,{get width(){return s9(t,e)},get height(){return s4(t,e)}})})}function s8(t){t.forEach(s6)}let s7=new Set;function nt(t,e){let n;return"function"==typeof t?(s7.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};s7.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{s7.delete(t),s7.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(s8)),(n=s2(t)).forEach(t=>{let s=s5.get(t);s||(s=new Set,s5.set(t,s)),s.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let s=s5.get(t);s?.delete(e),s?.size||i?.unobserve(t)})})}let ne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ni=new Set(["INPUT","SELECT","TEXTAREA"]),ns=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nn(t){return{point:{x:t.pageX,y:t.pageY}}}function nr(t,e,i,s){return sH(t,e,t=>ns(t)&&i(t,nn(t)),s)}let no=({current:t})=>t?t.ownerDocument.defaultView:null,na=(t,e)=>Math.abs(t-e),nl=new Set(["auto","scroll"]);class nh{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nu(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nc(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(na(t.x,e.x)**2+na(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i;this.history.push({...r,timestamp:eh.now()});let{onStart:o,onMove:a}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=nu(e,this.transformPagePoint),this.hasPendingMove=!0,tK.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nc("pointercancel"===t.type?this.lastMoveEventInfo:nu(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!ns(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=nu(nn(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tH;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,nc(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=iO(nr(this.contextWindow,"pointermove",this.handlePointerMove,d),nr(this.contextWindow,"pointerup",this.handlePointerUp,d),nr(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(nl.has(t.overflowX)||nl.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),tK.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tG(this.updatePoint)}}function nu(t,e){return e?{point:e(t.point)}:t}
9function nd(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nc({point:t},e){return{point:t,delta:nd(t,np(e)),offset:nd(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=np(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>t4(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*t4(.1)&&(i=t[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function np(t){return t[t.length-1]}function nm(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nf(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function ng(t,e,i){return{min:ny(t,e),max:ny(t,i)}}function ny(t,e){return"number"==typeof t?t:t[e]||0}let nv=new WeakMap;class nx{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=td(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(t),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sK[t])return null;else return sK[t]=!0,()=>{sK[t]=!1};return sK.x||sK.y?null:(sK.x=sK.y=!0,()=>{sK.x=sK.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),s_(t=>{let e=this.getAxisMotionValue(t).get()||0;if(O.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sG(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tK.update(()=>n(t,e),!1,!0),iI(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tK.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new nh(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:no(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tK.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nb(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?e5(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?e5(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&iV(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:nm(t.x,i,n),y:nm(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ng(t,"left","right"),y:ng(t,"top","bottom")}}(e),s!==this.constraints&&!iV(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&s_(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iV(e))return!1;let s=e.current;ty();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());
9let r=function(t,e,i){let s=io(t,i),{scroll:n}=e;return n&&(ie(s.x,n.offset.x),ie(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nf(t.x,r.x),y:nf(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e2(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(s_(o=>{if(!nb(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iI(this.visualElement,t),i.start(sI(t,i,0,e,this.visualElement,!1))}stopAnimation(){s_(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:e}){let{drag:i}=this.getProps(),s={x:t,y:e},n=this.visualElement.getTransformPagePoint()?.(s)||s,r=this.visualElement.measureViewportBox();s_(t=>{if(!nb(t,i,this.currentDirection))return;let e=this.getAxisMotionValue(t),{min:s,max:o}=r[t];e.set((e.get()||0)+n[t]-e5(s,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iV(e)||!i||!this.constraints)return;this.stopAnimation();let s=this.constraints,n={x:0,y:0};s_(t=>{var e,i;let r,o,a,l=this.getAxisMotionValue(t).get();n[t]=(e={min:l,max:l},i=s[t],r=.5,o=sG(e),(a=sG(i))>o?r=sx(i.min,i.max-o,e.min):o>a&&(r=sx(e.min,e.max-a,i.min)),P(0,1,r))});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),s_(e=>{let i=this.getAxisMotionValue(e);if(!nb(e,t,null)||!i.get())return;let{min:s,max:r}=this.constraints[e];i.set(e5(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nv.set(this.visualElement,this);let e=this.visualElement.current,i=nr(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=t.target,r=n!==e&&(ni.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,o,{dragConstraints:a}=this.getProps();iV(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,r=nt(i,nw(n=()=>this.scalePositionWithinConstraints())),o=nt(s,nw(n)),t=()=>{r(),o()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tK.read(s);let o=sH(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(s_(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function nw(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nb(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nT=t=>(e,i)=>{t&&tK.update(()=>t(e,i),!1,!0)},nS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nP=r;let nA=!1;class nE extends nP.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),nA&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nS.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nA=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tK.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ew.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;nA=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nM(t){let[e,i]=x(),s=(0,nP.useContext)(o);return(0,n.jsx)(nE,{...t,layoutGroup:s,switchLayoutGroup:(0,nP.useContext)(iC),isPresent:e,safeToRemove:i})}let nk=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],nC=t=>"number"==typeof t?t:parseFloat(t),nV=nk.length,nD=t=>"number"==typeof t||N.test(t);function nR(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nj=nB(0,.5,sf),nL=nB(.5,.95,tz);function nB(t,e,i){return s=>s<t?0:s>e?1:i(sx(t,e,s))}function nF(t,e){t.min=e.min,t.max=e.max}function nI(t,e){nF(t.x,e.x),nF(t.y,e.y)}function nO(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nN(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function nU(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(O.test(e)&&(e=parseFloat(e),e=e5(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e5(r.min,r.max,s);t===r&&(a-=e),t.min=nN(t.min,e,i,a,n),t.max=nN(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let n$=["x","scaleX","originX"],nW=["y","scaleY","originY"];function nz(t,e,i,s){nU(t.x,e,n$,i?i.x:void 0,s?s.x:void 0),nU(t.y,e,nW,i?i.y:void 0,s?s.y:void 0)}function nX(t){return 0===t.translate&&1===t.scale}function nY(t){return nX(t.x)&&nX(t.y)}function n_(t,e){return t.min===e.min&&t.max===e.max}function nH(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nK(t,e){return nH(t.x,e.x)&&nH(t.y,e.y)}function nG(t){return sG(t.x)/sG(t.y)}function nq(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nZ{constructor(){this.members=[]}add(t){t6(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(t8(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(t8(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function nJ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nQ={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!N.test(t))return t;else t=parseFloat(t);let i=nJ(t,e.target.x),s=nJ(t,e.target.y);return`${i}% ${s}%`}},n0={borderRadius:{...nQ,applyTo:[...nk]},borderTopLeftRadius:nQ,borderTopRightRadius:nQ,borderBottomLeftRadius:nQ,borderBottomRightRadius:nQ,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=J.parse(t);if(s.length>5)return t;let n=J.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=e5(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}},n1=(t,e)=>t.depth-e.depth;class n2{constructor(){this.children=[],this.isDirty=!1}add(t){t6(this.children,t),this.isDirty=!0}remove(t){t8(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n1),this.isDirty=!1,this.children.forEach(t)}}Object.assign(eZ,{...n0,...eZ});let n5=["","X","Y","Z"],n3=0;function n9(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function n4({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=n3++,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.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(n7),this.nodes.forEach(rh),this.nodes.forEach(ru),this.nodes.forEach(rt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n2)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t7),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=s1(e)&&!(s1(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;tK.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=eh.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tG(r),n())},tK.setup(r,!0),i=()=>tG(r),nS.hasAnimatedSinceResize&&(nS.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(rl))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rg,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nK(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iF(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||rl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tG(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(rd),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[ik];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tK,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rs),this.nodes.forEach(ri);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rn);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rr),this.nodes.forEach(ro),this.nodes.forEach(ra),this.nodes.forEach(n6),this.nodes.forEach(n8)):this.nodes.forEach(rn),this.clearAllSnapshots();let t=eh.now();tH.delta=P(0,1e3/60,t-tH.timestamp),tH.timestamp=t,tH.isProcessing=!0,tq.update.process(tH),tq.preRender.process(tH),tq.render.process(tH),tH.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ew.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(re),this.sharedNodes.forEach(rc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tK.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tK.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sG(this.snapshot.measuredBox.x)||sG(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=td()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nY(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||e4(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rx((e=s).x),rx(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return td();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rb))){let{scroll:t}=this.root;t&&(ie(e.x,t.offset.x),ie(e.y,t.offset.y))}return e}removeElementScroll(t){let e=td();if(nI(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nI(e,t),ie(e.x,n.offset.x),ie(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||td();nI(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ie(s.x,-i.scroll.offset.x),ie(s.y,-i.scroll.offset.y)),e4(i.latestValues)&&ir(s,i.latestValues,i.layout?.layoutBox)}return e4(this.latestValues)&&ir(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=td();nI(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];e4(s.latestValues)&&(s.instance&&(e9(s.latestValues)&&s.updateSnapshot(),nI(i=td(),s.measurePageBox())),nz(e,s.latestValues,s.snapshot?.layoutBox,i))}return e4(this.latestValues)&&nz(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tH.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=tH.timestamp;let r=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=td(),this.targetWithTransforms=td()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,sJ(o.x,a.x,l.x,h?.x),sJ(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nI(this.target,this.layout.layoutBox),it(this.target,this.targetDelta)):nI(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||e9(this.parent.latestValues)||e6(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=td(),this.relativeTargetOrigin=td(),s0(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nI(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tH.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;nI(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ie(t.x,-n.scroll.offset.x),ie(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,it(t,r)),s&&e4(n.latestValues)&&ir(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=td());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nO(this.prevProjectionDelta.x,this.projectionDelta.x),nO(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sZ(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nq(this.projectionDelta.x,this.prevProjectionDelta.x)&&nq(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=th(),this.projectionDelta=th(),this.projectionDeltaWithTransform=th()}setAnimationOrigin(t,e=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a=th();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=td(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(rf));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=p?.(i);if(n?(a.x.translate=n.x,a.x.scale=e5(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=e5(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(rp(a.x,t.x,i),rp(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;s0(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,rm(f.x,g.x,y.x,v),rm(f.y,g.y,y.y,v),s&&(u=this.relativeTarget,m=s,n_(u.x,m.x)&&n_(u.y,m.y))&&(this.isProjectionDirty=!1),s||(s=td()),nI(s,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,s,n,r){n?(t.opacity=e5(0,i.opacity??1,nj(s)),t.opacityExit=e5(e.opacity??1,0,nL(s))):r&&(t.opacity=e5(e.opacity??1,i.opacity??1,s));for(let n=0;n<nV;n++){let r=nk[n],o=nR(e,r),a=nR(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nD(o)===nD(a)?(t[r]=Math.max(e5(nC(o),nC(a),s),0),(O.test(a)||O.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=e5(e.rotate||0,i.rotate||0,s))}(o,r,this.latestValues,i,c,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tG(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tK.update(()=>{var e,i,s;let n;nS.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=eP(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=tc(e)?e:eP(e)).start(sI("",n,i,s)),n.animation),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...eu("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,layout:i,latestValues:s}=t,{target:n}=t;
9if(e&&n&&i){if(this!==t&&this.layout&&i&&rw(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||td();let e=sG(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=sG(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}nI(e,n),ir(e,s),sZ(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nZ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&n9("z",t,s,this.animationValues);for(let e=0;e<n5.length;e++)n9(`rotate${n5[e]}`,t,s,this.animationValues),n9(`skew${n5[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ix(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ix(e?.pointerEvents)||""),this.hasProjected&&!e4(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:n,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),l&&(s+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,eZ){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eZ[e],l="none"===r?n[e]:i(n[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?ix(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ri),this.root.sharedNodes.clear()}}}function n6(t){t.updateLayout()}function n8(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;if("size"===n)s_(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=sG(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nF(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rw(n,e.layoutBox,i)&&s_(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=sG(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=th();sZ(o,i,e.layoutBox);let a=th();r?sZ(a,t.applyTransform(s,!0),e.measuredBox):sZ(a,i,e.layoutBox);let l=!nY(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=t.options.layoutAnchor||void 0,a=td();s0(a,e.layoutBox,n.layoutBox,o);let l=td();s0(l,i,r.layoutBox,o),nK(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n7(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function re(t){t.clearSnapshot()}function ri(t){t.clearMeasurements()}function rs(t){t.isLayoutDirty=!0,t.updateLayout()}function rn(t){t.isLayoutDirty=!1}function rr(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ro(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function ra(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rl(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rh(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}function rd(t){t.resetSkewAndRotation()}function rc(t){t.removeLeadSnapshot()}function rp(t,e,i){t.translate=e5(e.translate,0,i),t.scale=e5(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rm(t,e,i,s){t.min=e5(e.min,i.min,s),t.max=e5(e.max,i.max,s)}function rf(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rg={duration:.45,ease:[.4,0,.1,1]},ry=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rv=ry("applewebkit/")&&!ry("chrome/")?Math.round:tz;function rx(t){t.min=rv(t.min),t.max=rv(t.max)}function rw(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nG(e)-nG(i)))}function rb(t){return t!==t.root&&t.scroll?.wasRoot}let rT=n4({attachResizeListener:(t,e)=>sH(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rS={current:void 0},rP=n4({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rS.current){let t=new rT({});t.mount(window),t.setOptions({layoutScroll:!0}),rS.current=t}return rS.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rA(t,e){let i=s2(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function rE(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tK.postRender(()=>n(e,nn(e)))}let rM=(t,e)=>!!e&&(t===e||rM(t,e.parentElement)),rk=new WeakSet;function rC(t){return e=>{"Enter"===e.key&&t(e)}}function rV(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rD(t){return ns(t)&&!(sK.x||sK.y)}let rR=new WeakSet;function rj(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&tK.postRender(()=>n(e,nn(e)))}let rL=new WeakMap,rB=new WeakMap,rF=t=>{let e=rL.get(t.target);e&&e(t)},rI=t=>{t.forEach(rF)},rO={some:0,all:1},rN=function(t,e){if("u"<typeof Proxy)return iD;let i=new Map,s=(i,s)=>iD(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iD(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iR{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(e=>s$(t,e,i))):"string"==typeof e?s$(t,e,i):Promise.all(sN(t,ij(t,e,
9i.custom),i))).then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sX(),s=!0,n=!1;function r(r){let{props:o,parent:a,manuallyAnimateOnMount:l}=t,h=s||n,u=[],d=new Set,c={},p=1/0,m=t;do m=!1!==m.props.inherit&&m.parent;while(m&&!m.isControllingVariants)if(sz.forEach((e,s)=>{var n,f;let g=i[e],y=o[e],v=m&&m.props[e],x=void 0!==y?y:eM(v)||!1===v?v:void 0,w=eM(x),b=e===r?g.isActive:null;!1===b&&(p=s);let T=w&&void 0===y&&!(h&&l);if(g.protectedKeys={...c},!g.isActive&&null===b||!x&&!g.prevProp||eE(x)||"boolean"==typeof x)return;if("exit"===e&&g.isActive&&!0!==b){c={...c,...g.prevResolvedValues};return}let S=(n=g.prevProp,"string"==typeof(f=x)?f!==n:!!Array.isArray(f)&&!sW(f,n)),P=S||w&&(b&&!T||s>p),A=!1,E=Array.isArray(x)?x:[x],M={};if(!1!==b)for(let i of E){let{transition:s,transitionEnd:n,...r}=ij(t,i,iL(t,e))||{};M={...M,...r,...n}}let{prevResolvedValues:k}=g;for(let e in{...k,...M}){if(e in c)continue;let i=M[e],s=k[e],n=Array.isArray(i)&&Array.isArray(s)?!sW(i,s)||S:i!==s;if(n&&null==i)d.add(e);else if(n||void 0!==i&&d.has(e)){P=!0,d.delete(e)&&(A=!0),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)}else g.protectedKeys[e]=!0}if(g.prevProp=x,g.prevResolvedValues=M,g.isActive&&(c={...c,...M}),P&&(!(T&&S)||A))for(let i of E){let s={type:e};if("string"==typeof i&&h&&l&&a?.enteringChildren){let e=ij(a,i)?.transition?.delayChildren;s.delay=sU(a.enteringChildren,t,e)}u.push({animation:i,options:s})}}),d.size){let{initial:e}=o,i={},s="boolean"!=typeof e&&ij(t,Array.isArray(e)?e[0]:e,t.presenceContext?.custom);s&&s.transition&&(i.transition=s.transition),d.forEach(n=>{let r=t.getValue(n);r&&(r.liveStyle=!0);let a=s&&!Array.isArray(e)?s[n]:void 0,l=t.getBaseTargetFromProps(o,n);i[n]=(void 0!==a?a:void 0===l||tc(l)?void 0===t.initialValues[n]?t.baseTarget[n]:void 0:l)??null}),u.push({animation:i})}let f=h&&t.blockInitialAnimation||s&&!l&&(!1===o.initial||o.initial===o.animate);return s=n=!1,!f&&u.length?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:i=>{e=i(t)},getState:()=>i,reset:()=>{i=sX(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eE(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iR{constructor(){super(...arguments),this.id=sY++}update(){let{presenceContext:t,prevPresenceContext:e,animationState:i}=this.node;if(!t||!i)return;let{isPresent:s,onExitComplete:n}=t,r=e?.isPresent;if(s===r)return;if(s&&!1===r){if(!0===this.exit){let{initial:t}=this.node.getProps();if(t&&!Array.isArray(t)){let{transition:e,transitionEnd:i,...s}=ij(this.node,t)||{};for(let t in s)this.node.getValue(t)?.jump(s[t])}this.node.blockInitialAnimation=!1,i.reset(),i.animateChanges()}else i.setActive("exit",!1);this.exit=void 0;return}let o=this.exit=i.setActive("exit",!s);n&&!s&&o.then(()=>{this.exit===o&&(this.exit=!0,n(this.id))})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iR{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rO[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rB.has(i)||rB.set(i,{});let s=rB.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(rI,{root:t,...e})),s[n]}(a),rL.set(t,l),e.observe(t),()=>{rL.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iR{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=rA(t,i),o=t=>{let s=t.currentTarget;if(!rD(t)||rR.has(t))return;rk.add(s),i.stopPropagation&&rR.add(t);let r=e(s,t),o={...n,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),rk.has(s)&&rk.delete(s),rD(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||rM(s,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),d(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rC(()=>{if(rk.has(i))return;rV(i,"down");let t=rC(()=>{rV(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rV(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),ne.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rj(this.node,e,"Start"),(t,{success:e})=>rj(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iR{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iO(sH(this.node.current,"focus",()=>this.onFocus()),sH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iR{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rA(t,i);return s.forEach(t=>{let i,s=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sK.x||sK.y)return;r=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),r}(t,(t,e)=>(rE(this.node,e,"Start"),t=>rE(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iR{constructor(){super(...arguments),this.removePointerDownListener=tz}onPointerDown(t){this.session=new nh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:no(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nT(t),onStart:nT(e),onMove:nT(i),onEnd:(t,e)=>{delete this.session,s&&tK.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=nr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iR{constructor(t){super(t),this.removeGroupControls=tz,this.removeListeners=tz,this.controls=new nx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tz}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rP,MeasureLayout:nM},layout:{ProjectionNode:rP,MeasureLayout:nM}},(t,e)=>e.isSVG??ih(t)?new e1(e):new ia(e,{allowProjection:t!==r.Fragment}));t.s(["motion",0,rN],846932)},257096,t=>{"use strict";var e=t.i(843476),i=t.i(163858),s=t.i(609983),n=t.i(271645);let r=` 10@keyframes indeterminate { 11 0% { 12 transform: translateX(-100%); 13 width: 30%; 14 } 15 50% { 16 width: 60%; 17 } 18 100% { 19 transform: translateX(300%); 20 width: 30%; 21 } 22} 23 24.animate-indeterminate { 25 animation: indeterminate 2s ease-in-out infinite; 26} 27`;if("u">typeof document){let t=document.createElement("style");t.textContent=r,document.head.appendChild(t)}t.s(["ProgressIndicator",0,function({progress:t,label:r,sublabel:o,status:a="running",size:l="md",showPercentage:h=!0,indeterminate:u=!1,className:d=""}
27){let[c,p]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!u){let e=setTimeout(()=>{p(Math.max(0,Math.min(100,t)))},100);return()=>clearTimeout(e)}},[t,u]);let m=()=>{switch(l){case"sm":return"h-1";case"lg":return"h-3";default:return"h-2"}},f=()=>{switch(l){case"sm":return"text-xs";case"lg":return"text-base";default:return"text-sm"}},g=()=>{switch(a){case"success":return"bg-green-500";case"error":return"bg-red-500";case"idle":return"bg-zinc-400";default:return"bg-emerald-500"}};return(0,e.jsxs)("div",{className:`space-y-2 ${d}`,children:[(r||o||h)&&(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[r&&(0,e.jsx)("p",{className:`font-medium text-zinc-900 dark:text-white ${f()}`,children:r}),o&&(0,e.jsx)("p",{className:`text-zinc-500 dark:text-zinc-400 ${"sm"===l?"text-xs":"text-sm"}`,children:o})]}),h&&!u&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)("span",{className:`font-medium text-zinc-900 dark:text-white ${f()}`,children:[Math.round(c),"%"]}),"success"===a&&(0,e.jsx)(i.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),"error"===a&&(0,e.jsx)(s.XCircleIcon,{className:"h-5 w-5 text-red-500"})]})]}),(0,e.jsx)("div",{className:`w-full overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700 ${m()}`,children:u?(0,e.jsx)("div",{className:`${m()} ${g()} animate-indeterminate rounded-full`}):(0,e.jsx)("div",{className:`${m()} ${g()} rounded-full transition-all duration-500 ease-out`,style:{width:`${c}%`}})})]})}])},380253,t=>{"use strict";var e=t.i(843476),i=t.i(257096),s=t.i(918290),n=t.i(829744),r=t.i(427217),o=t.i(88653),a=t.i(846932),l=t.i(271645);let h=(0,l.createContext)(void 0),u=null,d=["success","error","warning","info"];function c({toasts:t,onRemove:i}){return(0,e.jsx)("div",{className:"pointer-events-none fixed top-4 right-4 z-60 max-w-sm space-y-2","data-testid":"toast-container",children:(0,e.jsx)(o.AnimatePresence,{mode:"popLayout",children:t.map(t=>(0,e.jsx)(p,{toast:t,onRemove:i},t.id))})})}function p({toast:t,onRemove:n}){let{t:o}=(0,s.useI18n)(),l=t.progress,h=l?.status==="running"&&"function"==typeof l.onCancel;return(0,e.jsxs)(a.motion.div,{initial:{opacity:0,x:100,scale:.8},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:100,scale:.8},className:`${(t=>{switch(t){case"success":return"bg-emerald-50 dark:bg-emerald-900/50 border-emerald-200 dark:border-emerald-800 text-emerald-800 dark:text-emerald-200";case"error":return"bg-red-50 dark:bg-red-900/50 border-red-200 dark:border-red-800 text-red-800 dark:text-red-200";case"warning":return"bg-amber-50 dark:bg-amber-900/50 border-amber-200 dark:border-amber-800 text-amber-800 dark:text-amber-200";default:return"bg-blue-50 dark:bg-blue-900/50 border-blue-200 dark:border-blue-800 text-blue-800 dark:text-blue-200"}})(t.type)} pointer-events-auto flex min-w-0 ${l?"items-start":"items-center"} space-x-3 rounded-lg border p-4 shadow-lg`,role:"error"===t.type?"alert":"status","data-testid":"toast-item","data-toast-type":t.type,children:[!l&&(0,e.jsx)("span",{className:"shrink-0 text-lg",children:(t=>{switch(t){case"success":return"â";case"error":return"â";case"warning":return"â ";default:return"â¹"}})(t.type)}),(0,e.jsx)("div",{className:"min-w-0 flex-1",children:l?(0,e.jsx)(i.ProgressIndicator,{progress:l.progress,label:t.message,sublabel:l.sublabel,status:l.status,indeterminate:l.indeterminate,showPercentage:!l.indeterminate}):(0,e.jsx)("p",{className:"text-sm font-medium break-words whitespace-pre-line",children:t.message})}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[h&&(0,e.jsx)("button",{onClick:()=>l.onCancel(),className:"rounded p-1 transition-opacity hover:opacity-70","data-testid":"toast-cancel","aria-label":o("progress.cancel"),children:(0,e.jsx)(r.XMarkIcon,{className:"h-4 w-4"})}),(0,e.jsxs)("button",{onClick:()=>n(t.id),className:"shrink-0 rounded p-1 text-current transition-opacity hover:opacity-70","aria-label":o("shared.toast.close"),children:[(0,e.jsx)("span",{className:"sr-only",children:o("shared.toast.close")}),(0,e.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})]})]})]})}t.s(["ToastProvider",0,function({children:t}){let i=(0,n.useNotificationStore)(t=>t.toasts),s=(0,n.useNotificationStore)(t=>t.addToast),r=(0,n.useNotificationStore)(t=>t.removeToast),o=(0,n.useNotificationStore)(t=>t.consumeFlashes),a=(0,l.useRef)(new Map),p=(0,l.useCallback)((t,e,i)=>{let o=void 0===i?n.DEFAULT_TOAST_DURATION_MS:i,l=s(t,e,o);if(o>0&&l){let t=setTimeout(()=>{r(l),a.current.delete(l)},o);a.current.set(l,t)}return l},[s,r]),m=(0,l.useCallback)(t=>{r(t);let e=a.current.get(t);e&&(clearTimeout(e),a.current.delete(t))},[r]);return(0,l.useEffect)(()=>{u=p;let t=Date.now(),e=n.useNotificationStore.getState().toasts,i=[];for(let s of e){let e=s.duration??n.DEFAULT_TOAST_DURATION_MS;if(e<=0){i.push(s);continue}let o=e-(t-(s.createdAt??t));if(o<=0)continue;i.push(s);let l=setTimeout(()=>{r(s.id),a.current.delete(s.id)},o);
27a.current.set(s.id,l)}for(let t of(i.length!==e.length&&n.useNotificationStore.setState({toasts:i}),o()))p(t.message,t.type,t.duration);{let t=new URLSearchParams(window.location.search),e=t.get("flash_msg");if(e){let i=t.get("flash_type"),s=t.get("flash_duration");p(e,i&&d.includes(i)?i:"info",null===s||Number.isNaN(Number(s))?void 0:Number(s)),t.delete("flash_msg"),t.delete("flash_type"),t.delete("flash_duration");let n=t.toString(),r=window.location.pathname+(n?`?${n}`:"")+window.location.hash;window.history.replaceState({},"",r)}}let s=a.current;return()=>{u=null,s.forEach(t=>clearTimeout(t)),s.clear()}},[]),(0,e.jsxs)(h.Provider,{value:{addToast:p,showToast:p,removeToast:m},children:[t,(0,e.jsx)(c,{toasts:i,onRemove:m})]})},"toast",0,function(t,e,i){return u?u(t,e,i):("u">typeof console&&console.warn("Toast dispatched before ToastProvider mounted:",t),"")},"useToast",0,function(){let t=(0,l.useContext)(h);if(!t)throw Error("useToast must be used within a ToastProvider");return t}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.