1import{o as e,t}from"./jsx-runtime-cvnAX2Ol.js";import{t as n}from"./react-CaRYtjPf.js";import{a as r,b as i,f as a,g as o,h as s,m as c,p as l,tt as u,u as d,x as f}from"./seo-DWzwmZK0.js";var p=t(),m=e(n(),1),h=(0,m.createContext)({}),g=typeof window<`u`?m.useLayoutEffect:m.useEffect,_=(0,m.createContext)(null);function v(e,t){e.indexOf(t)===-1&&e.push(t)}function y(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var b=(e,t,n)=>n>t?t:n<e?e:n,x={},S=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),C=e=>typeof e==`object`&&!!e,w=e=>/^0[^.\s]+$/u.test(e);function T(e){let t;return()=>(t===void 0&&(t=e()),t)}var E=e=>e,D=(...e)=>e.reduce((e,t)=>n=>t(e(n))),O=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ee=class{constructor(){this.subscriptions=[]}add(e){return v(this.subscriptions,e),()=>y(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3,j=(e,t)=>t?1e3/t*e:0,M=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},te=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ne=1e-7,N=12;function re(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=te(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ne&&++s<N);return o}function ie(e,t,n,r){if(e===t&&n===r)return E;let i=t=>re(t,0,1,e,n);return e=>e===0||e===1?e:te(i(e),t,r)}var ae=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oe=e=>t=>1-e(1-t),P=ie(.33,1.53,.69,.99),F=oe(P),se=ae(F),ce=e=>e>=1?1:(e*=2)<1?.5*F(e):.5*(2-2**(-10*(e-1))),I=e=>1-Math.sin(Math.acos(e)),le=oe(I),ue=ae(I),de=ie(.42,0,1,1),fe=ie(0,0,.58,1),pe=ie(.42,0,.58,1),me=e=>Array.isArray(e)&&typeof e[0]!=`number`;function he(e,t){return me(e)?e[M(0,e.length,t)]:e}var ge=e=>Array.isArray(e)&&typeof e[0]==`number`,_e={linear:E,easeIn:de,easeInOut:pe,easeOut:fe,circIn:I,circInOut:ue,circOut:le,backIn:F,backInOut:se,backOut:P,anticipate:ce},ve=e=>typeof e==`string`,ye=e=>{if(ge(e)){e.length;let[t,n,r,i]=e;return ie(t,n,r,i)}return ve(e)?(_e[e],`${e}`,_e[e]):e},be=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function xe(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Se=40;function Ce(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=be.reduce((e,t)=>(e[t]=xe(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=x.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Se),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:be.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<be.length;t++)o[be[t]].cancel(e)},state:i,steps:o}}var{schedule:L,cancel:we,state:Te,steps:Ee}=Ce(typeof requestAnimationFrame<`u`?requestAnimationFrame:E,!0),De;function Oe(){De=void 0}var ke={now:()=>(De===void 0&&ke.set(Te.isProcessing||x.useManualTiming?Te.timestamp:performance.now()),De),set:e=>{De=e,queueMicrotask(Oe)}},Ae=e=>t=>typeof t==`string`&&t.startsWith(e),je=Ae(`--`),Me=Ae(`var(--`),Ne=e=>Me(e)?Pe.test(e.split(`/*`)[0].trim()):!1,Pe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fe(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ie={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Le={...Ie,transform:e=>b(0,1,e)},Re={...Ie,default:1},ze=e=>Math.round(e*1e5)/1e5,Be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ve(e){return e==null}var He=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ue=(e,t)=>n=>!!(typeof n==`string`&&He.test(n)&&n.startsWith(e)||t&&!Ve(n)&&Object.prototype.hasOwnProperty.call(n,t)),We=(e,t,n
1)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Be);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ge=e=>b(0,255,e),Ke={...Ie,transform:e=>Math.round(Ge(e))},qe={test:Ue(`rgb`,`red`),parse:We(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ke.transform(e)+`, `+Ke.transform(t)+`, `+Ke.transform(n)+`, `+ze(Le.transform(r))+`)`};function Je(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ye={test:Ue(`#`),parse:Je,transform:qe.transform},Xe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ze=Xe(`deg`),Qe=Xe(`%`),R=Xe(`px`),$e=Xe(`vh`),et=Xe(`vw`),tt={...Qe,parse:e=>Qe.parse(e)/100,transform:e=>Qe.transform(e*100)},nt={test:Ue(`hsl`,`hue`),parse:We(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qe.transform(ze(t))+`, `+Qe.transform(ze(n))+`, `+ze(Le.transform(r))+`)`},z={test:e=>qe.test(e)||Ye.test(e)||nt.test(e),parse:e=>qe.test(e)?qe.parse(e):nt.test(e)?nt.parse(e):Ye.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?qe.transform(e):nt.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function it(e){return isNaN(e)&&typeof e==`string`&&(e.match(Be)?.length||0)+(e.match(rt)?.length||0)>0}var at=`number`,ot=`color`,st=`var`,ct=`var(`,lt="${}",ut=/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 dt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ut,e=>(z.test(e)?(r.color.push(a),i.push(ot),n.push(z.parse(e))):e.startsWith(ct)?(r.var.push(a),i.push(st),n.push(e)):(r.number.push(a),i.push(at),n.push(parseFloat(e))),++a,lt)).split(lt),indexes:r,types:i}}function ft(e){return dt(e).values}function pt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===at?ze(r[a]):e===ot?z.transform(r[a]):r[a]}return i}}function mt(e){return pt(dt(e))}var ht=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,gt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ht(e);function _t(e){let t=dt(e);return pt(t)(t.values.map((e,n)=>gt(e,t.split[n])))}var vt={test:it,parse:ft,createTransformer:mt,getAnimatableNone:_t};function yt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=yt(s,r,e+1/3),a=yt(s,r,e),o=yt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function xt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,St=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ct=[Ye,qe,nt],wt=e=>Ct.find(t=>t.test(e));function Tt(e){let t=wt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===nt&&(n=bt(n)),n}var Et=(e,t)=>{let n=Tt(e),r=Tt(t);if(!n||!r)return xt(e,t);let i={...n};return e=>(i.red=St(n.red,r.red,e),i.green=St(n.green,r.green,e),i.blue=St(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),qe.transform(i))},Dt=new Set([`none`,`hidden`]);function Ot(e,t){return Dt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kt(e,t){return n=>B(e,t,n)}function At(e){return typeof e==`number`?kt:typeof e==`string`?Ne(e)?xt:z.test(e)?Et:Pt:Array.isArray(e)?jt:typeof e==`object`?z.test(e)?Et:Mt:xt}function jt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>At(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Mt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=At(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Nt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Pt=(e,t)=>
1{let n=vt.createTransformer(t),r=dt(e),i=dt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Dt.has(e)&&!i.values.length||Dt.has(t)&&!r.values.length?Ot(e,t):D(jt(Nt(r,i),i.values),n):(`${e}${t}`,xt(e,t))};function Ft(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):At(e)(e,t)}var It=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>L.update(t,e),stop:()=>we(t),now:()=>Te.isProcessing?Te.timestamp:ke.now()}},Lt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function zt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Bt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(zt(r),Rt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vt(e,t){return e*Math.sqrt(1-t*t)}var Ht=12;function Ut(e,t,n){let r=n;for(let n=1;n<Ht;n++)r-=e(r)/t(r);return r}var Wt=.001;function Gt({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,a;V.maxDuration;let o=1-t;o=b(V.minDamping,V.maxDamping,o),e=b(V.minDuration,V.maxDuration,A(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Vt(t,o),c=Math.exp(-i);return Wt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Vt(t**2,o);return(-i(t)+Wt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Ut(i,a,s);if(e=k(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Kt=[`duration`,`bounce`],qt=[`stiffness`,`damping`,`mass`];function Jt(e,t){return t.some(t=>e[t]!==void 0)}function Yt(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Jt(e,qt)&&Jt(e,Kt)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*b(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=Gt({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}}return t}function Xt(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Yt({...n,velocity:-A(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=A(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Vt(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>k(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=k(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=k(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(zt(T),Rt),t=Lt(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Xt.applyToOptions=e=>{let t=Bt(e,100,Xt);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};var Zt=5;function Qt(e,t,n){let r=Math.max(t-Zt,0);return j(n-e(r),t-r)}function $t({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
1500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Xt({keyframes:[f.value,m(f.value)],velocity:Qt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function en(e,t,n){let r=[],i=n||x.mix||Ft,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=D(Array.isArray(t)?t[n]||E:t,a)),r.push(a)}return r}function tn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=en(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=O(e[r],e[r+1],n);return s[r](i)};return n?t=>l(b(e[0],e[a-1],t)):l}function nn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=O(0,t,r);e.push(B(n,1,i))}}function rn(e){let t=[0];return nn(t,e.length-1),t}function an(e,t){return e.map(e=>e*t)}function on(e,t){return e.map(()=>t||pe).splice(0,e.length-1)}function sn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=me(r)?r.map(ye):ye(r),a={done:!1,value:t[0]},o=tn(an(n&&n.length===t.length?n:rn(t),e),t,{ease:Array.isArray(i)?i:on(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var cn=e=>e!==null;function ln(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(cn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var un={decay:$t,inertia:$t,tween:sn,keyframes:sn,spring:Xt};function dn(e){typeof e.type==`string`&&(e.type=un[e.type])}var fn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},pn=e=>e/100,mn=class extends fn{constructor(e){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:e}=this.options;e&&e.updatedAt!==ke.now()&&this.tick(ke.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;dn(e);let{type:t=sn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||sn;s!==sn&&typeof o[0]!=`number`&&(this.mixKeyframes=D(pn,Ft(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=zt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=b(0,1,n)*o}let x;_?(this.delayState.value=l[0],x=this.delayState):x=y.next(v),i&&!_&&(x.value=i(x.value));let{done:S}=x;!_&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==$t&&(x.value=ln(l,this.options,h,this.speed)),m&&m(x.value),C&&this.finish(),x}
1then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Qt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ke.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=It,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(ke.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function hn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var gn=e=>e*180/Math.PI,_n=e=>yn(gn(Math.atan2(e[1],e[0]))),vn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_n,rotateZ:_n,skewX:e=>gn(Math.atan(e[1])),skewY:e=>gn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yn=e=>(e%=360,e<0&&(e+=360),e),bn=_n,xn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Cn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xn,scaleY:Sn,scale:e=>(xn(e)+Sn(e))/2,rotateX:e=>yn(gn(Math.atan2(e[6],e[5]))),rotateY:e=>yn(gn(Math.atan2(-e[2],e[0]))),rotateZ:bn,rotate:bn,skewX:e=>gn(Math.atan(e[4])),skewY:e=>gn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wn(e){return+!!e.includes(`scale`)}function Tn(e,t){if(!e||e===`none`)return wn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Cn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vn,i=t}if(!i)return wn(t);let a=r[t],o=i[1].split(`,`).map(Dn);return typeof a==`function`?a(o):o[a]}var En=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Tn(n,t)};function Dn(e){return parseFloat(e.trim())}var On=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],kn=new Set([...On,`pathRotation`]),An=e=>e===Ie||e===R,jn=new Set([`x`,`y`,`z`]),Mn=On.filter(e=>!jn.has(e));function Nn(e){let t=[];return Mn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Pn={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tn(t,`x`),y:(e,{transform:t})=>Tn(t,`y`)};Pn.translateX=Pn.x,Pn.translateY=Pn.y;var Fn=new Set,In=!1,Ln=!1,Rn=!1;function zn(){if(Ln){let e=Array.from(Fn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t=Nn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Ln=!1,In=!1,Fn.forEach(e=>e.complete(Rn)),Fn.clear()}function Bn(){Fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ln=!0)})}function Vn(){Rn=!0,Bn(),zn(),Rn=!1}var Hn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Fn.add(this),In||(In=!0,L.read(Bn),L.resolveKeyframes(zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}hn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fn.delete(this)}cancel(){this.state===`scheduled`&&(Fn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Un=e=>e.startsWith(`--`);function Wn(e,t,n){Un(t)?e.style.setProperty(t,n):e.style[t]=n}var Gn={};function Kn(e,t){let n=T(e);return()=>Gn[t]??n()}var qn=Kn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Jn=Kn(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Yn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Yn([0,.65,.55,1]),circOut:Yn([.55,0,1,.45]),backIn:Yn([.31,.01,.66,-.59]),backOut:Yn([.33,1.53,.69,.99])};function Zn(e,t){if(e)return typeof e==`function`?Jn()?Lt(e,t):`ease-out`:ge(e)?Yn(e):Array.isArray(e)?e.map(e=>Zn(e,t)||Xn.easeOut):Xn[e]}function Qn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Zn(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function $n(e){return typeof e==`function`&&`applyToOptions`in e}function er({type:e,...t}){return $n(e)&&Jn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var tr=class extends fn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=er(e);this.animation=Qn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ln(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Wn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&qn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),E):r(this)}},nr={anticipate:ce,backInOut:se,circInOut:ue};function rr(e){return e in nr}function ir(e){typeof e.ease==`string`&&rr(e.ease)&&(e.ease=nr[e.ease])}var ar=10,or=class extends tr{constructor(e){ir(e),dn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new mn({...a,autoplay:!1}),s=Math.max(ar,ke.now()-this.startTime),c=b(0,ar,s-ar),l=o.sample(s).value,{name:u}=this.options;i&&u&&Wn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},sr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(vt.test(e)||e===`0`)&&!e.startsWith(`url(`));function cr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function lr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=sr(i,t),s=sr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:cr(e)||(n===`spring`||$n(n))&&r}function ur(e){e.duration=0,e.type=`keyframes`}var dr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),fr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function pr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&fr.test(e[t]))return!0;return!1}var mr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),hr=T(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function gr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return hr()&&n&&(dr.has(n)||mr.has(n)&&pr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var _r=40,vr=class extends fn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ke.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Hn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ke.now();let u=!0;lr(e,i,a,o)||(u=!1,(x.instantAnimations||!s)&&l?.(ln(e,n,t)),e[0]=e[e.length-1],ur(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>_r?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&gr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new or({...d,element:p})}catch{m=new mn(d)}else m=new mn(d);m.finished.then(()=>{this.notifyFinished()}).catch(E),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},yr=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return br(this.animations,`duration`)}get iterationDuration(){return br(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function br(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var xr=class extends yr{then(e,t){return this.finished.finally(e).then(()=>{})}};function Sr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Cr=30,wr=e=>!isNaN(parseFloat(e)),Tr={current:void 0},Er=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ke.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ke.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ee);let n=this.events[e].add(t);return e===`change`?()=>{n(),L.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Tr.current&&Tr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ke.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Cr);return j(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Dr(e,t){return new Er(e,t)}function Or(e,t){let n=e?.[t]??e?.default??e;return n===e?n:c(n,e)}var kr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ar=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jr={type:`keyframes`,duration:.8},Mr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Nr=(e,{keyframes:t})=>t.length>2?jr:kn.has(e)?e.startsWith(`scale`)?Ar(t[1]):kr:Mr,Pr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fr(e){for(let t in e)if(!Pr.has(t))return!0;return!1}var Ir=(e,t,n,r={},i,a)=>o=>{let s=Or(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fr(s)||Object.assign(u,Nr(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ur(u),u.delay===0&&(d=!0)),(x.instantAnimations||x.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ur(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ln(u.keyframes,s);if(e!==void 0){L.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new mn(u):new vr(u)},Lr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rr(e){let t=Lr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zr(e,t,n=1){`${e}`;let[r,i]=Rr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return S(e)?parseFloat(e):e}return Ne(i)?zr(i,t,n+1):i}function Br(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vr(e,t,n,r){if(typeof t==`function`){let[i,a]=Br(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Br(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hr(e,t,n){let r=e.getProps();return Vr(r,t,n===void 0?r.custom:n,e)}var Ur=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...On]),Wr=e=>Array.isArray(e);function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function Kr(e){return Wr(e)?e[e.length-1]||0:e}function qr(e,t){let{transitionEnd:n={},transition:r={},...i}=Hr(e,t)||{};i={...i,...n};for(let t in i)Gr(e,t,Kr(i[t]))}function Jr(e){return!!(l(e)&&e.add)}function Yr(e,t){let n=e.getValue(`willChange`);if(Jr(n))return n.add(t);if(!n&&x.WillChange){let n=new x.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zr=`data-`+Xr(`framerAppearId`);function Qr(e){return e.props[Zr]}function $r({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,l=e.getDefaultTransition();a=a?c(a,l):l;let u=a?.reduceMotion,d=a?.skipAnimations;r&&(a=r);let f=[],p=i&&e.animationState&&e.animationState.getState()[i],m=a?.path;m&&m.animateVisualElement(e,s,a,n,f);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||p&&$r(p,t))continue;let o={delay:n,...Or(a||{},t)};d&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){L.update(()=>r.set(i));continue}let l=!1;if(window.MotionHandoffAnimation){let n=Qr(e);if(n){let e=window.MotionHandoffAnimation(n,t,L);e!==null&&(o.startTime=e,l=!0)}}Yr(e,t);let m=u??e.shouldReduceMotion;r.start(Ir(t,r,i,m&&Ur.has(t)?{type:!1}:o,e,l));let h=r.animation;h&&f.push(h)}if(o){let t=()=>L.update(()=>{o&&qr(e,o)});f.length?Promise.all(f).then(t):t()}return f}function ti(e,t,n={}){let r=Hr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ni(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function ni(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Sr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ri(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ti(e,t,n);else{let i=typeof t==`function`?Hr(e,t,n.custom):t;r=Promise.all(ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ii={test:e=>e===`auto`,parse:e=>e},ai=e=>t=>t.test(e),oi=[Ie,R,Qe,Ze,et,$e,ii],si=e=>oi.find(ai(e));function ci(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||w(e)}var li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Be)||[];if(!r)return e;let i=n.replace(r,``),a=+!!li.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var di=/\b([a-z-]*)\(.*?\)/gu,fi={...vt,getAnimatableNone:e=>{let t=e.match(di);return t?t.map(ui).join(` `):e}},pi={...vt,getAnimatableNone:e=>{let t=vt.parse(e);return vt.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},mi={...Ie,transform:Math.round},hi={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left
1:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:Ze,pathRotation:Ze,rotateX:Ze,rotateY:Ze,rotateZ:Ze,scale:Re,scaleX:Re,scaleY:Re,scaleZ:Re,skew:Ze,skewX:Ze,skewY:Ze,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Le,originX:tt,originY:tt,originZ:R,zIndex:mi,fillOpacity:Le,strokeOpacity:Le,numOctaves:mi},gi={...hi,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:fi,WebkitFilter:fi,mask:pi,WebkitMask:pi},_i=e=>gi[e],vi=new Set([fi,pi]);function yi(e,t){let n=_i(e);return vi.has(n)||(n=vt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var bi=new Set([`auto`,`none`,`0`]);function xi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!bi.has(t)&&dt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=yi(n,i)}var Si=class extends Hn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ne(r))){let i=zr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ur.has(n)||e.length!==2)return;let[r,i]=e,a=si(r),o=si(i);if(Fe(r)!==Fe(i)&&Pn[n]){this.needsMeasurement=!0;return}if(a!==o){if(An(a)&&An(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Pn[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ci(e[t]))&&n.push(t);n.length&&xi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Pn[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ci=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function wi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Ti=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ei(e){return C(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Di,cancel:Oi}=Ce(queueMicrotask,!1),ki={x:!1,y:!1};function Ai(){return ki.x||ki.y}function ji(e){return e===`x`||e===`y`?ki[e]?null:(ki[e]=!0,()=>{ki[e]=!1}):ki.x||ki.y?null:(ki.x=ki.y=!0,()=>{ki.x=ki.y=!1})}function Mi(e,t){let n=wi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ni(e){return!(e.pointerType===`touch`||Ai())}function Pi(e,t,n={}){let[r,i,a]=Mi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Ni(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Fi=(e,t)=>t?e===t||Fi(e,t.parentElement):!1,Ii=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Li=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ri(e){return Li.has(e.tagName)||e.isContentEditable===!0}var zi=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Bi(e){return zi.has(e.tagName)||e.isContentEditable===!0}var Vi=new WeakSet;function Hi(e){return t=>{t.key===`Enter`&&e(t)}}function Ui(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Wi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Hi(()=>{if(Vi.has(n))return;Ui(n,`down`);let e=Hi(()=>{Ui(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ui(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Gi(e){return Ii(e)&&!Ai()}var Ki=new WeakSet;function qi(e,t,n={}){let[r,i,a]=Mi(e,n),o=e=>{let r=e.currentTarget;if(!Gi(e)||Ki.has(e))return;Vi.add(r),n.stopPropagation&&Ki.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Vi.has(r)&&Vi.delete(r),Gi(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Fi(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ei(e)&&(e.addEventListener(`focus`,e=>Wi(e,i)),!Ri(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ji(e){return C(e)&&`ownerSVGElement`in e}var Yi=new WeakMap,Xi,Zi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ji(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Qi=Zi(`inline`,`width`,`offsetWidth`),$i=Zi(`block`,`height`,`offsetHeight`);function ea({target:e,borderBoxSize:t}){Yi.get(e)?.forEach(n=>{n(e,{get width(){return Qi(e,t)},get height(){return $i(e,t)}})})}function ta(e){e.forEach(ea)}function na(){typeof ResizeObserver>`u`||(Xi=new ResizeObserver(ta))}function ra(e,t){Xi||na();let n=wi(e);return n.forEach(e=>{let n=Yi.get(e);n||(n=new Set,Yi.set(e,n)),n.add(t),Xi?.observe(e)}),()=>{n.forEach(e=>{let n=Yi.get(e);n?.delete(t),n?.size||Xi?.unobserve(e)})}}var ia=new Set,aa;function oa(){aa=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ia.forEach(t=>t(e))},window.addEventListener(`resize`,aa)}function sa(e){return ia.add(e),aa||oa(),()=>{ia.delete(e),!ia.size&&typeof aa==`function`&&(window.removeEventListener(`resize`,aa),aa=void 0)}}function ca(e,t){return typeof e==`function`?sa(e):ra(e,t)}var la={value:null,addProjectionMetrics:null};function ua(e){return Ji(e)&&e.tagName===`svg`}var da=[...oi,z,vt],fa=e=>da.find(ai(e)),pa=()=>({translate:0,scale:1,origin:0,originPoint:0}),ma=()=>({x:pa(),y:pa()}),ha=()=>({min:0,max:0}),H=()=>({x:ha(),y:ha()}),ga=new WeakMap;function _a(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function va(e){return typeof e==`string`||Array.isArray(e)}var ya=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ba=[`initial`,...ya];function xa(e){return _a(e.animate)||ba.some(t=>va(e[t]))}function Sa(e){return!!(xa(e)||e.variants)}function Ca(e,t,n){for(let r in t){let i=t[r],a=n[r];if(l(i))e.addValue(r,i);else if(l(a))e.addValue(r,Dr(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Dr(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var wa={current:null},Ta={current:!1},Ea=typeof window<`u`;
1function Da(){if(Ta.current=!0,Ea){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>wa.current=e.matches;e.addEventListener(`change`,t),t()}else wa.current=!1}}var Oa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ka={};function Aa(e){ka=e}function ja(){return ka}var Ma=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Hn,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 e=ke.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,L.render(this.render,!1,!0))};let{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=xa(t),this.isVariantNode=Sa(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in f){let t=f[e];c[e]!==void 0&&l(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ga.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ta.current||Da(),this.shouldReduceMotion=wa.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),we(this.notifyUpdate),we(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&dr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new tr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=kn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&L.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ka){let t=ka[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Oa.length;t++){let n=Oa[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ca(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Dr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(S(n)||w(n))?n=parseFloat(n):!fa(n)&&vt.test(t)&&(n=yi(e,t)),this.setBaseTarget(e,l(n)?n.get():n)),l(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!l(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ee),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Di.render(this.render)}},Na=class extends Ma{constructor(){super(...arguments),this.KeyframeResolver=Si}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;l(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Pa=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Fa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ia({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function La(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ra(e){return e===void 0||e===1}function za({scale:e,scaleX:t,scaleY:n}){return!Ra(e)||!Ra(t)||!Ra(n)}function Ba(e){return za(e)||Va(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Va(e){return Ha(e.x)||Ha(e.y)}function Ha(e){return e&&e!==`0%`}function Ua(e,t,n){return n+t*(e-n)}function Wa(e,t,n,r,i){return i!==void 0&&(e=Ua(e,i,r)),Ua(e,n,r)+t}function Ga(e,t=0,n=1,r,i){e.min=Wa(e.min,t,n,r,i),e.max=Wa(e.max,t,n,r,i)}function Ka(e,{x:t,y:n}){Ga(e.x,t.translate,t.scale,t.originPoint),Ga(e.y,n.translate,n.scale,n.originPoint)}var qa=.999999999999,Ja=1.0000000000001;function Ya(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Xa(e.x,-a.scroll.offset.x),Xa(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ka(e,o)),r&&Ba(a.latestValues)&&$a(e,a.latestValues,a.layout?.layoutBox))}t.x<Ja&&t.x>qa&&(t.x=1),t.y<Ja&&t.y>qa&&(t.y=1)}function Xa(e,t){e.min+=t,e.max+=t}function Za(e,t,n,r,i=.5){Ga(e,t,n,B(e.min,e.max,i),r)}function Qa(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function $a(e,t,n){let r=n??e;Za(e.x,Qa(t.x,r.x),t.scaleX,t.scale,t.originX),Za(e.y,Qa(t.y,r.y),t.scaleY,t.scale,t.originY)}function eo(e,t){return Fa(La(e.getBoundingClientRect(),t))}function to(e,t,n){let r=eo(e,n),{scroll:i}=t;return i&&(Xa(r.x,i.offset.x),Xa(r.y,i.offset.y)),r}var no={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ro=On.length;function io(e,t,n){let r=``,i=!0;for(let a=0;a<ro;a++){let o=On[a],s=e[o];if(s===void 0)continue;let c=!0;
1if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ti(s,hi[o]);if(!c){i=!1;let t=no[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ti(a,hi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function ao(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(kn.has(e)){o=!0;continue}if(je(e)){i[e]=n;continue}{let t=Ti(n,hi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=io(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function oo(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function so(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var co={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(R.test(e))e=parseFloat(e);else return e}return`${so(e,t.target.x)}% ${so(e,t.target.y)}%`}},lo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=vt.parse(e);if(i.length>5)return r;let a=vt.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},uo={borderRadius:{...co,applyTo:[...Ci]},borderTopLeftRadius:co,borderTopRightRadius:co,borderBottomLeftRadius:co,borderBottomRightRadius:co,boxShadow:lo};function fo(e,{layout:t,layoutId:n}){return kn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!uo[e]||e===`opacity`)}function po(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(l(r[t])||i&&l(i[t])||fo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function mo(e){return window.getComputedStyle(e)}var ho=class extends Na{constructor(){super(...arguments),this.type=`html`,this.renderInstance=oo}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(kn.has(t))return this.projection?.isProjecting?wn(t):En(e,t);{let n=mo(e),r=(je(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return eo(e,t)}build(e,t,n){ao(e,t,n.transformTemplate)}
1scrapeMotionValuesFromProps(e,t,n){return po(e,t,n)}};function go(e,t){return e in t}var _o=class extends Ma{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(go(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return H()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},vo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},yo={offset:`strokeDashoffset`,array:`strokeDasharray`};function bo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?vo:yo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var xo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function So(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ao(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of xo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&bo(d,i,a,o,!1)}var Co=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`]),wo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function To(e,t,n,r){oo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Co.has(n)?n:Xr(n),t.attrs[n])}function Eo(e,t,n){let r=po(e,t,n);for(let n in e)if(l(e[n])||l(t[n])){let t=On.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Do=class extends Na{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(kn.has(t)){let e=_i(t);return e&&e.default||0}return t=Co.has(t)?t:Xr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Eo(e,t,n)}
1build(e,t,n){So(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){To(e,t,n,r)}mount(e){this.isSVGTag=wo(e.tagName),super.mount(e)}},Oo=ba.length;function ko(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ko(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Oo;n++){let r=ba[n],i=e.props[r];(va(i)||i===!1)&&(t[r]=i)}return t}function Ao(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var jo=[...ya].reverse(),Mo=ya.length;function No(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ri(e,t,n)))}function Po(e){let t=No(e),n=Lo(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ko(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Mo;t++){let p=jo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=va(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||_a(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Fo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wr(t)&&Wr(n)?!Ao(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Sr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Lo(),i=!0}}}function Fo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ao(t,e):!1}function Io(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lo(){return{animate:Io(!0),whileInView:Io(),whileHover:Io(),whileTap:Io(),whileDrag:Io(),whileFocus:Io(),exit:Io()}}function Ro(e,t){e.min=t.min,e.max=t.max}function zo(e,t){Ro(e.x,t.x),Ro(e.y,t.y)}function Bo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Vo=.9999,Ho=1.0001,Uo=-.01,Wo=.01;function Go(e){return e.max-e.min}function Ko(e,t,n){return Math.abs(e-t)<=n}function qo(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Go(n)/Go(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vo&&e.scale<=Ho||isNaN(e.scale))&&(e.scale=1),(e.translate>=Uo&&e.translate<=Wo||isNaN(e.translate))&&(e.translate=0)}function Jo(e,t,n,r){qo(e.x,t.x,n.x,r?r.originX:void 0),qo(e.y,t.y,n.y,r?r.originY:void 0)}function Yo(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Go(t)}function Xo(e,t,n,r){Yo(e.x,t.x,n.x,r?.x),Yo(e.y,t.y,n.y,r?.y)}function Zo(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Go(t)}function Qo(e,t,n,r){Zo(e.x,t.x,n.x,r?.x),Zo(e.y,t.y,n.y,r?.y)}function $o(e,t,n,r,i){return e-=t,e=Ua(e,1/n,r),i!==void 0&&(e=Ua(e,1/i,r)),e}function es(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qe.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=$o(e.min,t,n,s,i),e.max=$o(e.max,t,n,s,i)}function ts(e,t,[n,r,i],a,o){es(e,t[n],t[r],t[i],t.scale,a,o)}var ns=[`x`,`scaleX`,`originX`],rs=[`y`,`scaleY`,`originY`];function is(e,t,n,r){ts(e.x,t,ns,n?n.x:void 0,r?r.x:void 0),ts(e.y,t,rs,n?n.y:void 0,r?r.y:void 0)}function as(e){return e.translate===0&&e.scale===1}function os(e){return as(e.x)&&as(e.y)}function ss(e,t){return e.min===t.min&&e.max===t.max}function cs(e,t){return ss(e.x,t.x)&&ss(e.y,t.y)}function ls(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function us(e,t){return ls(e.x,t.x)&&ls(e.y,t.y)}function ds(e){return Go(e.x)/Go(e.y)}function fs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ps(e){return[e(`x`),e(`y`)]}
1function ms(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hs=Ci.length,gs=e=>typeof e==`string`?parseFloat(e):e,_s=e=>typeof e==`number`||R.test(e);function vs(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,bs(r)),e.opacityExit=B(t.opacity??1,0,xs(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;i<hs;i++){let a=Ci[i],o=ys(t,a),s=ys(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||_s(o)===_s(s)?(e[a]=Math.max(B(gs(o),gs(s),r),0),(Qe.test(s)||Qe.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function ys(e,t){return e[t]===void 0?e.borderRadius:e[t]}var bs=Ss(0,.5,le),xs=Ss(.5,.95,E);function Ss(e,t,n){return r=>r<e?0:r>t?1:n(O(e,t,r))}function Cs(e,t,n){let r=l(e)?e:Dr(e);return r.start(Ir(``,r,t,n)),r.animation}function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ts=(e,t)=>e.depth-t.depth,Es=class{constructor(){this.children=[],this.isDirty=!1}add(e){v(this.children,e),this.isDirty=!0}remove(e){y(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ts),this.isDirty=!1,this.children.forEach(e)}};function Ds(e,t){let n=ke.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(we(r),e(a-t))};return L.setup(r,!0),()=>we(r)}function Os(e){return l(e)?e.get():e}var ks=class{constructor(){this.members=[]}add(e){v(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(y(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(y(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},As={hasAnimatedSinceResize:!0,hasEverUpdated:!1},js={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ms=[``,`X`,`Y`,`Z`],Ns=1e3,Ps=0;function Fs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Is(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,L,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Is(r)}function Ls({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ps++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,la.value&&(js.nodes=js.calculatedTargetDeltas=js.calculatedProjections=0),this.nodes.forEac
1h(Bs),this.nodes.forEach(Ys),this.nodes.forEach(Xs),this.nodes.forEach(Vs),la.addProjectionMetrics&&la.addProjectionMetrics(js)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Es)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ee),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ji(t)&&!ua(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;L.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ds(i,250),As.hasAnimatedSinceResize&&(As.hasAnimatedSinceResize=!1,this.nodes.forEach(Js)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||rc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!us(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Or(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Js(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),we(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(Zs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Is(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ws),this.nodes.forEach(Us);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
1h(Ks),this.nodes.forEach(qs),this.nodes.forEach(Rs),this.nodes.forEach(zs)):this.nodes.forEach(Gs),this.clearAllSnapshots();let e=ke.now();Te.delta=b(0,1e3/60,e-Te.timestamp),Te.timestamp=e,Te.isProcessing=!0,Ee.update.process(Te),Ee.preRender.process(Te),Ee.render.process(Te),Te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Di.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hs),this.sharedNodes.forEach(Qs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Go(this.snapshot.measuredBox.x)&&!Go(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!os(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ba(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),sc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return H();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lc))){let{scroll:e}=this.root;e&&(Xa(t.x,e.offset.x),Xa(t.y,e.offset.y))}return t}removeElementScroll(e){let t=H();if(zo(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&zo(t,e),Xa(t.x,i.offset.x),Xa(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||H();zo(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Xa(r.x,-n.scroll.offset.x),Xa(r.y,-n.scroll.offset.y)),Ba(n.latestValues)&&$a(r,n.latestValues,n.layout?.layoutBox)}return Ba(this.latestValues)&&$a(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=H();zo(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ba(n.latestValues))continue;let r;n.instance&&(za(n.latestValues)&&n.updateSnapshot(),r=H(),zo(r,n.measurePageBox())),is(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ba(this.latestValues)&&is(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.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!==Te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Te.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Xo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zo(this.target,this.layout.layoutBox),Ka(this.target,this.targetDelta)):zo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),la.value&&js.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||za(this.parent.latestValues)||Va(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Qo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),zo(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Te.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;zo(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ya(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=H());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bo(this.prevProjectionDelta.x,this.projectionDelta.x),Bo(this.prevProjectionDelta.y,this.projectionDelta.y)),Jo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!fs(this.projectionDelta.x,this.prevProjectionDelta.x)||!fs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),la.value&&js.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ma(),this.projectionDelta=ma(),this.projectionDeltaWithTransform=ma()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=ma();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=H(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(nc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=B(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):($s(o.x,e.x,n),$s(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),tc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&cs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=H(),zo(f,this.relativeTarget)),c&&(this.animationValues=a,vs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(we(this.pendingAnimation),void 0),this.pendingAnimation=L.update(()=>{As.hasAnimatedSinceResize=!0,this.motionValue||=Dr(0),this.motionValue.jump(0,!1),this.currentAnimation=Cs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ns),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||H();let t=Go(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Go(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zo(t,n),$a(t,i),Jo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ks),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Fs(`z`,e,r,this.animationValues);for(let t=0;t<Ms.length;t++)Fs(`rotate${Ms[t]}`,e,r,this.animationValues),Fs(`skew${Ms[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Os(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Os(t?.pointerEvents)||``),this.hasProjected&&!Ba(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=ms(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in uo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=uo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Os(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Us),this.root.sharedNodes.clear()}}}function Rs(e){e.updateLayout()}function zs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)ps(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Go(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ro(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else cc(i,t.layoutBox,n)&&ps(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Go(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ma();Jo(o,n,t.layoutBox);let s=ma();a?Jo(s,e.applyTransform(r,!0),t.measuredBox):Jo(s,n,t.layoutBox);let c=!os(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=H();Qo(s,t.layoutBox,i.layoutBox,o);let c=H();Qo(c,n,a.layoutBox,o),us(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Bs(e){la.value&&js.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Vs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hs(e){e.clearSnapshot()}function Us(e){e.clearMeasurements()}function Ws(e){e.isLayoutDirty=!0,e.updateLayout()}function Gs(e){e.isLayoutDirty=!1}function Ks(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Js(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ys(e){e.resolveTargetDelta()}function Xs(e){e.calcProjection()}
1function Zs(e){e.resetSkewAndRotation()}function Qs(e){e.removeLeadSnapshot()}function $s(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ec(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function tc(e,t,n,r){ec(e.x,t.x,n.x,r),ec(e.y,t.y,n.y,r)}function nc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rc={duration:.45,ease:[.4,0,.1,1]},ic=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ac=ic(`applewebkit/`)&&!ic(`chrome/`)?Math.round:E;function oc(e){e.min=ac(e.min),e.max=ac(e.max)}function sc(e){oc(e.x),oc(e.y)}function cc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ko(ds(t),ds(n),.2)}function lc(e){return e!==e.root&&e.scroll?.wasRoot}var uc=Ls({attachResizeListener:(e,t)=>ws(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),dc={current:void 0},fc=Ls({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dc.current){let e=new uc({});e.mount(window),e.setOptions({layoutScroll:!0}),dc.current=e}return dc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function pc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function mc(...e){return t=>{let n=!1,r=e.map(e=>{let r=pc(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():pc(e[t],null)}}}}function hc(...e){return m.useCallback(mc(...e),e)}var gc=class extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ei(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ei(e)&&e.offsetWidth||0,r=Ei(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function _c({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){let s=(0,m.useId)(),c=(0,m.useRef)(null),l=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,m.useContext)(a),d=hc(c,o===!1?void 0:e.props?.ref??e?.ref);return(0,m.useInsertionEffect)(()=>{let{width:e,height:a,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!a)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);u&&(y.nonce=u);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${a}px !important; 6 ${_}px !important; 7 ${v}px !important; 8 } 9 `),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,p.jsx)(gc,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:m.cloneElement(e,{ref:d})})}var vc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c,anchorY:l,root:u})=>{let d=s(yc),f=(0,m.useId)(),h=(0,m.useRef)(n),v=(0,m.useRef)(r);g(()=>{h.current=n,v.current=r});let y=!0,b=(0,m.useMemo)(()=>(y=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!h.current&&!d.size&&v.current?.()})}),[n,d,r]);return a&&y&&(b={...b}),(0,m.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),m.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=(0,p.jsx)(_c,{pop:o===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),(0,p.jsx)(_.Provider,{value:b,children:e})};function yc(){return new Map}function bc(e=!0){let t=(0,m.useContext)(_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,m.useId)();(0,m.useEffect)(()=>
9{if(e)return i(a)},[e]);let o=(0,m.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var xc=e=>e.key||``;function Sc(e){let t=[];return m.Children.forEach(e,e=>{(0,m.isValidElement)(e)&&t.push(e)}),t}var Cc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:c=`left`,anchorY:l=`top`,root:u})=>{let[d,f]=bc(o),_=(0,m.useMemo)(()=>Sc(e),[e]),v=o&&!d?[]:_.map(xc),y=(0,m.useRef)(!0),b=(0,m.useRef)(_),x=s(()=>new Map),S=(0,m.useRef)(new Set),[C,w]=(0,m.useState)(_),[T,E]=(0,m.useState)(_);g(()=>{y.current=!1,b.current=_;for(let e=0;e<T.length;e++){let t=xc(T[e]);v.includes(t)?(x.delete(t),S.current.delete(t)):x.get(t)!==!0&&x.set(t,!1)}},[T,v.length,v.join(`-`)]);let D=[];if(_!==C){let e=[..._];for(let t=0;t<T.length;t++){let n=T[t],r=xc(n);v.includes(r)||(e.splice(t,0,n),D.push(n))}return a===`wait`&&D.length&&(e=D),E(Sc(e)),w(_),null}let{forceRender:O}=(0,m.useContext)(h);return(0,p.jsx)(p.Fragment,{children:T.map(e=>{let s=xc(e),m=o&&!d?!1:_===T||v.includes(s);return(0,p.jsx)(vc,{isPresent:m,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:m?void 0:()=>{if(S.current.has(s))return;if(x.has(s))S.current.add(s),x.set(s,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(O?.(),E(b.current),o&&f?.(),r&&r())},anchorX:c,anchorY:l,children:e},s)})})},wc=(0,m.createContext)({strict:!1}),Tc={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`]},Ec=!1;function Dc(){if(Ec)return;let e={};for(let t in Tc)e[t]={isEnabled:e=>Tc[t].some(t=>!!e[t])};Aa(e),Ec=!0}function Oc(){return Dc(),ja()}function kc(e){let t=Oc();for(let n in e)t[n]={...t[n],...e[n]};Aa(t)}var Ac=(0,m.createContext)({});function jc(e,t){if(xa(e)){let{initial:t,animate:n}=e;return{initial:t===!1||va(t)?t:void 0,animate:va(n)?n:void 0}}return e.inherit===!1?{}:t}function Mc(e){let{initial:t,animate:n}=jc(e,(0,m.useContext)(Ac));return(0,m.useMemo)(()=>({initial:t,animate:n}),[Nc(t),Nc(n)])}function Nc(e){return Array.isArray(e)?e.join(` `):e}var Pc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fc(e,t,n){for(let r in t)!l(t[r])&&!fo(r,n)&&(e[r]=t[r])}function Ic({transformTemplate:e},t){return(0,m.useMemo)(()=>{let n=Pc();return ao(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Lc(e,t){let n=e.style||{},r={};return Fc(r,n,e),Object.assign(r,Ic(e,t)),r}function Rc(e,t){let n={},r=Lc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var zc=()=>({...Pc(),attrs:{}});function Bc(e,t,n,r){let i=(0,m.useMemo)(()=>{let n=zc();return So(n,t,wo(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Fc(t,e.style,e),i.style={...t,...i.style}}return i}var Vc=[`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 Hc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Vc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Hc(e)?Bc:Rc)(t,r,i,e),c=d(t,typeof e==`string`,a),u=e===m.Fragment?{}:{...c,...s,ref:n},{children:f}=t,p=(0,m.useMemo)(()=>l(f)?f.get():f,[f]);return(0,m.createElement)(e,{...u,children:p})}function Wc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Gc(n,r,i,e),renderState:t()}}function Gc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Os(a[e]);let{initial:o,animate:s}=e,c=xa(e),l=Sa(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!_a(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Kc=e=>(t,n)=>{let r=(0,m.useContext)(Ac),i=(0,m.useContext)(_),a=()=>Wc(e,t,r,i);return n?a():s(a)},qc=Kc({scrapeMotionValuesFromProps:po,createRenderState:Pc}),Jc=Kc({scrapeMotionValuesFromProps:Eo,createRenderState:zc}),Yc=Symbol.for(`motionComponentSymbol`);function Xc(e,t,n){let r=(0,m.useRef)(n);(0,m.useInsertionEffect)(()=>{r.current=n});let i=(0,m.useRef)(null);return(0,m.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Zc=(0,m.createContext)({});function Qc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function $c(e,t,n,r,i,o){let{visualElement:s}=(0,m.useContext)(Ac),c=(0,m.useContext)(wc),l=(0,m.useContext)(_),u=(0,m.useContext)(a),d=u.reducedMotion,f=u.skipAnimations,p=(0,m.useRef)(null),h=(0,m.useRef)(!1);r||=c.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:o}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let v=p.current,y=(0,m.useContext)(Zc);v&&!v.projection&&i&&(v.type===`html`||v.type===`svg`)&&el(p.current,n,i,y);let b=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{v&&b.current&&v.update(n,l)});let x=n[Zr],S=(0,m.useRef)(!!x&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return g(()=>{h.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),S.current&&v.animationState&&v.animationState.animateChanges())}),(0,m.useEffect)(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),!1),v.enteringChildren=void 0)}),v}function el(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:tl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Qc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function tl(e){if(e)return e.options.allowProjection===!1?tl(e.parent):e.projection}function nl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&kc(r);let o=n?n===`svg`:Hc(e),s=o?Jc:qc;function c(n,c){let l,u={...(0,m.useContext)(a),...n,layoutId:rl(n)},{isStatic:d}=u,f=Mc(n),h=s(n,d);if(!d&&typeof window<`u`){il(u,r);let t=al(u);l=t.MeasureLayout,f.visualElement=$c(e,h,u,i,t.ProjectionNode,o)}return(0,p.jsxs)(Ac.Provider,{value:f,children:[l&&f.visualElement?(0,p.jsx)(l,{visualElement:f.visualElement,...u}):null,Uc(e,n,Xc(h,f.visualElement,c),h,d,t,o)]})}c.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let l=(0,m.forwardRef)(c);return l[Yc]=e,l}function rl({layoutId:e}){let t=(0,m.useContext)(h).id;return t&&e!==void 0?t+`-`+e:e}function il(e,t){(0,m.useContext)(wc).strict}function al(e){let{drag:t,layout:n}=Oc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
9function ol(e,t){if(typeof Proxy>`u`)return nl;let n=new Map,r=(n,r)=>nl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,nl(a,void 0,e,t)),n.get(a))})}var sl=(e,t)=>t.isSVG??Hc(e)?new Do(t):new ho(t,{allowProjection:e!==m.Fragment}),cl=class extends Pa{constructor(e){super(e),e.animationState||=Po(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();_a(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},ll=0,ul={animation:{Feature:cl},exit:{Feature:class extends Pa{constructor(){super(...arguments),this.id=ll++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hr(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function dl(e){return{point:{x:e.pageX,y:e.pageY}}}var fl=e=>t=>Ii(t)&&e(t,dl(t));function pl(e,t,n,r){return ws(e,t,fl(n),r)}var ml=({current:e})=>e?e.ownerDocument.defaultView:null,hl=(e,t)=>Math.abs(e-t);function gl(e,t){let n=hl(e.x,t.x),r=hl(e.y,t.y);return Math.sqrt(n**2+r**2)}var _l=new Set([`auto`,`scroll`]),vl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=yl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=xl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=gl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Te;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=yl(t,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=xl(e.type===`pointercancel`?this.lastMoveEventInfo:yl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ii(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=yl(dl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Te;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,xl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=D(pl(this.contextWindow,`pointermove`,this.handlePointerMove,d),pl(this.contextWindow,`pointerup`,this.handlePointerUp,d),pl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(_l.has(e.overflowX)||_l.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),L.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),we(this.updatePoint)}};function yl(e,t){return t?{point:t(e.point)}:e}function bl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xl({point:e},t){return{point:e,delta:bl(e,Cl(t)),offset:bl(e,Sl(t)),velocity:wl(t,.1)}}function Sl(e){return e[0]}function Cl(e){return e[e.length-1]}function wl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Cl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Tl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function El(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Dl(e,{top:t,left:n,bottom:r,right:i}){return{x:El(e.x,n,i),y:El(e.y,t,r)}}function Ol(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function kl(e,t){return{x:Ol(e.x,t.x),y:Ol(e.y,t.y)}}function Al(e,t){let n=.5,r=Go(e),i=Go(t);return i>r?n=O(t.min,t.max-r,e.min):r>i&&(n=O(e.min,e.max-i,t.min)),b(0,1,n)}function jl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Ml=.35;function Nl(e=Ml){return e===!1?e=0:e===!0&&(e=Ml),{x:Pl(e,`left`,`right`),y:Pl(e,`top`,`bottom`)}}function Pl(e,t,n){return{min:Fl(e,t),max:Fl(e,n)}}function Fl(e,t){return typeof e==`number`?e:e[t]||0}var Il=new WeakMap,Ll=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(dl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ji(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ps(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qe.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Go(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&L.update(()=>i(e,t),!1,!0),Yr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Vl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&L.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new vl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ml(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&L.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Bl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Tl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Qc(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Dl(n.layoutBox,e):!1,this.elastic=Nl(t),r!==this.constraints&&!Qc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&ps(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=jl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Qc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=to(n,r.root,this.visualElement.getTransformPagePoint()),a=kl(r.layout.layoutBox,i);if(t){let e=t(Ia(a));this.hasMutatedConstraints=!!e,e&&(a=Fa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=ps(o=>
9{if(!Bl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Yr(this.visualElement,e),n.start(Ir(e,n,0,t,this.visualElement,!1))}stopAnimation(){ps(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){ps(t=>{let{drag:n}=this.getProps();if(!Bl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Qc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ps(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Al({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ps(t=>{if(!Bl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Il.set(this.visualElement,this);let e=this.visualElement.current,t=pl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Bi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Qc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=zl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),L.read(r);let o=ws(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ps(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Ml,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Rl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function zl(e,t,n){let r=ca(e,Rl(n)),i=ca(t,Rl(n));return()=>{r(),i()}}function Bl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Hl=class extends Pa{constructor(e){super(e),this.removeGroupControls=E,this.removeListeners=E,this.controls=new Ll(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Ul=e=>(t,n)=>{e&&L.update(()=>e(t,n),!1,!0)},Wl=class extends Pa{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(e){this.session=new vl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ml(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ul(e),onStart:Ul(t),onMove:Ul(n),onEnd:(e,t)=>{delete this.session,r&&L.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=pl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Gl=!1,Kl=class extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Gl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),As.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Gl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||L.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Di.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Gl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function ql(e){let[t,n]=bc(),r=(0,m.useContext)(h);return(0,p.jsx)(Kl,{...e,layoutGroup:r,switchLayoutGroup:(0,m.useContext)(Zc),isPresent:t,safeToRemove:n})}var Jl={pan:{Feature:Wl},drag:{Feature:Hl,ProjectionNode:fc,MeasureLayout:ql}};function Yl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&L.postRender(()=>i(t,dl(t)))}var Xl=class extends Pa{mount(){let{current:e}=this.node;e&&(this.unmount=Pi(e,(e,t)=>(Yl(this.node,t,`Start`),e=>Yl(this.node,e,`End`))))}unmount(){}},Zl=class extends Pa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}
9mount(){this.unmount=D(ws(this.node.current,`focus`,()=>this.onFocus()),ws(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ql(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&L.postRender(()=>i(t,dl(t)))}var $l=class extends Pa{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=qi(e,(e,t)=>(Ql(this.node,t,`Start`),(e,{success:t})=>Ql(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},eu=new WeakMap,tu=new WeakMap,nu=e=>{let t=eu.get(e.target);t&&t(e)},ru=e=>{e.forEach(nu)};function iu({root:e,...t}){let n=e||document;tu.has(n)||tu.set(n,{});let r=tu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ru,{root:e,...t})),r[i]}function au(e,t,n){let r=iu(t);return eu.set(e,n),r.observe(e),()=>{eu.delete(e),r.unobserve(e)}}var ou={some:0,all:1},su=class extends Pa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ou[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=au(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var lu={inView:{Feature:su},tap:{Feature:$l},focus:{Feature:Zl},hover:{Feature:Xl}},uu={layout:{ProjectionNode:fc,MeasureLayout:ql}},du=ol({...ul,...lu,...Jl,...uu},sl);function fu(){!Ta.current&&Da();let[e]=(0,m.useState)(wa.current);return e}function pu(e){return typeof e==`object`&&!Array.isArray(e)}function mu(e,t,n,r){return e==null?[]:typeof e==`string`&&pu(t)?wi(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function hu(e,t,n){return e*(t+1)+n*t}function gu(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function _u(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(y(e,i),r--)}}function vu(e,t,n,r,i,a){_u(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:B(i,a,r[o]),easing:he(n,o)})}function yu(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function bu(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var xu=`easeInOut`,Su=20;function Cu(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},u=new Map,d=0,f=0,p=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){u.set(o,f);continue}if(!Array.isArray(o)){u.set(o.name,gu(f,o.at,d,u));continue}let[m,h,g={}]=o;g.at!==void 0&&(f=gu(f,g.at,d,u));let _=0,v=(e,n,r,o=0,s=0)=>{let c=Eu(e),{delay:l=0,times:u=rn(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=$n(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&ku(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=k(b));let r=Bt(n,e,C);y=r.ease,b=r.duration}b??=a;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&nn(u,T),c.length===1&&c.unshift(null),m&&`${m}${Su}`,m&&m<Su){let e=b>0?g/b:0;b=hu(b,m,g);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?oe(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:he(f,e-1))}yu(u,m,e)}let E=w+b;vu(r,c,y,u,w,E),_=Math.max(x+b,_),p=Math.max(E,p)};if(l(m)){let e=wu(m,s);v(h,g,Tu(`default`,e))}else{let e=mu(m,h,r,c),t=e.length;for(let n=0;n<t;n++){h=h,g=g;let r=e[n],i=wu(r,s);for(let e in h)v(h[e],Du(g,e),Tu(e,i),n,t)}}d=f,f+=_}
9return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(bu);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(O(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(xu)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...f}=t;u.transition[i]={...f,duration:p,ease:l,times:c,...n}}}),o}function wu(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Tu(e,t){return t[e]||(t[e]=[]),t[e]}function Eu(e){return Array.isArray(e)?e:[e]}function Du(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Ou=e=>typeof e==`number`,ku=e=>e.every(Ou);function Au(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ji(e)&&!ua(e)?new Do(t):new ho(t);n.mount(e),ga.set(e,n)}function ju(e){let t=new _o({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),ga.set(e,t)}function Mu(e,t){return l(e)||typeof e==`number`||typeof e==`string`&&!pu(t)}function Nu(e,t,n,r){let i=[];if(Mu(e,t))i.push(Cs(e,pu(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=mu(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?Au:ju;ga.has(r)||s(r);let c=ga.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...ei(c,{...t,transition:l},{}))}}return i}function Pu(e,t,n){let r=[];return Cu(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Dr(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Xt}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Nu(n,e,t))}),r}function Fu(e){return Array.isArray(e)&&e.some(Array.isArray)}function Iu(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Fu(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Pu(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Nu(e,i,{...c,...r},t)}let l=new xr(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{y(t.animations,l)})),l}return i}var Lu=Iu(),Ru={some:0,all:1};function zu(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=wi(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Ru[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Bu(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,m.useState)(a);return(0,m.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return zu(e.current,a,c)},[t,e,n,i,r]),o}var U=du,Vu=Object.defineProperty,Hu=(e,t)=>Vu(e,`name`,{value:t,configurable:!0}),Uu=!!(typeof window<`u`&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:n=!0}={}){return Hu(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Hu(W,`composeEventHandlers`);function Wu(e){if(!Uu)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Hu(Wu,`getOwnerWindow`);function Gu(e){if(!Uu)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Hu(Gu,`getOwnerDocument`);function Ku(e,t=!1){let{activeElement:n}=Gu(e);if(!n?.nodeName)return null;if(qu(n)&&n.contentDocument)return Ku(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Gu(n).getElementById(e);if(t)return t}}return n}Hu(Ku,`getActiveElement`);function qu(e){return e.tagName===`IFRAME`}Hu(qu,`isFrame`);var Ju=Object.defineProperty,Yu=(e,t)=>Ju(e,`name`,{value:t,configurable:!0});function Xu(e,t){if(typeof e==`function`)return e(t);
9e!=null&&(e.current=t)}Yu(Xu,`setRef`);function Zu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Xu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Xu(e[t],null)}}}}Yu(Zu,`composeRefs`);function G(...e){return m.useCallback(Zu(...e),e)}Yu(G,`useComposedRefs`);var Qu=Object.defineProperty,$u=(e,t)=>Qu(e,`name`,{value:t,configurable:!0});function ed(e,t){let n=m.createContext(t);n.displayName=e+`Context`;let r=$u(e=>{let{children:t,...r}=e,i=m.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=m.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return $u(i,`useContext`),[r,i]}$u(ed,`createContext`);function td(e,t=[]){let n=[];function r(t,r){let i=m.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=$u(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=m.useMemo(()=>o,Object.values(o));return(0,p.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=m.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return $u(s,`useContext`),[o,s]}$u(r,`createContext`);let i=$u(()=>{let t=n.map(e=>m.createContext(e));return $u(function(n){let r=n?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,nd(i,...t)]}$u(td,`createContextScope`);function nd(...e){let t=e[0];if(e.length===1)return t;let n=$u(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return $u(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}$u(nd,`composeContextScopes`);var rd=globalThis?.document?m.useLayoutEffect:()=>{},id=Object.defineProperty,ad=(e,t)=>id(e,`name`,{value:t,configurable:!0}),od=m.useEffectEvent,sd=m.useInsertionEffect;function cd(e){if(typeof od==`function`)return od(e);let t=m.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof sd==`function`?sd(()=>{t.current=e}):rd(()=>{t.current=e}),m.useMemo(()=>((...e)=>t.current?.(...e)),[])}ad(cd,`useEffectEvent`);var ld=Object.defineProperty,ud=(e,t)=>ld(e,`name`,{value:t,configurable:!0}),dd=m.useInsertionEffect||rd;function fd({prop:e,defaultProp:t,onChange:n=ud(()=>{},`onChange`),caller:r}){let[i,a,o]=pd({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,m.useCallback(t=>{if(s){let n=md(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ud(fd,`useControllableState`);function pd({defaultProp:e,onChange:t}){let[n,r]=m.useState(e),i=m.useRef(n),a=m.useRef(t);return dd(()=>{a.current=t},[t]),m.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ud(pd,`useUncontrolledState`);function md(e){return typeof e==`function`}ud(md,`isFunction`);var hd=Symbol(`RADIX:SYNC_STATE`);function gd(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=cd(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=m.useReducer((t,n)=>{if(n.type===hd)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,h=m.useRef(p);m.useEffect(()=>{h.current!==p&&(h.current=p,c||l(p))},[p,h,c]);let g=m.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return m.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:hd,state:i})},[i,d.state,c]),[g,f]}ud(gd,`useControllableStateReducer`);var _d=Object.defineProperty,vd=(e,t)=>_d(e,`name`,{value:t,configurable:!0});function yd(e){let t=m.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Dd(r)&&typeof jd==`function`&&(r=jd(r._payload)),m.Children.forEach(r,e=>{if(Td(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Dd(n)&&typeof jd==`function`&&(n=jd(n._payload)),a=Sd(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=m.cloneElement(a,void 0,s):!o&&m.Children.count(r)===1&&m.isValidElement(r)&&(a=r);let c=a?wd(a):void 0,l=G(n,c);if(!a){if(r||r===0)throw Error(o?Ad(e):kd(e));return r}let u=Cd(i,a.props??{});return a.type!==m.Fragment&&(u.ref=n?l:c),m.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}vd(yd,`createSlot`);var bd=Symbol.for(`radix.slottable`);function xd(e){let t=vd(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=bd,t}vd(xd,`createSlottable`);var Sd=vd((e,t)=>{if(`child`in e.props){let t=e.props.child;return m.isValidElement(t)?m.cloneElement(t,void 0,e.props.children(t.props.children)):null}return m.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Cd(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}
9:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}vd(Cd,`mergeProps`);function wd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}vd(wd,`getElementRef`);function Td(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bd}vd(Td,`isSlottable`);var Ed=Symbol.for(`react.lazy`);function Dd(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ed&&`_payload`in e&&Od(e._payload)}vd(Dd,`isLazyComponent`);function Od(e){return typeof e==`object`&&!!e&&`then`in e}vd(Od,`isPromiseLike`);var kd=vd(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ad=vd(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),jd=m.use,Md=e(u(),1),Nd=Object.defineProperty,Pd=(e,t)=>Nd(e,`name`,{value:t,configurable:!0}),Fd=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=yd(`Primitive.${t}`),r=m.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Id(e,t){e&&Md.flushSync(()=>e.dispatchEvent(t))}Pd(Id,`dispatchDiscreteCustomEvent`);var Ld=Object.defineProperty,K=(e,t)=>Ld(e,`name`,{value:t,configurable:!0});function Rd(e){let t=e+`CollectionProvider`,[n,r]=td(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=K(e=>{let{scope:t,children:n}=e,r=m.useRef(null),a=m.useRef(new Map).current;return(0,p.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=yd(s),l=m.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=G(t,a(s,n).collectionRef);return(0,p.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=yd(u),h=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),s=G(t,o),c=a(u,n);return m.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,p.jsx)(f,{[d]:``,ref:s,children:r})});h.displayName=u;function g(t){let n=a(e+`CollectionConsumer`,t);return m.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return K(g,`useCollection`),[{Provider:o,Slot:l,ItemSlot:h},g,r]}K(Rd,`createCollection`);var zd=new WeakMap,Bd=class e extends Map{static{K(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],zd.set(this,!0)}set(e,t){return zd.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Ud(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Vd(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Vd(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Vd(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
9}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Vd(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Hd(e,t);return n===-1?void 0:e[n]}K(Vd,`at`);function Hd(e,t){let n=e.length,r=Ud(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}K(Hd,`toSafeIndex`);function Ud(e){return e!==e||e===0?0:Math.trunc(e)}K(Ud,`toSafeInteger`);function Wd(e){let t=e+`CollectionProvider`,[n,r]=td(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Bd,setItemMap:K(()=>void 0,`setItemMap`)}),o=K(({state:e,...t})=>e?(0,p.jsx)(c,{...t,state:e}):(0,p.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=K(e=>{let t=_();return(0,p.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=K(e=>{let{scope:t,children:n,state:r}=e,a=m.useRef(null),[o,s]=m.useState(null),c=G(a,s),[l,u]=r;return m.useEffect(()=>{if(!o)return;let e=Jd(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,p.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=yd(l),d=m.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=G(t,a(l,n).collectionRef);return(0,p.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,h=yd(f),g=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),[s,c]=m.useState(null),l=G(t,o,c),{setItemMap:u}=a(f,n),d=m.useRef(i);Gd(d.current,i)||(d.current=i);let g=d.current;return m.useEffect(()=>{let e=g;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(qd):(t.set(s,{...e,element:s}),t.toSorted(qd)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Bd(e)))}},[s,g,u]),(0,p.jsx)(h,{"data-radix-collection-item":``,ref:l,children:r})});g.displayName=f;function _(){return m.useState(new Bd)}K(_,`useInitCollection`);function v(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return K(v,`useCollection`),[{Provider:o,Slot:d,ItemSlot:g},{createCollectionScope:r,useCollection:v,useInitCollection:_}]}K(Wd,`createCollection`);function Gd(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}K(Gd,`shallowEqual`);function Kd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}K(Kd,`isElementPreceding`);function qd(e,t){return!e[1].element||!t[1].element?0:Kd(e[1].element,t[1].element)?-1:1}K(qd,`sortByDocumentPosition`);function Jd(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}K(Jd,`getChildListObserver`);var Yd=Object.defineProperty,Xd=(e,t)=>Yd(e,`name`,{value:t,configurable:!0}),Zd=m.createContext(void 0);function Qd(e){let t=m.useContext(Zd);return e||t||`ltr`}Xd(Qd,`useDirection`);var $d=Object.defineProperty,ef=(e,t)=>$d(e,`name`,{value:t,configurable:!0});function tf(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>((...e)=>t.current?.(...e)),[])}ef(tf,`useCallbackRef`);var nf=Object.defineProperty,q=(e,t)=>
9nf(e,`name`,{value:t,configurable:!0}),rf=`dismissableLayer.update`,af=`dismissableLayer.pointerDownOutside`,of=`dismissableLayer.focusOutside`,sf,cf=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lf=m.forwardRef(q(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=m.useContext(cf),[d,f]=m.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=m.useState({}),_=G(t,f),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=d?v.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=m.useRef(!1),T=ff(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=pf(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},h),D=d?x===v.length-1:!1,O=tf(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return m.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sf=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),mf(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=sf))}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),mf())},[d,u]),m.useEffect(()=>{let e=q(()=>g({}),`handleUpdate`);return document.addEventListener(rf,e),()=>document.removeEventListener(rf,e)},[]),(0,p.jsx)(Fd.div,{...l,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:W(e.onFocusCapture,E.onFocusCapture),onBlurCapture:W(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function uf(){let e=m.useContext(cf),[t,n]=m.useState(null);return m.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}q(uf,`useDismissableLayerSurface`);var df=q(()=>!0,`IS_TRUE`);function ff(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=df}=t,s=tf(e),c=m.useRef(!1),l=m.useRef(!1),u=m.useRef(new Map),d=m.useRef(()=>{});return m.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}q(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}q(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}q(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}q(p,`handleInteractionBubble`);let m=q(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||hf(af,s,p,{discrete:!0})};if(q(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:q(()=>c.current=!0,`onPointerDownCapture`)}}q(ff,`usePointerDownOutside`);function pf(e,t=globalThis?.document){let n=tf(e),r=m.useRef(!1);return m.useEffect(()=>{let e=q(e=>{e.target&&!r.current&&hf(of,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:q(()=>r.current=!0,`onFocusCapture`),onBlurCapture:q(()=>r.current=!1,`onBlurCapture`)}}q(pf,`useFocusOutside`);function mf(){let e=new CustomEvent(rf);document.dispatchEvent(e)}q(mf,`dispatchUpdate`);function hf(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Id(i,a):i.dispatchEvent(a)}q(hf,`handleAndDispatchCustomEvent`);var gf=Object.defineProperty,_f=(e,t)=>gf(e,`name`,{value:t,configurable:!0}),vf=0,yf=null;function bf(e){return xf(),e.children}_f(bf,`FocusGuards`);function xf(){m.useEffect(()=>{yf||={start:Sf(),end:Sf()};let{start:e,end:t}=yf;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),vf++,()=>{vf===1&&(yf?.start.remove(),yf?.end.remove(),yf=null),vf=Math.max(0,vf-1)}},[])}_f(xf,`useFocusGuards`);function Sf(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}_f(Sf,`createFocusGuard`);var Cf=Object.defineProperty,wf=(e,t)=>
9Cf(e,`name`,{value:t,configurable:!0}),Tf=`focusScope.autoFocusOnMount`,Ef=`focusScope.autoFocusOnUnmount`,Df={bubbles:!1,cancelable:!0},Of=m.forwardRef(wf(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=m.useState(null),l=tf(i),u=tf(a),d=m.useRef(null),f=G(t,c),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Ff(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Ff(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ff(s)};wf(e,`handleFocusIn`),wf(t,`handleFocusOut`),wf(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,h.paused]),m.useEffect(()=>{if(s){If.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Tf,Df);s.addEventListener(Tf,l),s.dispatchEvent(t),t.defaultPrevented||(kf(zf(jf(s)),{select:!0}),document.activeElement===e&&Ff(s))}return()=>{s.removeEventListener(Tf,l),setTimeout(()=>{let t=new CustomEvent(Ef,Df);s.addEventListener(Ef,u),s.dispatchEvent(t),t.defaultPrevented||Ff(e??document.body,{select:!0}),s.removeEventListener(Ef,u),If.remove(h)},0)}}},[s,l,u,h]);let g=m.useCallback(e=>{if(!n&&!r||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Af(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Ff(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Ff(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,p.jsx)(Fd.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})},`FocusScope`));function kf(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ff(r,{select:t}),document.activeElement!==n)return}wf(kf,`focusFirst`);function Af(e){let t=jf(e);return[Mf(t,e),Mf(t.reverse(),e)]}wf(Af,`getTabbableEdges`);function jf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:wf(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}wf(jf,`getTabbableCandidates`);function Mf(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Nf(r,{upTo:t})))return r}wf(Mf,`findVisible`);function Nf(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}wf(Nf,`isHidden`);function Pf(e){return e instanceof HTMLInputElement&&`select`in e}wf(Pf,`isSelectableInput`);function Ff(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Pf(e)&&t&&e.select()}}wf(Ff,`focus`);var If=Lf();function Lf(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Rf(e,t),e.unshift(t)},remove(t){e=Rf(e,t),e[0]?.resume()}}}wf(Lf,`createFocusScopesStack`);function Rf(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}wf(Rf,`arrayRemove`);function zf(e){return e.filter(e=>e.tagName!==`A`)}wf(zf,`removeLinks`);var Bf=Object.defineProperty,Vf=(e,t)=>Bf(e,`name`,{value:t,configurable:!0}),Hf=m.useId||(()=>void 0),Uf=0;function Wf(e){let[t,n]=m.useState(Hf());return rd(()=>{e||n(e=>e??String(Uf++))},[e]),e||(t?`radix-${t}`:``)}Vf(Wf,`useId`);var Gf=[`top`,`right`,`bottom`,`left`],Kf=Math.min,qf=Math.max,Jf=Math.round,Yf=Math.floor,Xf=e=>({x:e,y:e}),Zf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qf(e,t,n){return qf(e,Kf(t,n))}function $f(e,t){return typeof e==`function`?e(t):e}function ep(e){return e.split(`-`)[0]}function tp(e){return e.split(`-`)[1]}function np(e){return e===`x`?`y`:`x`}function rp(e){return e===`y`?`height`:`width`}function ip(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ap(e){return np(ip(e))}function op(e,t,n){n===void 0&&(n=!1);
vendor: 5,029 bytes, line 9
9let r=tp(e),i=ap(e),a=rp(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=hp(o)),[o,hp(o)]}function sp(e){let t=hp(e);return[cp(e),t,cp(t)]}function cp(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var lp=[`left`,`right`],up=[`right`,`left`],dp=[`top`,`bottom`],fp=[`bottom`,`top`];function pp(e,t,n){switch(e){case`top`:case`bottom`:return n?t?up:lp:t?lp:up;case`left`:case`right`:return t?dp:fp;default:return[]}}function mp(e,t,n,r){let i=tp(e),a=pp(ep(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(cp)))),a}function hp(e){let t=ep(e);return Zf[t]+e.slice(t.length)}function gp(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function _p(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:gp(e)}function vp(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yp(e,t,n){let{reference:r,floating:i}=e,a=ip(t),o=ap(t),s=rp(o),c=ep(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=tp(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function bp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$f(t,e),p=_p(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=vp(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=vp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xp=50,Sp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:bp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yp(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=yp(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Cp=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$f(e,t)||{};if(l==null)return{};let d=_p(u),f={x:n,y:r},p=ap(i),m=rp(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Kf(d[_],T),D=Kf(d[v],T),O=C-h[m]-D,ee=C/2-h[m]/2+w,k=Qf(E,ee,O),A=!c.arrow&&tp(i)!=null&&ee!==k&&a.reference[m]/2-(ee<E?E:D)-h[m]/2<0,j=A?ee<E?ee-E:ee-O:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:ee-k-j,...A&&{alignmentOffset:j}},reset:A}}}),wp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$f(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ep(r),_=ip(o),v=ep(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[hp(o)]:sp(o)),x=p!==`none`;!d&&x&&b.push(...mp(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=op(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ip(t)||T.every(e=>ip(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
9e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ip(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Tp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ep(e){return Gf.some(t=>e[t]>=0)}var Dp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$f(e,t);switch(i){case`referenceHidden`:{let e=Tp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ep(e)}}}case`escaped`:{let e=Tp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ep(e)}}}default:return{}}}}},Op=new Set([`left`,`top`]);async function kp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ep(n),s=tp(n),c=ip(n)===`y`,l=Op.has(o)?-1:1,u=a&&c?-1:1,d=$f(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ap=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await kp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},jp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$f(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ip(i),p=np(f),m=u[p],h=u[f],g=(e,t)=>Qf(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Mp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$f(e,t),u={x:n,y:r},d=ip(i),f=np(d),p=u[f],m=u[d],h=$f(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Op.has(ep(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Np=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=$f(e,t),c=await i.detectOverflow(t,s),l=ep(n),u=tp(n),d=ip(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Kf(p-c[m],g),y=Kf(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*qf(c.left,c.right):S=p-2*qf(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Pp(){return typeof window<`u`}function Fp(e){return Rp(e)?(e.nodeName||``).toLowerCase():`#document`}function Ip(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lp(e){return((Rp(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Rp(e){return Pp()?e instanceof Node||e instanceof Ip(e).Node:!1}function zp(e){return Pp()?e instanceof Element||e instanceof Ip(e).Element:!1}function Bp(e){return Pp()?e instanceof HTMLElement||e instanceof Ip(e).HTMLElement:!1}function Vp(e){return!Pp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ip(e).ShadowRoot}function Hp(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$p(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Up(e){return/^(table|td|th)$/.test(Fp(e))}function Wp(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Gp=/transform|translate|scale|rotate|perspective|filter/,Kp=/paint|layout|strict|content/,qp=e=>!!e&&e!==`none`,Jp;function Yp(e){let t=zp(e)?$p(e):e;return qp(t.transform)||qp(t.translate)||qp(t.scale)||qp(t.rotate)||qp(t.perspective)||!Zp()&&(qp(t.backdropFilter)||qp(t.filter))||Gp.test(t.willChange||``)||Kp.test(t.contain||``)}function Xp(e){let t=tm(e);for(;Bp(t)&&!Qp(t);){if(Yp(t))return t;if(Wp(t))return null;t=tm(t)}
vendor: 4,915 bytes, line 9
9return null}function Zp(){return Jp??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Jp}function Qp(e){return/^(html|body|#document)$/.test(Fp(e))}function $p(e){return Ip(e).getComputedStyle(e)}function em(e){return zp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tm(e){if(Fp(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Vp(e)&&e.host||Lp(e);return Vp(t)?t.host:t}function nm(e){let t=tm(e);return Qp(t)?(e.ownerDocument||e).body:Bp(t)&&Hp(t)?t:nm(t)}function rm(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=nm(e),i=r===e.ownerDocument?.body,a=Ip(r);if(i){let e=im(a);return t.concat(a,a.visualViewport||[],Hp(r)?r:[],e&&n?rm(e):[])}return t.concat(r,rm(r,[],n))}function im(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function am(e){let t=$p(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Bp(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Jf(n)!==a||Jf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function om(e){return zp(e)?e:e.contextElement}function sm(e){let t=om(e);if(!Bp(t))return Xf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=am(t),o=(a?Jf(n.width):n.width)/r,s=(a?Jf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var cm=Xf(0);function lm(e){let t=Ip(e);return!Zp()||!t.visualViewport?cm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function um(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ip(e)}function dm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=om(e),o=Xf(1);t&&(r?zp(r)&&(o=sm(r)):o=sm(e));let s=um(a,n,r)?lm(a):Xf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ip(a),t=zp(r)?Ip(r):r,n=e,i=im(n);for(;i&&t!==n;){let e=sm(i),t=i.getBoundingClientRect(),r=$p(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ip(i),i=im(n)}}return vp({width:u,height:d,x:c,y:l})}function fm(e,t){let n=em(e).scrollLeft;return t?t.left+n:dm(Lp(e)).left+n}function pm(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fm(e,n),y:n.top+t.scrollTop}}function mm(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Lp(r),s=t?Wp(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xf(1),u=Xf(0),d=Bp(r);if((d||!a)&&((Fp(r)!==`body`||Hp(o))&&(c=em(r)),d)){let e=dm(r);l=sm(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?pm(o,c):Xf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hm(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function gm(e){let t=em(e),n=e.ownerDocument.body,r=qf(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=qf(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+fm(e),o=-t.scrollTop;return $p(n).direction===`rtl`&&(a+=qf(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var _m=25;function vm(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ip(e),a=Lp(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Zp()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(fm(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=_m&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ym(e,t){let n=dm(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=sm(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bm(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=vm(e,n,t);else if(t===`document`)r=gm(Lp(e));else if(zp(t))r=ym(t,n);else{let n=lm(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vp(r)}function xm(e,t){let n=t.get(e);if(n)return n;let r=rm(e,[],!1).filter(e=>zp(e)&&Fp(e)!==`body`),i=null,a=$p(e).position===`fixed`,o=a?tm(e):e;for(;zp(o)&&!Qp(o);){let e=$p(o),t=Yp(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=tm(o)}return t.set(e,r),r}function Sm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wp(t)?[]:xm(t,this._c):[].concat(n),r],o=bm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=bm(t,a[e],i);s=qf(n.top,s),c=Kf(n.right,c),l=Kf(n.bottom,l),u=qf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Cm(e){let{width:t,height:n}=am(e);return{width:t,height:n}}function wm(e,t,n){let r=Bp(t),i=Lp(t),a=n===`fixed`,o=dm(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xf(0);
vendor: 4,221 bytes, line 9
9if((r||!a)&&((Fp(t)!==`body`||Hp(i))&&(s=em(t)),r)){let e=dm(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=fm(i));let l=i&&!r&&!a?pm(i,s):Xf(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Tm(e){return $p(e).position===`static`}function Em(e,t){if(!Bp(e)||$p(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Lp(e)===n&&(n=n.ownerDocument.body),n}function Dm(e,t){let n=Ip(e);if(Wp(e))return n;if(!Bp(e)){let t=tm(e);for(;t&&!Qp(t);){if(zp(t)&&!Tm(t))return t;t=tm(t)}return n}let r=Em(e,t);for(;r&&Up(r)&&Tm(r);)r=Em(r,t);return r&&Qp(r)&&Tm(r)&&!Yp(r)?n:r||Xp(e)||n}var Om=async function(e){let t=this.getOffsetParent||Dm,n=this.getDimensions,r=await n(e.floating);return{reference:wm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function km(e){return $p(e).direction===`rtl`}var Am={convertOffsetParentRelativeRectToViewportRelativeRect:mm,getDocumentElement:Lp,getClippingRect:Sm,getOffsetParent:Dm,getElementRects:Om,getClientRects:hm,getDimensions:Cm,getScale:sm,isElement:zp,isRTL:km};function jm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mm(e,t,n){let r=null,i,a=Lp(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Yf(d),h=Yf(a.clientWidth-(u+f)),g=Yf(a.clientHeight-(d+p)),_=Yf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qf(0,Kf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!jm(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ip(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Nm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=om(e),u=i||a?[...l?rm(l):[],...t?rm(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Mm(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?dm(e):null;c&&g();function g(){let t=dm(e);h&&!jm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Pm=Ap,Fm=jp,Im=wp,Lm=Np,Rm=Dp,zm=Cp,Bm=Mp,Vm=(e,t,n)=>{let r=new Map,i=n??{},a={...Am,...i.platform,_c:r};return Sp(e,t,{...i,platform:a})},Hm=typeof document<`u`?m.useLayoutEffect:function(){};function Um(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Um(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Um(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Wm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gm(e,t){let n=Wm(e);return Math.round(t*n)/n}function Km(e){let t=m.useRef(e);return Hm(()=>{t.current=e}),t}function qm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);Um(f,r)||p(r);let[h,g]=m.useState(null),[_,v]=m.useState(null),y=m.useCallback(e=>
9{e!==C.current&&(C.current=e,g(e))},[]),b=m.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=m.useRef(null),w=m.useRef(null),T=m.useRef(u),E=c!=null,D=Km(c),O=Km(i),ee=Km(l),k=m.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Vm(C.current,w.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};A.current&&!Um(T.current,t)&&(T.current=t,Md.flushSync(()=>{d(t)}))})},[f,t,n,O,ee]);Hm(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=m.useRef(!1);Hm(()=>(A.current=!0,()=>{A.current=!1}),[]),Hm(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,k);k()}},[x,S,k,D,E]);let j=m.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),M=m.useMemo(()=>({reference:x,floating:S}),[x,S]),te=m.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Gm(M.floating,u.x),r=Gm(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Wm(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:te}),[u,k,j,M,te])}var Jm=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:zm({element:r.current,padding:i}).fn(n):r?zm({element:r,padding:i}).fn(n):{}}}},Ym=(e,t)=>{let n=Pm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xm=(e,t)=>{let n=Fm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zm=(e,t)=>({fn:Bm(e).fn,options:[e,t]}),Qm=(e,t)=>{let n=Im(e);return{name:n.name,fn:n.fn,options:[e,t]}},$m=(e,t)=>{let n=Lm(e);return{name:n.name,fn:n.fn,options:[e,t]}},eh=(e,t)=>{let n=Rm(e);return{name:n.name,fn:n.fn,options:[e,t]}},th=(e,t)=>{let n=Jm(e);return{name:n.name,fn:n.fn,options:[e,t]}},nh=Object.defineProperty,rh=(e,t)=>nh(e,`name`,{value:t,configurable:!0});function ih(e){let[t,n]=m.useState(void 0);return rd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}rh(ih,`useSize`);var ah=Object.defineProperty,oh=(e,t)=>ah(e,`name`,{value:t,configurable:!0}),sh=`Popper`,[ch,lh]=td(sh),[uh,dh]=ch(sh),fh=oh(e=>{let{__scopePopper:t,children:n}=e,[r,i]=m.useState(null),[a,o]=m.useState(void 0);return(0,p.jsx)(uh,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),ph=`PopperAnchor`,mh=m.forwardRef(oh(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=dh(ph,n),o=m.useRef(null),s=a.onAnchorChange,c=G(t,m.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=m.useRef(null);m.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&xh(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,p.jsx)(Fd.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),hh=`PopperContent`,[gh,_h]=ch(hh),vh=m.forwardRef(oh(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=dh(hh,n),[y,b]=m.useState(null),x=G(t,b),[S,C]=m.useState(null),w=ih(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],k=ee.length>0,A={padding:O,boundary:ee.filter(yh),altBoundary:k},{refs:j,floatingStyles:M,placement:te,isPositioned:ne,middlewareData:N}=qm({strategy:`fixed`,placement:D,whileElementsMounted:oh((...e)=>Nm(...e,{animationFrame:h===`always`}),`whileElementsMounted`),elements:{reference:v.anchor},middleware:[Ym({mainAxis:i+E,alignmentAxis:o}),c&&Xm({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Zm():void 0,...A}),c&&Qm({...A}),$m({...A,apply:oh(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}
9),S&&th({element:S,padding:s}),bh({arrowWidth:T,arrowHeight:E}),f&&eh({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),re=v.setPlacementState;rd(()=>(re(te),()=>{re(void 0)}),[te,re]);let[ie,ae]=xh(te),oe=tf(g);rd(()=>{ne&&oe?.()},[ne,oe]);let P=N.arrow?.x,F=N.arrow?.y,se=N.arrow?.centerOffset!==0,[ce,I]=m.useState();return rd(()=>{y&&I(window.getComputedStyle(y).zIndex)},[y]),(0,p.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:ne?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,p.jsx)(gh,{scope:n,placedSide:ie,placedAlign:ae,onArrowChange:C,arrowX:P,arrowY:F,shouldHideArrow:se,children:(0,p.jsx)(Fd.div,{"data-side":ie,"data-align":ae,..._,ref:x,style:{..._.style,animation:ne?_.style?.animation:`none`}})})})},`PopperContent`));function yh(e){return e!==null}oh(yh,`isNotNull`);var bh=oh(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=xh(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function xh(e){let[t,n=`center`]=e.split(`-`);return[t,n]}oh(xh,`getSideAndAlignFromPlacement`);var Sh=fh,Ch=mh,wh=vh,Th=Object.defineProperty,Eh=m.forwardRef(((e,t)=>Th(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=m.useState(!1);rd(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Md.createPortal((0,p.jsx)(Fd.div,{...r,ref:t}),o):null},`Portal`)),Dh=Object.defineProperty,Oh=(e,t)=>Dh(e,`name`,{value:t,configurable:!0});function kh(e,t){return m.useReducer((e,n)=>t[e][n]??e,e)}Oh(kh,`useStateMachine`);var Ah=Oh(e=>{let{present:t,children:n}=e,r=jh(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=Nh(r.ref,Fh(i));return typeof n==`function`||r.isPresent?m.cloneElement(i,{ref:a}):null},`Presence`);function jh(e){let[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),a=m.useRef(`none`),o=m.useRef(void 0),[s,c]=kh(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return m.useEffect(()=>{s===`mounted`?(a.current=o.current??Ph(r.current),o.current=void 0):a.current=`none`},[s]),rd(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Ph(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),rd(()=>
9{if(t){let e,n=t.ownerDocument.defaultView??window,o=Oh(a=>{let o=Ph(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Oh(e=>{e.target===t&&(a.current=Ph(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:m.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Ph(t)}else r.current=null;n(e)},[])}}Oh(jh,`usePresence`);function Mh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Oh(Mh,`setRef`);function Nh(...e){let t=m.useRef(e);return t.current=e,m.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Mh(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Mh(n[e],null)}}},[])}Oh(Nh,`useStableComposedRefs`);function Ph(e){return e?.animationName||`none`}Oh(Ph,`getAnimationName`);function Fh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Oh(Fh,`getElementRef`);var Ih=Object.defineProperty,Lh=(e,t)=>Ih(e,`name`,{value:t,configurable:!0}),Rh=!1;function zh(){let[e,t]=m.useState(Rh);return m.useEffect(()=>{Rh||(Rh=!0,t(!0))},[]),e}Lh(zh,`useIsHydrated`);var Bh=m.useSyncExternalStore;function Vh(){return()=>{}}Lh(Vh,`subscribe`);function Hh(){return Bh(Vh,()=>!0,()=>!1)}Lh(Hh,`useIsHydratedModern`);var Uh=typeof Bh==`function`?Hh:zh,Wh=Object.defineProperty,Gh=(e,t)=>Wh(e,`name`,{value:t,configurable:!0}),Kh=`rovingFocusGroup.onEntryFocus`,qh={bubbles:!1,cancelable:!0},Jh=`RovingFocusGroup`,[Yh,Xh,Zh]=Rd(Jh),[Qh,$h]=td(Jh,[Zh]),[eg,tg]=Qh(Jh),ng=m.forwardRef(Gh(function(e,t){return(0,p.jsx)(Yh.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(Yh.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(rg,{...e,ref:t})})})},`RovingFocusGroup`)),rg=m.forwardRef(Gh(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=m.useRef(null),h=G(t,f),g=Qd(a),[_,v]=fd({prop:o,defaultProp:s??null,onChange:c,caller:Jh}),[y,b]=m.useState(!1),x=tf(l),S=Xh(n),C=m.useRef(!1),[w,T]=m.useState(0);return m.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Kh,x),()=>e.removeEventListener(Kh,x)},[x]),(0,p.jsx)(eg,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:_,onItemFocus:m.useCallback(e=>v(e),[v]),onItemShiftTab:m.useCallback(()=>b(!0),[]),onFocusableItemAdd:m.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:m.useCallback(()=>T(e=>e-1),[]),children:(0,p.jsx)(Fd.div,{tabIndex:y||w===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:`none`,...e.style},onMouseDown:W(e.onMouseDown,()=>{C.current=!0}),onFocus:W(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(Kh,qh);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);lg([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),u)}}C.current=!1}),onBlur:W(e.onBlur,()=>b(!1))})})},`RovingFocusGroupImpl`)),ig=`RovingFocusGroupItem`,ag=m.forwardRef(Gh(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Wf(),l=a||c,u=tg(ig,n),d=u.currentTabStopId===l,f=Xh(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=u,v=Uh();return rd(()=>{if(v&&r)return h(),()=>g()},[v,r,h,g]),m.useEffect(()=>{if(!v&&r)return h(),()=>g()},[v,r,h,g]),(0,p.jsx)(Yh.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,p.jsx)(Fd.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:W(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:W(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=cg(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();
9let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?ug(n,r+1):n.slice(r+1)}setTimeout(()=>lg(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:_!=null}):o})})},`RovingFocusGroupItem`)),og={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function sg(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Gh(sg,`getDirectionAwareKey`);function cg(e,t,n){let r=sg(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return og[r]}Gh(cg,`getFocusIntent`);function lg(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Gh(lg,`focusFirst`);function ug(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Gh(ug,`wrapArray`);var dg=ng,fg=ag,pg=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},mg=new WeakMap,hg=new WeakMap,gg={},_g=0,vg=function(e){return e&&(e.host||vg(e.parentNode))},yg=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=vg(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},bg=function(e,t,n,r){var i=yg(t,Array.isArray(e)?e:[e]);gg[n]||(gg[n]=new WeakMap);var a=gg[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(mg.get(e)||0)+1,l=(a.get(e)||0)+1;mg.set(e,c),a.set(e,l),o.push(e),c===1&&i&&hg.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),_g++,function(){o.forEach(function(e){var t=mg.get(e)-1,i=a.get(e)-1;mg.set(e,t),a.set(e,i),t||(hg.has(e)||e.removeAttribute(r),hg.delete(e)),i||e.removeAttribute(n)}),_g--,_g||(mg=new WeakMap,mg=new WeakMap,hg=new WeakMap,gg={})}},xg=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||pg(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),bg(r,i,n,`aria-hidden`)):function(){return null}},Sg=function(){return Sg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sg.apply(this,arguments)};function Cg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function wg(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Tg=`right-scroll-bar-position`,Eg=`width-before-scroll-bar`,Dg=`with-scroll-bars-hidden`,Og=`--removed-body-scroll-bar-size`;function kg(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ag(e,t){var n=(0,m.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var jg=typeof window<`u`?m.useLayoutEffect:m.useEffect,Mg=new WeakMap;function Ng(e,t){var n=Ag(t||null,function(t){return e.forEach(function(e){return kg(e,t)})});return jg(function(){var t=Mg.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||kg(e,null)}),i.forEach(function(e){r.has(e)||kg(e,a)})}Mg.set(n,e)},[e]),n}function Pg(e){return e}function Fg(e,t){t===void 0&&(t=Pg);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
vendor: 7,462 bytes, lines 9-49
9n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ig(e){e===void 0&&(e={});var t=Fg(null);return t.options=Sg({async:!0,ssr:!1},e),t}var Lg=function(e){var t=e.sideCar,n=Cg(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return m.createElement(r,Sg({},n))};Lg.isSideCarExport=!0;function Rg(e,t){return e.useMedium(t),Lg}var zg=Ig(),Bg=function(){},Vg=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Bg,onWheelCapture:Bg,onTouchMoveCapture:Bg}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Cg(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Ng([n,t]),w=Sg(Sg({},x),i);return m.createElement(m.Fragment,null,u&&m.createElement(S,{sideCar:zg,removeScrollBar:l,shards:d,noRelative:p,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?m.cloneElement(m.Children.only(s),Sg(Sg({},w),{ref:C})):m.createElement(y,Sg({},w,{className:c,ref:C}),s))});Vg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vg.classNames={fullWidth:Eg,zeroRight:Tg};var Hg=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ug(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Hg();return t&&e.setAttribute(`nonce`,t),e}function Wg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gg(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Kg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ug())&&(Wg(t,n),Gg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qg=function(){var e=Kg();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jg=function(){var e=qg();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Yg={left:0,top:0,right:0,gap:0},Xg=function(e){return parseInt(e||``,10)||0},Zg=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Xg(n),Xg(r),Xg(i)]},Qg=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Yg;var t=Zg(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$g=Jg(),e_=`data-scroll-locked`,t_=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 10 .${Dg} { 11 overflow: hidden ${r}; 12 padding-right: ${s}px ${r}; 13 } 14 body[${e_}] { 15 overflow: hidden ${r}; 16 overscroll-behavior: contain; 17 ${[t&&`position: relative ${r};`,n===`margin`&&` 18 padding-left: ${i}px; 19 padding-top: ${a}px; 20 padding-right: ${o}px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: ${s}px ${r}; 24 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 25 } 26 27 .${Tg} { 28 right: ${s}px ${r}; 29 } 30 31 .${Eg} { 32 margin-right: ${s}px ${r}; 33 } 34 35 .${Tg} .${Tg} { 36 right: 0 ${r}; 37 } 38 39 .${Eg} .${Eg} { 40 margin-right: 0 ${r}; 41 } 42 43 body[${e_}] { 44 ${Og}: ${s}px; 45 } 46`},n_=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},r_=function(){m.useEffect(function(){return document.body.setAttribute(e_,(n_()+1).toString()),function(){var e=n_()-1;e<=0?document.body.removeAttribute(e_):document.body.setAttribute(e_,e.toString())}},[])},i_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;r_();var a=m.useMemo(function(){return Qg(i)},[i]);return m.createElement($g,{styles:t_(a,!t,i,n?``:`!important`)})},a_=!1;if(typeof window<`u`)try{var o_=Object.defineProperty({},"passive",{get:function(){return a_=!0,!0}});window.addEventListener(`test`,o_,o_),window.removeEventListener(`test`,o_,o_)}catch{a_=!1}var s_=a_?{passive:!1}:!1,c_=function(e){return e.tagName===`TEXTAREA`},l_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!c_(e)&&n[t]===`visible`)},u_=function(e){return l_(e,`overflowY`)},d_=function(e){return l_(e,`overflowX`)},f_=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),h_(e,r)){var i=g_(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},p_=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},m_=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},h_=function(e,t){return e===`v`?u_(t):d_(t)},g_=function(e,t){return e===`v`?p_(t):m_(t)},__=function(e,t){return e===`h`&&t===`rtl`?-1:1},v_=function(e,t,n,r,i){var a=__(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=g_(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&h_(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},y_=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b_=function(e){return[e.deltaX,e.deltaY]},x_=function(e){return e&&`current`in e?e.current:e},S_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C_=function(e){return` 47 .block-interactivity-${e} {pointer-events: none;} 48 .allow-interactivity-${e} {pointer-events: all;} 49`},w_=0,T_=[];function E_(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(w_++)[0],a=m.useState(Jg)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=wg([e.lockRef.current],(e.shards||[]).map(x_),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=y_(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=f_(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=f_(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return v_(h,t,e,h===`h`?s:c,!0)},[]),c=m.useCallback(function(e){var n=e;if(T_.length&&T_[T_.length-1]===a){var r=`deltaY`in n?b_(n):y_(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&S_(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
49if(!i){var c=(o.current.shards||[]).map(x_).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=m.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:D_(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=m.useCallback(function(e){n.current=y_(e),r.current=void 0},[]),d=m.useCallback(function(t){l(t.type,b_(t),t.target,s(t,e.lockRef.current))},[]),f=m.useCallback(function(t){l(t.type,y_(t),t.target,s(t,e.lockRef.current))},[]);m.useEffect(function(){return T_.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,s_),document.addEventListener(`touchmove`,c,s_),document.addEventListener(`touchstart`,u,s_),function(){T_=T_.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,s_),document.removeEventListener(`touchmove`,c,s_),document.removeEventListener(`touchstart`,u,s_)}},[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(a,{styles:C_(i)}):null,p?m.createElement(i_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var O_=Rg(zg,E_),k_=m.forwardRef(function(e,t){return m.createElement(Vg,Sg({},e,{ref:t,sideCar:O_}))});k_.classNames=Vg.classNames;var A_=Object.defineProperty,J=(e,t)=>A_(e,`name`,{value:t,configurable:!0}),j_=[`Enter`,` `],M_=[`ArrowDown`,`PageUp`,`Home`],N_=[`ArrowUp`,`PageDown`,`End`],P_=[...M_,...N_];[...j_],[...j_];var F_=`Menu`,[I_,L_,R_]=Rd(F_),[z_,B_]=td(F_,[R_,lh,$h]),V_=lh(),H_=$h(),[U_,W_]=z_(F_),[G_,K_]=z_(F_),q_=J(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=V_(t),[c,l]=m.useState(null),u=m.useRef(!1),d=tf(a),f=Qd(i);return m.useEffect(()=>{let e=J(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=J(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),m.useEffect(()=>{if(!n)return;let e=J(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,p.jsx)(Sh,{...s,children:(0,p.jsx)(U_,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,p.jsx)(G_,{scope:t,onClose:m.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),J_=m.forwardRef(J(function(e,t){let{__scopeMenu:n,...r}=e,i=V_(n);return(0,p.jsx)(Ch,{...i,...r,ref:t})},`MenuAnchor`)),Y_=`MenuPortal`,[X_,Z_]=z_(Y_,{forceMount:void 0}),Q_=J(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=W_(Y_,t);return(0,p.jsx)(X_,{scope:t,forceMount:n,children:(0,p.jsx)(Ah,{present:n||a.open,children:(0,p.jsx)(Eh,{asChild:!0,container:i,children:r})})})},`MenuPortal`),$_=`MenuContent`,[ev,tv]=z_($_),nv=m.forwardRef(J(function(e,t){let n=Z_($_,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=W_($_,e.__scopeMenu),o=K_($_,e.__scopeMenu);return(0,p.jsx)(I_.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(Ah,{present:r||a.open,children:(0,p.jsx)(I_.Slot,{scope:e.__scopeMenu,children:o.modal?(0,p.jsx)(rv,{...i,ref:t}):(0,p.jsx)(iv,{...i,ref:t})})})})},`MenuContent`)),rv=m.forwardRef(J(function(e,t){let n=W_($_,e.__scopeMenu),r=m.useRef(null),i=G(t,r);return m.useEffect(()=>{let e=r.current;if(e)return xg(e)},[]),(0,p.jsx)(ov,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),iv=m.forwardRef(J(function(e,t){let n=W_($_,e.__scopeMenu);return(0,p.jsx)(ov,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),av=yd(`MenuContent.ScrollLock`),ov=m.forwardRef(J(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,..._}=e,v=W_($_,n),y=K_($_,n),b=V_(n),x=H_(n),S=L_(n),[C,w]=m.useState(null),T=m.useRef(null),E=G(t,T,v.onContentChange),D=m.useRef(0),O=m.useRef(``),ee=m.useRef(0),k=m.useRef(null),A=m.useRef(`right`),j=m.useRef(0),M=g?k_:m.Fragment,te=g?{as:av,allowPinchZoom:!0}:void 0,ne=J(e=>{let t=O.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Sv(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;J((function e(t){O.current=t,window.clearTimeout(D.current),t!==``&&(D.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>
49o.focus())},`handleTypeaheadSearch`);m.useEffect(()=>()=>window.clearTimeout(D.current),[]),xf();let N=m.useCallback(e=>A.current===k.current?.side&&wv(e,k.current?.area),[]);return(0,p.jsx)(ev,{scope:n,searchRef:O,onItemEnter:m.useCallback(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:m.useCallback(e=>{N(e)||(T.current?.focus(),w(null))},[N]),onTriggerLeave:m.useCallback(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:m.useCallback(e=>{k.current=e},[]),children:(0,p.jsx)(M,{...te,children:(0,p.jsx)(Of,{asChild:!0,trapped:i,onMountAutoFocus:W(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,p.jsx)(lf,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:(0,p.jsx)(dg,{asChild:!0,...x,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:W(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,p.jsx)(wh,{role:`menu`,"aria-orientation":`vertical`,"data-state":_v(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:E,style:{outline:`none`,..._.style},onKeyDown:W(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ne(e.key));let i=T.current;if(e.target!==i||!P_.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);N_.includes(e.key)&&a.reverse(),bv(a)}),onBlur:W(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current=``)}),onPointerMove:W(e.onPointerMove,Tv(e=>{let t=e.target,n=j.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>j.current?`right`:`left`;A.current=t,j.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),sv=`MenuItem`,cv=`menu.itemSelect`,lv=m.forwardRef(J(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=m.useRef(null),o=K_(sv,e.__scopeMenu),s=tv(sv,e.__scopeMenu),c=G(t,a),l=m.useRef(!1),u=J(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cv,{bubbles:!0,cancelable:!0});e.addEventListener(cv,e=>r?.(e),{once:!0}),Id(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,p.jsx)(uv,{...i,ref:c,disabled:n,onClick:W(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:W(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:W(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&j_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),uv=m.forwardRef(J(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=tv(sv,n),s=H_(n),c=m.useRef(null),l=G(t,c),[u,d]=m.useState(!1),[f,h]=m.useState(``);return m.useEffect(()=>{let e=c.current;e&&h((e.textContent??``).trim())},[a.children]),(0,p.jsx)(I_.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,p.jsx)(fg,{asChild:!0,...s,focusable:!r,children:(0,p.jsx)(Fd.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:W(e.onPointerMove,Tv(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Tv(e=>o.onItemLeave(e))),onFocus:W(e.onFocus,()=>d(!0)),onBlur:W(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[dv,fv]=z_(`MenuRadioGroup`,{value:void 0,onValueChange:J(()=>{},`onValueChange`)}),[pv,mv]=z_(`MenuItemIndicator`,{checked:!1}),[hv,gv]=z_(`MenuSub`);function _v(e){return e?`open`:`closed`}J(_v,`getOpenState`);function vv(e){return e===`indeterminate`}J(vv,`isIndeterminate`);function yv(e){return vv(e)?`indeterminate`:e?`checked`:`unchecked`}J(yv,`getCheckedState`);function bv(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}J(bv,`focusFirst`);function xv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}J(xv,`wrapArray`);function Sv(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=xv(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}J(Sv,`getNextMatch`);function Cv(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}J(Cv,`isPointInPolygon`);function wv(e,t){return t?Cv({x:e.clientX,y:e.clientY},t):!1}J(wv,`isPointerInGraceArea`);function Tv(e){return t=>t.pointerType===`mouse`?e(t):void 0}J(Tv,`whenMouse`);var Ev=q_,Dv=J_,Ov=Q_,kv=nv,Av=lv,jv=Object.defineProperty,Mv=(e,t)=>jv(e,`name`,{value:t,configurable:!0}),Nv=`DropdownMenu`,[Pv,Fv]=td(Nv,[B_]),Iv=B_(),[Lv,Rv]=Pv(Nv),zv=Mv(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Iv(t),l=m.useRef(null),[u,d]=fd({prop:i,defaultProp:a??!1,onChange:o,caller:Nv});return(0,p.jsx)(Lv,{scope:t,triggerId:Wf(),triggerRef:l,contentId:Wf(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,p.jsx)(Ev,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Bv=`DropdownMenuTrigger`,Vv=m.forwardRef(Mv(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Rv(Bv,n),o=Iv(n),s=G(t,a.triggerRef);return(0,p.jsx)(Dv,{asChild:!0,...o,children:(0,p.jsx)(Fd.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:W(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:W(e.onKeyDown,e=>
49{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Hv=Mv(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Iv(t);return(0,p.jsx)(Ov,{...r,...n})},`DropdownMenuPortal`),Uv=`DropdownMenuContent`,Wv=m.forwardRef(Mv(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Rv(Uv,n),a=Iv(n),o=m.useRef(!1);return(0,p.jsx)(kv,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:W(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Gv=m.forwardRef(Mv(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Iv(n);return(0,p.jsx)(Av,{...i,...r,ref:t})},`DropdownMenuItem`)),Kv=zv,qv=Vv,Jv=Hv,Yv=Wv,Xv=Gv,Zv=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Qv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),$v=e=>{let t=Qv(e);return t.charAt(0).toUpperCase()+t.slice(1)},ey=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ty=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},ny={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ry=(0,m.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,m.createElement)(`svg`,{ref:c,...ny,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ey(`lucide`,i),...!a&&!ty(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,m.createElement)(e,t)),...Array.isArray(a)?a:[a]])),iy=(e,t)=>{let n=(0,m.forwardRef)(({className:n,...r},i)=>(0,m.createElement)(ry,{ref:i,iconNode:t,className:ey(`lucide-${Zv($v(e))}`,`lucide-${e}`,n),...r}));return n.displayName=$v(e),n},ay=iy(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),oy=iy(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),sy=iy(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),cy=iy(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function ly(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ly(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function uy(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ly(e))&&(r&&(r+=` `),r+=t);return r}var dy=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},fy=(e,t)=>({classGroupId:e,validator:t}),py=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),my=`-`,hy=[],gy=`arbitrary..`,_y=e=>{let t=by(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return yy(e);let n=e.split(my);return vy(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?dy(i,t):t:i||hy}return n[e]||hy}}},vy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=vy(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(my):e.slice(t).join(my),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},yy=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?gy+r:void 0}
vendor: 13,711 bytes, line 49
49)(),by=e=>{let{theme:t,classGroups:n}=e;return xy(n,t)},xy=(e,t)=>{let n=py();for(let r in e){let i=e[r];Sy(i,n,r,t)}return n},Sy=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Cy(i,t,n,r)}},Cy=(e,t,n,r)=>{if(typeof e==`string`){wy(e,t,n);return}if(typeof e==`function`){Ty(e,t,n,r);return}Ey(e,t,n,r)},wy=(e,t,n)=>{let r=e===``?t:Dy(t,e);r.classGroupId=n},Ty=(e,t,n,r)=>{if(Oy(e)){Sy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(fy(n,e))},Ey=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Sy(o,Dy(t,a),n,r)}},Dy=(e,t)=>{let n=e,r=t.split(my),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=py(),n.nextPart.set(t,i)),n=i}return n},Oy=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ky=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ay=`!`,jy=`:`,My=[],Ny=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Py=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===jy){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ay)?(c=s.slice(0,-1),l=!0):s.startsWith(Ay)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ny(t,l,c,u)};if(t){let e=t+jy,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ny(My,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Fy=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Iy=e=>({cache:ky(e.cacheSize),parseClassName:Py(e),sortModifiers:Fy(e),postfixLookupClassGroupIds:Ly(e),..._y(e)}),Ly=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ry=/\s+/,zy=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ry),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Ay:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},By=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Vy(n))&&(i&&(i+=` `),i+=r);return i},Vy=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Vy(e[r]))&&(n&&(n+=` `),n+=t);return n},Hy=(e,...t)=>{let n,r,i,a,o=o=>(n=Iy(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=zy(e,n);return i(e,a),a};return a=o,(...e)=>a(By(...e))},Uy=[],Y=e=>{let t=t=>t[e]||Uy;return t.isThemeGetter=!0,t},Wy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ky=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qy=e=>Ky.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),$y=e=>!!e&&Number.isInteger(Number(e)),eb=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),tb=e=>qy.test(e),nb=()=>!0,rb=e=>Jy.test(e)&&!Yy.test(e),ib=()=>!1,ab=e=>Xy.test(e),ob=e=>Zy.test(e),sb=e=>!Z(e)&&!Q(e),cb=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),lb=e=>wb(e,Ob,ib),Z=e=>Wy.test(e),ub=e=>wb(e,kb,rb),db=e=>wb(e,Ab,X),fb=e=>wb(e,Mb,nb),pb=e=>wb(e,jb,ib),mb=e=>wb(e,Eb,ib),hb=e=>wb(e,Db,ob),gb=e=>wb(e,Nb,ab),Q=e=>Gy.test(e),_b=e=>Tb(e,kb),vb=e=>Tb(e,jb),yb=e=>Tb(e,Eb),bb=e=>Tb(e,Ob),xb=e=>Tb(e,Db),Sb=e=>Tb(e,Nb,!0),Cb=e=>Tb(e,Mb,!0),wb=(e,t,n)=>{let r=Wy.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tb=(e,t,n=!1)=>{let r=Gy.exec(e);return r?r[1]?t(r[1]):n:!1},Eb=e=>e===`position`||e===`percentage`,Db=e=>e===`image`||e===`url`,Ob=e=>e===`length`||e===`size`||e===`bg-size`,kb=e=>e===`length`,Ab=e=>e===`number`,jb=e=>e===`family-name`,Mb=e=>e===`number`||e===`weight`,Nb=e=>e===`shadow`,Pb=Hy(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[Qy,`full`,`auto`,...w()],E=()=>[$y,`none`,`subgrid`,Q,Z],D=()=>[`auto`,{span:[`full`,$y,Q,Z]},$y,Q,Z],O=()=>[$y,`auto`,Q,Z],ee=()=>[`auto`,`min`,`max`,`fr`,Q,Z],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[Qy,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],te=()=>[Qy,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ne=()=>[Qy,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[e,Q,Z],re=()=>[...b(),yb,mb,{position:[Q,Z]}],ie=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,bb,lb,{size:[Q,Z]}],oe=()=>[eb,_b,ub],P=()=>[``,`none`,`full`,l,Q,Z],F=()=>[``,X,_b,ub],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[X,eb,yb,mb],le=()=>[``,`none`,m,Q,Z],ue=()=>[`none`,X,Q,Z],de=()=>[`none`,X,Q,Z],fe=()=>[X,Q,Z],pe=()=>[Qy,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[tb],breakpoint:[tb],color:[nb],container:[tb],"drop-shadow":[tb],ease:[`in`,`out`,`in-out`],font:[sb],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[tb],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[tb],shadow:[tb],spacing:[`px`,X],text:[tb],"text-shadow":[tb],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Qy,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[cb],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[$y,`auto`,Q,Z]}],basis:[{basis:[Qy,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,Qy,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[$y,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...te()]}],"min-inline-size":[{"min-inline":[`auto`,...te()]}],"max-inline-size":[{"max-inline":[`none`,...te()]}],"block-size":[{block:[`auto`,...ne()]}],"min-block-size":[{"min-block":[`auto`,...ne()]}],"max-block-size":[{"max-block":[`none`,...ne()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,_b,ub]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Cb,fb]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,eb,Z]}],"font-family":[{font:[vb,pb,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,db]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,ub]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[$y,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},$y,Q,Z],radial:[``,Q,Z],conic:[$y,Q,Z]},xb,hb]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:oe()}
vendor: 9,117 bytes, line 49
49],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,_b,ub]}],"outline-color":[{outline:N()}],shadow:[{shadow:[``,`none`,u,Sb,gb]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":[`none`,d,Sb,gb]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[X,ub]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":[`none`,f,Sb,gb]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:le()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Sb,gb]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[$y,Q,Z]}],accent:[{accent:N()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
49],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...N()]}],"stroke-w":[{stroke:[X,_b,ub,db]}],stroke:[{stroke:[`none`,...N()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Fb(...e){return Pb(uy(e))}function Ib({...e}){return(0,p.jsx)(Kv,{"data-slot":`dropdown-menu`,...e})}function Lb({...e}){return(0,p.jsx)(qv,{"data-slot":`dropdown-menu-trigger`,...e})}function Rb({className:e,sideOffset:t=4,...n}){return(0,p.jsx)(Jv,{children:(0,p.jsx)(Yv,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:Fb(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...n})})}function zb({className:e,inset:t,variant:n=`default`,...r}){return(0,p.jsx)(Xv,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:Fb(`focu
49s:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r})}var Bb=[.23,1,.32,1],Vb=[.19,1,.22,1],Hb={once:!0,amount:`some`,margin:`0px 0px -80px 0px`},Ub={duration:.55,ease:Bb},Wb={div:U.div,section:U.section,article:U.article,header:U.header,nav:U.nav,aside:U.aside,footer:U.footer,form:U.form,ul:U.ul,ol:U.ol,dl:U.dl,li:U.li,h1:U.h1,h2:U.h2,h3:U.h3,p:U.p,span:U.span};function Gb(e,t){return{hidden:{opacity:0,y:e},visible:{opacity:1,y:0,transition:{...Ub,delay:t}}}}function Kb(e=24,t=0){return Gb(e,t)}function qb({as:e=`div`,delay:t=0,distance:n=24,stagger:r,immediate:i=!1,children:a,...o}){let s=Wb[e],c=Kb(n,t),l=r===void 0?c:{hidden:{},visible:{transition:{staggerChildren:r,delayChildren:t}}};return(0,p.jsx)(s,{initial:`hidden`,...i?{animate:`visible`}:{whileInView:`visible`,viewport:Hb},variants:l,"data-reveal":r===void 0||void 0,...o,children:a})}function Jb({as:e=`div`,distance:t=24,delay:n=0,children:r,...i}){let a=Wb[e],o=Kb(t,n);return(0,p.jsx)(a,{variants:o,"data-reveal":!0,...i,children:r})}var Yb=/^(\d+)(?:([.,])(\d+))?(.*)$/;function Xb({text:e}){let t=Yb.exec(e);if(!t)return(0,p.jsx)(p.Fragment,{children:e});let[,n,r=`.`,i=``,a]=t,o=Number(`${n}.${i||`0`}`);return(0,p.jsx)(Zb,{value:o,format:e=>e.toFixed(i.length).replace(`.`,r)+a})}function Zb({value:e,format:t,duration:n=1.4}){let r=(0,m.useRef)(null),i=Bu(r,{once:!0,margin:`0px 0px -80px 0px`}),a=fu(),[o,s]=(0,m.useState)(()=>t(e));return(0,m.useEffect)(()=>{if(!i||a||e===0)return;let r=Lu(0,e,{duration:n,ease:Vb,onUpdate:e=>s(t(e))});return()=>r.stop()},[i,a,e,n]),(0,p.jsx)(`span`,{ref:r,style:{fontVariantNumeric:`tabular-nums`},children:o})}var Qb=U.create(i);function $({href:e,action:t,children:n,className:r,reveal:a=!1,...o}){let s=Kb(),c=a?{variants:s,"data-reveal":!0}:void 0,{lang:l=`pt`}=f({strict:!1});if(t===`contact`&&(e=`/${l}/contact`),e?.startsWith(`/`))return(0,p.jsx)(a?Qb:i,{to:e,className:r,activeOptions:{includeSearch:!1},...c,...o,children:n});if(e){let t=e.startsWith(`http`),i=a?U.a:`a`;return(0,p.jsx)(i,{href:e,className:r,target:t?`_blank`:void 0,rel:t?`noopener noreferrer`:void 0,...c,...o,children:n})}let u=a?U.button:`button`;return(0,p.jsx)(u,{type:`button`,className:r,...c,...o,children:n})}function $b({className:e=``}){return(0,p.jsxs)(`span`,{className:`wordmark ${e}`.trim(),"aria-hidden":`true`,children:[(0,p.jsx)(`span`,{className:`wordmark-icon`}),(0,p.jsx)(`span`,{className:`wordmark-text`,children:`tucupy`})]})}function ex({lang:e=`pt`}){return(0,p.jsx)(i,{to:`/$lang`,params:{lang:e},className:`wordmark-link`,"aria-label":r(e,`Tucupy, inÃcio`),children:(0,p.jsx)($b,{})})}function tx({lang:e=`pt`}){return(0,p.jsxs)(qb,{as:`section`,id:`contact`,className:`ps-5ba167d1 paper-row paper-sized paper-gutter`,children:[(0,p.jsxs)(`div`,{className:`ps-7c3af5a7 paper-sized`,children:[(0,p.jsx)(`h2`,{className:`ps-18952ab1 paper-sized`,children:r(e,`Solicite uma proposta.`)}),(0,p.jsx)(`p`,{className:`ps-a7e80d13 paper-sized`,children:r(e,`Apresente os objetivos do projeto. Em uma semana, você recebe uma proposta com escopo, prazo e custo.`)}),(0,p.jsxs)(`div`,{className:`ps-d5d5f13c`,children:[(0,p.jsx)($,{action:`contact`,className:`ps-6fb5cc17`,children:(0,p.jsx)(`div`,{className:`ps-264e8485`,children:r(e,`Iniciar um projeto`)})}),(0,p.jsx)($,{action:`contact`,className:`ps-7fa23d5d`,children:(0,p.jsx)(`div`,{className:`ps-b3bd2803`,children:r(e,`Solicitar consultoria de segurança`)})})]})]}),(0,p.jsxs)(`div`,{className:`ps-436ccd2d paper-sized`,children:[(0,p.jsxs)(`div`,{className:`ps-74a0b3d9`,children:[(0,p.jsx)(`div`,{className:`ps-82cc42c6`,children:r(e,`E-mail`)}),(0,p.jsx)($,{href:`mailto:[email protected]`,className:`ps-9a33f816`,children:r(e,`[email protected]`)})]}),(0,p.jsxs)(`div`,{className:`ps-74a0b3d9`,children:[(0,p.jsx)(`div`,{className:`ps-82cc42c6`,children:r(e,`Telefone`)}),(0,p.jsx)($,{href:`tel:+5591991011351`,className:`ps-9a33f816`,children:`+55 (91) 99101-1351`})]}),(0,p.jsxs)(`div`,{className:`ps-74a0b3d9`,children:[(0,p.jsx)(`div`,{className:`ps-82cc42c6`,children:r(e,`Escritório`)}),(0,p.jsxs)(`p`,{className:`ps-2c7b6e6d paper-pre`,children:[r(e,`Ed. Connext, Salas 807-808`),(0,p.jsx)(`br`,{className:`ps-bf21a9e8`}),r(e,`Tv. Dom Romualdo de Seixas, 1560`),(0,p.jsx)(`br`,{className:`ps-bf21a9e8`}),r(e,`Belém, PA, Brasil`)]})]})]})]})}function nx({lang:e=`pt`}){return(0,p.jsxs)(`footer`,{id:`footer`,className:`ps-5757aa55 paper-sized paper-tall`,children:[(0,p.jsxs)(`div`,{className:`ps-cd51f9ce paper-row paper-sized paper-gutter`,children:[(0,p.jsxs)(`div`,{className:`ps-8a88e2db paper-sized`,children:[(0,p.jsx)(ex,{lang:e}),(0,p.jsx)(`div`,{className:`ps-276d7076 paper-sized`,children:r(e,`Software para instituições que não podem falhar.`)}),(0,p.jsx)($,{href:`mailto:[email protected]`,className:`ps-33868df9`,children:(0,p.jsx)(`div`,{className:`ps-d4678965`,children:r(e,`[email protected]`)})})]}),(0,p.jsxs)(`div`,{className:`ps-f1971463 footer-navigation`,children:[(0,p.jsxs)(`div`,{className:`ps-a8739bbd`,children:[(0,p.jsx)(`div`,{className:`ps-14a057d1`,children:(0,p.jsx)(`div`,{className:`ps-3c5edaad`,children:r(e,`Empresa`)})}),(0,p.jsx)($,{href:`/${e}/projects`,className:`ps-646eb14c`,children:r(e,`Projetos`)}),(0,p.jsx)($,{href:`/${e}/services`,className:`ps-646eb14c`,children:r(e,`Serviços`)}),(0,p.jsx)($,{href:`/${e}/about`,className:`ps-646eb14c`,children:r(e,`Sobre`)}),(0,p.jsx)($,{href:`/${e}/blog`,className:`ps-646eb14c`,children:r(e,`Blog`)}),(0,p.jsx)($,{href:`/${e}/careers`,className:`ps-646eb14c`,children:r(e,`Trabalhe conosco`)}),(0,p.jsx)($,{href:`/${e}/contact`,className:`ps-646eb14c`,children:r(e,`Contato`)})]}),(0,p.jsxs)(`div`,{className:`ps-a8739bbd`,children:[(0,p.jsx)(`div`,{className:`ps-14a057d1`,children:(0,p.jsx)(`div`,{className:`ps-3c5edaad`,children:r(e,`Confiança`)})}),(0,p.jsx)($,{href:`/${e}/security`,className:`ps-796356ef`,children:r(e,`Segurança`)}),(0,p.jsx)($,{href:`/${e}/privacy`,className:`ps-796356ef`,children:r(e,`PolÃtica de privacidade`)})]}),(0,p.jsxs)(`div`,{className:`ps-9369dd65`,children:[(0,p.jsx)(`div`,{className:`ps-14a057d1`,children:(0,p.jsx)(`div`,{className:`ps-3c5edaad`,children:r(e,`Redes`)})}),(0,p.jsx)($,{href:`https://www.linkedin.com/company/tucupy/`,className:`ps-796356ef`,children:r(e,`LinkedIn`)}),(0,p.jsx)($,{href:`https://www.instagram.com/tucupytecnologia/`,className:`ps-796356ef`,children:r(e,`Instagram`)}),(0,p.jsx)($,{href:`https://github.com/Tucupy-Tecnologia`,className:`ps-796356ef`,children:r(e,`GitHub`)})]})]})]}),(0,p.jsx)(`div`,{className:`ps-a69aa2ed paper-row paper-sized paper-gutter`,children:(0,p.jsxs)(`div`,{className:`footer-meta paper-row paper-sized`,children:[(0,p.jsx)(`div`,{className:`ps-15b66de9`,children:r(e,`© 2026 Tucupy Tecnologia. Todos os direitos reservados.`)}),(0,p.jsx)(`div`,{className:`ps-15b66de9`,children:(0,p.jsx)(ox,{lang:e})})]})})]})}var rx=[[`projects`,`Projetos`],[`services`,`Serviços`],[`security`,`Segurança`],[`about`,`Sobre`],[`blog`,`Blog`],[`careers`,`Trabalhe conosco`]],ix=[{code:`en`,name:`English`,flag:`ðºð¸`},{code:`pt`,name:`Português`,flag:`ð§ð·`},{code:`es`,name:`Español`,flag:`ðªð¸`},{code:`fr`,name:`Français`,flag:`ð«ð·`}];function ax(e){let t=e.replace(/^\/(pt|en|es|fr)(?=\/|$)/,``);return t.startsWith(`/blog/`)?`/blog`:t}function ox({lang:e=`pt`}){let t=ax(o({select:e=>e.location.pathname}));return(0,p.jsx)(`div`,{className:`language-links`,"aria-label":r(e,`Idioma`),children:[`pt`,`en`,`es`,`fr`].map((n,r)=>(0,p.jsxs)(m.Fragment,{children:[r>0&&(0,p.jsx)(`span`,{"aria-hidden":`true`,children:` · `}),(0,p.jsx)(i,{to:`/${n}${t}`,lang:n,"aria-current":n===e?`page`:void 0,children:n.toUpperCase()})]},n))})}function sx({lang:e=`pt`}){let[t,n]=(0,m.useState)(!1),a=(0,m.useRef)(null),[s,c]=(0,m.useState)(!1),l=o({select:e=>e.location.pathname}),u=ix.find(({code:t})=>t===e)??ix[0],d=ax(l);return(0,m.useEffect)(()=>{n(!1),c(!1)},[l]),(0,m.useEffect)(()=>
49{if(!t)return;let e=e=>{e.key!==`Escape`||e.defaultPrevented||(n(!1),a.current?.focus())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[t]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`a`,{className:`skip-link`,href:`#main-content`,children:r(e,`Pular para o conteúdo`)}),(0,p.jsxs)(`header`,{className:`site-header`,children:[(0,p.jsx)(ex,{lang:e}),(0,p.jsx)(`nav`,{className:`desktop-nav`,"aria-label":r(e,`Navegação principal`),children:rx.map(([t,n])=>(0,p.jsx)(i,{to:`/$lang/${t}`,params:{lang:e},activeOptions:{includeSearch:!1},children:r(e,n)},t))}),(0,p.jsxs)(`div`,{className:`header-actions`,children:[(0,p.jsx)(`div`,{className:`language-picker`,children:(0,p.jsxs)(Ib,{open:s,onOpenChange:c,modal:!1,children:[(0,p.jsx)(Lb,{asChild:!0,children:(0,p.jsxs)(`button`,{type:`button`,className:`language-trigger`,"aria-label":`${r(e,`Selecionar idioma`)}, ${u.name}`,children:[(0,p.jsx)(`span`,{className:`language-trigger-name`,lang:u.code,children:u.name}),(0,p.jsx)(`span`,{className:`language-trigger-code`,"aria-hidden":`true`,children:u.code.toUpperCase()}),(0,p.jsx)(oy,{size:14,"aria-hidden":`true`})]})}),(0,p.jsx)(Rb,{className:`language-popover`,align:`end`,sideOffset:8,collisionPadding:16,loop:!0,children:ix.map(({code:t,name:n,flag:r})=>(0,p.jsx)(zb,{asChild:!0,textValue:n,children:(0,p.jsxs)(i,{to:t===e?l:`/${t}${d}`,className:`language-option`,lang:t,hrefLang:t,"aria-current":t===e?`page`:void 0,onClick:()=>c(!1),children:[(0,p.jsx)(`span`,{className:`language-flag`,"aria-hidden":`true`,children:r}),(0,p.jsx)(`span`,{children:n}),t===e&&(0,p.jsx)(ay,{className:`language-check`,size:16,"aria-hidden":`true`})]})},t))})]})}),(0,p.jsx)($,{action:`contact`,className:`header-contact`,children:r(e,`Entrar em contato`)}),(0,p.jsx)(`button`,{ref:a,className:`menu-toggle`,type:`button`,"aria-expanded":t,"aria-controls":`mobile-nav`,"aria-label":r(e,t?`Fechar menu`:`Abrir menu`),onClick:()=>n(!t),children:t?(0,p.jsx)(cy,{size:22}):(0,p.jsx)(sy,{size:22})})]}),(0,p.jsx)(Cc,{children:t&&(0,p.jsxs)(U.nav,{id:`mobile-nav`,className:`mobile-nav`,"aria-label":r(e,`Navegação móvel`),initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-6,transition:{duration:.15,ease:`easeOut`}},transition:{duration:.25,ease:Bb},children:[rx.map(([t,n])=>(0,p.jsx)(i,{to:`/$lang/${t}`,params:{lang:e},activeOptions:{includeSearch:!1},children:r(e,n)},t)),(0,p.jsx)(i,{to:`/$lang/contact`,params:{lang:e},activeOptions:{includeSearch:!1},children:r(e,`Entrar em contato`)}),(0,p.jsx)(ox,{lang:e})]})})]})]})}export{fd as A,xf as C,Rd as D,Qd as E,Bu as F,Lu as I,fu as L,td as M,G as N,Fd as O,W as P,Of as S,tf as T,Ch as _,$ as a,lh as b,Jb as c,ay as d,iy as f,Eh as g,Ah as h,$b as i,rd as j,yd as k,Fb as l,xg as m,nx as n,Xb as o,k_ as p,tx as r,qb as s,sx as t,oy as u,wh as v,lf as w,Wf as x,Sh as y};
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.