intlayer-editor 9.5.6 → 9.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +0,0 @@
1
- import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{n as r,t as i}from"./dist-CcmWBeAo.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),o=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s={locales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],requiredLocales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],strictMode:`strict`,defaultLocale:`en`},c={mode:`prefix-no-default`,storage:{cookies:[{name:`INTLAYER_LOCALE`,attributes:{path:`/`}}],headers:[{name:`x-intlayer-locale`}]},basePath:``},l={editorURL:`http://localhost:8000`,cmsURL:`https://app.intlayer.org`,backendURL:`https://back.intlayer.org`,port:8e3,enabled:!1,dictionaryPriorityStrategy:`local_first`,liveSync:!1,liveSyncPort:4e3,liveSyncURL:`http://localhost:4000`},u={mode:`default`,prefix:`\x1B[38;5;239m[intlayer] \x1B[0m`},d=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),f=e=>{if(typeof e==`number`)return Date.now()+e*1e3;if(typeof e==`string`){let t=Date.parse(e);return Number.isNaN(t)?void 0:t}},p=(e,t,n)=>{let r=[`${e}=${encodeURIComponent(t)}`];n.path&&r.push(`Path=${n.path}`),n.domain&&r.push(`Domain=${n.domain}`);let i=f(n.expires);return i!==void 0&&r.push(`Expires=${new Date(i).toUTCString()}`),n.secure&&r.push(`Secure`),n.sameSite&&r.push(`SameSite=${n.sameSite}`),r.join(`; `)},m={}.INTLAYER_ROUTING_STORAGE_COOKIES===`false`;({}).INTLAYER_ROUTING_STORAGE_HEADERS;var h={getCookie:e=>document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`))?.split(`=`)[1],getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:(e,t)=>{document.cookie=t},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},g=(e=h)=>{let{locales:t}=s;if(e?.isCookieEnabled===!1)return;let n=e=>!!e&&t.includes(e);if(!m)for(let t=0;t<(c.storage.cookies??[]).length;t++)try{let r=e?.getCookie?.(c.storage.cookies[t].name);if(n(r))return r}catch{}},_=(e,t)=>{if(t?.isCookieEnabled!==!1&&!m&&c.storage.cookies)for(let n=0;n<c.storage.cookies.length;n++){let{name:r,attributes:i}=c.storage.cookies[n];try{t?.setCookieStore&&t.setCookieStore(r,e,{...i,expires:f(i.expires)})}catch{try{t?.setCookieString&&t.setCookieString(r,p(r,e,i))}catch{}}}},v=e(n(),1),y=g(h),b=(e,t)=>_(e,{...h,isCookieEnabled:t}),x=[`en`],S=`\x1B[0m`,C=`\x1B[34m`,w=`\x1B[31m`,T=`\x1B[32m`,E=`\x1B[38;5;3m`,D=e=>e,O=(e,t)=>{let n=t?.config??{},r=n.mode??`default`;if(r===`disabled`||t?.isVerbose&&r!==`verbose`)return;let i=D(n.prefix),a=i?[i,...[e].flat()]:[e].flat(),o=t?.level??`info`;(n[o]??console[o]??n.log??console.log)(...a)},k=(e,t)=>(n,r)=>O(n,{...r??{},config:{...e?.log,...t?.config,...r?.config??{}}}),A=(e,t,n)=>t&&typeof window>`u`?`${t}${e}${n?typeof n==`boolean`?S:n:S}`:e,ee=(e,t=E,n=S)=>[e].flat().map(e=>A(e,t,n)).join(`, `);A(`✗`,w),A(`✓`,T),A(`⏲`,C);var j=()=>{typeof window<`u`&&(window.intlayer={enabled:!0})},M=(e,t=s?.locales)=>{let n=d(e),r=e;e?.endsWith(`/`)&&(r=e.slice(0,-1));let i=n?new URL(r):new URL(r,`http://e.com`),a=i.pathname;a.startsWith(`/`)||(i.pathname=`/${a}`);{let e=a.split(`/`),n=e[1];t?.includes(n)&&(e.splice(1,1),i.pathname=e.join(`/`)??`/`)}return n?i.toString():i.toString().replace(`http://e.com`,``)},te=(e,t,n)=>(n??c?.rewrite,e),N=(e={})=>({...e,defaultLocale:e.defaultLocale??s?.defaultLocale??`en`,mode:e.mode??c?.mode??`prefix-no-default`,locales:e.locales??s?.locales??x,rewrite:e.rewrite??c?.rewrite,domains:e.domains??c?.domains}),ne=(e,t)=>!!e&&(t??s.locales).includes(e),re=(e,t={})=>{let{defaultLocale:n,mode:r,locales:i,domains:a}=N(t);return!e||!ne(e,i)?{prefix:``,localePrefix:void 0}:r===`prefix-all`||r===`prefix-no-default`&&n!==e?{prefix:`${e}/`,localePrefix:e}:{prefix:``,localePrefix:void 0}},ie=(e,t,n)=>({path:e,isRewritten:!1}),ae=(e,t=s?.defaultLocale,n={})=>{let{defaultLocale:r,mode:i,locales:a,rewrite:o,domains:c}=N(n),l=M(e,a),u=new URL(l,`http://e.com`),d=ie(te(u.pathname,void 0,void 0),t,void 0).path,{prefix:f}=re(t,{defaultLocale:r,mode:i,locales:a,domains:c}),p=`/${f}${d}`.replace(/\/+/g,`/`);return p.length>1&&p.endsWith(`/`)&&(p=p.slice(0,-1)),`${p}${u.search}${u.hash}`},oe=(e,t=s?.defaultLocale,n={})=>{let{domains:r,currentDomain:i}=N(n),a=d(e),o=a?new URL(e):new URL(e,`http://e.com`);return`${a?`${o.protocol}//${o.host}`:``}${ae(`${o.pathname}${o.search}${o.hash}`,t,n)}`},se=(e,t=s?.locales,n=s?.defaultLocale)=>{let r=[e].flat(),i=e=>e.trim().toLowerCase();try{for(let e of r){let n=i(e),r=t.find(e=>i(e)===n);if(r)return r;let[a]=n.split(`-`),o=t.find(e=>i(e).split(`-`)[0]===a);if(o)return o}}catch{}return n},P=r(),ce=(0,v.createContext)({locale:y??s?.defaultLocale,setLocale:()=>null,isCookieEnabled:!0}),le=({locale:e,defaultLocale:t,variant:n,children:r,setLocale:i,disableEditor:a,isCookieEnabled:o})=>{let{locales:c,defaultLocale:l}=s??{},[u,d]=(0,v.useState)(e??y??t??l);(0,v.useEffect)(()=>{e&&e!==u&&d(e)},[e]),(0,v.useEffect)(()=>{j()},[]);let f=i??(e=>{if(u.toString()!==e.toString()){if(!c?.map(String).includes(e)){console.error(`Locale ${e} is not available`);return}d(e),b(e,o)}}),p=se(u);return(0,P.jsx)(ce.Provider,{value:{locale:p,setLocale:f,variant:n,disableEditor:a},children:r})},ue=new WeakMap,de=0,fe=e=>{if(!e)return`base`;let t=ue.get(e);if(t)return t;de+=1;let n=`p${de}`;return ue.set(e,n),n},pe=256,me=new WeakMap,he=e=>typeof e==`object`&&!!e,ge=(e,t,n)=>`${e}_${t}_${fe(n)}`,_e=(e,t)=>{if(!he(e))return{hit:!1};let n=me.get(e);return n?.has(t)?{hit:!0,content:n.get(t)}:{hit:!1}},ve=(e,t,n)=>{if(!he(e))return n;let r=me.get(e);return r||(r=new Map,me.set(e,r)),r.size>=pe&&r.clear(),r.set(t,n),n},ye=(e,t)=>{let n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},be=`translation`,xe=`enumeration`,Se=`plural`,Ce=`condition`,we=`insertion`,Te=`file`,Ee=`object`,De=`array`,Oe=`nested`,ke=`reactNode`,Ae=`preactNode`,je=`solidNode`,Me=`markdown`,Ne=`html`,Pe=`text`,Fe=`number`,Ie=`boolean`,Le=`gender`,Re=`select`,ze=`null`,Be=`unknown`,Ve=(e,t)=>{for(let n of t.plugins??[])if(n.canHandle(e))return n.transform(e,t,(e,t)=>Ve(e,t));if(typeof e!=`object`||!e||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0||typeof e==`function`)return e;if(Array.isArray(e))return e.map((e,n)=>Ve(e,{...t,children:e,keyPath:[...t.keyPath,{type:De,key:n}]}));let n={};for(let r in e){let i={...t,children:e[r],keyPath:[...t.keyPath,{type:Ee,key:r}]};if(t.eager){n[r]=Ve(e[r],i);continue}Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:function(){let t=Ve(e[r],i);return Object.defineProperty(this,r,{value:t,enumerable:!0,configurable:!0}),t}})}return n},He=(e,t)=>e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,n)=>(t[n.trim()]??``).toString()),Ue=`default`,We=/[^A-Za-z0-9._&=-]/g,Ge=/[^A-Za-z0-9._-]/g,Ke=e=>`%${e.charCodeAt(0).toString(16).toUpperCase().padStart(4,`0`)}`,qe=(e,t)=>{if(e===``)return`%`;let n=e.replace(t,Ke);return n===`.`||n===`..`?n.replace(/\./g,`%002E`):n},Je=e=>e===void 0?Ue:typeof e==`string`?qe(e,We):Object.keys(e).sort().map(t=>`${qe(t,Ge)}=${qe(String(e[t]),Ge)}`).join(`&`),Ye=e=>Array.isArray(e)?e.length===0?[Ue]:e.map(Je):[Je(e)],Xe=(e,t)=>{for(let n of e)if(t(n))return n;return t(`default`)?Ue:e[0]??`default`},Ze=(e,t,n,r)=>{let i=e.split(`/`);return t.every((e,t)=>e===`variant`?i[t]===r:n?.item===void 0||i[t]===String(n.item))},Qe=e=>typeof e==`object`&&!!e&&`qualifierTypes`in e&&Array.isArray(e.qualifierTypes)&&`content`in e,$e=(e,t)=>{let n=t.split(`/`),r={key:e.key,content:e.content[t]};return e.qualifierTypes.forEach((e,t)=>{e===`variant`?r.variant=n[t]:e===`item`&&(r.item=Number(n[t]))}),r},et=(e,t)=>{if(!Qe(e))return e;let{qualifierTypes:n,content:r}=e,i=n.includes(`item`)&&t?.item===void 0,a=Object.keys(r),o=n.indexOf(`variant`),s=o===-1?Ue:Xe(Ye(t?.variant),e=>a.some(t=>t.split(`/`)[o]===e)),c=a.filter(e=>Ze(e,n,t,s)).map(t=>$e(e,t));return i?c.sort((e,t)=>(e.item??0)-(t.item??0)):c[0]??null},tt=e=>typeof e==`object`&&e?{locale:e.locale,selector:e}:{locale:e},nt=e=>e?Object.keys(e).filter(e=>e!==`locale`).sort().map(t=>{let n=e[t];return`${t}:${t===`variant`?Ye(n).join(`,`):String(n)}`}).join(`|`):``,rt=()=>({}),it=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`]),at=(e=``)=>new Proxy((()=>e),{get:(t,n)=>n===`toJSON`||n===Symbol.toPrimitive||n===`toString`||n===`valueOf`?()=>e:n===`then`?void 0:it.has(n)?Object.prototype[n].bind(t):n===Symbol.iterator?function*(){yield e}:at(e?`${e}.${String(n)}`:String(n))}),ot=new Set,st=(e,t,n)=>{let r=rt()[e];return r?Dt(r,t,n):(ot.has(e)||(k({log:u})(typeof window>`u`?`Dictionary ${ee(e)} was not found. Using fallback proxy.`:`Dictionary ${e} was not found. Using fallback proxy.`,{level:`warn`}),ot.add(e)),at(e))},ct=e=>{if(typeof e!=`object`||!e||typeof e.then==`function`||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Array.isArray(e)},lt=(e,t)=>{if(e===void 0)return t;if(t===void 0||Array.isArray(e))return e;if(ct(e)&&ct(t)){let n={...e};for(let r of Object.keys(t))r!==`__proto__`&&r!==`constructor`&&t[r]!==void 0&&(n[r]=e[r]===void 0?t[r]:lt(e[r],t[r]));return n}return e},ut=(e,t,n)=>{let r=t=>e[t],i=new Set,a=[],o=e=>{e&&!i.has(e)&&(i.add(e),a.push(e))};o(t),t.includes(`-`)&&o(t.split(`-`)[0]),o(n),n?.includes(`-`)&&o(n.split(`-`)[0]);let s=[];for(let e of a){let t=r(e);if(t!==void 0){if(typeof t==`string`){if(s.length===0)return t;continue}s.push(t)}}if(s.length!==0)return s.length===1||Array.isArray(s[0])?s[0]:s.reduce((e,t)=>lt(e,t))},dt=e=>{if(typeof e!=`object`||!e||!(`nodeType`in e))return!1;let{nodeType:t}=e;return!1},ft=e=>{if(typeof e==`string`)return e;if(dt(e))return e.nodeType===`html`?e[Ne]:e[Me]},pt=(e,t)=>{if(typeof e==`string`)return t;if(dt(e)){let n=e.nodeType===`html`?Ne:Me;return{...e,[n]:t}}return e},mt=(e,t,n,r,i)=>{let a=pt(e,He(ft(e),t));return i(a,{...n,plugins:r,children:a})},ht={id:`fallback-plugin`,canHandle:()=>!1,transform:e=>e},gt=(e,t)=>({}).INTLAYER_NODE_TYPE_TRANSLATION===`false`?ht:{id:`translation-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`translation`,transform:(n,r,i)=>{let a=n.translation??{},o={};for(let e in a){let t={...r,children:a[e],keyPath:[...r.keyPath,{type:be,key:e}]};o[e]=i(a[e],t)}return ut(o,e,t)}},_t=ht,vt=e=>ht,yt={}.INTLAYER_NODE_TYPE_CONDITION===`false`?ht:{id:`condition-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`condition`,transform:(e,t,n)=>{let r=e[Ce],i={};for(let e in r){let a=r[e];i[e]=n(a,{...t,children:a,keyPath:[...t.keyPath,{type:Ce,key:e}]})}return e=>{let t=typeof e==`boolean`?e:e.value,n=ye(i,t);return typeof n==`function`&&typeof e==`object`?n(e):n}}},bt={}.INTLAYER_NODE_TYPE_INSERTION===`false`?ht:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:we}],i=e[we],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||dt(e),transform:(e,n,r)=>{if(dt(e))return i=>mt(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=He(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}};return n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]})}},xt=ht,St=ht,Ct=e=>ht,wt=ht,Tt=(e,t=!0)=>[gt(e??s.defaultLocale,t?s.defaultLocale:void 0),_t,yt,bt,Ct(e??s.defaultLocale),wt,xt,St],Et=(e,t,n=[])=>Ve(e,{...t,plugins:n}),Dt=(e,t,n)=>{let{locale:r,selector:i}=tt(t),a=ge(r??s.defaultLocale,nt(i),n),o=_e(e,a);if(o.hit)return o.content;let c=n??Tt(r),l=et(e,i),u=e=>{let t={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:c,nestedDictionaries:e.nestedDictionaries};return Et(e.content,t,c)};return l===null?ve(e,a,null):Array.isArray(l)?ve(e,a,l.map(u)):ve(e,a,u(l))},Ot=e=>e!=null&&typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`,kt=/\{\{\s*(.*?)\s*\}\}/g,At=(e,t={})=>{if(!Object.values(t).some(Ot))return{isSimple:!0,parts:e.replace(kt,(e,n)=>(t[n.trim()]??``).toString())};let n=e.split(kt),r=[];for(let e=0;e<n.length;e++)if(e%2==0)n[e]&&r.push(n[e]);else{let i=t[n[e].trim()];i!=null&&r.push(i)}return{isSimple:!1,parts:r}},jt=({children:e,value:t,additionalProps:n})=>{let r=(0,v.isValidElement)(e)?e:(0,P.jsx)(P.Fragment,{children:e});return new Proxy(r,{get(e,r,i){if(r===`value`)return t;if(r===Symbol.toPrimitive)return()=>t??``;if(r===`toString`)return()=>String(t??``);if(r===`valueOf`)return()=>t;if(n&&Object.hasOwn(n,r))return n[r];if(t!=null&&typeof r==`string`&&r!==`constructor`&&!(r in e)){let e=Object(t);if(r in e){let n=e[r];return typeof n==`function`?n.bind(t):n}}return Reflect.get(e,r,i)}})},Mt={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{plugins:t,...n})=>jt({...n,value:n.children,children:n.children})},Nt=ht,Pt=(e,t)=>{let n=At(e,t);return n.isSimple?n.parts:(0,v.createElement)(v.Fragment,null,...n.parts.map((e,t)=>(0,v.createElement)(v.Fragment,{key:t},e)))},Ft={}.INTLAYER_NODE_TYPE_INSERTION===`false`?ht:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:we}],i=e[we],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||dt(e),transform:(e,n,r)=>{if(dt(e))return i=>mt(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=Pt(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}},o=n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]});return typeof i==`object`&&i&&`nodeType`in i&&[`enumeration`,`condition`].includes(i.nodeType)?e=>t=>{let n=o(t);return typeof n==`function`?n(e):n}:o}},It=ht,Lt=ht,Rt=new Map,zt=(e,t=!0)=>{let n=`${e??s.defaultLocale}_${t}`;if(Rt.has(n))return Rt.get(n);let r=[gt(e??s.defaultLocale,t?s.defaultLocale:void 0),_t,vt(e??s.defaultLocale),yt,Ct(e??s.defaultLocale),wt,xt,St,Mt,Nt,Ft,It,Lt];return Rt.set(n,r),r},Bt=(e,t)=>st(e,t,zt(typeof t==`object`&&t?t.locale:t)),Vt=(e,t)=>{let{locale:n,variant:r}=(0,v.useContext)(ce)??{},i=t??n,a=typeof i==`object`&&i?`${i.locale??``}|${nt(i)}`:i;return(0,v.useMemo)(()=>Bt(e,i),[e,a])},Ht=e(o(),1),Ut=Object.defineProperty,Wt=(e,t)=>Ut(e,`name`,{value:t,configurable:!0}),Gt=!!(typeof window<`u`&&window.document&&window.document.createElement);function F(e,t,{checkForDefaultPrevented:n=!0}={}){return Wt(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Wt(F,`composeEventHandlers`);function Kt(e){if(!Gt)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Wt(Kt,`getOwnerWindow`);function qt(e){if(!Gt)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Wt(qt,`getOwnerDocument`);function Jt(e,t=!1){let{activeElement:n}=qt(e);if(!n?.nodeName)return null;if(Yt(n)&&n.contentDocument)return Jt(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=qt(n).getElementById(e);if(t)return t}}return n}Wt(Jt,`getActiveElement`);function Yt(e){return e.tagName===`IFRAME`}Wt(Yt,`isFrame`);var Xt=Object.defineProperty,Zt=(e,t)=>Xt(e,`name`,{value:t,configurable:!0});function Qt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Zt(Qt,`setRef`);function $t(...e){return t=>{let n=!1,r=e.map(e=>{let r=Qt(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():Qt(e[t],null)}}}}Zt($t,`composeRefs`);function I(...e){return v.useCallback($t(...e),e)}Zt(I,`useComposedRefs`);var en=Object.defineProperty,tn=(e,t)=>en(e,`name`,{value:t,configurable:!0});function nn(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=tn(e=>{let{children:t,...r}=e,i=v.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=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return tn(i,`useContext`),[r,i]}tn(nn,`createContext`);function rn(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=tn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.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=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return tn(s,`useContext`),[o,s]}tn(r,`createContext`);let i=tn(()=>{let t=n.map(e=>v.createContext(e));return tn(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,an(i,...t)]}tn(rn,`createContextScope`);function an(...e){let t=e[0];if(e.length===1)return t;let n=tn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return tn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}tn(an,`composeContextScopes`);var on=Object.defineProperty,sn=(e,t)=>on(e,`name`,{value:t,configurable:!0});function cn(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];_n(r)&&typeof xn==`function`&&(r=xn(r._payload)),v.Children.forEach(r,e=>{if(hn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;_n(n)&&typeof xn==`function`&&(n=xn(n._payload)),a=fn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?mn(a):void 0,l=I(n,c);if(!a){if(r||r===0)throw Error(o?bn(e):yn(e));return r}let u=pn(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}sn(cn,`createSlot`);var ln=cn(`Slot`),un=Symbol.for(`radix.slottable`);function dn(e){let t=sn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=un,t}sn(dn,`createSlottable`);var fn=sn((e,t)=>{if(`child`in e.props){let t=e.props.child;return v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null}return v.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function pn(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}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}sn(pn,`mergeProps`);function mn(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)}sn(mn,`getElementRef`);function hn(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===un}sn(hn,`isSlottable`);var gn=Symbol.for(`react.lazy`);function _n(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===gn&&`_payload`in e&&vn(e._payload)}sn(_n,`isLazyComponent`);function vn(e){return typeof e==`object`&&!!e&&`then`in e}sn(vn,`isPromiseLike`);var yn=sn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),bn=sn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),xn=v.use,Sn=Object.defineProperty,L=(e,t)=>Sn(e,`name`,{value:t,configurable:!0});function Cn(e){let t=e+`CollectionProvider`,[n,r]=rn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=L(e=>{let{scope:t,children:n}=e,r=v.useRef(null),a=v.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=cn(s),l=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=I(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=cn(u),p=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),s=I(t,o),c=a(u,n);return v.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,P.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return v.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 L(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}L(Cn,`createCollection`);var wn=new WeakMap,Tn=class e extends Map{static{L(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],wn.set(this,!0)}set(e,t){return wn.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=On(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=En(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=En(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return En(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++}}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 En(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Dn(e,t);return n===-1?void 0:e[n]}L(En,`at`);function Dn(e,t){let n=e.length,r=On(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}L(Dn,`toSafeIndex`);function On(e){return e!==e||e===0?0:Math.trunc(e)}L(On,`toSafeInteger`);function kn(e){let t=e+`CollectionProvider`,[n,r]=rn(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Tn,setItemMap:L(()=>void 0,`setItemMap`)}),o=L(({state:e,...t})=>e?(0,P.jsx)(c,{...t,state:e}):(0,P.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=L(e=>{let t=h();return(0,P.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=L(e=>{let{scope:t,children:n,state:r}=e,a=v.useRef(null),[o,s]=v.useState(null),c=I(a,s),[l,u]=r;return v.useEffect(()=>{if(!o)return;let e=Nn(()=>{});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=cn(l),d=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=I(t,a(l,n).collectionRef);return(0,P.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=cn(f),m=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),[s,c]=v.useState(null),l=I(t,o,c),{setItemMap:u}=a(f,n),d=v.useRef(i);An(d.current,i)||(d.current=i);let m=d.current;return v.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Mn):(t.set(s,{...e,element:s}),t.toSorted(Mn)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Tn(e)))}},[s,m,u]),(0,P.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return v.useState(new Tn)}L(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return L(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}L(kn,`createCollection`);function An(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}L(An,`shallowEqual`);function jn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}L(jn,`isElementPreceding`);function Mn(e,t){return!e[1].element||!t[1].element?0:jn(e[1].element,t[1].element)?-1:1}L(Mn,`sortByDocumentPosition`);function Nn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}L(Nn,`getChildListObserver`);var Pn=Object.defineProperty,Fn=(e,t)=>Pn(e,`name`,{value:t,configurable:!0}),R=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=cn(`Primitive.${t}`),r=v.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 In(e,t){e&&Ht.flushSync(()=>e.dispatchEvent(t))}Fn(In,`dispatchDiscreteCustomEvent`);var Ln=Object.defineProperty,Rn=(e,t)=>Ln(e,`name`,{value:t,configurable:!0});function zn(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Rn(zn,`useCallbackRef`);var Bn=Object.defineProperty,z=(e,t)=>Bn(e,`name`,{value:t,configurable:!0}),Vn=`dismissableLayer.update`,Hn=`dismissableLayer.pointerDownOutside`,Un=`dismissableLayer.focusOutside`,Wn,Gn=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Kn=v.forwardRef(z(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Gn),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=I(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=Xn(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Zn(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=zn(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wn=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Qn(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Wn))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Qn())},[d,u]),v.useEffect(()=>{let e=z(()=>m({}),`handleUpdate`);return document.addEventListener(Vn,e),()=>document.removeEventListener(Vn,e)},[]),(0,P.jsx)(R.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:F(e.onFocusCapture,T.onFocusCapture),onBlurCapture:F(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`)),qn=v.forwardRef(z(function(e,t){let n=v.useContext(Gn),r=v.useRef(null),i=I(t,r);return v.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,P.jsx)(R.div,{...e,ref:i})},`DismissableLayerBranch`));function Jn(){let e=v.useContext(Gn),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}z(Jn,`useDismissableLayerSurface`);var Yn=z(()=>!0,`IS_TRUE`);function Xn(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Yn}=t,s=zn(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}z(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}z(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)}z(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}z(p,`handleInteractionBubble`);let m=z(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||$n(Hn,s,p,{discrete:!0})};if(z(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:z(()=>c.current=!0,`onPointerDownCapture`)}}z(Xn,`usePointerDownOutside`);function Zn(e,t=globalThis?.document){let n=zn(e),r=v.useRef(!1);return v.useEffect(()=>{let e=z(e=>{e.target&&!r.current&&$n(Un,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:z(()=>r.current=!0,`onFocusCapture`),onBlurCapture:z(()=>r.current=!1,`onBlurCapture`)}}z(Zn,`useFocusOutside`);function Qn(){let e=new CustomEvent(Vn);document.dispatchEvent(e)}z(Qn,`dispatchUpdate`);function $n(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?In(i,a):i.dispatchEvent(a)}z($n,`handleAndDispatchCustomEvent`);var er=Kn,tr=qn,B=globalThis?.document?v.useLayoutEffect:()=>{},nr=Object.defineProperty,rr=v.forwardRef(((e,t)=>nr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);B(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Ht.createPortal((0,P.jsx)(R.div,{...r,ref:t}),o):null},`Portal`)),ir=Object.defineProperty,ar=(e,t)=>ir(e,`name`,{value:t,configurable:!0});function or(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}ar(or,`useStateMachine`);var sr=ar(e=>{let{present:t,children:n}=e,r=cr(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=ur(r.ref,fr(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function cr(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=or(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??dr(r.current),o.current=void 0):a.current=`none`},[s]),B(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=dr(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]),B(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=ar(a=>{let o=dr(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=ar(e=>{e.target===t&&(a.current=dr(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:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=dr(t)}else r.current=null;n(e)},[])}}ar(cr,`usePresence`);function lr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ar(lr,`setRef`);function ur(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=lr(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():lr(n[e],null)}}},[])}ar(ur,`useStableComposedRefs`);function dr(e){return e?.animationName||`none`}ar(dr,`getAnimationName`);function fr(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)}ar(fr,`getElementRef`);var pr=Object.defineProperty,mr=(e,t)=>pr(e,`name`,{value:t,configurable:!0}),hr=v.useEffectEvent,gr=v.useInsertionEffect;function _r(e){if(typeof hr==`function`)return hr(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof gr==`function`?gr(()=>{t.current=e}):B(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}mr(_r,`useEffectEvent`);var vr=Object.defineProperty,yr=(e,t)=>vr(e,`name`,{value:t,configurable:!0}),br=v.useInsertionEffect||B;function xr({prop:e,defaultProp:t,onChange:n=yr(()=>{},`onChange`),caller:r}){let[i,a,o]=Sr({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=Cr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}yr(xr,`useControllableState`);function Sr({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return br(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}yr(Sr,`useUncontrolledState`);function Cr(e){return typeof e==`function`}yr(Cr,`isFunction`);var wr=Symbol(`RADIX:SYNC_STATE`);function Tr(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=_r(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===wr)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,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:wr,state:i})},[i,d.state,c]),[h,f]}yr(Tr,`useControllableStateReducer`);var Er=Object.defineProperty,Dr=(e,t)=>Er(e,`name`,{value:t,configurable:!0}),Or=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),kr=v.forwardRef(Dr(function(e,t){return(0,P.jsx)(R.span,{...e,ref:t,style:{...Or,...e.style}})},`VisuallyHidden`));function Ar(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=Ar(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function jr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ar(e))&&(r&&(r+=` `),r+=t);return r}var Mr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Nr=jr,Pr=(e,t)=>n=>{if(t?.variants==null)return Nr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Mr(t)||Mr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Nr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Fr=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Ir(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Fr(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Lr=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Rr=e=>{let t=Lr(e);return t.charAt(0).toUpperCase()+t.slice(1)},zr=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Br={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Vr(e){return e!=null}function Hr(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Br.width,a=e.size??e.height??Br.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?zr(...c):zr(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Br[`stroke-width`])*Number(e.size??e.width??Br.width)/Number(t.size??t.width??Br.width):t.strokeWidth??Br[`stroke-width`];return[`svg`,{...Object.entries(Br).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Vr(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Vr(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Vr(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Ur(e,t={}){return Hr(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Wr=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Gr=(0,v.createContext)({}),Kr=()=>(0,v.useContext)(Gr),qr=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=Kr()??{},b=!!c||Wr(d),[x,S,C=[]]=Ur(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:zr(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Jr(e,t=[],n=[]){let r=typeof e==`string`?Ir(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(qr,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Rr(r.name)),i}var Yr={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Yr.node;var Xr=Jr(Yr),Zr={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Zr.node;var Qr=Jr(Zr),$r={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};$r.node;var ei=Jr($r),ti={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};ti.node;var ni=Jr(ti),ri={name:`copy-check`,size:24,node:[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ri.node;var ii=Jr(ri),ai={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ai.node;var oi=Jr(ai),si={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};si.node;var ci=Jr(si),li={name:`move-right`,size:24,node:[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]};li.node;var ui=Jr(li),di={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};di.node;var fi=Jr(di),pi=(0,v.createContext)({});function mi(e){let t=(0,v.useRef)(null);return t.current===null&&(t.current=e()),t.current}var hi=typeof window<`u`?v.useLayoutEffect:v.useEffect,gi=(0,v.createContext)(null);function _i(e,t){e.indexOf(t)===-1&&e.push(t)}function vi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var yi=(e,t,n)=>n>t?t:n<e?e:n,bi={},xi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Si=e=>typeof e==`object`&&!!e,Ci=e=>/^0[^.\s]+$/u.test(e);function wi(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ti=e=>e,Ei=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Di=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Oi=class{constructor(){this.subscriptions=[]}add(e){return _i(this.subscriptions,e),()=>this.remove(e)}remove(e){vi(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}},ki=e=>e*1e3,Ai=e=>e/1e3,ji=(e,t)=>t?1e3/t*e:0,Mi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ni=1e-7,Pi=12;function Fi(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Mi(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ni&&++s<Pi);return o}function Ii(e,t,n,r){if(e===t&&n===r)return Ti;let i=t=>Fi(t,0,1,e,n);return e=>e===0||e===1?e:Mi(i(e),t,r)}var Li=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ri=e=>t=>1-e(1-t),zi=Ii(.33,1.53,.69,.99),Bi=Ri(zi),Vi=Li(Bi),Hi=e=>e>=1?1:(e*=2)<1?.5*Bi(e):.5*(2-2**(-10*(e-1))),Ui=e=>1-Math.sin(Math.acos(e)),Wi=Ri(Ui),Gi=Li(Ui),Ki=Ii(.42,0,1,1),qi=Ii(0,0,.58,1),Ji=Ii(.42,0,.58,1),Yi=e=>Array.isArray(e)&&typeof e[0]!=`number`,Xi=e=>Array.isArray(e)&&typeof e[0]==`number`,Zi={linear:Ti,easeIn:Ki,easeInOut:Ji,easeOut:qi,circIn:Ui,circInOut:Gi,circOut:Wi,backIn:Bi,backInOut:Vi,backOut:zi,anticipate:Hi},Qi=e=>typeof e==`string`,$i=e=>{if(Xi(e)){e.length;let[t,n,r,i]=e;return Ii(t,n,r,i)}return Qi(e)?(Zi[e],`${e}`,Zi[e]):e},ea=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ta(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(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 na=40;function ra(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ea.reduce((e,t)=>(e[t]=ta(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=bi.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,na),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:ea.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<ea.length;t++)o[ea[t]].cancel(e)},state:i,steps:o}}var{schedule:V,cancel:ia,state:H,steps:aa}=ra(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ti,!0),oa;function sa(){oa=void 0}var U={now:()=>(oa===void 0&&U.set(H.isProcessing||bi.useManualTiming?H.timestamp:performance.now()),oa),set:e=>{oa=e,queueMicrotask(sa)}},ca=e=>Math.round(e*1e5)/1e5,la=e=>t=>typeof t==`string`&&t.startsWith(e),ua=la(`--`),da=la(`var(--`),fa=e=>da(e)?pa.test(e.split(`/*`)[0].trim()):!1,pa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ma(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var ha={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ga={...ha,transform:e=>yi(0,1,e)},_a={...ha,default:1},va=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ya(e){return e==null}var ba=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xa=(e,t)=>n=>!!(typeof n==`string`&&ba.test(n)&&n.startsWith(e)||t&&!ya(n)&&Object.prototype.hasOwnProperty.call(n,t)),Sa=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(va);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ca=e=>yi(0,255,e),wa={...ha,transform:e=>Math.round(Ca(e))},Ta={test:xa(`rgb`,`red`),parse:Sa(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+wa.transform(e)+`, `+wa.transform(t)+`, `+wa.transform(n)+`, `+ca(ga.transform(r))+`)`};function Ea(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 Da={test:xa(`#`),parse:Ea,transform:Ta.transform},Oa=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ka=Oa(`deg`),Aa=Oa(`%`),W=Oa(`px`),ja=Oa(`vh`),Ma=Oa(`vw`),Na={...Aa,parse:e=>Aa.parse(e)/100,transform:e=>Aa.transform(e*100)},Pa={test:xa(`hsl`,`hue`),parse:Sa(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Aa.transform(ca(t))+`, `+Aa.transform(ca(n))+`, `+ca(ga.transform(r))+`)`},G={test:e=>Ta.test(e)||Da.test(e)||Pa.test(e),parse:e=>Ta.test(e)?Ta.parse(e):Pa.test(e)?Pa.parse(e):Da.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ta.transform(e):Pa.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},Fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ia=new RegExp(va.source),La=new RegExp(Fa.source,`i`);function Ra(e){return isNaN(e)&&typeof e==`string`&&(Ia.test(e)||La.test(e))}var za=`number`,Ba=`color`,Va=`var`,Ha=`var(`,Ua="${}",Wa=/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 Ga(e){let t=e.toString();return Ia.test(t)||La.test(t)}function Ka(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Wa,e=>(G.test(e)?(r.color.push(a),i.push(Ba),n.push(G.parse(e))):e.startsWith(Ha)?(r.var.push(a),i.push(Va),n.push(e)):(r.number.push(a),i.push(za),n.push(parseFloat(e))),++a,Ua)).split(Ua),indexes:r,types:i}}function qa(e){return Ka(e).values}function Ja({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===za?ca(r[a]):e===Ba?G.transform(r[a]):r[a]}return i}}function Ya(e){return Ja(Ka(e))}var Xa=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e,Za=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Xa(e);function Qa(e){let t=Ka(e);return Ja(t)(t.values.map((e,n)=>Za(e,t.split[n])))}var $a={test:Ra,parse:qa,createTransformer:Ya,getAnimatableNone:Qa};function eo(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 to({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=eo(s,r,e+1/3),a=eo(s,r,e),o=eo(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function no(e,t){return n=>n>0?t:e}var K=(e,t,n)=>e+(t-e)*n,ro=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},io=[Da,Ta,Pa],ao=e=>io.find(t=>t.test(e));function oo(e){let t=ao(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Pa&&(n=to(n)),n}var so=(e,t)=>{let n=oo(e),r=oo(t);if(!n||!r)return no(e,t);let i={...n};return e=>(i.red=ro(n.red,r.red,e),i.green=ro(n.green,r.green,e),i.blue=ro(n.blue,r.blue,e),i.alpha=K(n.alpha,r.alpha,e),Ta.transform(i))},co=new Set([`none`,`hidden`]);function lo(e,t){return co.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function uo(e,t){return n=>K(e,t,n)}function fo(e){return typeof e==`number`?uo:typeof e==`string`?fa(e)?no:G.test(e)?so:go:Array.isArray(e)?po:typeof e==`object`?G.test(e)?so:mo:no}function po(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>fo(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function mo(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fo(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ho(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 go=(e,t)=>{let n=$a.createTransformer(t),r=Ka(e),i=Ka(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?co.has(e)&&!i.values.length||co.has(t)&&!r.values.length?lo(e,t):Ei(po(ho(r,i),i.values),n):(`${e}${t}`,no(e,t))},_o=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function vo(e,t){let n=_o.exec(e);if(!n)return;let r=_o.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ca(K(a,o,e))+i}function yo(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return K(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=vo(e,t);if(n)return n}return fo(e)(e,t)}var bo=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>V.update(t,e),stop:()=>ia(t),now:()=>H.isProcessing?H.timestamp:U.now()}},xo=(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)})`},So=2e4;function Co(e,t=50,n=So,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function wo(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Co(r),So);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Ai(i)}}var q={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 To(e,t){return e*Math.sqrt(1-t*t)}var Eo=12;function Do(e,t,n){let r=n;for(let n=1;n<Eo;n++)r-=e(r)/t(r);return r}var Oo=.001;function ko({duration:e=q.duration,bounce:t=q.bounce,velocity:n=q.velocity,mass:r=q.mass}){let i,a;q.maxDuration;let o=1-t;o=yi(q.minDamping,q.maxDamping,o),e=yi(q.minDuration,q.maxDuration,Ai(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=To(t,o),c=Math.exp(-i);return Oo-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=To(t*t,o);return(-i(t)+Oo>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=Do(i,a,s);if(e=ki(e),isNaN(c))return{stiffness:q.stiffness,damping:q.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ao=[`duration`,`bounce`],jo=[`stiffness`,`damping`,`mass`];function Mo(e,t){return t.some(t=>e[t]!==void 0)}function No(e){let t={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...e};if(!Mo(e,jo)&&Mo(e,Ao)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*yi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q.mass,stiffness:i,damping:a}}else{let n=ko({...e,velocity:0});t={...t,...n,mass:q.mass},t.isResolvedFromDuration=!0}}return t}function Po(e=q.visualDuration,t=q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d}=No({...n,velocity:-Ai(n.velocity||0)}),f=s/(2*Math.sqrt(o*c)),p=Ai(Math.sqrt(o/c)),m=f*p,h={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},g=()=>{let e=Math.abs(h.delta)<5;h.restSpeed=n.restSpeed||(e?q.restSpeed.granular:q.restSpeed.default),h.restDelta=n.restDelta||(e?q.restDelta.granular:q.restDelta.default)};g();let _,v,y;if(f<1){let e=To(p,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};y=()=>{t.A=(h.velocity+m*h.delta)/e,t.sinC=m*t.A+h.delta*e,t.cosC=m*h.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-m*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};_=e=>(n(e),h.target-t.env*(t.A*t.sin+h.delta*t.cos)),v=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(f===1){_=e=>h.target-Math.exp(-p*e)*(h.delta+(h.velocity+p*h.delta)*e);let e={C:0};y=()=>{e.C=h.velocity+p*h.delta},v=t=>Math.exp(-p*t)*(p*e.C*t-h.velocity)}else{let e=p*Math.sqrt(f*f-1);_=t=>{let n=Math.exp(-m*t),r=Math.min(e*t,300);return h.target-n*((h.velocity+m*h.delta)*Math.sinh(r)+e*h.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};y=()=>{t.P=(h.velocity+m*h.delta)/e,t.sinh=m*t.P-h.delta*e,t.cosh=m*h.delta-t.P*e},v=n=>{let r=Math.exp(-m*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}y();let b=!Mo(n,jo)&&Mo(n,Ao),x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{h.target=e[e.length-1],h.delta=h.target-e[0],h.velocity=b?0:-Ai(t),n.restSpeed&&n.restDelta||g(),S.calculatedDuration=x,a.done=!1,y()},velocity:e=>ki(v(e)),next:e=>{let t=_(e);if(d)a.done=e>=l;else{let n=ki(v(e));a.done=Math.abs(n)<=h.restSpeed&&Math.abs(h.target-t)<=h.restDelta}return a.value=a.done?h.target:t,a},toString:()=>{let e=Math.min(Co(S),So),t=xo(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Po.applyToOptions=e=>{let t=wo(e,100,Po);return e.ease=t.ease,e.duration=ki(t.duration),e.type=`keyframes`,e};function Fo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||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=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Po({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Io(e,t,n){let r=[],i=n||bi.mix||yo,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ei(Array.isArray(t)?t[n]||Ti:t,a)),r.push(a)}return r}function Lo(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=Io(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=Di(e[r],e[r+1],n);return s[r](i)};return n?t=>l(yi(e[0],e[a-1],t)):l}function Ro(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Di(0,t,r);e.push(K(n,1,i))}}function zo(e){let t=[0];return Ro(t,e.length-1),t}function Bo(e,t){return e.map(e=>e*t)}function Vo(e,t){return e.map(()=>t||Ji).splice(0,e.length-1)}function Ho({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Yi(r)?r.map($i):$i(r),a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(bi.mix||yo)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?yi(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Lo(Bo(n&&n.length===t.length?n:zo(t),e),t,{ease:Array.isArray(i)?i:Vo(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Uo=5;function Wo(e,t,n){let r=Math.max(t-Uo,0);return ji(n-e(r),t-r)}function Go(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Wo(t=>e.next(t).value,t,e.next(t).value)}var Ko=e=>e!==null;function qo(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ko),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Jo={decay:Fo,inertia:Fo,tween:Ho,keyframes:Ho,spring:Po};function Yo(e){typeof e.type==`string`&&(e.type=Jo[e.type])}function Xo(e,t){return{kind:e,animation:t,timestamp:U.now(),frameTimestamp:H.timestamp,frameIsProcessing:H.isProcessing}}function Zo(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Xo(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Qo(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Xo(`layout-animation-start`,e),node:t})}catch{}}var $o=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},es=e=>e/100,ts=class extends $o{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!==U.now()&&this.tick(U.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Zo(this,this.options)}initAnimation(){let{options:e}=this;Yo(e);let{type:t=Ho,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ho;s!==Ho&&typeof o[0]!=`number`&&(this.mixKeyframes=Ei(es,yo(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Co(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=yi(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Fo&&(b.value=qo(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Ai(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ai(e)}get time(){return Ai(this.currentTime)}set time(e){e=ki(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(){return Go(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(U.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ai(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=bo,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(U.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)}},ns=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function rs(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(va)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ns.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var is=/\b([a-z-]*)\(.*?\)/gu,as={...$a,getAnimatableNone:e=>{let t=e.match(is);return t?t.map(rs).join(` `):e}},os={...$a,getAnimatableNone:e=>{let t=$a.parse(e);return $a.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ss={...ha,transform:Math.round},cs={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:ka,pathRotation:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scale:_a,scaleX:_a,scaleY:_a,scaleZ:_a,skew:ka,skewX:ka,skewY:ka,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ga,originX:Na,originY:Na,originZ:W,zIndex:ss,fillOpacity:ga,strokeOpacity:ga,numOctaves:ss},ls={...cs,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:as,WebkitFilter:as,mask:os,WebkitMask:os},us=e=>ls[e],ds=new Set([as,os]);function fs(e,t){let n=us(e);return ds.has(n)||(n=$a),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function ps(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ms=e=>e*180/Math.PI,hs=e=>_s(ms(Math.atan2(e[1],e[0]))),gs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hs,rotateZ:hs,skewX:e=>ms(Math.atan(e[1])),skewY:e=>ms(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_s=e=>(e%=360,e<0&&(e+=360),e),vs=hs,ys=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ys,scaleY:bs,scale:e=>(ys(e)+bs(e))/2,rotateX:e=>_s(ms(Math.atan2(e[6],e[5]))),rotateY:e=>_s(ms(Math.atan2(-e[2],e[0]))),rotateZ:vs,rotate:vs,skewX:e=>ms(Math.atan(e[4])),skewY:e=>ms(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ss(e){return+!!e.includes(`scale`)}function Cs(e,t){if(!e||e===`none`)return Ss(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=xs,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=gs,i=t}if(!i)return Ss(t);let a=r[t],o=i[1].split(`,`).map(Ts);return typeof a==`function`?a(o):o[a]}var ws=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Cs(n,t)};function Ts(e){return parseFloat(e.trim())}var Es=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ds=new Set([...Es,`pathRotation`]),Os=e=>e===ha||e===W,ks=new Set([`x`,`y`,`z`]),As=Es.filter(e=>!ks.has(e));function js(e){let t=[];return As.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Ms=new Set([`bottom`,`right`]);function Ns(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Ps={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Ns(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Ns(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Cs(e,`x`),y:({transform:e})=>Cs(e,`y`)};Ps.translateX=Ps.x,Ps.translateY=Ps.y;var Fs=new Set,Is=!1,Ls=!1,Rs=!1;function zs(){if(Ls){let e=[],t=new Set,n=new Set;Fs.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Ms.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=js(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.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)})}Ls=!1,Is=!1,Fs.forEach(e=>e.complete(Rs)),Fs.clear()}function Bs(){Fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ls=!0)})}function Vs(){Rs=!0,Bs(),zs(),Rs=!1}function Hs(e,t,n){if(typeof e==`string`){if(xi(e)||Ci(e))return parseFloat(e);if(!$a.test(e)&&$a.test(n))return fs(t,n)}return e??void 0}var Us=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?(Fs.add(this),Is||(Is=!0,V.read(Bs),V.resolveKeyframes(zs))):(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=Hs(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ps(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fs.delete(this)}cancel(){this.state===`scheduled`&&(Fs.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ws=e=>e.startsWith(`--`);function Gs(e,t,n){Ws(t)?e.style.setProperty(t,n):e.style[t]=n}var Ks={};function qs(e,t){let n=wi(e);return()=>Ks[t]??n()}var Js=qs(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ys=qs(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Xs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Zs={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Xs([0,.65,.55,1]),circOut:Xs([.55,0,1,.45]),backIn:Xs([.31,.01,.66,-.59]),backOut:Xs([.33,1.53,.69,.99])};function Qs(e,t){if(e)return typeof e==`function`?Ys()?xo(e,t):`ease-out`:Xi(e)?Xs(e):Array.isArray(e)?e.map(e=>Qs(e,t)||Zs.easeOut):Zs[e]}function $s(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=Qs(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 ec(e){return typeof e==`function`&&`applyToOptions`in e}function tc({type:e,...t}){return ec(e)&&Ys()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var nc=class extends $o{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=tc(e);this.animation=$s(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=qo(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Gs(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Zo(this,e,c)}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 Ai(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ai(e)}get time(){return Ai(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ki(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:`finished`}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&&Js()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ti):r(this)}},rc={anticipate:Hi,backInOut:Vi,circInOut:Gi};function ic(e){return e in rc}function ac(e){typeof e.ease==`string`&&ic(e.ease)&&(e.ease=rc[e.ease])}var oc=10,sc=class extends nc{constructor(e){ac(e),Yo(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 ts({...a,autoplay:!1}),s=Math.max(oc,U.now()-this.startTime),c=yi(0,oc,s-oc),l=o.sample(s).value,{name:u}=this.options;i&&u&&Gs(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},cc=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&($a.test(e)||e===`0`)&&!e.startsWith(`url(`));function lc(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 uc(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=cc(i,t),s=cc(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):lc(e)||(n===`spring`||ec(n))&&r}function dc(e){e.duration=0,e.type=`keyframes`}var fc=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),pc=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function mc(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&pc.test(e[t]))return!0;return!1}var hc=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),gc=wi(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function _c(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(fc.has(n)||hc.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return gc()&&(fc.has(n)||hc.has(n)&&mc(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var vc=40,yc=class extends $o{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Us;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=U.now();let u=!0;uc(e,i,a,o)||(u=!1,(bi.instantAnimations||!s)&&l?.(qo(e,n,t)),e[0]=e[e.length-1],dc(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>vc?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&_c(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new sc(n)}catch{m=new ts(n)}}else m=new ts(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vs()),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()}};function bc(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.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 xc=30,Sc=e=>!isNaN(parseFloat(e)),Cc={current:void 0},wc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=U.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),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=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Sc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Oi)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Oi,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){V.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;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.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Cc.current&&Cc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xc)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,xc);return ji(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Tc(e,t){return new wc(e,t)}function Ec(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Dc(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ec(n,e)}var Oc={type:`spring`,stiffness:500,damping:25,restSpeed:10},kc=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ac={type:`keyframes`,duration:.8},jc={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Mc=(e,{keyframes:t})=>t.length>2?Ac:Ds.has(e)?e.startsWith(`scale`)?kc(t[1]):Oc:jc,Nc=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Pc(e){for(let t in e)if(!Nc.has(t))return!0;return!1}var Fc=(e,t,n,r={},i,a)=>o=>{let s=Dc(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=ki(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};Pc(s)||Object.assign(u,Mc(e,u)),u.duration&&=ki(u.duration),u.repeatDelay&&=ki(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(dc(u),u.delay===0&&(d=!0)),(bi.instantAnimations||bi.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,dc(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=qo(u.keyframes,s);if(e!==void 0){V.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ts(u):new yc(u)},Ic=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lc(e){let t=Ic.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Rc(e,t,n=1){`${e}`;let[r,i]=Lc(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return xi(e)?parseFloat(e):e}return fa(i)?Rc(i,t,n+1):i}function zc(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Bc(e,t,n,r){if(typeof t==`function`){let[i,a]=zc(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]=zc(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Vc(e,t,n){let r=e.getProps();return Bc(r,t,n===void 0?r.custom:n,e)}var Hc=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Es]),Uc=e=>Array.isArray(e);function Wc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tc(n))}function Gc(e){return Uc(e)?e[e.length-1]||0:e}function Kc(e,t){let{transitionEnd:n={},transition:r={},...i}=Vc(e,t)||{};i={...i,...n};for(let t in i)Wc(e,t,Gc(i[t]))}var J=e=>!!(e&&e.getVelocity);function qc(e){return!!(J(e)&&e.add)}function Jc(e,t){let n=e.getValue(`willChange`);if(qc(n))return n.add(t);if(!n&&bi.WillChange){let n=new bi.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Xc=`data-`+Yc(`framerAppearId`);function Zc(e){return e.props[Xc]}var Qc=typeof window<`u`;function $c({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function el(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ec(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&$c(f,t))continue;let o={delay:n,...Dc(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){V.update(()=>r.set(i));continue}let p=!1;if(Qc&&window.MotionHandoffAnimation){let n=Zc(e);if(n){let e=window.MotionHandoffAnimation(n,t,V);e!==null&&(o.startTime=e,p=!0)}}Jc(e,t);let m=l??e.shouldReduceMotion;r.start(Fc(t,r,i,m&&Hc.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>V.update(()=>{o&&Kc(e,o)});d.length?Promise.all(d).then(t):t()}return d}function tl(e,t,n={}){let r=Vc(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(el(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return nl(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 nl(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(tl(c,t,{...o,delay:n+(typeof r==`function`?0:r)+bc(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function rl(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>tl(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=tl(e,t,n);else{let i=typeof t==`function`?Vc(e,t,n.custom):t;r=Promise.all(el(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var il={test:e=>e===`auto`,parse:e=>e},al=e=>t=>t.test(e),ol=[ha,W,Aa,ka,Ma,ja,il],sl=e=>ol.find(al(e));function cl(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ci(e)}var ll=new Set([`auto`,`none`,`0`]);function ul(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ll.has(t)&&Ga(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=fs(n,i))}var dl=class extends Us{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(),fa(r))){let i=Rc(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Hc.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=sl(r),o=sl(i);if(ma(r)!==ma(i)&&Ps[n]){this.needsMeasurement=!0;return}if(a!==o){if(Os(a)&&Os(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Ps[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||cl(e[t]))&&n.push(t);n.length&&ul(e,n,t)}measure(){let{element:e,name:t}=this;return Ps[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},fl=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function pl(e){return Si(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ml(e){return Si(e)&&`ownerSVGElement`in e}var hl=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function gl(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 _l={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},vl=Es.length;function yl(e,t,n){let r=``,i=!0;for(let a=0;a<vl;a++){let o=Es[a],s=e[o];if(s===void 0)continue;let c=!0;if(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=hl(s,cs[o]);if(!c){i=!1;let t=_l[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${hl(a,cs.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function bl(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(Ds.has(e)){o=!0;continue}if(ua(e)){i[e]=n;continue}{let t=hl(n,cs[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=yl(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var xl={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Sl={offset:`strokeDashoffset`,array:`strokeDasharray`};function Cl(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?xl:Sl;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var wl=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Tl(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(bl(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;for(let e of wl)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Cl(d,i,a,o,!1)}function El({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Dl({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ol(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 kl(e){return e===void 0||e===1}function Al({scale:e,scaleX:t,scaleY:n}){return!kl(e)||!kl(t)||!kl(n)}function jl(e){return Al(e)||Ml(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ml(e){return Nl(e.x)||Nl(e.y)}function Nl(e){return e&&e!==`0%`}function Pl(e,t,n){return n+t*(e-n)}function Fl(e,t,n,r,i){return i!==void 0&&(e=Pl(e,i,r)),Pl(e,n,r)+t}function Il(e,t=0,n=1,r,i){e.min=Fl(e.min,t,n,r,i),e.max=Fl(e.max,t,n,r,i)}function Ll(e,{x:t,y:n}){Il(e.x,t.translate,t.scale,t.originPoint),Il(e.y,n.translate,n.scale,n.originPoint)}var Rl=.999999999999,zl=1.0000000000001;function Bl(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&&(Vl(e.x,-a.scroll.offset.x),Vl(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ll(e,o)),r&&jl(a.latestValues)&&Wl(e,a.latestValues,a.layout?.layoutBox))}t.x<zl&&t.x>Rl&&(t.x=1),t.y<zl&&t.y>Rl&&(t.y=1)}function Vl(e,t){e.min+=t,e.max+=t}function Hl(e,t,n,r,i=.5){Il(e,t,n,K(e.min,e.max,i),r)}function Ul(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Wl(e,t,n){let r=n??e;Hl(e.x,Ul(t.x,r.x),t.scaleX,t.scale,t.originX),Hl(e.y,Ul(t.y,r.y),t.scaleY,t.scale,t.originY)}function Gl(e,t){return El(Ol(e.getBoundingClientRect(),t))}function Kl(e,t,n){let r=Gl(e,n),{scroll:i}=t;return i&&(Vl(r.x,i.offset.x),Vl(r.y,i.offset.y)),r}var{schedule:ql,cancel:Jl}=ra(queueMicrotask,!1),Yl={x:!1,y:!1};function Xl(){return Yl.x||Yl.y}function Zl(e){return e===`x`||e===`y`?Yl[e]?null:(Yl[e]=!0,()=>{Yl[e]=!1}):Yl.x||Yl.y?null:(Yl.x=Yl.y=!0,()=>{Yl.x=Yl.y=!1})}function Ql(e,t){let n=gl(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function $l(e){return!(e.pointerType===`touch`||Xl())}function eu(e,t,n={}){let[r,i,a]=Ql(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(!$l(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 tu=(e,t)=>t?e===t||tu(e,t.parentElement):!1,nu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,ru=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function iu(e){return ru.has(e.tagName)||e.isContentEditable===!0}var au=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ou(e){return au.has(e.tagName)||e.isContentEditable===!0}var su=new WeakSet;function cu(e){return t=>{t.key===`Enter`&&e(t)}}function lu(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var uu=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=cu(()=>{if(su.has(n))return;lu(n,`down`);let e=cu(()=>{lu(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>lu(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function du(e){return nu(e)&&!Xl()}var fu=new WeakSet;function pu(e,t,n={}){let[r,i,a]=Ql(e,n),o=e=>{let r=e.currentTarget;if(!du(e)||fu.has(e))return;su.add(r),n.stopPropagation&&fu.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),su.has(r)&&su.delete(r),du(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||tu(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),pl(e)&&(e.addEventListener(`focus`,e=>uu(e,i)),!iu(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var mu=new WeakMap,hu,gu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ml(r)&&`getBBox`in r?r.getBBox()[t]:r[n],_u=gu(`inline`,`width`,`offsetWidth`),vu=gu(`block`,`height`,`offsetHeight`);function yu({target:e,borderBoxSize:t}){mu.get(e)?.forEach(n=>{n(e,{get width(){return _u(e,t)},get height(){return vu(e,t)}})})}function bu(e){e.forEach(yu)}function xu(){typeof ResizeObserver>`u`||(hu=new ResizeObserver(bu))}function Su(e,t){hu||xu();let n=gl(e);return n.forEach(e=>{let n=mu.get(e);n||(n=new Set,mu.set(e,n)),n.add(t),hu?.observe(e)}),()=>{n.forEach(e=>{let n=mu.get(e);n?.delete(t),n?.size||hu?.unobserve(e)})}}var Cu=new Set,wu;function Tu(){wu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Cu.forEach(t=>t(e))},window.addEventListener(`resize`,wu)}function Eu(e){return Cu.add(e),wu||Tu(),()=>{Cu.delete(e),!Cu.size&&typeof wu==`function`&&(window.removeEventListener(`resize`,wu),wu=void 0)}}function Du(e,t){return typeof e==`function`?Eu(e):Su(e,t)}var Ou={value:null,addProjectionMetrics:null};function ku(e){return ml(e)&&e.tagName===`svg`}var Au=()=>({translate:0,scale:1,origin:0,originPoint:0}),ju=()=>({x:Au(),y:Au()}),Mu=()=>({min:0,max:0}),Y=()=>({x:Mu(),y:Mu()}),Nu=new WeakMap;function Pu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Fu(e){return typeof e==`string`||Array.isArray(e)}var Iu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Lu=[`initial`,...Iu];function Ru(e){if(Pu(e.animate))return!0;for(let t=0;t<Lu.length;t++)if(Fu(e[Lu[t]]))return!0;return!1}function zu(e){return!!(Ru(e)||e.variants)}function Bu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(J(i))e.addValue(r,i);else if(J(a))e.addValue(r,Tc(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,Tc(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Vu={current:null},Hu={current:!1},Uu=typeof window<`u`;function Wu(){if(Hu.current=!0,Uu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Vu.current=e.matches;e.addEventListener(`change`,t),t()}else Vu.current=!1}}var Gu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ku={};function qu(e){Ku=e}function Ju(){return Ku}var Yu=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=Us,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=U.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,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=Ru(t),this.isVariantNode=zu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&J(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,Nu.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:(Hu.current||Wu(),this.shouldReduceMotion=Vu.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(),ia(this.notifyUpdate),ia(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&&fc.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new nc({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ki(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Ds.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&V.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 Ku){let t=Ku[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];t.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):Y()}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<Gu.length;t++){let n=Gu[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=Bu(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=Tc(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`&&(xi(n)||Ci(n))?n=parseFloat(n):typeof n!=`number`&&!$a.test(n)&&$a.test(t)&&(n=fs(e,t)),this.setBaseTarget(e,J(n)?n.get():n)),J(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=Bc(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&&!J(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 Oi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ql.render(this.render)}},Xu=class extends Yu{constructor(){super(...arguments),this.KeyframeResolver=dl}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;J(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Zu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Qu(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 $u(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ed={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${$u(e,t.target.x)}% ${$u(e,t.target.y)}%`}},td={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=$a.parse(e);if(i.length>5)return r;let a=$a.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=K(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},nd={borderRadius:{...ed,applyTo:[...fl]},borderTopLeftRadius:ed,borderTopRightRadius:ed,borderBottomLeftRadius:ed,borderBottomRightRadius:ed,boxShadow:td};function rd(e,{layout:t,layoutId:n}){return Ds.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!nd[e]||e===`opacity`)}function id(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(J(r[t])||i&&J(i[t])||rd(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ad(e){return window.getComputedStyle(e)}var od=class extends Xu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Qu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Ds.has(t))return this.projection?.isProjecting?Ss(t):ws(e,t);{let n=ad(e),r=(ua(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Gl(e,t)}build(e,t,n){bl(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return id(e,t,n)}},sd=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`]),cd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ld(e,t,n,r){Qu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(sd.has(n)?n:Yc(n),t.attrs[n])}function ud(e,t,n){let r=id(e,t,n);for(let n in e)if(J(e[n])||J(t[n])){let t=Es.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var dd=class extends Xu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ds.has(t)){let e=us(t);return e&&e.default||0}if(wl.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=sd.has(t)?t:Yc(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ud(e,t,n)}build(e,t,n){Tl(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ld(e,t,n,r)}mount(e){this.isSVGTag=cd(e.tagName),super.mount(e)}},fd=Lu.length;function pd(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&pd(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<fd;n++){let r=Lu[n],i=e.props[r];(Fu(i)||i===!1)&&(t[r]=i)}return t}function md(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 hd=[...Iu].reverse(),gd=Iu.length;function _d(e){return t=>Promise.all(t.map(({animation:t,options:n})=>rl(e,t,n)))}function vd(e){let t=_d(e),n=xd(),r=!0,i=!1,a=t=>(n,r)=>{let i=Vc(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=pd(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<gd;t++){let p=hd[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Fu(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||Pu(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=yd(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=Uc(t)&&Uc(n)?!md(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=Vc(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=bc(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Vc(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=xd(),i=!0}}}function yd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!md(t,e):!1}function bd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xd(){return{animate:bd(!0),whileInView:bd(),whileHover:bd(),whileTap:bd(),whileDrag:bd(),whileFocus:bd(),exit:bd()}}function Sd(e,t){e.min=t.min,e.max=t.max}function Cd(e,t){Sd(e.x,t.x),Sd(e.y,t.y)}function wd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Td=.9999,Ed=1.0001,Dd=-.01,Od=.01;function X(e){return e.max-e.min}function kd(e,t,n){return Math.abs(e-t)<=n}function Ad(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Td&&e.scale<=Ed||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dd&&e.translate<=Od||isNaN(e.translate))&&(e.translate=0)}function jd(e,t,n,r){Ad(e.x,t.x,n.x,r?r.originX:void 0),Ad(e.y,t.y,n.y,r?r.originY:void 0)}function Md(e,t,n,r=0){e.min=(r?K(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function Nd(e,t,n,r){Md(e.x,t.x,n.x,r?.x),Md(e.y,t.y,n.y,r?.y)}function Pd(e,t,n,r=0){let i=r?K(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function Fd(e,t,n,r){Pd(e.x,t.x,n.x,r?.x),Pd(e.y,t.y,n.y,r?.y)}function Id(e,t,n,r,i){return e-=t,e=Pl(e,1/n,r),i!==void 0&&(e=Pl(e,1/i,r)),e}function Ld(e,t=0,n=1,r=.5,i,a=e,o=e){if(Aa.test(t)&&(t=parseFloat(t),t=K(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=K(a.min,a.max,r);e===a&&(s-=t),e.min=Id(e.min,t,n,s,i),e.max=Id(e.max,t,n,s,i)}function Rd(e,t,[n,r,i],a,o){Ld(e,t[n],t[r],t[i],t.scale,a,o)}var zd=[`x`,`scaleX`,`originX`],Bd=[`y`,`scaleY`,`originY`];function Vd(e,t,n,r){Rd(e.x,t,zd,n?n.x:void 0,r?r.x:void 0),Rd(e.y,t,Bd,n?n.y:void 0,r?r.y:void 0)}function Hd(e){return e.translate===0&&e.scale===1}function Ud(e){return Hd(e.x)&&Hd(e.y)}function Wd(e,t){return e.min===t.min&&e.max===t.max}function Gd(e,t){return Wd(e.x,t.x)&&Wd(e.y,t.y)}function Kd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qd(e,t){return Kd(e.x,t.x)&&Kd(e.y,t.y)}function Jd(e){return X(e.x)/X(e.y)}function Yd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Xd(e){return[e(`x`),e(`y`)]}function Zd(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 Qd=fl.length,$d=e=>typeof e==`string`?parseFloat(e):e,ef=e=>typeof e==`number`||W.test(e);function tf(e,t,n,r,i,a){i?(e.opacity=K(0,n.opacity??1,rf(r)),e.opacityExit=K(t.opacity??1,0,af(r))):a&&(e.opacity=K(t.opacity??1,n.opacity??1,r));for(let i=0;i<Qd;i++){let a=fl[i],o=nf(t,a),s=nf(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||ef(o)===ef(s)?(e[a]=Math.max(K($d(o),$d(s),r),0),(Aa.test(s)||Aa.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function nf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var rf=of(0,.5,Wi),af=of(.5,.95,Ti);function of(e,t,n){return r=>r<e?0:r>t?1:n(Di(e,t,r))}function sf(e,t,n){let r=J(e)?e:Tc(e);return r.start(Fc(``,r,t,n)),r.animation}function cf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var lf=(e,t)=>e.depth-t.depth,uf=class{constructor(){this.children=[],this.isDirty=!1}add(e){_i(this.children,e),this.isDirty=!0}remove(e){vi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lf),this.isDirty=!1,this.children.forEach(e)}};function df(e,t){let n=U.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(ia(r),e(a-t))};return V.setup(r,!0),()=>ia(r)}function ff(e){return J(e)?e.get():e}var pf=class{constructor(){this.members=[]}add(e){_i(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&&(vi(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(vi(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)}},mf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},gf=[``,`X`,`Y`,`Z`],_f=1e3,vf=0;function yf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Zc(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,V,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bf(r)}function xf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=vf++,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,Ou.value&&(hf.nodes=hf.calculatedTargetDeltas=hf.calculatedProjections=0),this.nodes.forEach(wf),this.nodes.forEach(Nf),this.nodes.forEach(Pf),this.nodes.forEach(Tf),Ou.addProjectionMetrics&&Ou.addProjectionMetrics(hf)},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 uf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Oi),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=ml(t)&&!ku(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;V.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=df(i,250),mf.hasAnimatedSinceResize&&(mf.hasAnimatedSinceResize=!1,this.nodes.forEach(Mf)))})}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()||Vf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!qd(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={...Dc(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||Mf(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(),ia(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(Ff),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&&bf(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(Of),this.nodes.forEach(Df);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Af),this.nodes.forEach(jf),this.nodes.forEach(Sf),this.nodes.forEach(Cf)):this.nodes.forEach(kf),this.clearAllSnapshots();let e=U.now();H.delta=yi(0,1e3/60,e-H.timestamp),H.timestamp=e,H.isProcessing=!0,aa.update.process(H),aa.preRender.process(H),aa.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ql.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ef),this.sharedNodes.forEach(If)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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||=Y(),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&&!Ud(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||jl(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)),Gf(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qf))){let{scroll:e}=this.root;e&&(Vl(t.x,e.offset.x),Vl(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(Cd(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&&Cd(t,e),Vl(t.x,i.offset.x),Vl(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();Cd(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&&(Vl(r.x,-n.scroll.offset.x),Vl(r.y,-n.scroll.offset.y)),jl(n.latestValues)&&Wl(r,n.latestValues,n.layout?.layoutBox)}return jl(this.latestValues)&&Wl(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();Cd(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!jl(n.latestValues))continue;let r;n.instance&&(Al(n.latestValues)&&n.updateSnapshot(),r=Y(),Cd(r,n.measurePageBox())),Vd(t,n.latestValues,n.snapshot?.layoutBox,r)}return jl(this.latestValues)&&Vd(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!==H.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;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=H.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=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Nd(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Cd(this.target,this.layout.layoutBox),Ll(this.target,this.targetDelta)):Cd(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),Ou.value&&hf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Al(this.parent.latestValues)||Ml(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=Y(),this.relativeTargetOrigin=Y(),Fd(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Cd(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===H.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;Cd(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Bl(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=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wd(this.prevProjectionDelta.x,this.projectionDelta.x),wd(this.prevProjectionDelta.y,this.projectionDelta.y)),jd(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Yd(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ou.value&&hf.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=ju(),this.projectionDelta=ju(),this.projectionDeltaWithTransform=ju()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=ju();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y(),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(Bf));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=K(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=K(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Lf(o.x,e.x,n),Lf(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zf(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Gd(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y(),Cd(f,this.relativeTarget)),c&&(this.animationValues=a,tf(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&&=(ia(this.pendingAnimation),void 0),this.pendingAnimation=V.update(()=>{mf.hasAnimatedSinceResize=!0,this.motionValue||=Tc(0),this.motionValue.jump(0,!1),this.currentAnimation=sf(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()}}),Qo(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_f),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Kf(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Y();let t=X(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=X(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Cd(t,i),Wl(t,r),jd(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new pf),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&&yf(`z`,e,r,this.animationValues);for(let t=0;t<gf.length;t++)yf(`rotate${gf[t]}`,e,r,this.animationValues),yf(`skew${gf[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=ff(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=ff(t?.pointerEvents)||``),this.hasProjected&&!jl(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Zd(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 nd){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=nd[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?ff(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Df),this.root.sharedNodes.clear()}}}function Sf(e){e.updateLayout()}function Cf(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`)Xd(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Sd(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Kf(i,t.layoutBox,n)&&Xd(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(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=ju();jd(o,n,t.layoutBox);let s=ju();a?jd(s,e.applyTransform(r,!0),t.measuredBox):jd(s,n,t.layoutBox);let c=!Ud(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=Y();Fd(s,t.layoutBox,i.layoutBox,o);let c=Y();Fd(c,n,a.layoutBox,o),qd(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 wf(e){Ou.value&&hf.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 Tf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ef(e){e.clearSnapshot()}function Df(e){e.clearMeasurements()}function Of(e){e.isLayoutDirty=!0,e.updateLayout()}function kf(e){e.isLayoutDirty=!1}function Af(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function jf(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Mf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nf(e){e.resolveTargetDelta()}function Pf(e){e.calcProjection()}function Ff(e){e.resetSkewAndRotation()}function If(e){e.removeLeadSnapshot()}function Lf(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rf(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function zf(e,t,n,r){Rf(e.x,t.x,n.x,r),Rf(e.y,t.y,n.y,r)}function Bf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Vf={duration:.45,ease:[.4,0,.1,1]},Hf=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uf=Hf(`applewebkit/`)&&!Hf(`chrome/`)?Math.round:Ti;function Wf(e){e.min=Uf(e.min),e.max=Uf(e.max)}function Gf(e){Wf(e.x),Wf(e.y)}function Kf(e,t,n){return e===`position`||e===`preserve-aspect`&&!kd(Jd(t),Jd(n),.2)}function qf(e){return e!==e.root&&e.scroll?.wasRoot}var Jf=xf({attachResizeListener:(e,t)=>cf(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Yf={current:void 0},Xf=xf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yf.current){let e=new Jf({});e.mount(window),e.setOptions({layoutScroll:!0}),Yf.current=e}return Yf.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Zf=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Qf(e=!0){let t=(0,v.useContext)(gi);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,v.useId)();(0,v.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,v.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var $f=(0,v.createContext)({strict:!1}),ep={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`]},tp=!1;function np(){if(tp)return;let e={};for(let t in ep)e[t]={isEnabled:e=>ep[t].some(t=>!!e[t])};qu(e),tp=!0}function rp(){return np(),Ju()}function ip(e){let t=rp();for(let n in e)t[n]={...t[n],...e[n]};qu(t)}var ap=(0,v.createContext)({});function op(e,t){if(Ru(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Fu(t)?t:void 0,animate:Fu(n)?n:void 0}}return e.inherit===!1?{}:t}function sp(e){let{initial:t,animate:n}=op(e,(0,v.useContext)(ap));return(0,v.useMemo)(()=>({initial:t,animate:n}),[cp(t),cp(n)])}function cp(e){return Array.isArray(e)?e.join(` `):e}var lp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function up(e,t,n){for(let r in t)!J(t[r])&&!rd(r,n)&&(e[r]=t[r])}function dp({transformTemplate:e},t){return(0,v.useMemo)(()=>{let n=lp();return bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fp(e,t){let n=e.style||{},r={};return up(r,n,e),Object.assign(r,dp(e,t)),r}function pp(e,t){let n={},r=fp(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 mp=()=>({...lp(),attrs:{}});function hp(e,t,n,r){let i=(0,v.useMemo)(()=>{let n=mp();return Tl(n,t,cd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};up(t,e.style,e),i.style={...t,...i.style}}return i}var gp=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function _p(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||gp.has(e)}function vp(e,t){return e.startsWith(`on`)?!_p(e):t?.(e)??!_p(e)}function yp(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(J(e[a])||(vp(a,r)||n===!0&&_p(a)||!t&&!_p(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var bp=[`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 xp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??xp(e)?hp:pp)(t,r,i,e),l=yp(t,typeof e==`string`,a,s),u=e===v.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,v.useMemo)(()=>J(d)?d.get():d,[d]);return(0,v.createElement)(e,{...u,children:f})}function Cp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:wp(n,r,i,e),renderState:t()}}function wp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ff(a[e]);let{initial:o,animate:s}=e,c=Ru(e),l=zu(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`&&!Pu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Bc(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 Tp=e=>(t,n)=>{let r=(0,v.useContext)(ap),i=(0,v.useContext)(gi),a=()=>Cp(e,t,r,i);return n?a():mi(a)},Ep=Tp({scrapeMotionValuesFromProps:id,createRenderState:lp}),Dp=Tp({scrapeMotionValuesFromProps:ud,createRenderState:mp}),Op=Symbol.for(`motionComponentSymbol`);function kp(e,t,n){let r=(0,v.useRef)(n);(0,v.useInsertionEffect)(()=>{r.current=n});let i=(0,v.useRef)(null);return(0,v.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 Ap=(0,v.createContext)({});function jp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Mp(e,t,n,r,i,a){let{visualElement:o}=(0,v.useContext)(ap),s=(0,v.useContext)($f),c=(0,v.useContext)(gi),l=(0,v.useContext)(Zf),u=l.reducedMotion,d=l.skipAnimations,f=(0,v.useRef)(null),p=(0,v.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,v.useContext)(Ap);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Np(f.current,n,i,h);let g=(0,v.useRef)(!1);(0,v.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Xc],y=(0,v.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return hi(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,v.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Np(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:Pp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&jp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Pp(e){if(e)return e.options.allowProjection===!1?Pp(e.parent):e.projection}function Fp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ip(r);let a=n?n===`svg`:xp(e),o=a?Dp:Ep;function s(n,s){let c,l={...(0,v.useContext)(Zf),...n,layoutId:Ip(n)},{isStatic:u,isValidProp:d}=l,f=sp(n),p=o(n,u);if(!u&&typeof window<`u`){Lp(l,r);let t=Rp(l);c=t.MeasureLayout,f.visualElement=Mp(e,p,l,i,t.ProjectionNode,a)}return(0,P.jsxs)(ap.Provider,{value:f,children:[c&&f.visualElement?(0,P.jsx)(c,{visualElement:f.visualElement,...l}):null,Sp(e,n,kp(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,v.forwardRef)(s);return c[Op]=e,c}function Ip({layoutId:e}){let t=(0,v.useContext)(pi).id;return t&&e!==void 0?t+`-`+e:e}function Lp(e,t){(0,v.useContext)($f).strict}function Rp(e){let{drag:t,layout:n}=rp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function zp(e,t){if(typeof Proxy>`u`)return Fp;let n=new Map,r=(n,r)=>Fp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Fp(a,void 0,e,t)),n.get(a))})}var Bp=(e,t)=>t.isSVG??xp(e)?new dd(t):new od(t,{allowProjection:e!==v.Fragment}),Vp=class extends Zu{constructor(e){super(e),e.animationState||=vd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Pu(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?.()}},Hp=0,Up={animation:{Feature:Vp},exit:{Feature:class extends Zu{constructor(){super(...arguments),this.id=Hp++,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=Vc(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 Wp(e){return{point:{x:e.pageX,y:e.pageY}}}var Gp=e=>t=>nu(t)&&e(t,Wp(t));function Kp(e,t,n,r){return cf(e,t,Gp(n),r)}var qp=({current:e})=>e?e.ownerDocument.defaultView:null,Jp=(e,t)=>Math.abs(e-t);function Yp(e,t){let n=Jp(e.x,t.x),r=Jp(e.y,t.y);return Math.sqrt(n**2+r**2)}var Xp=new Set([`auto`,`scroll`]),Zp=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=Qp(this.lastRawMoveEventInfo,this.transformPagePoint));let e=em(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Yp(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=H;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=Qp(t,this.transformPagePoint),V.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=em(e.type===`pointercancel`?this.lastMoveEventInfo:Qp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!nu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Qp(Wp(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=H;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,em(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ei(Kp(this.contextWindow,`pointermove`,this.handlePointerMove,d),Kp(this.contextWindow,`pointerup`,this.handlePointerUp,d),Kp(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Xp.has(e.overflowX)||Xp.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),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ia(this.updatePoint)}};function Qp(e,t){return t?{point:t(e.point)}:e}function $p(e,t){return{x:e.x-t.x,y:e.y-t.y}}function em({point:e},t){return{point:e,delta:$p(e,nm(t)),offset:$p(e,tm(t)),velocity:rm(t,.1)}}function tm(e){return e[0]}function nm(e){return e[e.length-1]}function rm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ki(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>ki(t)*2&&(r=e[1]);let a=Ai(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 im(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function am(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 om(e,{top:t,left:n,bottom:r,right:i}){return{x:am(e.x,n,i),y:am(e.y,t,r)}}function sm(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 cm(e,t){return{x:sm(e.x,t.x),y:sm(e.y,t.y)}}function lm(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=Di(t.min,t.max-r,e.min):r>i&&(n=Di(e.min,e.max-i,t.min)),yi(0,1,n)}function um(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 dm=.35;function fm(e=dm){return e===!1?e=0:e===!0&&(e=dm),{x:pm(e,`left`,`right`),y:pm(e,`top`,`bottom`)}}function pm(e,t,n){return{min:mm(e,t),max:mm(e,n)}}function mm(e,t){return typeof e==`number`?e:e[t]||0}var hm=new WeakMap,gm=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=Y(),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(Wp(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=Zl(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),Xd(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Aa.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.update(()=>i(e,t),!1,!0),Jc(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=bm(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&&V.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 Zp(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:qp(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&&V.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||!ym(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=im(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&&jp(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?om(n.layoutBox,e):!1,this.elastic=fm(t),r!==this.constraints&&!jp(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Xd(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=um(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!jp(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=Kl(n,r.root,this.visualElement.getTransformPagePoint()),a=cm(r.layout.layoutBox,i);if(t){let e=t(Dl(a));this.hasMutatedConstraints=!!e,e&&(a=El(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Xd(o=>{if(!ym(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 Jc(this.visualElement,e),n.start(Fc(e,n,0,t,this.visualElement,!1))}stopAnimation(){Xd(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){Xd(t=>{let{drag:n}=this.getProps();if(!ym(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]-K(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!jp(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Xd(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=lm({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(),Xd(t=>{if(!ym(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(K(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hm.set(this.visualElement,this);let e=this.visualElement.current,t=Kp(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ou(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();jp(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=vm(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(r);let o=cf(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Xd(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=dm,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function _m(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vm(e,t,n){let r=Du(e,_m(n)),i=Du(t,_m(n));return()=>{r(),i()}}function ym(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bm(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var xm=class extends Zu{constructor(e){super(e),this.removeGroupControls=Ti,this.removeListeners=Ti,this.controls=new gm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ti}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()}},Sm=e=>(t,n)=>{e&&V.update(()=>e(t,n),!1,!0)},Cm=class extends Zu{constructor(){super(...arguments),this.removePointerDownListener=Ti}onPointerDown(e){this.session=new Zp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Sm(e),onStart:Sm(t),onMove:Sm(n),onEnd:(e,t)=>{delete this.session,r&&V.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Kp(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},wm=!1,Tm=class extends v.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),wm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),mf.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}),wm=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||V.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(),ql.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;wm=!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 Em(e){let[t,n]=Qf(),r=(0,v.useContext)(pi);return(0,P.jsx)(Tm,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(Ap),isPresent:t,safeToRemove:n})}var Dm={pan:{Feature:Cm},drag:{Feature:xm,ProjectionNode:Xf,MeasureLayout:Em}};function Om(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&V.postRender(()=>i(t,Wp(t)))}var km=class extends Zu{mount(){let{current:e}=this.node;e&&(this.unmount=eu(e,(e,t)=>(Om(this.node,t,`Start`),e=>Om(this.node,e,`End`))))}unmount(){}},Am=class extends Zu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Ei(cf(this.node.current,`focus`,()=>this.onFocus()),cf(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function jm(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&&V.postRender(()=>i(t,Wp(t)))}var Mm=class extends Zu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=pu(e,(e,t)=>(jm(this.node,t,`Start`),(e,{success:t})=>jm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Nm=new WeakMap,Pm=new WeakMap,Fm=e=>{let t=Nm.get(e.target);t&&t(e)},Im=e=>{e.forEach(Fm)};function Lm({root:e,...t}){let n=e||document;Pm.has(n)||Pm.set(n,{});let r=Pm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Im,{root:e,...t})),r[i]}function Rm(e,t,n){let r=Lm(t);return Nm.set(e,n),r.observe(e),()=>{Nm.delete(e),r.unobserve(e)}}var zm={some:0,all:1},Bm=class extends Zu{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:zm[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=Rm(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(Vm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Vm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Hm={inView:{Feature:Bm},tap:{Feature:Mm},focus:{Feature:Am},hover:{Feature:km}},Um={layout:{ProjectionNode:Xf,MeasureLayout:Em}},Wm=zp({...Up,...Hm,...Dm,...Um},Bp),Gm=({className:e,strokeWidth:t=4})=>(0,P.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`44`,height:`44`,viewBox:`0 0 44 44`,stroke:`currentColor`,role:`img`,"aria-label":`Spinner`,className:i(`size-full`,e),children:(0,P.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,strokeWidth:t,children:[(0,P.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,P.jsx)(`animate`,{attributeName:`r`,begin:`0s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,P.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`0s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]}),(0,P.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,P.jsx)(`animate`,{attributeName:`r`,begin:`-0.9s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,P.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`-0.9s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]})]})}),Km=({children:e,isLoading:t=!0,keepChildren:n=!1,className:r,...a})=>(0,P.jsx)(P.Fragment,{children:t&&n?(0,P.jsxs)(`div`,{className:`relative size-full`,children:[(0,P.jsx)(`div`,{className:i(`absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...a,children:(0,P.jsx)(Gm,{className:`size-10 max-h-full max-w-full`})}),e]}):t?(0,P.jsx)(`div`,{className:i(`flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...a,children:(0,P.jsx)(Gm,{className:`size-10 max-h-full max-w-full`})}):e??(0,P.jsx)(P.Fragment,{})}),qm=Pr(`flex-none shrink-0`,{variants:{size:{xs:`size-2`,sm:`size-3`,md:`size-4`,lg:`size-5`,xl:`size-6`,"icon-sm":`size-3`,"icon-md":`size-4`,"icon-lg":`size-5`,"icon-xl":`size-6`,custom:``}},defaultVariants:{size:`md`}}),Jm=Pr(`relative inline-flex cursor-pointer items-center justify-center font-medium ring-0 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{size:{xs:`min-h-7 px-3 text-xs max-md:py-1`,sm:`min-h-7 px-3 text-xs max-md:py-1`,md:`min-h-8 px-6 text-sm max-md:py-2`,lg:`min-h-10 px-8 text-lg max-md:py-3`,xl:`min-h-11 px-10 text-xl max-md:py-4`,"icon-sm":`p-1.5`,"icon-md":`p-1.5`,"icon-lg":`p-1.5`,"icon-xl":`p-3`,custom:``},color:{neutral:`text-neutral ring-neutral-500/5 *:text-text-light`,card:`hover-card-500/20 text-card ring-card-500/20 *:text-text-light`,text:`text-text ring-text/20 *:text-text-opposite`,foreground:`text-foreground ring-foreground/20 *:text-foreground-opposite`,"text-inverse":`text-text-opposite ring-text-opposite/20 *:text-text`,error:`hover-error-500/20 text-error ring-error/20 *:text-text-light`,success:`hover-success-500/20 text-success ring-success/20 *:text-text-light`,custom:``},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,"4xl":`rounded-[3rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[4rem]`,"5xl":`rounded-[4rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[5rem]`,full:`rounded-full`},variant:{default:[`bg-current`,`hover:bg-current/90`,`hover:ring-5`,`aria-selected:ring-5`],outline:[`rounded-2xl border-[1.3px] border-current! bg-current/0 *:text-current!`,`hover:border-transparent hover:bg-current/30! focus-visible:bg-current/20`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],none:`border-none bg-current/0 text-inherit hover:bg-current/0`,link:`h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent hover:underline`,"invisible-link":`h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent`,hoverable:`rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/10 aria-[current]:bg-current/5`,fade:[`rounded-lg border-none bg-current/10 ring-current/5 transition *:text-current! hover:bg-current/20 aria-[current]:bg-current/5`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],input:[`text-text`,`w-full select-text resize-none rounded-2xl text-base shadow-none outline-none supports-[corner-shape:squircle]:rounded-4xl`,`transition-shadow duration-100 md:text-sm`,`ring-0`,`disabled:opacity-50`,`text-text`,`bg-neutral-50 dark:bg-neutral-950`,`ring-neutral-100 dark:ring-neutral-700`,`hover:ring-3`,`aria-selected:ring-4`,`focus-visible:ring-3`,`disabled:ring-0`,`focus-visible:outline-none`,`[box-shadow:none] focus:[box-shadow:none]`,`aria-invalid:border-error`]},textAlign:{left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},isFullWidth:{true:`w-full`,false:``}},defaultVariants:{variant:`default`,size:`md`,color:`text`,roundedSize:`md`,textAlign:`center`,isFullWidth:!1}}),Ym=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:o,iconClassName:s,isLoading:c=!1,isActive:l,isSelected:u,isFullWidth:d,roundedSize:f,textAlign:p,disabled:m,label:h,className:g,type:_=`button`,"aria-describedby":v,"aria-expanded":y,"aria-haspopup":b,"aria-pressed":x,...S})=>{let C=e===`link`||e===`invisible-link`,w=!r&&(a||o),T={"aria-label":w?h??void 0:void 0,"aria-labelledby":void 0,"aria-describedby":v,"aria-expanded":y,"aria-haspopup":b,"aria-pressed":l===void 0?x:l,"aria-busy":c,"aria-current":l?`page`:void 0,"aria-disabled":m||c,"aria-selected":u},E=t===`icon-sm`||t===`icon-md`||t===`icon-lg`||t===`icon-xl`;return(0,P.jsxs)(`button`,{disabled:c||m,role:C?`link`:`button`,type:_,className:Jm({variant:e,size:t,color:n,isFullWidth:d,roundedSize:f,textAlign:p??(o?`left`:`center`),className:g}),...T,...S,children:[a&&!c&&(0,P.jsx)(a,{className:qm({size:t,className:i(!E&&`mr-3`,s)}),"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:i(`flex items-center justify-center transition-[width] duration-300`,c&&t===`sm`&&`w-3`,c&&t===`md`&&`w-4`,c&&t===`lg`&&`w-6`,c&&t===`xl`&&`w-8`),children:(0,P.jsx)(Km,{className:qm({size:t,className:i(!E&&`mr-3`,s)}),isLoading:c,"aria-hidden":`true`,"data-testid":`loader`})}),r&&(0,P.jsx)(`span`,{className:`flex-1 truncate whitespace-nowrap`,children:r}),!r&&w&&(0,P.jsx)(`span`,{className:`sr-only`,children:h}),o&&(0,P.jsx)(o,{className:qm({size:t,className:i(!E&&`ml-3`,s)}),"aria-hidden":`true`})]})},Xm=({children:e,isHidden:t,className:n=``,isOverable:r=!1,isFocusable:a=!1,minHeight:o=0,...s})=>(0,P.jsx)(`div`,{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?`button`:`none`,className:i(`group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-[grid-template-rows] duration-700 ease-in-out`,t!==void 0&&!t&&`grid-rows-[1fr] overflow-x-auto`,r&&`hover:grid-rows-[1fr] hover:overflow-x-auto`,a&&`focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto`,n),...s,children:(0,P.jsx)(`div`,{style:{minHeight:`${o}px`},className:i(r&&`group-hover/height-smoother:visible`,a&&`group-focus/height-smoother:visible`,n),children:e})}),Zm=new Set,Qm=null,$m=()=>{Qm=null;let e=[...Zm];Zm.clear();for(let t of e)t()},eh=e=>typeof requestAnimationFrame>`u`?()=>{}:(Zm.add(e),Qm??=requestAnimationFrame($m),()=>{Zm.delete(e),Zm.size===0&&Qm!==null&&(cancelAnimationFrame(Qm),Qm=null)}),th=e=>e?.getAttribute(`aria-selected`)===`true`,nh=[`aria-selected`,`data-active`,`data-indicator`],rh=150,ih=(e,{selector:t=th,isHoverable:n=!1,orientation:r=`horizontal`}={selector:th,isHoverable:!1,orientation:`horizontal`})=>{let[i,a]=(0,v.useState)(null),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(t);u.current=t;let d=(0,v.useRef)(r);d.current=r;let f=e.current.length,p=(0,v.useCallback)(()=>{let t=o.current??e.current.find(u.current)??null;o.current&&s.current&&(clearTimeout(s.current),s.current=null);let n=d.current===`vertical`;if(!t){if(c.current?.opacity===0)return;let e=n?{top:c.current?.top??0,height:c.current?.height??0,opacity:0}:{left:c.current?.left??0,width:c.current?.width??0,opacity:0};a(e),c.current=e;return}if(n){let e=t.offsetTop,n=t.offsetHeight,r=c.current;if(r?.top===e&&r.height===n&&r.opacity===1)return;let i={top:e,height:n,opacity:1};a(i),c.current=i;return}let r=t.offsetLeft,i=t.offsetWidth,l=c.current;if(l?.left===r&&l.width===i&&l.opacity===1)return;let f={left:r,width:i,opacity:1};a(f),c.current=f},[e]),m=(0,v.useCallback)(()=>{l.current===null&&(l.current=eh(()=>{l.current=null,p()}))},[p]);return(0,v.useEffect)(()=>{m(),window.addEventListener(`resize`,m,{passive:!0}),window.addEventListener(`DOMContentLoaded`,m);let t=e.current.filter(Boolean),r=new MutationObserver(m),i=new ResizeObserver(m),a=e=>{s.current&&=(clearTimeout(s.current),null),o.current=e.currentTarget,m()},c=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=null,m()},rh)};for(let e of t)r.observe(e,{attributes:!0,attributeFilter:nh}),i.observe(e),n&&(e.addEventListener(`mouseenter`,a,{passive:!0}),e.addEventListener(`mouseleave`,c,{passive:!0}));return()=>{if(l.current?.(),l.current=null,s.current&&=(clearTimeout(s.current),null),window.removeEventListener(`resize`,m),window.removeEventListener(`DOMContentLoaded`,m),r.disconnect(),i.disconnect(),n)for(let e of t)e.removeEventListener(`mouseenter`,a),e.removeEventListener(`mouseleave`,c)}},[e,f,n,r,m]),{choiceIndicatorPosition:i,calculatePosition:p,scheduleMeasurement:m,orientation:r}},ah=Pr(`flex flex-col text-foreground backdrop-blur`,{variants:{roundedSize:{none:`rounded-none`,sm:`rounded-sm [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-md`,md:`rounded-md [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-lg`,lg:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,xl:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,"2xl":`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,"3xl":`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"4xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,full:`rounded-full`},transparency:{none:`bg-card`,xs:`bg-card/95`,sm:`bg-card/90`,md:`bg-card/70`,lg:`bg-card/40`,xl:`bg-card/20`,full:``},padding:{none:`p-0`,sm:`px-3 py-2`,md:`px-4 py-3`,lg:`px-6 py-4`,xl:`px-8 py-6`,"2xl":`px-10 py-8`},separator:{without:``,x:`divide-x divide-dashed divide-text/20`,y:`divide-y divide-dashed divide-text/20`,both:`divide-x divide-y divide-dashed divide-text/20`},border:{none:``,with:`border-[1.3px]`},borderColor:{neutral:``,card:`border-card`,text:`border-text`,error:`border-error`,warning:`border-warning`,success:`border-success`},background:{none:`backdrop-blur-none`,hoverable:`bg-opacity-5! backdrop-blur-0 hover:bg-opacity-10! hover:backdrop-blur focus:bg-opacity-10! focus:backdrop-blur aria-selected:bg-opacity-15! aria-selected:backdrop-blur`,with:``},gap:{none:`gap-0`,sm:`gap-1`,md:`gap-3`,lg:`gap-5`,xl:`gap-8`,"2xl":`gap-10`}},defaultVariants:{roundedSize:`lg`,border:`none`,borderColor:`text`,transparency:`md`,padding:`none`,separator:`without`,gap:`none`},compoundVariants:[{background:`none`,class:`bg-transparent`}]}),oh=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:s,borderColor:c,background:l,gap:u,...d})=>(0,P.jsx)(`div`,{className:i(ah({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof s==`boolean`?s?`with`:`none`:void 0,background:l,borderColor:c,gap:u}),o),...d,children:e}),sh=(e,t)=>{let[n,r]=(0,v.useState)(()=>typeof t==`function`?t():t);(0,v.useEffect)(()=>{let t=localStorage?.getItem(e);if(t&&t!==`undefined`)try{r(JSON.parse(t))}catch(e){console.error(e)}},[e]);let i=(0,v.useCallback)(t=>{r(n=>{let r=typeof t==`function`?t(n):t;return r===void 0?n:(localStorage?.setItem(e,JSON.stringify(r)),r)})},[e,r]),a=(0,v.useCallback)(()=>{let t=localStorage?.getItem(e);t&&r(JSON.parse(t))},[e,r]),o=(0,v.useCallback)(()=>{localStorage?.removeItem(e),r(void 0)},[e]);return(0,v.useMemo)(()=>[n,i,a,o],[n,i,a,o])},ch=Object.defineProperty,lh=(e,t)=>ch(e,`name`,{value:t,configurable:!0});function uh(e,[t,n]){return Math.min(n,Math.max(t,e))}lh(uh,`clamp`);var dh=Object.defineProperty,fh=(e,t)=>dh(e,`name`,{value:t,configurable:!0}),ph=v.createContext(void 0);function mh(e){let t=v.useContext(ph);return e||t||`ltr`}fh(mh,`useDirection`);var hh=Object.defineProperty,gh=(e,t)=>hh(e,`name`,{value:t,configurable:!0}),_h=0,vh=null;function yh(e){return bh(),e.children}gh(yh,`FocusGuards`);function bh(){v.useEffect(()=>{vh||={start:xh(),end:xh()};let{start:e,end:t}=vh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),_h++,()=>{_h===1&&(vh?.start.remove(),vh?.end.remove(),vh=null),_h=Math.max(0,_h-1)}},[])}gh(bh,`useFocusGuards`);function xh(){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}gh(xh,`createFocusGuard`);var Sh=Object.defineProperty,Z=(e,t)=>Sh(e,`name`,{value:t,configurable:!0}),Ch=`focusScope.autoFocusOnMount`,wh=`focusScope.autoFocusOnUnmount`,Th={bubbles:!1,cancelable:!0},Eh=v.forwardRef(Z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=v.useState(null),l=zn(i),u=zn(a),d=v.useRef(null),f=I(t,c),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Nh(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Nh(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Nh(s)};Z(e,`handleFocusIn`),Z(t,`handleFocusOut`),Z(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,p.paused]),v.useEffect(()=>{if(s){Ph.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Ch,Th);s.addEventListener(Ch,l),s.dispatchEvent(t),t.defaultPrevented||(Dh(Lh(kh(s)),{select:!0}),document.activeElement===e&&Nh(s))}return()=>{s.removeEventListener(Ch,l),setTimeout(()=>{let t=new CustomEvent(wh,Th);s.addEventListener(wh,u),s.dispatchEvent(t),t.defaultPrevented||Nh(e??document.body,{select:!0}),s.removeEventListener(wh,u),Ph.remove(p)},0)}}},[s,l,u,p]);let m=v.useCallback(e=>{if(!n&&!r||p.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]=Oh(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Nh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Nh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,P.jsx)(R.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Dh(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Nh(r,{select:t}),document.activeElement!==n)return}Z(Dh,`focusFirst`);function Oh(e){let t=kh(e);return[Ah(t,e),Ah(t.reverse(),e)]}Z(Oh,`getTabbableEdges`);function kh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(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}Z(kh,`getTabbableCandidates`);function Ah(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):jh(r,{upTo:t})))return r}Z(Ah,`findVisible`);function jh(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}Z(jh,`isHidden`);function Mh(e){return e instanceof HTMLInputElement&&`select`in e}Z(Mh,`isSelectableInput`);function Nh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mh(e)&&t&&e.select()}}Z(Nh,`focus`);var Ph=Fh();function Fh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ih(e,t),e.unshift(t)},remove(t){e=Ih(e,t),e[0]?.resume()}}}Z(Fh,`createFocusScopesStack`);function Ih(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Z(Ih,`arrayRemove`);function Lh(e){return e.filter(e=>e.tagName!==`A`)}Z(Lh,`removeLinks`);var Rh=Object.defineProperty,zh=(e,t)=>Rh(e,`name`,{value:t,configurable:!0}),Bh=v.useId||(()=>void 0),Vh=0;function Hh(e){let[t,n]=v.useState(Bh());return B(()=>{e||n(e=>e??String(Vh++))},[e]),e||(t?`radix-${t}`:``)}zh(Hh,`useId`);var Uh=[`top`,`right`,`bottom`,`left`],Wh=[`start`,`end`],Gh=Uh.reduce((e,t)=>e.concat(t,t+`-`+Wh[0],t+`-`+Wh[1]),[]),Kh=Math.min,qh=Math.max,Jh=Math.round,Yh=Math.floor,Xh=e=>({x:e,y:e}),Zh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qh(e,t,n){return qh(e,Kh(t,n))}function $h(e,t){return typeof e==`function`?e(t):e}function eg(e){return e.split(`-`)[0]}function tg(e){return e.split(`-`)[1]}function ng(e){return e===`x`?`y`:`x`}function rg(e){return e===`y`?`height`:`width`}function ig(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ag(e){return ng(ig(e))}function og(e,t,n){n===void 0&&(n=!1);let r=tg(e),i=ag(e),a=rg(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=hg(o)),[o,hg(o)]}function sg(e){let t=hg(e);return[cg(e),t,cg(t)]}function cg(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var lg=[`left`,`right`],ug=[`right`,`left`],dg=[`top`,`bottom`],fg=[`bottom`,`top`];function pg(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ug:lg:t?lg:ug;case`left`:case`right`:return t?dg:fg;default:return[]}}function mg(e,t,n,r){let i=tg(e),a=pg(eg(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(cg)))),a}function hg(e){let t=eg(e);return Zh[t]+e.slice(t.length)}function gg(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function _g(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:gg(e)}function vg(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 yg(e,t,n){let{reference:r,floating:i}=e,a=ig(t),o=ag(t),s=rg(o),c=eg(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=tg(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function bg(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}=$h(t,e),p=_g(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=vg(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=vg(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 xg=50,Sg=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:bg},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yg(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<xg&&(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}=yg(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Cg=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}=$h(e,t)||{};if(l==null)return{};let d=_g(u),f={x:n,y:r},p=ag(i),m=rg(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=Kh(d[_],T),D=Kh(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Qh(E,k,O),ee=!c.arrow&&tg(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,j=ee?k<E?k-E:k-O:0;return{[p]:f[p]+j,data:{[p]:A,centerOffset:k-A-j,...ee&&{alignmentOffset:j}},reset:ee}}});function wg(e,t,n){return(e?[...n.filter(t=>tg(t)===e),...n.filter(t=>tg(t)!==e)]:n.filter(e=>eg(e)===e)).filter(n=>!e||tg(n)===e||(t?cg(n)!==n:!1))}var Tg=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Gh,autoAlignment:u=!0,...d}=$h(e,t),f=c!==void 0||l===Gh?wg(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=og(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[eg(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=tg(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,tg(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Eg=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}=$h(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=eg(r),_=ig(o),v=eg(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[hg(o)]:sg(o)),x=p!==`none`;!d&&x&&b.push(...mg(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=og(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`||_===ig(t)||T.every(e=>ig(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)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ig(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 Dg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Og(e){return Uh.some(t=>e[t]>=0)}var kg=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$h(e,t);switch(i){case`referenceHidden`:{let e=Dg(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Og(e)}}}case`escaped`:{let e=Dg(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Og(e)}}}default:return{}}}}};function Ag(e){let t=Kh(...e.map(e=>e.left)),n=Kh(...e.map(e=>e.top)),r=qh(...e.map(e=>e.right)),i=qh(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function jg(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>vg(Ag(e)))}var Mg=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=$h(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=jg(u),f=vg(Ag(u)),p=_g(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(ig(n)===`y`){let e=d[0],t=d[d.length-1],r=eg(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return vg({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=eg(n)===`left`,t=qh(...d.map(e=>e.right)),r=Kh(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return vg({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ng=new Set([`left`,`top`]);async function Pg(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=eg(n),s=tg(n),c=ig(n)===`y`,l=Ng.has(o)?-1:1,u=a&&c?-1:1,d=$h(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 Fg=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 Pg(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}}}}},Ig=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}=$h(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ig(i),p=ng(f),m=u[p],h=u[f],g=(e,t)=>Qh(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}}}}}},Lg=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}=$h(e,t),u={x:n,y:r},d=ig(i),f=ng(d),p=u[f],m=u[d],h=$h(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=Ng.has(eg(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}}}},Rg=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}=$h(e,t),c=await i.detectOverflow(t,s),l=eg(n),u=tg(n),d=ig(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=Kh(p-c[m],g),y=Kh(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*qh(c.left,c.right):S=p-2*qh(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 zg(){return typeof window<`u`}function Bg(e){return Hg(e)?(e.nodeName||``).toLowerCase():`#document`}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vg(e){return((Hg(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Hg(e){return zg()?e instanceof Node||e instanceof Q(e).Node:!1}function Ug(e){return zg()?e instanceof Element||e instanceof Q(e).Element:!1}function Wg(e){return zg()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Gg(e){return!zg()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function Kg(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=r_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function qg(e){return/^(table|td|th)$/.test(Bg(e))}function Jg(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Yg=/transform|translate|scale|rotate|perspective|filter/,Xg=/paint|layout|strict|content/,Zg=e=>!!e&&e!==`none`,Qg;function $g(e){let t=Ug(e)?r_(e):e;return Zg(t.transform)||Zg(t.translate)||Zg(t.scale)||Zg(t.rotate)||Zg(t.perspective)||!t_()&&(Zg(t.backdropFilter)||Zg(t.filter))||Yg.test(t.willChange||``)||Xg.test(t.contain||``)}function e_(e){let t=a_(e);for(;Wg(t)&&!n_(t);){if($g(t))return t;if(Jg(t))return null;t=a_(t)}return null}function t_(){return Qg??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Qg}function n_(e){return/^(html|body|#document)$/.test(Bg(e))}function r_(e){return Q(e).getComputedStyle(e)}function i_(e){return Ug(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function a_(e){if(Bg(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Gg(e)&&e.host||Vg(e);return Gg(t)?t.host:t}function o_(e){let t=a_(e);return n_(t)?(e.ownerDocument||e).body:Wg(t)&&Kg(t)?t:o_(t)}function s_(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=o_(e),i=r===e.ownerDocument?.body,a=Q(r);if(i){let e=c_(a);return t.concat(a,a.visualViewport||[],Kg(r)?r:[],e&&n?s_(e):[])}return t.concat(r,s_(r,[],n))}function c_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function l_(e){let t=r_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Wg(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Jh(n)!==a||Jh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function u_(e){return Ug(e)?e:e.contextElement}function d_(e){let t=u_(e);if(!Wg(t))return Xh(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=l_(t),o=(a?Jh(n.width):n.width)/r,s=(a?Jh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var f_=Xh(0);function p_(e){let t=Q(e);return!t_()||!t.visualViewport?f_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m_(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Q(e)}function h_(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=u_(e),o=Xh(1);t&&(r?Ug(r)&&(o=d_(r)):o=d_(e));let s=m_(a,n,r)?p_(a):Xh(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=Q(a),t=Ug(r)?Q(r):r,n=e,i=c_(n);for(;i&&t!==n;){let e=d_(i),t=i.getBoundingClientRect(),r=r_(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=Q(i),i=c_(n)}}return vg({width:u,height:d,x:c,y:l})}function g_(e,t){let n=i_(e).scrollLeft;return t?t.left+n:h_(Vg(e)).left+n}function __(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-g_(e,n),y:n.top+t.scrollTop}}function v_(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Vg(r),s=t?Jg(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xh(1),u=Xh(0),d=Wg(r);if((d||!a)&&((Bg(r)!==`body`||Kg(o))&&(c=i_(r)),d)){let e=h_(r);l=d_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?__(o,c):Xh(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 y_(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function b_(e){let t=i_(e),n=e.ownerDocument.body,r=qh(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=qh(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+g_(e),o=-t.scrollTop;return r_(n).direction===`rtl`&&(a+=qh(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var x_=25;function S_(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Q(e),a=Vg(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!t_()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(g_(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<=x_&&(s-=o)}return{width:s,height:c,x:l,y:u}}function C_(e,t){let n=h_(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=d_(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function w_(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=S_(e,n,t);else if(t===`document`)r=b_(Vg(e));else if(Ug(t))r=C_(t,n);else{let n=p_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vg(r)}function T_(e,t){let n=t.get(e);if(n)return n;let r=s_(e,[],!1).filter(e=>Ug(e)&&Bg(e)!==`body`),i=null,a=r_(e).position===`fixed`,o=a?a_(e):e;for(;Ug(o)&&!n_(o);){let e=r_(o),t=$g(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=a_(o)}return t.set(e,r),r}function E_(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Jg(t)?[]:T_(t,this._c):[].concat(n),r],o=w_(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=w_(t,a[e],i);s=qh(n.top,s),c=Kh(n.right,c),l=Kh(n.bottom,l),u=qh(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function D_(e){let{width:t,height:n}=l_(e);return{width:t,height:n}}function O_(e,t,n){let r=Wg(t),i=Vg(t),a=n===`fixed`,o=h_(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xh(0);if((r||!a)&&((Bg(t)!==`body`||Kg(i))&&(s=i_(t)),r)){let e=h_(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=g_(i));let l=i&&!r&&!a?__(i,s):Xh(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 k_(e){return r_(e).position===`static`}function A_(e,t){if(!Wg(e)||r_(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Vg(e)===n&&(n=n.ownerDocument.body),n}function j_(e,t){let n=Q(e);if(Jg(e))return n;if(!Wg(e)){let t=a_(e);for(;t&&!n_(t);){if(Ug(t)&&!k_(t))return t;t=a_(t)}return n}let r=A_(e,t);for(;r&&qg(r)&&k_(r);)r=A_(r,t);return r&&n_(r)&&k_(r)&&!$g(r)?n:r||e_(e)||n}var M_=async function(e){let t=this.getOffsetParent||j_,n=this.getDimensions,r=await n(e.floating);return{reference:O_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function N_(e){return r_(e).direction===`rtl`}var P_={convertOffsetParentRelativeRectToViewportRelativeRect:v_,getDocumentElement:Vg,getClippingRect:E_,getOffsetParent:j_,getElementRects:M_,getClientRects:y_,getDimensions:D_,getScale:d_,isElement:Ug,isRTL:N_};function F_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function I_(e,t,n){let r=null,i,a=Vg(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=Yh(d),h=Yh(a.clientWidth-(u+f)),g=Yh(a.clientHeight-(d+p)),_=Yh(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qh(0,Kh(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!F_(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=Q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function L_(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=u_(e),u=i||a?[...l?s_(l):[],...t?s_(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?I_(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?h_(e):null;c&&g();function g(){let t=h_(e);h&&!F_(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 R_=Fg,z_=Tg,B_=Ig,V_=Eg,H_=Rg,U_=kg,W_=Cg,G_=Mg,K_=Lg,q_=(e,t,n)=>{let r=new Map,i=n??{},a={...P_,...i.platform,_c:r};return Sg(e,t,{...i,platform:a})},J_=typeof document<`u`?v.useLayoutEffect:function(){};function Y_(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(!Y_(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)&&!Y_(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function X_(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Z_(e,t){let n=X_(e);return Math.round(t*n)/n}function Q_(e){let t=v.useRef(e);return J_(()=>{t.current=e}),t}function $_(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]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Y_(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=Q_(c),O=Q_(i),k=Q_(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),q_(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};ee.current&&!Y_(T.current,t)&&(T.current=t,Ht.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);J_(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=v.useRef(!1);J_(()=>(ee.current=!0,()=>{ee.current=!1}),[]),J_(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let j=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),M=v.useMemo(()=>({reference:x,floating:S}),[x,S]),te=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Z_(M.floating,u.x),r=Z_(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...X_(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:j,elements:M,floatingStyles:te}),[u,A,j,M,te])}var ev=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?{}:W_({element:r.current,padding:i}).fn(n):r?W_({element:r,padding:i}).fn(n):{}}}},tv=(e,t)=>{let n=R_(e);return{name:n.name,fn:n.fn,options:[e,t]}},nv=(e,t)=>{let n=B_(e);return{name:n.name,fn:n.fn,options:[e,t]}},rv=(e,t)=>({fn:K_(e).fn,options:[e,t]}),iv=(e,t)=>{let n=V_(e);return{name:n.name,fn:n.fn,options:[e,t]}},av=(e,t)=>{let n=H_(e);return{name:n.name,fn:n.fn,options:[e,t]}},ov=(e,t)=>{let n=U_(e);return{name:n.name,fn:n.fn,options:[e,t]}},sv=(e,t)=>{let n=ev(e);return{name:n.name,fn:n.fn,options:[e,t]}},cv=Object.defineProperty,lv=(e,t)=>cv(e,`name`,{value:t,configurable:!0});function uv(e){let[t,n]=v.useState(void 0);return B(()=>{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}lv(uv,`useSize`);var dv=Object.defineProperty,fv=(e,t)=>dv(e,`name`,{value:t,configurable:!0}),pv=`Popper`,[mv,hv]=rn(pv),[gv,_v]=mv(pv),vv=fv(e=>{let{__scopePopper:t,children:n}=e,[r,i]=v.useState(null),[a,o]=v.useState(void 0);return(0,P.jsx)(gv,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),yv=`PopperAnchor`,bv=v.forwardRef(fv(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=_v(yv,n),o=v.useRef(null),s=a.onAnchorChange,c=I(t,v.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=v.useRef(null);v.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Dv(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,P.jsx)(R.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),xv=`PopperContent`,[Sv,Cv]=mv(xv),wv=v.forwardRef(fv(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:p=`optimized`,onPlaced:m,...h}=e,g=_v(xv,n),[_,y]=v.useState(null),b=I(t,y),[x,S]=v.useState(null),C=uv(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Tv),altBoundary:k},{refs:ee,floatingStyles:j,placement:M,isPositioned:te,middlewareData:N}=$_({strategy:`fixed`,placement:E,whileElementsMounted:fv((...e)=>L_(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[tv({mainAxis:i+T,alignmentAxis:o}),c&&nv({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?rv():void 0,...A}),c&&iv({...A}),av({...A,apply:fv(({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`)}),x&&sv({element:x,padding:s}),Ev({arrowWidth:w,arrowHeight:T}),f&&ov({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),ne=g.setPlacementState;B(()=>(ne(M),()=>{ne(void 0)}),[M,ne]);let[re,ie]=Dv(M),ae=zn(m);B(()=>{te&&ae?.()},[te,ae]);let oe=N.arrow?.x,se=N.arrow?.y,ce=N.arrow?.centerOffset!==0,[le,ue]=v.useState();return B(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),(0,P.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:te?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--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)(Sv,{scope:n,placedSide:re,placedAlign:ie,onArrowChange:S,arrowX:oe,arrowY:se,shouldHideArrow:ce,children:(0,P.jsx)(R.div,{"data-side":re,"data-align":ie,...h,ref:b,style:{...h.style,animation:te?h.style?.animation:`none`}})})})},`PopperContent`));function Tv(e){return e!==null}fv(Tv,`isNotNull`);var Ev=fv(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]=Dv(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 Dv(e){let[t,n=`center`]=e.split(`-`);return[t,n]}fv(Dv,`getSideAndAlignFromPlacement`);var Ov=vv,kv=bv,Av=wv,jv=Object.defineProperty,Mv=(e,t)=>jv(e,`name`,{value:t,configurable:!0});function Nv(e){let t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Mv(Nv,`usePrevious`);var Pv=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Fv=new WeakMap,Iv=new WeakMap,Lv={},Rv=0,zv=function(e){return e&&(e.host||zv(e.parentNode))},Bv=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=zv(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})},Vv=function(e,t,n,r){var i=Bv(t,Array.isArray(e)?e:[e]);Lv[n]||(Lv[n]=new WeakMap);var a=Lv[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=(Fv.get(e)||0)+1,l=(a.get(e)||0)+1;Fv.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Iv.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(),Rv++,function(){o.forEach(function(e){var t=Fv.get(e)-1,i=a.get(e)-1;Fv.set(e,t),a.set(e,i),t||(Iv.has(e)||e.removeAttribute(r),Iv.delete(e)),i||e.removeAttribute(n)}),Rv--,Rv||(Fv=new WeakMap,Fv=new WeakMap,Iv=new WeakMap,Lv={})}},Hv=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Pv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Vv(r,i,n,`aria-hidden`)):function(){return null}},Uv=function(){return Uv=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},Uv.apply(this,arguments)};function Wv(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 Gv(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 Kv=`right-scroll-bar-position`,qv=`width-before-scroll-bar`,Jv=`with-scroll-bars-hidden`,Yv=`--removed-body-scroll-bar-size`;function Xv(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Zv(e,t){var n=(0,v.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 Qv=typeof window<`u`?v.useLayoutEffect:v.useEffect,$v=new WeakMap;function ey(e,t){var n=Zv(t||null,function(t){return e.forEach(function(e){return Xv(e,t)})});return Qv(function(){var t=$v.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xv(e,null)}),i.forEach(function(e){r.has(e)||Xv(e,a)})}$v.set(n,e)},[e]),n}function ty(e){return e}function ny(e,t){t===void 0&&(t=ty);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;n=[],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 ry(e){e===void 0&&(e={});var t=ny(null);return t.options=Uv({async:!0,ssr:!1},e),t}var iy=function(e){var t=e.sideCar,n=Wv(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 v.createElement(r,Uv({},n))};iy.isSideCarExport=!0;function ay(e,t){return e.useMedium(t),iy}var oy=ry(),sy=function(){},cy=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:sy,onWheelCapture:sy,onTouchMoveCapture:sy}),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,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,y=_===void 0?`div`:_,b=e.gapMode,x=Wv(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=ey([n,t]),w=Uv(Uv({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:oy,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),Uv(Uv({},w),{ref:C})):v.createElement(y,Uv({},w,{className:c,ref:C}),s))});cy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cy.classNames={fullWidth:qv,zeroRight:Kv};var ly=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uy(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ly();return t&&e.setAttribute(`nonce`,t),e}function dy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fy(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var py=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uy())&&(dy(t,n),fy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},my=function(){var e=py();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hy=function(){var e=my();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},gy={left:0,top:0,right:0,gap:0},_y=function(e){return parseInt(e||``,10)||0},vy=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[_y(n),_y(r),_y(i)]},yy=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return gy;var t=vy(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])}},by=hy(),xy=`data-scroll-locked`,Sy=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
- .${Jv} {
3
- overflow: hidden ${r};
4
- padding-right: ${s}px ${r};
5
- }
6
- body[${xy}] {
7
- overflow: hidden ${r};
8
- overscroll-behavior: contain;
9
- ${[t&&`position: relative ${r};`,n===`margin`&&`
10
- padding-left: ${i}px;
11
- padding-top: ${a}px;
12
- padding-right: ${o}px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: ${s}px ${r};
16
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
- }
18
-
19
- .${Kv} {
20
- right: ${s}px ${r};
21
- }
22
-
23
- .${qv} {
24
- margin-right: ${s}px ${r};
25
- }
26
-
27
- .${Kv} .${Kv} {
28
- right: 0 ${r};
29
- }
30
-
31
- .${qv} .${qv} {
32
- margin-right: 0 ${r};
33
- }
34
-
35
- body[${xy}] {
36
- ${Yv}: ${s}px;
37
- }
38
- `},Cy=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},wy=function(){v.useEffect(function(){return document.body.setAttribute(xy,(Cy()+1).toString()),function(){var e=Cy()-1;e<=0?document.body.removeAttribute(xy):document.body.setAttribute(xy,e.toString())}},[])},Ty=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;wy();var a=v.useMemo(function(){return yy(i)},[i]);return v.createElement(by,{styles:Sy(a,!t,i,n?``:`!important`)})},Ey=!1;if(typeof window<`u`)try{var Dy=Object.defineProperty({},"passive",{get:function(){return Ey=!0,!0}});window.addEventListener(`test`,Dy,Dy),window.removeEventListener(`test`,Dy,Dy)}catch{Ey=!1}var Oy=Ey?{passive:!1}:!1,ky=function(e){return e.tagName===`TEXTAREA`},Ay=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ky(e)&&n[t]===`visible`)},jy=function(e){return Ay(e,`overflowY`)},My=function(e){return Ay(e,`overflowX`)},Ny=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Iy(e,r)){var i=Ly(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Py=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Fy=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Iy=function(e,t){return e===`v`?jy(t):My(t)},Ly=function(e,t){return e===`v`?Py(t):Fy(t)},Ry=function(e,t){return e===`h`&&t===`rtl`?-1:1},zy=function(e,t,n,r,i){var a=Ry(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=Ly(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Iy(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},By=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vy=function(e){return[e.deltaX,e.deltaY]},Hy=function(e){return e&&`current`in e?e.current:e},Uy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wy=function(e){return`
39
- .block-interactivity-${e} {pointer-events: none;}
40
- .allow-interactivity-${e} {pointer-events: all;}
41
- `},Gy=0,Ky=[];function qy(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(Gy++)[0],a=v.useState(hy)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Gv([e.lockRef.current],(e.shards||[]).map(Hy),!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=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=By(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=Ny(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Ny(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 zy(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(Ky.length&&Ky[Ky.length-1]===a){var r=`deltaY`in n?Vy(n):By(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Uy(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Hy).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=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Jy(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=By(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,Vy(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,By(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return Ky.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Oy),document.addEventListener(`touchmove`,c,Oy),document.addEventListener(`touchstart`,u,Oy),function(){Ky=Ky.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Oy),document.removeEventListener(`touchmove`,c,Oy),document.removeEventListener(`touchstart`,u,Oy)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:Wy(i)}):null,p?v.createElement(Ty,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Yy=ay(oy,qy),Xy=v.forwardRef(function(e,t){return v.createElement(cy,Uv({},e,{ref:t,sideCar:Yy}))});Xy.classNames=cy.classNames;var Zy=Object.defineProperty,$=(e,t)=>Zy(e,`name`,{value:t,configurable:!0}),Qy=[` `,`Enter`,`ArrowUp`,`ArrowDown`],$y=[` `,`Enter`],eb=`Select`,[tb,nb,rb]=Cn(eb),[ib,ab]=rn(eb,[rb,hv]),ob=hv(),[sb,cb]=ib(eb),[lb,ub]=ib(eb);function db(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=ob(t),[_,y]=v.useState(null),[b,x]=v.useState(null),[S,C]=v.useState(!1),w=mh(l),[T,E]=xr({prop:r,defaultProp:i??!1,onChange:a,caller:eb}),[D,O]=xr({prop:o,defaultProp:s,onChange:c,caller:eb}),k=v.useRef(null),A=v.useRef(D);v.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=$(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let ee=!_||!!m||!!_.closest(`form`),[j,M]=v.useState(new Set),te=Hh(),N=Array.from(j).map(e=>e.props.value).join(`;`),ne=v.useCallback(e=>{M(t=>new Set(t).add(e))},[]),re=v.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),ie={required:p,trigger:_,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:te,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:j,nativeSelectKey:N,isFormControl:ee};return(0,P.jsx)(Ov,{...g,children:(0,P.jsx)(sb,{scope:t,...ie,children:(0,P.jsx)(tb.Provider,{scope:t,children:(0,P.jsx)(lb,{scope:t,onNativeOptionAdd:ne,onNativeOptionRemove:re,children:nx(h)?h(ie):n})})})})}$(db,`SelectProvider`);var fb=$(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,P.jsx)(db,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,P.jsxs)(P.Fragment,{children:[n,e?(0,P.jsx)(tx,{__scopeSelect:t}):null]})})},`Select`),pb=`SelectTrigger`,mb=v.forwardRef($(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=ob(n),o=cb(pb,n),s=o.disabled||r,c=I(t,o.onTriggerChange),l=nb(n),u=v.useRef(`touch`),[d,f,p]=ix(e=>{let t=l().filter(e=>!e.disabled),n=ax(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=$(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,P.jsx)(kv,{asChild:!0,...a,children:(0,P.jsx)(R.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":rx(o.value)?``:void 0,...i,ref:c,onClick:F(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:F(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:F(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Qy.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),hb=`SelectValue`,gb=v.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=cb(hb,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=I(t,c.onValueNodeChange);B(()=>{l(u)},[l,u]);let f=rx(c.value);return(0,P.jsx)(R.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,P.jsx)(v.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),_b=v.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,P.jsx)(R.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[vb,yb]=ib(`SelectPortal`,{forceMount:void 0}),bb=$(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,P.jsx)(vb,{scope:e.__scopeSelect,forceMount:n,children:(0,P.jsx)(rr,{asChild:!0,...r})})},`SelectPortal`),xb=`SelectContent`,Sb=v.forwardRef($(function(e,t){let n=yb(xb,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=cb(xb,e.__scopeSelect),[o,s]=v.useState();return B(()=>{s(new DocumentFragment)},[]),(0,P.jsx)(sr,{present:r||a.open,children:({present:e})=>e?(0,P.jsx)(Ob,{...i,ref:t}):(0,P.jsx)(Cb,{...i,fragment:o})})},`SelectContent`)),Cb=v.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Ht.createPortal((0,P.jsx)(Tb,{scope:n,children:(0,P.jsx)(tb.Slot,{scope:n,children:(0,P.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),wb=10,[Tb,Eb]=ib(xb),Db=cn(`SelectContent.RemoveScroll`),Ob=v.forwardRef($(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,y=cb(xb,n),[b,x]=v.useState(null),[S,C]=v.useState(null),w=I(t,x),[T,E]=v.useState(null),[D,O]=v.useState(null),k=nb(n),[A,ee]=v.useState(!1),j=v.useRef(!1);v.useEffect(()=>{if(b)return Hv(b)},[b]),bh();let M=v.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),te=v.useCallback(()=>M([T,b]),[M,T,b]);v.useEffect(()=>{A&&te()},[A,te]);let{onOpenChange:N,triggerPointerDownPosRef:ne}=y;v.useEffect(()=>{if(b){let e={x:0,y:0},t=$(t=>{e={x:Math.abs(Math.round(t.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ne.current?.y??0))}},`handlePointerMove`),n=$(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||N(!1),document.removeEventListener(`pointermove`,t),ne.current=null},`handlePointerUp`);return ne.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,N,ne]),v.useEffect(()=>{let e=$(()=>N(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[N]);let[re,ie]=ix(e=>{let t=k().filter(e=>!e.disabled),n=ax(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ae=v.useCallback((e,t,n)=>{let r=!j.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(j.current=!0))},[y.value]),oe=v.useCallback(()=>b?.focus(),[b]),se=v.useCallback((e,t,n)=>{let r=!j.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ce=r===`popper`?Ab:kb,le=ce===Ab?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,P.jsx)(Tb,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ae,selectedItem:T,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:te,selectedItemText:D,position:r,isPositioned:A,searchRef:re,children:(0,P.jsx)(Xy,{as:Db,allowPinchZoom:!0,children:(0,P.jsx)(Eh,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:F(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,P.jsx)(Kn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,P.jsx)(ce,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),..._,...le,onPlaced:()=>ee(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:F(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),kb=v.forwardRef($(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=cb(xb,n),o=Eb(xb,n),[s,c]=v.useState(null),[l,u]=v.useState(null),d=I(t,u),f=nb(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:y}=o,b=v.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-wb,d=uh(a,[wb,Math.max(wb,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-wb,d=uh(a,[wb,Math.max(wb,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-wb*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-wb,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,ee=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+ee;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${wb}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);B(()=>b(),[b]);let[x,S]=v.useState();B(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=v.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,P.jsx)(jb,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,P.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,P.jsx)(R.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ab=v.forwardRef($(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=wb,...a}=e,o=ob(n);return(0,P.jsx)(Av,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[jb,Mb]=ib(xb,{}),Nb=`SelectViewport`,Pb=v.forwardRef($(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Eb(Nb,n),o=Mb(Nb,n),s=I(t,a.onViewportChange),c=v.useRef(0);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,P.jsx)(tb.Slot,{scope:n,children:(0,P.jsx)(R.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:F(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-wb*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Fb,Ib]=ib(`SelectGroup`),Lb=v.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=Hh();return(0,P.jsx)(Fb,{scope:n,id:i,children:(0,P.jsx)(R.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Rb=`SelectLabel`,zb=v.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=Ib(Rb,n);return(0,P.jsx)(R.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Bb=`SelectItem`,[Vb,Hb]=ib(Bb),Ub=v.forwardRef($(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=cb(Bb,n),c=Eb(Bb,n),l=s.value===r,[u,d]=v.useState(a??``),[f,p]=v.useState(!1),m=I(t,zn(e=>c.itemRefCallback?.(e,r,i))),h=Hh(),g=v.useRef(`touch`),_=$(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,P.jsx)(Vb,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:v.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,P.jsx)(tb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,P.jsx)(R.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:F(o.onFocus,()=>p(!0)),onBlur:F(o.onBlur,()=>p(!1)),onClick:F(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:F(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:F(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:F(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:F(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&($y.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Wb=`SelectItemText`,Gb=v.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=cb(Wb,n),s=Eb(Wb,n),c=Hb(Wb,n),l=ub(Wb,n),[u,d]=v.useState(null),f=zn(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=I(t,d,c.onItemTextChange,f),m=u?.textContent,h=v.useMemo(()=>(0,P.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return B(()=>(g(h),()=>_(h)),[g,_,h]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!rx(o.value)?Ht.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Kb=`SelectItemIndicator`,qb=v.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return Hb(Kb,n).isSelected?(0,P.jsx)(R.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Jb=`SelectScrollUpButton`,Yb=v.forwardRef($(function(e,t){let n=Eb(Jb,e.__scopeSelect),r=Mb(Jb,e.__scopeSelect),[i,a]=v.useState(!1),o=I(t,r.onScrollButtonChange);return B(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(Qb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Xb=`SelectScrollDownButton`,Zb=v.forwardRef($(function(e,t){let n=Eb(Xb,e.__scopeSelect),r=Mb(Xb,e.__scopeSelect),[i,a]=v.useState(!1),o=I(t,r.onScrollButtonChange);return B(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(Qb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Qb=v.forwardRef($(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Eb(`SelectScrollButton`,n),o=v.useRef(null),s=nb(n),c=v.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),B(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,P.jsx)(R.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:F(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:F(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),$b=v.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return(0,P.jsx)(R.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),ex=`SelectBubbleInput`,tx=v.forwardRef($(function({__scopeSelect:e,...t},n){let r=cb(ex,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=v.useRef(null),m=I(n,p),h=i??``,g=Nv(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return v.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,P.jsxs)(R.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Or,...t.style},ref:m,defaultValue:h,children:[rx(i)&&!_?(0,P.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function nx(e){return typeof e==`function`}$(nx,`isFunction`);function rx(e){return e===``||e===void 0}$(rx,`shouldShowPlaceholder`);function ix(e){let t=zn(e),n=v.useRef(``),r=v.useRef(0),i=v.useCallback(e=>{let i=n.current+e;t(i),$((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=v.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}$(ix,`useTypeaheadSearch`);function ax(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=ox(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}$(ax,`findNextItem`);function ox(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(ox,`wrapArray`);var sx=fb,cx=Lb,lx=gb,ux=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>(0,P.jsxs)(mb,{suppressHydrationWarning:!0,className:i(`flex w-full cursor-pointer items-center justify-between whitespace-nowrap`,`select-text text-base shadow-none outline-none md:text-sm`,`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,`px-2 py-3 md:py-2`,`bg-neutral-50 dark:bg-neutral-950`,`text-foreground`,`ring-0`,`focus-visible:outline-none`,`focus-visible:ring-3`,`focus-visible:ring-neutral-200`,`dark:focus-visible:ring-neutral-500`,`focus-visible:ring-offset-white`,`dark:focus-visible:ring-offset-neutral-500`,`[box-shadow:none] focus:[box-shadow:none]`,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-invalid:border-error`,`[&>span]:line-clamp-1`,e&&`valid:border-success invalid:border-error`,t),...r,children:[n,(0,P.jsx)(_b,{asChild:!0,children:(0,P.jsx)(ni,{className:`size-4 opacity-50`})})]}),dx=({className:e,...t})=>(0,P.jsx)(Yb,{className:i(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,P.jsx)(ei,{})}),fx=({className:e,...t})=>(0,P.jsx)(Zb,{className:i(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,P.jsx)(Qr,{})}),px=({className:e,children:t,position:n=`popper`,...r})=>(0,P.jsx)(bb,{children:(0,P.jsxs)(Sb,{className:i(`relative z-50 max-h-96 min-w-32 overflow-hidden`,`rounded-xl shadow-md`,`bg-white dark:bg-neutral-950`,`text-foreground`,`border border-neutral-200 dark:border-neutral-800`,`data-[state=closed]:animate-out data-[state=open]:animate-in`,`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`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,P.jsx)(dx,{}),(0,P.jsx)(Pb,{className:i(`p-1`,n===`popper`&&`h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)`),children:t}),(0,P.jsx)(fx,{})]})}),mx=({className:e,...t})=>(0,P.jsx)(zb,{className:i(`px-1 py-0.5 font-semibold text-sm`,e),...t}),hx=({className:e,children:t,...n})=>(0,P.jsxs)(Ub,{className:i(`relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-neutral/10 data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,P.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,P.jsx)(qb,{children:(0,P.jsx)(Xr,{className:`size-4`})})}),(0,P.jsx)(Gb,{children:t})]}),gx=({className:e,...t})=>(0,P.jsx)($b,{className:i(`-mx-1 my-1 h-px`,`bg-neutral-200 dark:bg-neutral-800`,e),...t}),_x=sx;_x.Group=cx,_x.Value=lx,_x.Trigger=ux,_x.ScrollUpButton=dx,_x.ScrollDownButton=fx,_x.Content=px,_x.Label=mx,_x.Item=hx,_x.Separator=gx;var vx=Pr(`gap-3 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`h-auto justify-start border-inherit bg-current/0 px-1 font-medium decoration-[1.5] underline-offset-5 hover:bg-current/0 hover:underline hover:underline-offset-6 hover:opacity-80`,"invisible-link":`h-auto justify-start border-inherit bg-current/0 px-1`,button:`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full bg-current px-6 text-center font-medium text-sm text-text ring-0 *:text-text-opposite hover:bg-current/90 hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,"button-outlined":`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full border-[1.3px] border-current! px-6 text-center font-medium text-sm text-text ring-0 *:text-text hover:bg-current/30! hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,hoverable:`block rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/10 aria-[current]:bg-current/5`},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,full:`rounded-full`},color:{neutral:`text-neutral`,text:`text-text`,error:`text-error`,success:`text-success`,"text-inverse":`text-text-opposite`,custom:``},size:{sm:`text-sm`,md:`text-base`,lg:`text-lg`,xl:`text-xl`,custom:``},underlined:{default:``,true:`underline`,false:`no-underline`}},compoundVariants:[{variant:`button`,color:`text-inverse`,class:`*:text-text`},{variant:`button-outlined`,color:`text-inverse`,class:`text-text-opposite *:text-text-opposite`},{variant:[`button`,`button-outlined`],size:`sm`,class:`min-h-7 px-3 text-xs max-md:py-1`},{variant:[`button`,`button-outlined`],size:`md`,class:`min-h-8 px-6 text-sm max-md:py-2`},{variant:[`button`,`button-outlined`],size:`lg`,class:`min-h-10 px-8 text-lg max-md:py-3`},{variant:[`button`,`button-outlined`],size:`xl`,class:`min-h-11 px-10 text-xl max-md:py-4`},{variant:[`button`,`button-outlined`],color:`neutral`,class:`ring-neutral/20`},{variant:[`button`,`button-outlined`],color:`text`,class:`ring-text/20`},{variant:[`button`,`button-outlined`],color:`text-inverse`,class:`ring-text-opposite/20`},{variant:[`button`,`button-outlined`],color:`error`,class:`ring-error/20`},{variant:[`button`,`button-outlined`],color:`success`,class:`ring-success/20`}],defaultVariants:{variant:`default`,roundedSize:`md`,underlined:`default`,size:`custom`}}),yx=({href:e,isExternalLink:t},n)=>{if(typeof t==`boolean`)return t;if(typeof e!=`string`||e.trim()===``||!/^https?:\/\//.test(e))return!1;if(n)try{let t=new URL(e).hostname,r=new URL(n.startsWith(`http`)?n:`https://${n}`).hostname,i=e=>e.split(`.`).slice(-2).join(`.`);return i(t)!==i(r)}catch{return!0}return!0},bx=e=>typeof e==`string`||typeof e==`number`?!0:Array.isArray(e)?e.every(bx):(0,v.isValidElement)(e)?bx(e.props.children):!1,xx=e=>{let{variant:t=`default`,color:n=`custom`,roundedSize:r,children:a,label:o,className:s,isActive:c,underlined:l,locale:u,size:d,isExternalLink:f,isPageSection:p,href:m,rel:h,target:g,..._}=e,v=t===`button`||t===`button-outlined`,y=d??(v?`md`:`custom`),b=f??yx(e),x=p??m?.startsWith(`#`)??!1,S=bx(a),C=b?`noopener noreferrer nofollow`:h,w=b?`_blank`:g??`_self`,T=u&&m&&!b&&!x?oe(m,u):m,E=T===``?void 0:T;return(0,P.jsxs)(`a`,{..._,href:E,"aria-label":o,rel:C,target:w,"aria-current":c?`page`:void 0,suppressHydrationWarning:!0,className:i(vx({variant:t,color:n,roundedSize:r,underlined:l,size:y,className:s})),children:[v&&S?(0,P.jsx)(`span`,{children:a}):a,b&&S&&(0,P.jsx)(ci,{className:`ml-2 inline-block size-4`}),x&&(0,P.jsx)(ui,{className:`ml-2 inline-block size-4`})]})},Sx=e=>{let[t,n]=(0,v.useState)(e);return(0,v.useEffect)(()=>{n(e??window.document.body)},[e]),t},Cx=new class{listeners=new Set;scrollBlockers=[];subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.scrollBlockers;addBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);if(n){if(n.blockers.includes(e))return;this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:[...n.blockers,e]}:n)}else t.style.overflowY=`hidden`,t.style.overflowX=`hidden`,this.scrollBlockers=[...this.scrollBlockers,{element:t,blockers:[e]}];this.emit()};removeBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);n&&(n.blockers.length>1?this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:n.blockers.filter(t=>t!==e)}:n):(t.style.overflowY=``,t.style.overflowX=``,this.scrollBlockers=this.scrollBlockers.filter(e=>e.element!==t)),this.emit())};isElementScrollBlocked=e=>this.scrollBlockers.some(t=>t.element===e);emit=()=>{this.listeners.forEach(e=>{e()})}},wx=()=>!1,Tx=e=>{let{disableScroll:t=!1,element:n,key:r=`unnamed_blocker`}=e??{},i=Sx(n);(0,v.useEffect)(()=>{let e=n??window.document.body;return t?Cx.addBlockage(r,e):Cx.removeBlockage(r,e),()=>{Cx.removeBlockage(r,e)}},[t,n,r]);let a=(0,v.useCallback)(()=>i?Cx.isElementScrollBlocked(i):!1,[i]);return{isScrollBlocked:(0,v.useSyncExternalStore)(Cx.subscribe,a,wx)}},Ex=`relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`,Dx=`after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100`,Ox=({className:e,...t})=>(0,P.jsx)(`h1`,{className:i(`text-3xl`,e),...t}),kx=({className:e,...t})=>(0,P.jsx)(`h2`,{className:i(`mb-2 text-2xl`,Ex,e),...t}),Ax=({className:e,...t})=>(0,P.jsx)(`h3`,{className:i(`mb-2 text-xl`,Ex,e),...t}),jx=({className:e,...t})=>(0,P.jsx)(`h4`,{className:i(`text-lg`,Ex,e),...t}),Mx=({className:e,...t})=>(0,P.jsx)(`h5`,{className:i(`text-base`,Ex,e),...t}),Nx=({className:e,...t})=>(0,P.jsx)(`h6`,{className:i(`ml-3 text-base`,Ex,e),...t}),Px=e=>String(e).normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/\s+/g,`-`).toLowerCase(),Fx=e=>{let t=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:t,behavior:`smooth`})},Ix=(e,t)=>{let n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,i=window.getComputedStyle(e,`:after`),a=n+parseInt(i.getPropertyValue(`left`),10),o=a+parseInt(i.width,10),s=r+parseInt(i.getPropertyValue(`top`),10),c=s+parseInt(i.height,10),l=t.clientX,u=t.clientY;return l>=a&&l<=o&&u>=s&&u<=c},Lx=({H:e,children:t,className:n,isClickable:r,...a})=>{let o=typeof t==`string`?Px(t):void 0;return(0,P.jsx)(e,{id:o,onClick:r?e=>{let{id:t}=e.currentTarget;if(Ix(e.currentTarget,e)&&typeof t==`string`){let e=`${window.location.href.split(`#`)[0]}#${t}`;navigator.clipboard.writeText(e),Fx(t)}}:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:i(r&&Dx,n),...a,children:t})},Rx=({isClickable:e,...t})=>(0,P.jsx)(Ox,{...t}),zx=({isClickable:e=!1,...t})=>(0,P.jsx)(Lx,{H:kx,isClickable:e,...t}),Bx=({isClickable:e=!1,...t})=>(0,P.jsx)(Lx,{H:Ax,isClickable:e,...t}),Vx=({isClickable:e=!1,...t})=>(0,P.jsx)(Lx,{H:jx,isClickable:e,...t}),Hx=({isClickable:e=!1,...t})=>(0,P.jsx)(Lx,{H:Mx,isClickable:e,...t}),Ux=({isClickable:e=!1,...t})=>(0,P.jsx)(Lx,{H:Nx,isClickable:e,...t}),Wx=Pr(`flex cursor-default flex-col overflow-hidden shadow-sm`,{variants:{size:{sm:`h-auto max-h-[30vh] w-[95vw] max-w-xl`,md:`h-auto max-h-[50vh] w-[95vw] max-w-xl`,lg:`h-auto max-h-[70vh] w-[95vw] max-w-4xl`,xl:`h-auto max-h-[95vh] w-[95vw] max-w-6xl`,unset:`h-auto max-h-[95vh] w-[95vw]`}},defaultVariants:{size:`unset`}}),Gx={none:`p-0`,sm:`px-2 py-4`,md:`px-4 py-6`,lg:`px-6 py-8`,xl:`px-8 py-10`,"2xl":`px-10 py-12`},Kx=Wm.create(oh),qx=({children:e,isOpen:t,container:n,onClose:r,hasCloseButton:a=!1,title:o,size:s=`md`,className:c,isScrollable:l=!1,disableScroll:u=!0,padding:d=`none`,...f})=>{let p=Sx(n);if(Tx({key:`modal`,disableScroll:t&&u}),(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t&&r&&r()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,r]),!p)return(0,P.jsx)(P.Fragment,{});let m=!!o,h=Gx[d||`none`];return(0,Ht.createPortal)((0,P.jsx)(Wm.div,{className:`invisible fixed top-0 left-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-hidden bg-background/40 backdrop-blur`,animate:t?`visible`:`invisible`,variants:{visible:{opacity:1,visibility:`visible`,transition:{duration:.1,when:`beforeChildren`}},invisible:{opacity:0,visibility:`hidden`,transition:{duration:.1,when:`afterChildren`}}},onClick:e=>{e.stopPropagation(),r?.()},"aria-hidden":!t,children:(0,P.jsxs)(Kx,{onClick:e=>e.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:Wx({size:s,className:c}),role:`dialog`,"aria-modal":!0,padding:`none`,...f,children:[(0,P.jsxs)(`div`,{className:i(`relative flex-none px-4 pt-4`,a&&m?`flex items-start`:a?`flex justify-end`:m?`items-center`:`hidden`),children:[m&&(0,P.jsx)(Bx,{className:`mb-2 ml-1 flex items-center justify-center font-bold text-lg`,children:o}),a&&(0,P.jsx)(Ym,{variant:`hoverable`,color:`text`,label:`Close modal`,className:`ml-auto`,onClick:e=>{e.stopPropagation(),r?.()},Icon:fi,size:`icon-md`})]}),(0,P.jsx)(`div`,{className:i(`flex min-h-0 w-full flex-1 flex-col`,l===!0&&`overflow-auto`,l===`y`&&`overflow-y-auto overflow-x-hidden`,l===`x`&&`overflow-x-auto overflow-y-hidden`,!l&&`overflow-visible`),children:(0,P.jsx)(`div`,{className:i(`flex size-full flex-1 flex-col`,h),children:e})})]})}),p)},Jx=Pr(`relative z-0 flex size-full flex-row items-center gap-2`,{variants:{color:{error:`border-error bg-error text-error`,neutral:`border-neutral text-neutral`,light:`border-white text-white`,dark:`border-neutral-800 text-neutral-800`,text:`border-text text-foreground`}},defaultVariants:{color:`text`}}),Yx=Pr(`absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none`,{variants:{color:{error:`bg-error/10 aria-selected:text-foreground`,neutral:`bg-neutral/10 aria-selected:text-white/10`,light:`bg-white/10 aria-selected:text-black`,dark:`bg-neutral-800/10 aria-selected:text-white`,text:`bg-text/10 aria-selected:text-foreground-opposite`},orientation:{horizontal:`top-0 h-full w-auto transition-[left,width]`,vertical:`left-0 h-auto w-full transition-[top,height]`}},defaultVariants:{orientation:`horizontal`}}),Xx=({tabs:e,selectedChoice:t,onTabClick:n,color:r=`text`,hoverable:a=!1,orientation:o=`horizontal`,className:s})=>{let c=(0,v.useRef)([]),l=(0,v.useRef)(null),{choiceIndicatorPosition:u,scheduleMeasurement:d}=ih(c,{isHoverable:a,orientation:o});return(0,v.useEffect)(()=>{d()},[t]),(0,P.jsxs)(`div`,{className:i(Jx({color:r}),s),"aria-orientation":o,"aria-multiselectable":`false`,role:`tablist`,children:[e.map((e,r)=>{let i=e.key,a=t===i;return(0,v.cloneElement)(e,{key:i??r,role:`tab`,onClick:t=>{e.props?.onClick?.(t),n?.(i)},"aria-selected":a,"data-active":a,tabIndex:a?0:-1,ref:e=>{c.current[r]=e}})}),u&&(0,P.jsx)(`div`,{className:i(Yx({color:r,orientation:o})),style:u,ref:l},`${t}${JSON.stringify(e.map(e=>e.key))}`)]})},Zx=({content:e,...t})=>{let[n,r]=(0,v.useState)(!1),[i,a]=(0,v.useState)(!1),{label:o}=Vt(`copy-button`),s=async()=>{try{a(!1);let t=typeof e==`function`?await e():e;await navigator.clipboard.writeText(t),r(!0)}catch(e){console.error(`Failed to copy text: `,e),a(!0)}};(0,v.useEffect)(()=>{if(n||i){let e=setTimeout(()=>{r(!1),a(!1)},1e3);return()=>clearTimeout(e)}},[n,i]);let c=()=>n?`Content copied to clipboard`:i?`Failed to copy content`:t.label??o.value;return(0,P.jsx)(Ym,{Icon:n?ii:oi,onClick:s,variant:`hoverable`,color:`text`,size:`icon-sm`,tabIndex:0,title:c(),...t,label:c(),"aria-describedby":n?`copy-success`:i?`copy-error`:void 0})},Qx=(0,v.createContext)(null),$x=e=>{let t=(0,v.useContext)(Qx)??e;return{triggerId:`unrollable-panel-button-${t}`,panelId:`unrollable-panel-${t}`}},eS=({children:e,className:t,identifier:n,...r})=>{let a=`${n}${(0,v.useId)()}`,{triggerId:o}=$x(a);return(0,P.jsx)(Qx,{value:a,children:(0,P.jsx)(`div`,{className:i(`group/popover relative flex cursor-pointer`,t),id:o,"aria-haspopup":!0,...r,children:e})})},tS=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:a=`start`,yAlign:o=`below`,identifier:s,className:c,displayArrow:l=!0,...u})=>{let{triggerId:d,panelId:f}=$x(s);return(0,P.jsx)(oh,{transparency:`xs`,role:`group`,"aria-hidden":t,"aria-labelledby":d,id:f,className:i(`absolute z-60 min-w-full rounded-md ring-1 ring-neutral`,a===`start`&&`left-0`,a===`center`&&`left-1/2 -translate-x-1/2`,a===`end`&&`right-0`,o===`below`&&`top-[calc(100%+1rem)]`,o===`above`&&`bottom-[calc(100%+1rem)]`,l&&`before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]`,l&&a===`start`&&`before:left-2`,l&&a===`center`&&`before:left-1/2 before:-translate-x-1/2`,l&&a===`end`&&`before:right-2`,l&&o===`below`&&`before:-top-2.5 before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent`,l&&o===`above`&&`before:-bottom-2.5 before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent`,`overflow-x-visible opacity-0 transition-all duration-400 ease-in-out`,t===!1?`visible opacity-100 delay-800`:`invisible`,n&&`group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800`,r&&`group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800`,c),...u,children:e})};eS.Detail=tS;var nS=16,rS=16,iS=e=>(0,P.jsx)(eS,{...e}),aS=({xAlign:e=`start`,yAlign:t=`below`,...n})=>{let r=(0,v.useRef)(null),{triggerId:i}=$x(n.identifier),[a,o]=(0,v.useState)(e),[s,c]=(0,v.useState)(t),[l,u]=(0,v.useState)(void 0);return(0,v.useLayoutEffect)(()=>{let n=null,a=null,s=!1,l=()=>{let n=r.current,s=document.getElementById(i);if(!n||!s)return;let l=s.getBoundingClientRect(),d=window.innerWidth,f=window.innerHeight,p=d-l.left-rS,m=l.right-rS;u(Math.max(p,m));let h=n.classList.contains(`invisible`);h&&(n.style.visibility=`hidden`,n.classList.remove(`invisible`)),a=eh(()=>{a=null;let r=n.getBoundingClientRect();h&&(n.style.visibility=``,n.classList.add(`invisible`));let i=t,s=f-l.bottom-nS,u=l.top-nS;t===`below`&&s<r.height?u>=r.height&&(i=`above`):t===`above`&&u<r.height&&s>=r.height&&(i=`below`);let p=e,m=d-l.left-rS,g=l.right-rS;e===`start`&&m<r.width?g>=r.width&&(p=`end`):e===`end`&&g<r.width&&m>=r.width&&(p=`start`),c(i),o(p)})},d=()=>{n||=eh(()=>{n=null,l()})},f=()=>{s||(s=!0,window.addEventListener(`scroll`,d,{passive:!0,capture:!0})),d()},p=()=>{s&&(s=!1,window.removeEventListener(`scroll`,d,!0))},m=document.getElementById(i);m&&(m.addEventListener(`mouseenter`,f,{passive:!0}),m.addEventListener(`focusin`,f,{passive:!0}),m.addEventListener(`mouseleave`,p,{passive:!0}),m.addEventListener(`focusout`,p,{passive:!0}));let h=new ResizeObserver(()=>{s&&d()});return r.current&&h.observe(r.current),window.addEventListener(`resize`,d,{passive:!0}),()=>{n?.(),a?.(),m&&(m.removeEventListener(`mouseenter`,f),m.removeEventListener(`focusin`,f),m.removeEventListener(`mouseleave`,p),m.removeEventListener(`focusout`,p)),h.disconnect(),window.removeEventListener(`resize`,d),window.removeEventListener(`scroll`,d,!0)}},[i,e,t]),(0,P.jsx)(tS,{...n,xAlign:a,yAlign:s,ref:r,style:{...n.style,maxWidth:l?`${l}px`:void 0}})},oS=iS;oS.Detail=aS;export{Xr as $,l as $t,sh as A,Ie as At,ip as B,Fe as Bt,G_ as C,zt as Ct,Hh as D,st as Dt,H_ as E,Et,Km as F,Ne as Ft,gi as G,Re as Gt,Qf as H,Se as Ht,Wm as I,we as It,pi as J,be as Jt,hi as K,je as Kt,Hm as L,Me as Lt,ih as M,xe as Mt,Xm as N,Te as Nt,Eh as O,nt as Ot,Ym as P,Le as Pt,Qr as Q,b as Qt,Up as R,Oe as Rt,U_ as S,Vt as St,B_ as T,Tt,Zf as U,Ae as Ut,$f as V,Ee as Vt,pl as W,ke as Wt,oi as X,ce as Xt,fi as Y,Be as Yt,ii as Z,le as Zt,W_ as _,cn as _t,Rx as a,sr as at,q_ as b,I as bt,Vx as c,tr as ct,Tx as d,Jn as dt,s as en,Jr as et,Sx as f,zn as ft,Hv as g,ln as gt,Xy as h,Cn as ht,qx as i,xr as it,oh as j,Ce as jt,bh as k,De as kt,Hx as l,Kn as lt,_x as m,In as mt,Zx as n,Nr as nt,zx as o,rr as ot,xx as p,R as pt,mi as q,Pe as qt,Xx as r,kr as rt,Bx as s,B as st,oS as t,o as tn,Pr as tt,Ux as u,er as ut,z_ as v,rn as vt,R_ as w,Dt as wt,V_ as x,F as xt,L_ as y,$t as yt,Bp as z,ze as zt};