ryugi-artifacts 1.120.6 → 1.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +9 -9
- package/dist/document-engine.cjs +227 -227
- package/dist/viewer/{AgentDock-DIfCUHgZ.js → AgentDock-BNyBNlSy.js} +2 -2
- package/dist/viewer/ArtboardLayout-6tJS23QW.js +14 -0
- package/dist/viewer/ArtifactList-C3N4BjKx.js +2 -0
- package/dist/viewer/{ArtifactModal-Fp67aW8M.js → ArtifactModal-CH9BY3RJ.js} +1 -1
- package/dist/viewer/{BottomSheet-SYC_8Y6k.js → BottomSheet-BFtfrr58.js} +1 -1
- package/dist/viewer/{BrandingMark-D8kdL9jc.js → BrandingMark-QZsHgEQs.js} +1 -1
- package/dist/viewer/{Canvas-CMN5apcj.js → Canvas-C4NA77Id.js} +1 -1
- package/dist/viewer/{CommentPopover-CxFndD1f.js → CommentPopover-BoOuSWYS.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-DyhweUFo.js → DocumentExportMenu-DrN19D4m.js} +1 -1
- package/dist/viewer/DocumentLayout-BjURocqM.js +2 -0
- package/dist/viewer/DocumentPage-H6a9SW4D.js +5 -0
- package/dist/viewer/DraftTray-JF38Iwzo.js +1 -0
- package/dist/viewer/{DraggablePanel-h7D7Tgnv.js → DraggablePanel-fUJe7paG.js} +1 -1
- package/dist/viewer/DropdownMenu-DrocGAAh.js +1 -0
- package/dist/viewer/{GroupVerdict-CSoZ7xIi.js → GroupVerdict-BCr6Cy0G.js} +1 -1
- package/dist/viewer/{HtmlLayout-DursBclJ.js → HtmlLayout-CeRlKG6z.js} +1 -1
- package/dist/viewer/{Input-CkHOfbQE.js → Input-BMZZLY98.js} +1 -1
- package/dist/viewer/MenuSubmenuTrigger-CPcD7vNW.js +1 -0
- package/dist/viewer/{PhoneArtboardBar-DOanenAY.js → PhoneArtboardBar-Dq5U0hhz.js} +1 -1
- package/dist/viewer/{Popover-HS6yjzxl.js → Popover-DxR9Dpf_.js} +1 -1
- package/dist/viewer/PreviewArtifactLayout-CDoR32LC.js +1 -0
- package/dist/viewer/PreviewLayout-C-sly_jL.js +2 -0
- package/dist/viewer/ReportLayout-CXSxsjVb.js +6 -0
- package/dist/viewer/{Segmented-D5ApsVJJ.js → Segmented-DoorRFgs.js} +1 -1
- package/dist/viewer/SelectScrollUpArrow-bXyfVgGf.js +1 -0
- package/dist/viewer/SlidesLayout-BDTPyuCv.js +12 -0
- package/dist/viewer/{SnapshotDocument-C7mV8NQn.js → SnapshotDocument-TKnFyGcv.js} +1 -1
- package/dist/viewer/{SplitFrame-zVgYFiT_.js → SplitFrame-CLquf6QT.js} +1 -1
- package/dist/viewer/StoryboardLayout-DB9qGegh.js +1 -0
- package/dist/viewer/{StoryboardRender-CjFlWvlf.js → StoryboardRender-CX00jo8v.js} +1 -1
- package/dist/viewer/ThreadView-D_g4kidg.js +1 -0
- package/dist/viewer/{Tooltip-Bi4V2FVJ.js → Tooltip-CZKrDYnF.js} +1 -1
- package/dist/viewer/VerifyLayout-DgokULV2.js +1 -0
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-CgOwRELB.js → VirtualizedEditor-uWe43zaI-BlOdeG0b.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-DiZVcTAc.js → VirtualizedRenderer-C_d95FXi-Bb6aPJaZ.js} +1 -1
- package/dist/viewer/{WarningsBadge-CyQbVl6h.js → WarningsBadge-D4Oo4UxO.js} +1 -1
- package/dist/viewer/WhiteboardEditor-DrHOvXez-DTa-K6Xu.js +22 -0
- package/dist/viewer/WhiteboardLayout-F1J1rwTl.js +4 -0
- package/dist/viewer/{WritingCursor-CLEFH9bN.js → WritingCursor-6VjqhSXi.js} +1 -1
- package/dist/viewer/agentLook-60JQrptF.js +1 -0
- package/dist/viewer/{artifact-list-CuXyveqX.js → artifact-list-BuB3wom1.js} +1 -1
- package/dist/viewer/auto-publish-BfutdvfM.js +1 -0
- package/dist/viewer/channel-DST3ZfoT.js +4 -0
- package/dist/viewer/comments-CASb0ByE.js +1 -0
- package/dist/viewer/context-Dt460deL.js +1 -0
- package/dist/viewer/{crop-encode-7FeBhORX.js → crop-encode-BnAM7iWo.js} +1 -1
- package/dist/viewer/{dist-DknksWkX.js → dist-2resm9Wy.js} +1 -1
- package/dist/viewer/{dist-f8YElrUw.js → dist-462HZ4sr.js} +1 -1
- package/dist/viewer/{dist-BKkO1Omj.js → dist-B7GHMwWJ.js} +1 -1
- package/dist/viewer/{dist-Ci8SGeFw.js → dist-B9cyrbzi.js} +1 -1
- package/dist/viewer/{dist-SwdVvEpO.js → dist-Bost_p8b.js} +1 -1
- package/dist/viewer/{dist-i1Gf9O6b.js → dist-Bw8MOHnL.js} +1 -1
- package/dist/viewer/{dist-DQI2slI5.js → dist-CAQYce5C.js} +1 -1
- package/dist/viewer/{dist-DW1-cTNS.js → dist-CEyDZYnP.js} +1 -1
- package/dist/viewer/{dist-CskHZfMU.js → dist-CJicYh3N.js} +1 -1
- package/dist/viewer/{dist-BD6XPyPx.js → dist-CLdHiTLp.js} +1 -1
- package/dist/viewer/{dist-1y-5eBAw.js → dist-CNry8POH.js} +1 -1
- package/dist/viewer/{dist-h__DIjgw.js → dist-CXJ-dwdV.js} +1 -1
- package/dist/viewer/{dist-D0fC7ysz.js → dist-Cfyg-ZFz.js} +1 -1
- package/dist/viewer/dist-CkWqj1vB.js +1 -0
- package/dist/viewer/{dist-Do_0jRES.js → dist-CrYVEXMn.js} +1 -1
- package/dist/viewer/{dist-D8T-VMuH.js → dist-D26TaXjP.js} +1 -1
- package/dist/viewer/{dist-h2T27ekx.js → dist-D32zdSlG.js} +1 -1
- package/dist/viewer/{dist-BI0qFRAy.js → dist-DUysbnVD.js} +1 -1
- package/dist/viewer/{dist-BQ22B1dL.js → dist-DV8S7O88.js} +1 -1
- package/dist/viewer/{dist-DqZiUlRF.js → dist-DlFC92UU.js} +1 -1
- package/dist/viewer/{dist-IhKVX0N7.js → dist-Dr8Mok4z.js} +1 -1
- package/dist/viewer/{dist-CvSBK4r1.js → dist-Dz80ecx_.js} +1 -1
- package/dist/viewer/{dist-Bo1t4X-Z.js → dist-N6Hpo5Ed.js} +1 -1
- package/dist/viewer/{dist-3kOakO1C.js → dist-gLcMD1Nm.js} +1 -1
- package/dist/viewer/{dist-V7e95zqk.js → dist-opUfcW4x.js} +1 -1
- package/dist/viewer/{editor-CLF22MpT.js → editor-rLQcZykK.js} +13 -13
- package/dist/viewer/{fit-BQe9RV4E.js → fit-C4QfFtXk.js} +1 -1
- package/dist/viewer/{icons-CCSPm9SD.js → icons-CDVhjQMS.js} +1 -1
- package/dist/viewer/{imperative-BeC0q_ho.js → imperative-CXmLprLo.js} +1 -1
- package/dist/viewer/index.html +11 -12
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index4.css +1 -1
- package/dist/viewer/index5.css +13 -0
- package/dist/viewer/{jump-history-B-4GHf3_.js → jump-history-Dyva9tQM.js} +1 -1
- package/dist/viewer/{local-DjzZ1b9A.js → local-B-SW6cqA.js} +1 -1
- package/dist/viewer/local-split-host-BGpkEBjP.js +1 -0
- package/dist/viewer/{plugin-_bGVeqI0-D20LzbhT.js → plugin-_bGVeqI0-C4RRMCGb.js} +2 -2
- package/dist/viewer/preview.html +3 -3
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-DmnjWjBu.js → printDocument-BhGNF0gC.js} +1 -1
- package/dist/viewer/{ref-DjRYiP25.js → ref-BrUHq8E2.js} +1 -1
- package/dist/viewer/{ref-problem-DkSEcIQm.js → ref-problem-Cvl83U9T.js} +1 -1
- package/dist/viewer/{route-BEA0O_Ry.js → route-i3jkzu-i.js} +2 -2
- package/dist/viewer/{route-messages-o8lg2hOP.js → route-messages-MxWI01S2.js} +1 -1
- package/dist/viewer/settings-BSB6g2PC.js +1 -0
- package/dist/viewer/snap-iBOqhRtA.js +1 -0
- package/dist/viewer/split-CxmPPvad.js +2 -0
- package/dist/viewer/{stable-DP74aChD.js → stable-CK-LXZNI.js} +1 -1
- package/dist/viewer/{styles-BtwjIslZ.js → styles-Dtxz8FDa.js} +1 -1
- package/dist/viewer/transport-ork1P0iQ.js +1 -0
- package/dist/viewer/url-Buh8E05T.js +29 -0
- package/dist/viewer/{useArtifactFeed-CYcXA6yE.js → useArtifactFeed-lKf4zuoV.js} +1 -1
- package/dist/viewer/useCommentPrimary-YlizG1nk.js +1 -0
- package/dist/viewer/useDrafts-WX84YtG1.js +1 -0
- package/dist/viewer/{useLayerZIndex-C1JpT09z.js → useLayerZIndex-C75Wfz8T.js} +1 -1
- package/dist/viewer/useRefBoard-0QUs4dWN.js +1 -0
- package/dist/viewer/{useStoryboardData-CbleqK_E.js → useStoryboardData-BYHJhILA.js} +1 -1
- package/dist/viewer/{view-Bw41z8XN.js → view-BOFvn2hm.js} +1 -1
- package/dist/viewer/view-drafts-DXKEb89H.js +1 -0
- package/dist/viewer/{viewport-CFJHn_Y6-GTpeksto.js → viewport-CFJHn_Y6-B_DJWWd0.js} +1 -1
- package/package.json +2 -2
- package/dist/viewer/ArtboardLayout-BNViVZgT.js +0 -14
- package/dist/viewer/ArtifactList-3kGz4_Vv.js +0 -2
- package/dist/viewer/DocumentLayout-BxFYyKFq.js +0 -2
- package/dist/viewer/DocumentPage-CP8Qy9Ae.js +0 -5
- package/dist/viewer/DropdownMenu-Dza6-jeN.js +0 -1
- package/dist/viewer/MenuSubmenuTrigger-CLeiXsan.js +0 -1
- package/dist/viewer/PreviewArtifactLayout-NXoiF_BV.js +0 -1
- package/dist/viewer/PreviewLayout-eg8-py8p.js +0 -2
- package/dist/viewer/ReportLayout-w7Tkbjp6.js +0 -6
- package/dist/viewer/SelectScrollUpArrow-BFRXZrFq.js +0 -1
- package/dist/viewer/SlidesLayout-B1mwiNJH.js +0 -12
- package/dist/viewer/StoryboardLayout-CWuqD7XK.js +0 -1
- package/dist/viewer/ThreadView-DTGR5uqU.js +0 -1
- package/dist/viewer/VerifyLayout-DtRz6K2y.js +0 -1
- package/dist/viewer/WhiteboardEditor-DrHOvXez-Bd1MyHmC.js +0 -22
- package/dist/viewer/WhiteboardLayout-D-gmpAvD.js +0 -4
- package/dist/viewer/agentLook-BPPrbQJ3.js +0 -1
- package/dist/viewer/auto-publish-DK402eHG.js +0 -1
- package/dist/viewer/channel-RZcAq9dq.js +0 -4
- package/dist/viewer/comments-DUAz1Q9X.js +0 -1
- package/dist/viewer/dist-BjB8i81Z.js +0 -1
- package/dist/viewer/local-split-host-CeKHc_JX.js +0 -1
- package/dist/viewer/settings-BQ3tJuXQ.js +0 -1
- package/dist/viewer/snap-Dh3ZoMla.js +0 -1
- package/dist/viewer/split-BZPaH4G4.js +0 -2
- package/dist/viewer/transport-7BF3TWU4.js +0 -1
- package/dist/viewer/url-BaZreTXB.js +0 -29
- package/dist/viewer/useArtifactSocket-CZwBSmOD.js +0 -1
- package/dist/viewer/useRefBoard-Cj5dzC4F.js +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,S as n,d as r,j as i,o as a,r as o,u as s}from"./route-BEA0O_Ry.js";import{n as c,r as l,t as u}from"./bem-vbke-3KC.js";import{t as d}from"./react-DlmbjZJV.js";import{t as f}from"./jsx-runtime-LKYXHABd.js";import{$r as p,A as m,An as h,At as g,B as _,Bn as v,Bt as y,C as b,Ct as x,Dn as S,Dr as C,Dt as w,E as T,En as E,Et as D,F as O,Fn as k,Fr as A,Ft as j,G as M,Gn as N,Gr as P,Gt as F,Hn as I,Ht as ee,In as te,Ir as L,It as R,J as z,Jn as B,K as ne,Kn as V,Kt as H,Lt as re,M as U,Mn as ie,Mt as ae,N as oe,Nn as W,Nt as se,On as ce,Ot as le,P as ue,Pn as de,Pr as fe,Q as pe,Qn as me,Qr as he,Rn as ge,Rt as _e,S as ve,Sn as ye,St as be,T as xe,Tn as Se,Tt as Ce,Un as we,Ut as Te,V as Ee,Vn as De,Vr as Oe,Vt as ke,Wn as Ae,Xn as je,Xr as Me,Yn as G,Yr as Ne,Zn as Pe,Zr as K,_ as Fe,_r as Ie,_t as Le,ai as Re,an as ze,at as Be,b as Ve,bn as He,bt as Ue,cn as We,cr as Ge,dn as Ke,dr as qe,dt as Je,ei as Ye,er as Xe,fn as Ze,ft as Qe,gn as $e,gr as et,gt as tt,ht as nt,i as rt,ii as it,in as at,it as ot,j as st,jn as ct,jt as lt,k as ut,kn as dt,kr as ft,kt as pt,l as mt,ln as ht,lr as gt,lt as _t,mt as vt,ni as yt,nn as bt,nr as xt,nt as St,on as Ct,ot as wt,pn as Tt,pt as Et,qn as Dt,r as Ot,ri as kt,rn as At,rr as jt,rt as Mt,sn as q,t as Nt,ti as J,tn as Pt,tr as Ft,un as It,ut as Lt,v as Rt,vn as zt,vt as Bt,w as Vt,wt as Ht,xt as Ut,y as Wt,yn as Gt,yt as Kt,zn as qt,zr as Y,zt as Jt}from"./useLayerZIndex-C1JpT09z.js";import{$ as Yt,A as Xt,C as Zt,D as Qt,Dt as $t,E as en,F as tn,H as nn,J as rn,K as an,L as on,M as sn,O as cn,P as ln,Q as un,R as dn,S as fn,T as pn,U as mn,V as hn,W as gn,X as _n,Y as vn,Z as yn,_ as bn,_t as xn,a as Sn,at as Cn,b as wn,bt as Tn,ct as En,d as Dn,dt as On,et as kn,f as An,ft as jn,g as Mn,h as Nn,ht as Pn,i as Fn,it as In,j as Ln,k as Rn,l as zn,lt as Bn,m as Vn,mt as Hn,n as Un,nt as Wn,o as Gn,ot as Kn,pt as qn,q as Jn,r as Yn,rt as Xn,s as Zn,t as Qn,tt as $n,ut as er,v as tr,vt as nr,w as rr,wt as ir,x as ar,xt as or,y as sr,yt as cr,z as lr}from"./MotionConfigContext-BqjwrGj9.js";import{n as ur,t as dr}from"./is-html-element-DvgHo_1h.js";var X=e(d(),1),fr=e=>{let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t},pr=(0,X.memo)(({url:e})=>{let t=(0,X.useRef)(null);return(0,X.useEffect)(()=>{let n=fr(e);document.head.append(n),t.current=n;let r=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener(`error`,r),()=>{n.removeEventListener(`error`,r),n.remove(),t.current=null}},[e]),null});pr.displayName=`FontLoader`;var mr=`
|
|
2
|
-
[data-lobe-global-focus-ring] {
|
|
3
|
-
all: initial;
|
|
4
|
-
position: fixed;
|
|
5
|
-
position-anchor: --lobe-global-focus;
|
|
6
|
-
top: anchor(top);
|
|
7
|
-
right: anchor(right);
|
|
8
|
-
bottom: anchor(bottom);
|
|
9
|
-
left: anchor(left);
|
|
10
|
-
position-visibility: anchors-visible;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
border-radius: inherit;
|
|
13
|
-
outline: 2px solid ${(e=>`color-mix(in srgb, ${e} 90%, transparent)`)(`var(--lobe-focus-ring-color)`)};
|
|
14
|
-
outline-offset: 2px;
|
|
15
|
-
animation: lobe-global-focus-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
16
|
-
}
|
|
17
|
-
[data-lobe-global-focus-ring]:not(:popover-open) { display: none; }
|
|
18
|
-
[data-lobe-global-focus-ring]::backdrop { background: transparent; pointer-events: none; }
|
|
19
|
-
@keyframes lobe-global-focus-in {
|
|
20
|
-
from { opacity: 0.25; outline-offset: 5px; }
|
|
21
|
-
to { opacity: 1; outline-offset: 2px; }
|
|
22
|
-
}
|
|
23
|
-
@media (prefers-reduced-motion: reduce) {
|
|
24
|
-
[data-lobe-global-focus-ring] { animation: none; }
|
|
25
|
-
}
|
|
26
|
-
@media (forced-colors: active) {
|
|
27
|
-
[data-lobe-global-focus-ring] { outline-color: CanvasText; animation: none; }
|
|
28
|
-
}
|
|
29
|
-
`,hr=new WeakMap,gr=(e=document)=>{let t=hr.get(e);if(t){t.users+=1;let e=!1;return()=>{e||(e=!0,--t.users===0&&t.dispose())}}let n=e.defaultView;if(!n||!e.body||!n.CSS?.supports(`top`,`anchor(top)`)||!n.CSS.supports(`position-visibility`,`anchors-visible`)||!(`showPopover`in e.createElement(`div`)))return()=>{};let r=e.createElement(`style`);r.textContent=mr;let i=e.createElement(`div`);i.setAttribute(`data-lobe-global-focus-ring`,``),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`popover`,`manual`),e.head.append(r),e.body.append(i);let a,o,s=0,c=!1,l=()=>{i.matches(`:popover-open`)&&i.hidePopover(),o?.(),o=void 0,a=void 0},u=()=>{if(c)return;let t=e.activeElement;if(t===a&&t?.matches(`:focus-visible`)&&t.isConnected&&i.matches(`:popover-open`)||(l(),!t||t===e.body||t.namespaceURI!==`http://www.w3.org/1999/xhtml`||t.shadowRoot||t.closest(`[data-lobe-focus-ring="off"]`)||t.matches(`[data-lobe-focus-ring="self-off"]`)||t.matches(`textarea`)||t.isContentEditable||t.matches(`input`)&&![`button`,`submit`,`reset`,`image`,`checkbox`,`radio`,`range`,`color`,`file`].includes(t.type)||!t.matches(`:focus-visible`)))return;let r=t,s=r.parentElement;for(;s&&n.getComputedStyle(s).contain===`none`;)s=s.parentElement;let u=s||e.body,f=i.parentElement!==u;f&&u.append(i);let p=n.getComputedStyle(r),m=p.borderRadius,h=p.getPropertyValue(`--lobe-focus-ring-color`).trim()||p.getPropertyValue(`--lobe-color-info`).trim()||`#1677ff`,g=i.style.borderRadius!==m||i.style.getPropertyValue(`--lobe-focus-ring-color`)!==h;if(g&&(i.style.borderRadius=m,i.style.setProperty(`--lobe-focus-ring-color`,h)),f||g){d();return}let _=[`anchor-name`,`outline`].map(e=>({priority:r.style.getPropertyPriority(e),property:e,value:r.style.getPropertyValue(e)})),v=r.getAttribute(`data-lobe-focus-ring`),y=p.getPropertyValue(`anchor-name`).trim(),b=y&&y!==`none`?`${y}, --lobe-global-focus`:`--lobe-global-focus`;r.style.setProperty(`anchor-name`,b,`important`),o=()=>{for(let{property:e,value:t,priority:n}of _){let i=e===`anchor-name`?b:`none`;r.style.getPropertyValue(e)===i&&(t?r.style.setProperty(e,t,n):r.style.removeProperty(e))}r.getAttribute(`data-lobe-focus-ring`)===`managed`&&(v===null?r.removeAttribute(`data-lobe-focus-ring`):r.setAttribute(`data-lobe-focus-ring`,v))};let x=r.getBoundingClientRect();if(r.getClientRects().length!==1||!x.width||!x.height||p.visibility!==`visible`)l();else try{i.showPopover();let e=i.getBoundingClientRect();if(Math.max(...[`top`,`right`,`bottom`,`left`].map(t=>Math.abs(e[t]-x[t])))>1){l();return}r.style.setProperty(`outline`,`none`,`important`),r.setAttribute(`data-lobe-focus-ring`,`managed`),a=r}catch{l()}},d=()=>{s||=n.requestAnimationFrame(()=>{s=0,u()})},f=()=>n.queueMicrotask(u),p=()=>{n.cancelAnimationFrame(s),s=0,i.matches(`:popover-open`)&&i.hidePopover()},m=new MutationObserver(()=>{a&&!a.isConnected&&l()});return m.observe(e.body,{childList:!0,subtree:!0}),e.addEventListener(`focusin`,f,!0),e.addEventListener(`focusout`,d,!0),e.addEventListener(`keydown`,d,!0),e.addEventListener(`pointerdown`,d,!0),n.addEventListener(`blur`,p),n.addEventListener(`focus`,d),hr.set(e,{dispose:()=>{c=!0,n.cancelAnimationFrame(s),m.disconnect(),e.removeEventListener(`focusin`,f,!0),e.removeEventListener(`focusout`,d,!0),e.removeEventListener(`keydown`,d,!0),e.removeEventListener(`pointerdown`,d,!0),n.removeEventListener(`blur`,p),n.removeEventListener(`focus`,d),l(),i.remove(),r.remove(),hr.delete(e)},users:0}),u(),gr(e)},Z=f(),_r=(0,X.createContext)(null);(0,X.memo)(({children:e,motion:t})=>(0,Z.jsx)(_r,{value:t,children:e}));var vr=()=>{let e=(0,X.use)(_r);if(!e)throw Error(`Please wrap your app with <ConfigProvider> (or <MotionProvider>) and pass the motion component`);return e},yr=`https://unpkg.com`,br=`https://registry.npmmirror.com`,xr=(e,...t)=>{let n=[e.replace(/\/+$/,``),...t.map(e=>e.replaceAll(/^\/+|\/+$/g,``))].filter(Boolean).join(`/`);return t.at(-1)?.endsWith(`/`)?`${n}/`:n},Sr=({pkg:e,version:t=`latest`,path:n,proxy:r})=>{switch(r){case`unpkg`:return xr(yr,`${e}@${t}`,n);default:return xr(br,e,t,`files`,n)}},Cr=[{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist-mono`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-harmony-sans`,version:`1.0.0`},{path:`css/index5.css`,pkg:`@lobehub/webfont-harmony-sans-sc`,version:`1.0.0`},{path:`dist/katex.min.css`,pkg:`katex`,version:`0.19.0`}],wr=`lobe-ui-theme-app`,Tr=(0,X.createContext)(null),Er=(0,X.createContext)(`ltr`),Dr=(0,X.createContext)({locale:`en`,t:e=>e}),Or=e=>typeof e?.then==`function`,kr=(0,X.memo)(({children:e,config:t,customFonts:n,direction:r=`ltr`,enableCustomFonts:i=!0,locale:a,resources:o,motion:s})=>{let[c,l]=(0,X.useState)(null);(0,X.useEffect)(()=>{if(t?.globalFocusRing!==!1)return gr()},[t?.globalFocusRing]);let u=a??`en`,[d,f]=(0,X.useState)(()=>o&&!Or(o)?o:void 0),[p,m]=(0,X.useState)(u),h=(0,X.useRef)(0);(0,X.useEffect)(()=>{let e=++h.current;if(!o)f(void 0),m(u);else if(Or(o)){let t=u;o.then(n=>{h.current===e&&(f(n),m(t))}).catch(()=>{h.current})}else f(o),m(u)},[u,o]);let g=Or(o)?d:o,_=Or(o)?p:u,v=(0,X.useMemo)(()=>{let e=Array.isArray(g)?g:g?Object.values(g):[],t=Object.assign({},...e);return{locale:_,t:e=>t[e]||e}},[_,g]);return(0,Z.jsx)(Dr,{value:v,children:(0,Z.jsx)(Tr,{value:t??null,children:(0,Z.jsx)(Er,{value:r,children:(0,Z.jsx)(_r,{value:s,children:(0,Z.jsxs)(it,{value:c,children:[i&&(0,Z.jsx)(jr,{customFonts:n}),e,(0,Z.jsx)(`div`,{"data-lobe-portal-host":``,id:wr,ref:l,style:Ar})]})})})})})}),Ar={height:0,left:0,position:`fixed`,right:0,top:0,zIndex:1100},jr=({customFonts:e})=>{let t=Nr();return(0,X.useMemo)(()=>e||Cr.map(e=>t(e)),[e,t]).map(e=>(0,Z.jsx)(pr,{url:e},e))},Mr=({pkg:e,version:t,path:n})=>Sr({path:n,pkg:e,proxy:`aliyun`,version:t}),Nr=()=>{let e=(0,X.use)(Tr);return e?e?.proxy===`custom`?e?.customCdnFn||Mr:({pkg:t,version:n,path:r})=>Sr({path:r,pkg:t,proxy:e.proxy,version:n}):Mr},Pr=()=>(0,X.use)(Dr);function Fr({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=X.useRef(e!==void 0),[a,o]=X.useState(()=>t);return[i&&e!==void 0?e:a,X.useCallback(e=>{i||o(e)},[])]}var Ir=X.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Lr(){return X.useContext(Ir)}function Rr(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=J(i),[,o]=X.useState(0),s=yt(Br).current,c=yt(zr).current,l=X.useRef(0),u=X.useRef(!0),d=X.useRef(null),f=X.useRef(null),p=J(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=J((e,t)=>{c.set(e,t),p()}),h=J(e=>{c.delete(e),p()}),g=J(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Ur(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Wr(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Hr(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=J(()=>{let[e,t]=Vr(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});K(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),K(()=>{u.current&&v()}),K(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=J(e=>(s.add(e),()=>{s.delete(e)})),b=X.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,Z.jsx)(Ir.Provider,{value:b,children:t})}function zr(){return new Map}function Br(){return new Set}function Vr(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Wr(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Hr(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Ur(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Wr(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Gr(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Lr(),u=X.useRef(-1),[d,f]=X.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=X.useRef(null),h=X.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return K(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Kr={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Kr.node;var qr=$t(Kr),Jr={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Jr.node;var Yr=$t(Jr),Xr={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Xr.node;var Zr=$t(Xr),Qr={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Qr.node;var $r=$t(Qr),ei={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};ei.node;var ti=$t(ei),ni={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ni.node;var ri=$t(ni),ii={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ii.node;var ai=$t(ii),oi={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};oi.node;var si=$t(oi),ci={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};ci.node;var li=$t(ci),ui={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ui.node;var di=$t(ui),fi={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};fi.node;var pi=$t(fi),mi={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};mi.node;var hi=$t(mi),gi={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};gi.node;var _i=$t(gi),vi={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};vi.node;var yi=$t(vi),bi={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};bi.node;var xi=$t(bi),Si={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Si.node;var Ci=$t(Si),wi={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};wi.node;var Ti=$t(wi),Ei={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Ei.node;var Di=$t(Ei),Oi=e(t(),1),ki=u({block:`button`,dataAttributes:[`type`,`size`,`shape`,`danger`,`ghost`,`loading`,`block`],elements:[`icon`,`spinner`]});u({block:`split-button`,dataAttributes:[`type`,`size`,`danger`,`loading`],elements:[`main`,`menu`]});var Ai={borderRadiusOuter:`var(--lobe-border-radius-outer)`,colorTextLightSolid:`var(--lobe-color-text-light-solid)`,colorWhite:`var(--lobe-color-white)`,controlHeightLG:`var(--lobe-control-height-lg)`,controlHeightSM:`var(--lobe-control-height-sm)`,controlHeightXS:`var(--lobe-control-height-xs)`,controlInteractiveSize:`var(--lobe-control-interactive-size)`,controlOutlineWidth:`var(--lobe-control-outline-width)`,controlPaddingHorizontal:`var(--lobe-control-padding-horizontal)`,controlPaddingHorizontalSM:`var(--lobe-control-padding-horizontal-sm)`,fontHeight:`var(--lobe-font-height)`,fontHeightLG:`var(--lobe-font-height-lg)`,fontHeightSM:`var(--lobe-font-height-sm)`,fontSize:`var(--lobe-font-size)`,fontSizeHeading1:`var(--lobe-font-size-heading-1)`,fontSizeHeading2:`var(--lobe-font-size-heading-2)`,fontSizeHeading3:`var(--lobe-font-size-heading-3)`,fontSizeHeading4:`var(--lobe-font-size-heading-4)`,fontSizeHeading5:`var(--lobe-font-size-heading-5)`,fontSizeIcon:`var(--lobe-font-size-icon)`,fontSizeLG:`var(--lobe-font-size-lg)`,fontSizeSM:`var(--lobe-font-size-sm)`,fontSizeXL:`var(--lobe-font-size-xl)`,fontWeightStrong:`var(--lobe-font-weight-strong)`,lineHeight:`var(--lobe-line-height)`,lineHeightHeading1:`var(--lobe-line-height-heading-1)`,lineHeightHeading2:`var(--lobe-line-height-heading-2)`,lineHeightHeading3:`var(--lobe-line-height-heading-3)`,lineHeightHeading4:`var(--lobe-line-height-heading-4)`,lineHeightHeading5:`var(--lobe-line-height-heading-5)`,lineHeightLG:`var(--lobe-line-height-lg)`,lineHeightSM:`var(--lobe-line-height-sm)`,lineType:`var(--lobe-line-type)`,lineWidth:`var(--lobe-line-width)`,lineWidthBold:`var(--lobe-line-width-bold)`,lineWidthFocus:`var(--lobe-line-width-focus)`,linkDecoration:`var(--lobe-link-decoration)`,linkFocusDecoration:`var(--lobe-link-focus-decoration)`,linkHoverDecoration:`var(--lobe-link-hover-decoration)`,margin:`var(--lobe-margin)`,marginLG:`var(--lobe-margin-lg)`,marginMD:`var(--lobe-margin-md)`,marginSM:`var(--lobe-margin-sm)`,marginXL:`var(--lobe-margin-xl)`,marginXS:`var(--lobe-margin-xs)`,marginXXL:`var(--lobe-margin-xxl)`,marginXXS:`var(--lobe-margin-xxs)`,motionDurationFast:`var(--lobe-motion-duration-fast)`,motionDurationMid:`var(--lobe-motion-duration-mid)`,motionDurationSlow:`var(--lobe-motion-duration-slow)`,motionEaseInBack:`var(--lobe-motion-ease-in-back)`,motionEaseInOut:`var(--lobe-motion-ease-in-out)`,motionEaseInOutCirc:`var(--lobe-motion-ease-in-out-circ)`,motionEaseInQuint:`var(--lobe-motion-ease-in-quint)`,motionEaseOut:`var(--lobe-motion-ease-out)`,motionEaseOutBack:`var(--lobe-motion-ease-out-back)`,motionEaseOutCirc:`var(--lobe-motion-ease-out-circ)`,motionEaseOutQuint:`var(--lobe-motion-ease-out-quint)`,motionSpringBouncy:`var(--lobe-motion-spring-bouncy)`,motionSpringSmooth:`var(--lobe-motion-spring-smooth)`,motionSpringSnappy:`var(--lobe-motion-spring-snappy)`,opacityImage:`var(--lobe-opacity-image)`,opacityLoading:`var(--lobe-opacity-loading)`,padding:`var(--lobe-padding)`,paddingContentHorizontal:`var(--lobe-padding-content-horizontal)`,paddingContentHorizontalLG:`var(--lobe-padding-content-horizontal-lg)`,paddingContentHorizontalSM:`var(--lobe-padding-content-horizontal-sm)`,paddingContentVertical:`var(--lobe-padding-content-vertical)`,paddingContentVerticalLG:`var(--lobe-padding-content-vertical-lg)`,paddingContentVerticalSM:`var(--lobe-padding-content-vertical-sm)`,paddingLG:`var(--lobe-padding-lg)`,paddingMD:`var(--lobe-padding-md)`,paddingSM:`var(--lobe-padding-sm)`,paddingXL:`var(--lobe-padding-xl)`,paddingXS:`var(--lobe-padding-xs)`,paddingXXS:`var(--lobe-padding-xxs)`,pink:`var(--lobe-pink)`,screenLG:`var(--lobe-screen-lg)`,screenLGMax:`var(--lobe-screen-lg-max)`,screenLGMin:`var(--lobe-screen-lg-min)`,screenMD:`var(--lobe-screen-md)`,screenMDMax:`var(--lobe-screen-md-max)`,screenMDMin:`var(--lobe-screen-md-min)`,screenSM:`var(--lobe-screen-sm)`,screenSMMax:`var(--lobe-screen-sm-max)`,screenSMMin:`var(--lobe-screen-sm-min)`,screenXL:`var(--lobe-screen-xl)`,screenXLMax:`var(--lobe-screen-xl-max)`,screenXLMin:`var(--lobe-screen-xl-min)`,screenXS:`var(--lobe-screen-xs)`,screenXSMax:`var(--lobe-screen-xs-max)`,screenXSMin:`var(--lobe-screen-xs-min)`,screenXXL:`var(--lobe-screen-xxl)`,screenXXLMax:`var(--lobe-screen-xxl-max)`,screenXXLMin:`var(--lobe-screen-xxl-min)`,screenXXXL:`var(--lobe-screen-xxxl)`,screenXXXLMin:`var(--lobe-screen-xxxl-min)`,size:`var(--lobe-size)`,sizeLG:`var(--lobe-size-lg)`,sizeMD:`var(--lobe-size-md)`,sizeMS:`var(--lobe-size-ms)`,sizePopupArrow:`var(--lobe-size-popup-arrow)`,sizeSM:`var(--lobe-size-sm)`,sizeStep:`var(--lobe-size-step)`,sizeUnit:`var(--lobe-size-unit)`,sizeXL:`var(--lobe-size-xl)`,sizeXS:`var(--lobe-size-xs)`,sizeXXL:`var(--lobe-size-xxl)`,sizeXXS:`var(--lobe-size-xxs)`,zIndexBase:`var(--lobe-z-index-base)`,zIndexPopupBase:`var(--lobe-z-index-popup-base)`,borderRadius:`var(--lobe-border-radius)`,borderRadiusLG:`var(--lobe-border-radius-lg)`,borderRadiusSM:`var(--lobe-border-radius-sm)`,borderRadiusXS:`var(--lobe-border-radius-xs)`,controlHeight:`var(--lobe-control-height)`,fontFamily:`var(--lobe-font-family)`,fontFamilyCode:`var(--lobe-font-family-code)`,boxShadowCard:`var(--lobe-box-shadow-card)`,boxShadowDrawerDown:`var(--lobe-box-shadow-drawer-down)`,boxShadowDrawerLeft:`var(--lobe-box-shadow-drawer-left)`,boxShadowDrawerRight:`var(--lobe-box-shadow-drawer-right)`,boxShadowDrawerUp:`var(--lobe-box-shadow-drawer-up)`,boxShadowPopoverArrow:`var(--lobe-box-shadow-popover-arrow)`,boxShadowTabsOverflowBottom:`var(--lobe-box-shadow-tabs-overflow-bottom)`,boxShadowTabsOverflowLeft:`var(--lobe-box-shadow-tabs-overflow-left)`,boxShadowTabsOverflowRight:`var(--lobe-box-shadow-tabs-overflow-right)`,boxShadowTabsOverflowTop:`var(--lobe-box-shadow-tabs-overflow-top)`,colorBgBase:`var(--lobe-color-bg-base)`,colorBgBlur:`var(--lobe-color-bg-blur)`,colorBgSolid:`var(--lobe-color-bg-solid)`,colorBgSolidActive:`var(--lobe-color-bg-solid-active)`,colorBgSolidHover:`var(--lobe-color-bg-solid-hover)`,colorBorderDisabled:`var(--lobe-color-border-disabled)`,colorErrorBgActive:`var(--lobe-color-error-bg-active)`,colorErrorBgFilledHover:`var(--lobe-color-error-bg-filled-hover)`,colorShadow:`var(--lobe-color-shadow)`,colorTextBase:`var(--lobe-color-text-base)`,dropShadowPopover:`var(--lobe-drop-shadow-popover)`,pink1:`var(--lobe-pink-1)`,pink10:`var(--lobe-pink-10)`,pink2:`var(--lobe-pink-2)`,pink3:`var(--lobe-pink-3)`,pink4:`var(--lobe-pink-4)`,pink5:`var(--lobe-pink-5)`,pink6:`var(--lobe-pink-6)`,pink7:`var(--lobe-pink-7)`,pink8:`var(--lobe-pink-8)`,pink9:`var(--lobe-pink-9)`,pinkActive:`var(--lobe-pink-active)`,pinkHover:`var(--lobe-pink-hover)`,colorErrorFill:`var(--lobe-color-error-fill)`,colorErrorFillSecondary:`var(--lobe-color-error-fill-secondary)`,colorErrorFillTertiary:`var(--lobe-color-error-fill-tertiary)`,colorErrorFillQuaternary:`var(--lobe-color-error-fill-quaternary)`,colorErrorBg:`var(--lobe-color-error-bg)`,colorErrorBgHover:`var(--lobe-color-error-bg-hover)`,colorErrorBorder:`var(--lobe-color-error-border)`,colorErrorBorderHover:`var(--lobe-color-error-border-hover)`,colorErrorHover:`var(--lobe-color-error-hover)`,colorError:`var(--lobe-color-error)`,colorErrorActive:`var(--lobe-color-error-active)`,colorErrorTextHover:`var(--lobe-color-error-text-hover)`,colorErrorText:`var(--lobe-color-error-text)`,colorErrorTextActive:`var(--lobe-color-error-text-active)`,colorInfoFill:`var(--lobe-color-info-fill)`,colorInfoFillSecondary:`var(--lobe-color-info-fill-secondary)`,colorInfoFillTertiary:`var(--lobe-color-info-fill-tertiary)`,colorInfoFillQuaternary:`var(--lobe-color-info-fill-quaternary)`,colorInfoBg:`var(--lobe-color-info-bg)`,colorInfoBgHover:`var(--lobe-color-info-bg-hover)`,colorInfoBorder:`var(--lobe-color-info-border)`,colorInfoBorderHover:`var(--lobe-color-info-border-hover)`,colorInfoHover:`var(--lobe-color-info-hover)`,colorInfo:`var(--lobe-color-info)`,colorInfoActive:`var(--lobe-color-info-active)`,colorInfoTextHover:`var(--lobe-color-info-text-hover)`,colorInfoText:`var(--lobe-color-info-text)`,colorInfoTextActive:`var(--lobe-color-info-text-active)`,colorSuccessFill:`var(--lobe-color-success-fill)`,colorSuccessFillSecondary:`var(--lobe-color-success-fill-secondary)`,colorSuccessFillTertiary:`var(--lobe-color-success-fill-tertiary)`,colorSuccessFillQuaternary:`var(--lobe-color-success-fill-quaternary)`,colorSuccessBg:`var(--lobe-color-success-bg)`,colorSuccessBgHover:`var(--lobe-color-success-bg-hover)`,colorSuccessBorder:`var(--lobe-color-success-border)`,colorSuccessBorderHover:`var(--lobe-color-success-border-hover)`,colorSuccessHover:`var(--lobe-color-success-hover)`,colorSuccess:`var(--lobe-color-success)`,colorSuccessActive:`var(--lobe-color-success-active)`,colorSuccessTextHover:`var(--lobe-color-success-text-hover)`,colorSuccessText:`var(--lobe-color-success-text)`,colorSuccessTextActive:`var(--lobe-color-success-text-active)`,colorWarningFill:`var(--lobe-color-warning-fill)`,colorWarningFillSecondary:`var(--lobe-color-warning-fill-secondary)`,colorWarningFillTertiary:`var(--lobe-color-warning-fill-tertiary)`,colorWarningFillQuaternary:`var(--lobe-color-warning-fill-quaternary)`,colorWarningBg:`var(--lobe-color-warning-bg)`,colorWarningBgHover:`var(--lobe-color-warning-bg-hover)`,colorWarningBorder:`var(--lobe-color-warning-border)`,colorWarningBorderHover:`var(--lobe-color-warning-border-hover)`,colorWarningHover:`var(--lobe-color-warning-hover)`,colorWarning:`var(--lobe-color-warning)`,colorWarningActive:`var(--lobe-color-warning-active)`,colorWarningTextHover:`var(--lobe-color-warning-text-hover)`,colorWarningText:`var(--lobe-color-warning-text)`,colorWarningTextActive:`var(--lobe-color-warning-text-active)`,blue1:`var(--lobe-blue-1)`,blue2:`var(--lobe-blue-2)`,blue3:`var(--lobe-blue-3)`,blue4:`var(--lobe-blue-4)`,blue5:`var(--lobe-blue-5)`,blue6:`var(--lobe-blue-6)`,blue7:`var(--lobe-blue-7)`,blue8:`var(--lobe-blue-8)`,blue9:`var(--lobe-blue-9)`,blue10:`var(--lobe-blue-10)`,blue11:`var(--lobe-blue-11)`,blue1A:`var(--lobe-blue-1-a)`,blue2A:`var(--lobe-blue-2-a)`,blue3A:`var(--lobe-blue-3-a)`,blue4A:`var(--lobe-blue-4-a)`,blue5A:`var(--lobe-blue-5-a)`,blue6A:`var(--lobe-blue-6-a)`,blue7A:`var(--lobe-blue-7-a)`,blue8A:`var(--lobe-blue-8-a)`,blue9A:`var(--lobe-blue-9-a)`,blue10A:`var(--lobe-blue-10-a)`,blue11A:`var(--lobe-blue-11-a)`,blueFill:`var(--lobe-blue-fill)`,blueFillSecondary:`var(--lobe-blue-fill-secondary)`,blueFillTertiary:`var(--lobe-blue-fill-tertiary)`,blueFillQuaternary:`var(--lobe-blue-fill-quaternary)`,blueBg:`var(--lobe-blue-bg)`,blueBgHover:`var(--lobe-blue-bg-hover)`,blueBorder:`var(--lobe-blue-border)`,blueBorderSecondary:`var(--lobe-blue-border-secondary)`,blueBorderHover:`var(--lobe-blue-border-hover)`,blueHover:`var(--lobe-blue-hover)`,blue:`var(--lobe-blue)`,blueActive:`var(--lobe-blue-active)`,blueTextHover:`var(--lobe-blue-text-hover)`,blueText:`var(--lobe-blue-text)`,blueTextActive:`var(--lobe-blue-text-active)`,cyan1:`var(--lobe-cyan-1)`,cyan2:`var(--lobe-cyan-2)`,cyan3:`var(--lobe-cyan-3)`,cyan4:`var(--lobe-cyan-4)`,cyan5:`var(--lobe-cyan-5)`,cyan6:`var(--lobe-cyan-6)`,cyan7:`var(--lobe-cyan-7)`,cyan8:`var(--lobe-cyan-8)`,cyan9:`var(--lobe-cyan-9)`,cyan10:`var(--lobe-cyan-10)`,cyan11:`var(--lobe-cyan-11)`,cyan1A:`var(--lobe-cyan-1-a)`,cyan2A:`var(--lobe-cyan-2-a)`,cyan3A:`var(--lobe-cyan-3-a)`,cyan4A:`var(--lobe-cyan-4-a)`,cyan5A:`var(--lobe-cyan-5-a)`,cyan6A:`var(--lobe-cyan-6-a)`,cyan7A:`var(--lobe-cyan-7-a)`,cyan8A:`var(--lobe-cyan-8-a)`,cyan9A:`var(--lobe-cyan-9-a)`,cyan10A:`var(--lobe-cyan-10-a)`,cyan11A:`var(--lobe-cyan-11-a)`,cyanFill:`var(--lobe-cyan-fill)`,cyanFillSecondary:`var(--lobe-cyan-fill-secondary)`,cyanFillTertiary:`var(--lobe-cyan-fill-tertiary)`,cyanFillQuaternary:`var(--lobe-cyan-fill-quaternary)`,cyanBg:`var(--lobe-cyan-bg)`,cyanBgHover:`var(--lobe-cyan-bg-hover)`,cyanBorder:`var(--lobe-cyan-border)`,cyanBorderSecondary:`var(--lobe-cyan-border-secondary)`,cyanBorderHover:`var(--lobe-cyan-border-hover)`,cyanHover:`var(--lobe-cyan-hover)`,cyan:`var(--lobe-cyan)`,cyanActive:`var(--lobe-cyan-active)`,cyanTextHover:`var(--lobe-cyan-text-hover)`,cyanText:`var(--lobe-cyan-text)`,cyanTextActive:`var(--lobe-cyan-text-active)`,geekblue1:`var(--lobe-geekblue-1)`,geekblue2:`var(--lobe-geekblue-2)`,geekblue3:`var(--lobe-geekblue-3)`,geekblue4:`var(--lobe-geekblue-4)`,geekblue5:`var(--lobe-geekblue-5)`,geekblue6:`var(--lobe-geekblue-6)`,geekblue7:`var(--lobe-geekblue-7)`,geekblue8:`var(--lobe-geekblue-8)`,geekblue9:`var(--lobe-geekblue-9)`,geekblue10:`var(--lobe-geekblue-10)`,geekblue11:`var(--lobe-geekblue-11)`,geekblue1A:`var(--lobe-geekblue-1-a)`,geekblue2A:`var(--lobe-geekblue-2-a)`,geekblue3A:`var(--lobe-geekblue-3-a)`,geekblue4A:`var(--lobe-geekblue-4-a)`,geekblue5A:`var(--lobe-geekblue-5-a)`,geekblue6A:`var(--lobe-geekblue-6-a)`,geekblue7A:`var(--lobe-geekblue-7-a)`,geekblue8A:`var(--lobe-geekblue-8-a)`,geekblue9A:`var(--lobe-geekblue-9-a)`,geekblue10A:`var(--lobe-geekblue-10-a)`,geekblue11A:`var(--lobe-geekblue-11-a)`,geekblueFill:`var(--lobe-geekblue-fill)`,geekblueFillSecondary:`var(--lobe-geekblue-fill-secondary)`,geekblueFillTertiary:`var(--lobe-geekblue-fill-tertiary)`,geekblueFillQuaternary:`var(--lobe-geekblue-fill-quaternary)`,geekblueBg:`var(--lobe-geekblue-bg)`,geekblueBgHover:`var(--lobe-geekblue-bg-hover)`,geekblueBorder:`var(--lobe-geekblue-border)`,geekblueBorderSecondary:`var(--lobe-geekblue-border-secondary)`,geekblueBorderHover:`var(--lobe-geekblue-border-hover)`,geekblueHover:`var(--lobe-geekblue-hover)`,geekblue:`var(--lobe-geekblue)`,geekblueActive:`var(--lobe-geekblue-active)`,geekblueTextHover:`var(--lobe-geekblue-text-hover)`,geekblueText:`var(--lobe-geekblue-text)`,geekblueTextActive:`var(--lobe-geekblue-text-active)`,gold1:`var(--lobe-gold-1)`,gold2:`var(--lobe-gold-2)`,gold3:`var(--lobe-gold-3)`,gold4:`var(--lobe-gold-4)`,gold5:`var(--lobe-gold-5)`,gold6:`var(--lobe-gold-6)`,gold7:`var(--lobe-gold-7)`,gold8:`var(--lobe-gold-8)`,gold9:`var(--lobe-gold-9)`,gold10:`var(--lobe-gold-10)`,gold11:`var(--lobe-gold-11)`,gold1A:`var(--lobe-gold-1-a)`,gold2A:`var(--lobe-gold-2-a)`,gold3A:`var(--lobe-gold-3-a)`,gold4A:`var(--lobe-gold-4-a)`,gold5A:`var(--lobe-gold-5-a)`,gold6A:`var(--lobe-gold-6-a)`,gold7A:`var(--lobe-gold-7-a)`,gold8A:`var(--lobe-gold-8-a)`,gold9A:`var(--lobe-gold-9-a)`,gold10A:`var(--lobe-gold-10-a)`,gold11A:`var(--lobe-gold-11-a)`,goldFill:`var(--lobe-gold-fill)`,goldFillSecondary:`var(--lobe-gold-fill-secondary)`,goldFillTertiary:`var(--lobe-gold-fill-tertiary)`,goldFillQuaternary:`var(--lobe-gold-fill-quaternary)`,goldBg:`var(--lobe-gold-bg)`,goldBgHover:`var(--lobe-gold-bg-hover)`,goldBorder:`var(--lobe-gold-border)`,goldBorderSecondary:`var(--lobe-gold-border-secondary)`,goldBorderHover:`var(--lobe-gold-border-hover)`,goldHover:`var(--lobe-gold-hover)`,gold:`var(--lobe-gold)`,goldActive:`var(--lobe-gold-active)`,goldTextHover:`var(--lobe-gold-text-hover)`,goldText:`var(--lobe-gold-text)`,goldTextActive:`var(--lobe-gold-text-active)`,gray1:`var(--lobe-gray-1)`,gray2:`var(--lobe-gray-2)`,gray3:`var(--lobe-gray-3)`,gray4:`var(--lobe-gray-4)`,gray5:`var(--lobe-gray-5)`,gray6:`var(--lobe-gray-6)`,gray7:`var(--lobe-gray-7)`,gray8:`var(--lobe-gray-8)`,gray9:`var(--lobe-gray-9)`,gray10:`var(--lobe-gray-10)`,gray11:`var(--lobe-gray-11)`,gray1A:`var(--lobe-gray-1-a)`,gray2A:`var(--lobe-gray-2-a)`,gray3A:`var(--lobe-gray-3-a)`,gray4A:`var(--lobe-gray-4-a)`,gray5A:`var(--lobe-gray-5-a)`,gray6A:`var(--lobe-gray-6-a)`,gray7A:`var(--lobe-gray-7-a)`,gray8A:`var(--lobe-gray-8-a)`,gray9A:`var(--lobe-gray-9-a)`,gray10A:`var(--lobe-gray-10-a)`,gray11A:`var(--lobe-gray-11-a)`,grayFill:`var(--lobe-gray-fill)`,grayFillSecondary:`var(--lobe-gray-fill-secondary)`,grayFillTertiary:`var(--lobe-gray-fill-tertiary)`,grayFillQuaternary:`var(--lobe-gray-fill-quaternary)`,grayBg:`var(--lobe-gray-bg)`,grayBgHover:`var(--lobe-gray-bg-hover)`,grayBorder:`var(--lobe-gray-border)`,grayBorderSecondary:`var(--lobe-gray-border-secondary)`,grayBorderHover:`var(--lobe-gray-border-hover)`,grayHover:`var(--lobe-gray-hover)`,gray:`var(--lobe-gray)`,grayActive:`var(--lobe-gray-active)`,grayTextHover:`var(--lobe-gray-text-hover)`,grayText:`var(--lobe-gray-text)`,grayTextActive:`var(--lobe-gray-text-active)`,green1:`var(--lobe-green-1)`,green2:`var(--lobe-green-2)`,green3:`var(--lobe-green-3)`,green4:`var(--lobe-green-4)`,green5:`var(--lobe-green-5)`,green6:`var(--lobe-green-6)`,green7:`var(--lobe-green-7)`,green8:`var(--lobe-green-8)`,green9:`var(--lobe-green-9)`,green10:`var(--lobe-green-10)`,green11:`var(--lobe-green-11)`,green1A:`var(--lobe-green-1-a)`,green2A:`var(--lobe-green-2-a)`,green3A:`var(--lobe-green-3-a)`,green4A:`var(--lobe-green-4-a)`,green5A:`var(--lobe-green-5-a)`,green6A:`var(--lobe-green-6-a)`,green7A:`var(--lobe-green-7-a)`,green8A:`var(--lobe-green-8-a)`,green9A:`var(--lobe-green-9-a)`,green10A:`var(--lobe-green-10-a)`,green11A:`var(--lobe-green-11-a)`,greenFill:`var(--lobe-green-fill)`,greenFillSecondary:`var(--lobe-green-fill-secondary)`,greenFillTertiary:`var(--lobe-green-fill-tertiary)`,greenFillQuaternary:`var(--lobe-green-fill-quaternary)`,greenBg:`var(--lobe-green-bg)`,greenBgHover:`var(--lobe-green-bg-hover)`,greenBorder:`var(--lobe-green-border)`,greenBorderSecondary:`var(--lobe-green-border-secondary)`,greenBorderHover:`var(--lobe-green-border-hover)`,greenHover:`var(--lobe-green-hover)`,green:`var(--lobe-green)`,greenActive:`var(--lobe-green-active)`,greenTextHover:`var(--lobe-green-text-hover)`,greenText:`var(--lobe-green-text)`,greenTextActive:`var(--lobe-green-text-active)`,lime1:`var(--lobe-lime-1)`,lime2:`var(--lobe-lime-2)`,lime3:`var(--lobe-lime-3)`,lime4:`var(--lobe-lime-4)`,lime5:`var(--lobe-lime-5)`,lime6:`var(--lobe-lime-6)`,lime7:`var(--lobe-lime-7)`,lime8:`var(--lobe-lime-8)`,lime9:`var(--lobe-lime-9)`,lime10:`var(--lobe-lime-10)`,lime11:`var(--lobe-lime-11)`,lime1A:`var(--lobe-lime-1-a)`,lime2A:`var(--lobe-lime-2-a)`,lime3A:`var(--lobe-lime-3-a)`,lime4A:`var(--lobe-lime-4-a)`,lime5A:`var(--lobe-lime-5-a)`,lime6A:`var(--lobe-lime-6-a)`,lime7A:`var(--lobe-lime-7-a)`,lime8A:`var(--lobe-lime-8-a)`,lime9A:`var(--lobe-lime-9-a)`,lime10A:`var(--lobe-lime-10-a)`,lime11A:`var(--lobe-lime-11-a)`,limeFill:`var(--lobe-lime-fill)`,limeFillSecondary:`var(--lobe-lime-fill-secondary)`,limeFillTertiary:`var(--lobe-lime-fill-tertiary)`,limeFillQuaternary:`var(--lobe-lime-fill-quaternary)`,limeBg:`var(--lobe-lime-bg)`,limeBgHover:`var(--lobe-lime-bg-hover)`,limeBorder:`var(--lobe-lime-border)`,limeBorderSecondary:`var(--lobe-lime-border-secondary)`,limeBorderHover:`var(--lobe-lime-border-hover)`,limeHover:`var(--lobe-lime-hover)`,lime:`var(--lobe-lime)`,limeActive:`var(--lobe-lime-active)`,limeTextHover:`var(--lobe-lime-text-hover)`,limeText:`var(--lobe-lime-text)`,limeTextActive:`var(--lobe-lime-text-active)`,magenta1:`var(--lobe-magenta-1)`,magenta2:`var(--lobe-magenta-2)`,magenta3:`var(--lobe-magenta-3)`,magenta4:`var(--lobe-magenta-4)`,magenta5:`var(--lobe-magenta-5)`,magenta6:`var(--lobe-magenta-6)`,magenta7:`var(--lobe-magenta-7)`,magenta8:`var(--lobe-magenta-8)`,magenta9:`var(--lobe-magenta-9)`,magenta10:`var(--lobe-magenta-10)`,magenta11:`var(--lobe-magenta-11)`,magenta1A:`var(--lobe-magenta-1-a)`,magenta2A:`var(--lobe-magenta-2-a)`,magenta3A:`var(--lobe-magenta-3-a)`,magenta4A:`var(--lobe-magenta-4-a)`,magenta5A:`var(--lobe-magenta-5-a)`,magenta6A:`var(--lobe-magenta-6-a)`,magenta7A:`var(--lobe-magenta-7-a)`,magenta8A:`var(--lobe-magenta-8-a)`,magenta9A:`var(--lobe-magenta-9-a)`,magenta10A:`var(--lobe-magenta-10-a)`,magenta11A:`var(--lobe-magenta-11-a)`,magentaFill:`var(--lobe-magenta-fill)`,magentaFillSecondary:`var(--lobe-magenta-fill-secondary)`,magentaFillTertiary:`var(--lobe-magenta-fill-tertiary)`,magentaFillQuaternary:`var(--lobe-magenta-fill-quaternary)`,magentaBg:`var(--lobe-magenta-bg)`,magentaBgHover:`var(--lobe-magenta-bg-hover)`,magentaBorder:`var(--lobe-magenta-border)`,magentaBorderSecondary:`var(--lobe-magenta-border-secondary)`,magentaBorderHover:`var(--lobe-magenta-border-hover)`,magentaHover:`var(--lobe-magenta-hover)`,magenta:`var(--lobe-magenta)`,magentaActive:`var(--lobe-magenta-active)`,magentaTextHover:`var(--lobe-magenta-text-hover)`,magentaText:`var(--lobe-magenta-text)`,magentaTextActive:`var(--lobe-magenta-text-active)`,orange1:`var(--lobe-orange-1)`,orange2:`var(--lobe-orange-2)`,orange3:`var(--lobe-orange-3)`,orange4:`var(--lobe-orange-4)`,orange5:`var(--lobe-orange-5)`,orange6:`var(--lobe-orange-6)`,orange7:`var(--lobe-orange-7)`,orange8:`var(--lobe-orange-8)`,orange9:`var(--lobe-orange-9)`,orange10:`var(--lobe-orange-10)`,orange11:`var(--lobe-orange-11)`,orange1A:`var(--lobe-orange-1-a)`,orange2A:`var(--lobe-orange-2-a)`,orange3A:`var(--lobe-orange-3-a)`,orange4A:`var(--lobe-orange-4-a)`,orange5A:`var(--lobe-orange-5-a)`,orange6A:`var(--lobe-orange-6-a)`,orange7A:`var(--lobe-orange-7-a)`,orange8A:`var(--lobe-orange-8-a)`,orange9A:`var(--lobe-orange-9-a)`,orange10A:`var(--lobe-orange-10-a)`,orange11A:`var(--lobe-orange-11-a)`,orangeFill:`var(--lobe-orange-fill)`,orangeFillSecondary:`var(--lobe-orange-fill-secondary)`,orangeFillTertiary:`var(--lobe-orange-fill-tertiary)`,orangeFillQuaternary:`var(--lobe-orange-fill-quaternary)`,orangeBg:`var(--lobe-orange-bg)`,orangeBgHover:`var(--lobe-orange-bg-hover)`,orangeBorder:`var(--lobe-orange-border)`,orangeBorderSecondary:`var(--lobe-orange-border-secondary)`,orangeBorderHover:`var(--lobe-orange-border-hover)`,orangeHover:`var(--lobe-orange-hover)`,orange:`var(--lobe-orange)`,orangeActive:`var(--lobe-orange-active)`,orangeTextHover:`var(--lobe-orange-text-hover)`,orangeText:`var(--lobe-orange-text)`,orangeTextActive:`var(--lobe-orange-text-active)`,primary1:`var(--lobe-primary-1)`,primary2:`var(--lobe-primary-2)`,primary3:`var(--lobe-primary-3)`,primary4:`var(--lobe-primary-4)`,primary5:`var(--lobe-primary-5)`,primary6:`var(--lobe-primary-6)`,primary7:`var(--lobe-primary-7)`,primary8:`var(--lobe-primary-8)`,primary9:`var(--lobe-primary-9)`,primary10:`var(--lobe-primary-10)`,primary11:`var(--lobe-primary-11)`,primary1A:`var(--lobe-primary-1-a)`,primary2A:`var(--lobe-primary-2-a)`,primary3A:`var(--lobe-primary-3-a)`,primary4A:`var(--lobe-primary-4-a)`,primary5A:`var(--lobe-primary-5-a)`,primary6A:`var(--lobe-primary-6-a)`,primary7A:`var(--lobe-primary-7-a)`,primary8A:`var(--lobe-primary-8-a)`,primary9A:`var(--lobe-primary-9-a)`,primary10A:`var(--lobe-primary-10-a)`,primary11A:`var(--lobe-primary-11-a)`,primaryFill:`var(--lobe-primary-fill)`,primaryFillSecondary:`var(--lobe-primary-fill-secondary)`,primaryFillTertiary:`var(--lobe-primary-fill-tertiary)`,primaryFillQuaternary:`var(--lobe-primary-fill-quaternary)`,primaryBg:`var(--lobe-primary-bg)`,primaryBgHover:`var(--lobe-primary-bg-hover)`,primaryBorder:`var(--lobe-primary-border)`,primaryBorderSecondary:`var(--lobe-primary-border-secondary)`,primaryBorderHover:`var(--lobe-primary-border-hover)`,primaryHover:`var(--lobe-primary-hover)`,primary:`var(--lobe-primary)`,primaryActive:`var(--lobe-primary-active)`,primaryTextHover:`var(--lobe-primary-text-hover)`,primaryText:`var(--lobe-primary-text)`,primaryTextActive:`var(--lobe-primary-text-active)`,purple1:`var(--lobe-purple-1)`,purple2:`var(--lobe-purple-2)`,purple3:`var(--lobe-purple-3)`,purple4:`var(--lobe-purple-4)`,purple5:`var(--lobe-purple-5)`,purple6:`var(--lobe-purple-6)`,purple7:`var(--lobe-purple-7)`,purple8:`var(--lobe-purple-8)`,purple9:`var(--lobe-purple-9)`,purple10:`var(--lobe-purple-10)`,purple11:`var(--lobe-purple-11)`,purple1A:`var(--lobe-purple-1-a)`,purple2A:`var(--lobe-purple-2-a)`,purple3A:`var(--lobe-purple-3-a)`,purple4A:`var(--lobe-purple-4-a)`,purple5A:`var(--lobe-purple-5-a)`,purple6A:`var(--lobe-purple-6-a)`,purple7A:`var(--lobe-purple-7-a)`,purple8A:`var(--lobe-purple-8-a)`,purple9A:`var(--lobe-purple-9-a)`,purple10A:`var(--lobe-purple-10-a)`,purple11A:`var(--lobe-purple-11-a)`,purpleFill:`var(--lobe-purple-fill)`,purpleFillSecondary:`var(--lobe-purple-fill-secondary)`,purpleFillTertiary:`var(--lobe-purple-fill-tertiary)`,purpleFillQuaternary:`var(--lobe-purple-fill-quaternary)`,purpleBg:`var(--lobe-purple-bg)`,purpleBgHover:`var(--lobe-purple-bg-hover)`,purpleBorder:`var(--lobe-purple-border)`,purpleBorderSecondary:`var(--lobe-purple-border-secondary)`,purpleBorderHover:`var(--lobe-purple-border-hover)`,purpleHover:`var(--lobe-purple-hover)`,purple:`var(--lobe-purple)`,purpleActive:`var(--lobe-purple-active)`,purpleTextHover:`var(--lobe-purple-text-hover)`,purpleText:`var(--lobe-purple-text)`,purpleTextActive:`var(--lobe-purple-text-active)`,red1:`var(--lobe-red-1)`,red2:`var(--lobe-red-2)`,red3:`var(--lobe-red-3)`,red4:`var(--lobe-red-4)`,red5:`var(--lobe-red-5)`,red6:`var(--lobe-red-6)`,red7:`var(--lobe-red-7)`,red8:`var(--lobe-red-8)`,red9:`var(--lobe-red-9)`,red10:`var(--lobe-red-10)`,red11:`var(--lobe-red-11)`,red1A:`var(--lobe-red-1-a)`,red2A:`var(--lobe-red-2-a)`,red3A:`var(--lobe-red-3-a)`,red4A:`var(--lobe-red-4-a)`,red5A:`var(--lobe-red-5-a)`,red6A:`var(--lobe-red-6-a)`,red7A:`var(--lobe-red-7-a)`,red8A:`var(--lobe-red-8-a)`,red9A:`var(--lobe-red-9-a)`,red10A:`var(--lobe-red-10-a)`,red11A:`var(--lobe-red-11-a)`,redFill:`var(--lobe-red-fill)`,redFillSecondary:`var(--lobe-red-fill-secondary)`,redFillTertiary:`var(--lobe-red-fill-tertiary)`,redFillQuaternary:`var(--lobe-red-fill-quaternary)`,redBg:`var(--lobe-red-bg)`,redBgHover:`var(--lobe-red-bg-hover)`,redBorder:`var(--lobe-red-border)`,redBorderSecondary:`var(--lobe-red-border-secondary)`,redBorderHover:`var(--lobe-red-border-hover)`,redHover:`var(--lobe-red-hover)`,red:`var(--lobe-red)`,redActive:`var(--lobe-red-active)`,redTextHover:`var(--lobe-red-text-hover)`,redText:`var(--lobe-red-text)`,redTextActive:`var(--lobe-red-text-active)`,volcano1:`var(--lobe-volcano-1)`,volcano2:`var(--lobe-volcano-2)`,volcano3:`var(--lobe-volcano-3)`,volcano4:`var(--lobe-volcano-4)`,volcano5:`var(--lobe-volcano-5)`,volcano6:`var(--lobe-volcano-6)`,volcano7:`var(--lobe-volcano-7)`,volcano8:`var(--lobe-volcano-8)`,volcano9:`var(--lobe-volcano-9)`,volcano10:`var(--lobe-volcano-10)`,volcano11:`var(--lobe-volcano-11)`,volcano1A:`var(--lobe-volcano-1-a)`,volcano2A:`var(--lobe-volcano-2-a)`,volcano3A:`var(--lobe-volcano-3-a)`,volcano4A:`var(--lobe-volcano-4-a)`,volcano5A:`var(--lobe-volcano-5-a)`,volcano6A:`var(--lobe-volcano-6-a)`,volcano7A:`var(--lobe-volcano-7-a)`,volcano8A:`var(--lobe-volcano-8-a)`,volcano9A:`var(--lobe-volcano-9-a)`,volcano10A:`var(--lobe-volcano-10-a)`,volcano11A:`var(--lobe-volcano-11-a)`,volcanoFill:`var(--lobe-volcano-fill)`,volcanoFillSecondary:`var(--lobe-volcano-fill-secondary)`,volcanoFillTertiary:`var(--lobe-volcano-fill-tertiary)`,volcanoFillQuaternary:`var(--lobe-volcano-fill-quaternary)`,volcanoBg:`var(--lobe-volcano-bg)`,volcanoBgHover:`var(--lobe-volcano-bg-hover)`,volcanoBorder:`var(--lobe-volcano-border)`,volcanoBorderSecondary:`var(--lobe-volcano-border-secondary)`,volcanoBorderHover:`var(--lobe-volcano-border-hover)`,volcanoHover:`var(--lobe-volcano-hover)`,volcano:`var(--lobe-volcano)`,volcanoActive:`var(--lobe-volcano-active)`,volcanoTextHover:`var(--lobe-volcano-text-hover)`,volcanoText:`var(--lobe-volcano-text)`,volcanoTextActive:`var(--lobe-volcano-text-active)`,yellow1:`var(--lobe-yellow-1)`,yellow2:`var(--lobe-yellow-2)`,yellow3:`var(--lobe-yellow-3)`,yellow4:`var(--lobe-yellow-4)`,yellow5:`var(--lobe-yellow-5)`,yellow6:`var(--lobe-yellow-6)`,yellow7:`var(--lobe-yellow-7)`,yellow8:`var(--lobe-yellow-8)`,yellow9:`var(--lobe-yellow-9)`,yellow10:`var(--lobe-yellow-10)`,yellow11:`var(--lobe-yellow-11)`,yellow1A:`var(--lobe-yellow-1-a)`,yellow2A:`var(--lobe-yellow-2-a)`,yellow3A:`var(--lobe-yellow-3-a)`,yellow4A:`var(--lobe-yellow-4-a)`,yellow5A:`var(--lobe-yellow-5-a)`,yellow6A:`var(--lobe-yellow-6-a)`,yellow7A:`var(--lobe-yellow-7-a)`,yellow8A:`var(--lobe-yellow-8-a)`,yellow9A:`var(--lobe-yellow-9-a)`,yellow10A:`var(--lobe-yellow-10-a)`,yellow11A:`var(--lobe-yellow-11-a)`,yellowFill:`var(--lobe-yellow-fill)`,yellowFillSecondary:`var(--lobe-yellow-fill-secondary)`,yellowFillTertiary:`var(--lobe-yellow-fill-tertiary)`,yellowFillQuaternary:`var(--lobe-yellow-fill-quaternary)`,yellowBg:`var(--lobe-yellow-bg)`,yellowBgHover:`var(--lobe-yellow-bg-hover)`,yellowBorder:`var(--lobe-yellow-border)`,yellowBorderSecondary:`var(--lobe-yellow-border-secondary)`,yellowBorderHover:`var(--lobe-yellow-border-hover)`,yellowHover:`var(--lobe-yellow-hover)`,yellow:`var(--lobe-yellow)`,yellowActive:`var(--lobe-yellow-active)`,yellowTextHover:`var(--lobe-yellow-text-hover)`,yellowText:`var(--lobe-yellow-text)`,yellowTextActive:`var(--lobe-yellow-text-active)`,boxShadow:`var(--lobe-box-shadow)`,boxShadowSecondary:`var(--lobe-box-shadow-secondary)`,boxShadowTertiary:`var(--lobe-box-shadow-tertiary)`,colorErrorAffix:`var(--lobe-color-error-affix)`,colorHighlight:`var(--lobe-color-highlight)`,colorLink:`var(--lobe-color-link)`,colorLinkActive:`var(--lobe-color-link-active)`,colorLinkHover:`var(--lobe-color-link-hover)`,colorWarningAffix:`var(--lobe-color-warning-affix)`,colorPrimaryFill:`var(--lobe-color-primary-fill)`,colorPrimaryFillSecondary:`var(--lobe-color-primary-fill-secondary)`,colorPrimaryFillTertiary:`var(--lobe-color-primary-fill-tertiary)`,colorPrimaryFillQuaternary:`var(--lobe-color-primary-fill-quaternary)`,colorPrimaryBg:`var(--lobe-color-primary-bg)`,colorPrimaryBgHover:`var(--lobe-color-primary-bg-hover)`,colorPrimaryBorder:`var(--lobe-color-primary-border)`,colorPrimaryBorderHover:`var(--lobe-color-primary-border-hover)`,colorPrimaryHover:`var(--lobe-color-primary-hover)`,colorPrimary:`var(--lobe-color-primary)`,colorPrimaryActive:`var(--lobe-color-primary-active)`,colorPrimaryTextHover:`var(--lobe-color-primary-text-hover)`,colorPrimaryText:`var(--lobe-color-primary-text)`,colorPrimaryTextActive:`var(--lobe-color-primary-text-active)`,controlItemBgActive:`var(--lobe-control-item-bg-active)`,controlItemBgActiveHover:`var(--lobe-control-item-bg-active-hover)`,colorBgContainer:`var(--lobe-color-bg-container)`,colorBgElevated:`var(--lobe-color-bg-elevated)`,colorBgLayout:`var(--lobe-color-bg-layout)`,colorBgMask:`var(--lobe-color-bg-mask)`,colorBgSpotlight:`var(--lobe-color-bg-spotlight)`,colorBorder:`var(--lobe-color-border)`,colorBorderSecondary:`var(--lobe-color-border-secondary)`,colorFill:`var(--lobe-color-fill)`,colorFillQuaternary:`var(--lobe-color-fill-quaternary)`,colorFillSecondary:`var(--lobe-color-fill-secondary)`,colorFillTertiary:`var(--lobe-color-fill-tertiary)`,colorText:`var(--lobe-color-text)`,colorTextQuaternary:`var(--lobe-color-text-quaternary)`,colorTextSecondary:`var(--lobe-color-text-secondary)`,colorTextTertiary:`var(--lobe-color-text-tertiary)`,colorBgContainerDisabled:`var(--lobe-color-bg-container-disabled)`,colorBgContainerSecondary:`var(--lobe-color-bg-container-secondary)`,colorBgTextActive:`var(--lobe-color-bg-text-active)`,colorBgTextHover:`var(--lobe-color-bg-text-hover)`,colorBorderBg:`var(--lobe-color-border-bg)`,colorErrorOutline:`var(--lobe-color-error-outline)`,colorFillAlter:`var(--lobe-color-fill-alter)`,colorFillContent:`var(--lobe-color-fill-content)`,colorFillContentHover:`var(--lobe-color-fill-content-hover)`,colorIcon:`var(--lobe-color-icon)`,colorIconHover:`var(--lobe-color-icon-hover)`,colorSplit:`var(--lobe-color-split)`,colorTextDescription:`var(--lobe-color-text-description)`,colorTextDisabled:`var(--lobe-color-text-disabled)`,colorTextHeading:`var(--lobe-color-text-heading)`,colorTextLabel:`var(--lobe-color-text-label)`,colorTextPlaceholder:`var(--lobe-color-text-placeholder)`,colorWarningOutline:`var(--lobe-color-warning-outline)`,controlItemBgActiveDisabled:`var(--lobe-control-item-bg-active-disabled)`,controlItemBgHover:`var(--lobe-control-item-bg-hover)`,controlTmpOutline:`var(--lobe-control-tmp-outline)`},Q={base:{kVAM5u:`lbqnr5ac`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb17d4w8g`,kybGjl:`lb1hl2dhg`,kmkexE:`lb15xd0no`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb126qsmr`,k1xSpc:`lb3nfvp2`,k63SB2:`lbk50ysn`,kjj79g:`lbl56j7k`,kLWn49:`lbo5v014`,kSiTet:`lby3kg0r`,kfzvcC:`lb1cp6yjb`,kVAEAm:`lb1n2onr6`,khDVqt:`lbuxw1ft`,$$css:!0},sizeSmall:{"--button-padding-inline":`lb1xvjv2a`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lbfifm61`,kZKoxP:`lbxk0z11`,$$css:!0},sizeMiddle:{"--button-padding-inline":`lb1l3x1nm`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lb4z9k3i`,kZKoxP:`lb10w6t97`,$$css:!0},sizeLarge:{"--button-padding-inline":`lb1r8q1i9`,kaIpWk:`lb1sbi92r`,kg3NbH:`lb1v42klx`,kGuDYH:`lbif65rj`,kZKoxP:`lb1vqgdyp`,$$css:!0},outdentStart:{keTefX:`lbugkenv`,$$css:!0},outdentEnd:{k71WvV:`lb8o6c4q`,$$css:!0},shapeCircle:{kaIpWk:`lb16rqkct`,kg3NbH:`lbnjsko4`,$$css:!0},shapeRound:{kaIpWk:`lb1e6avla`,$$css:!0},block:{kzqmXN:`lbh8yej3`,$$css:!0},iconEnd:{kXwgrk:`lb15zctf7`,$$css:!0},iconOnlySmall:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lbvy4d1p`,$$css:!0},iconOnlyMiddle:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb1td3qas`,$$css:!0},iconOnlyLarge:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb100vrsf`,$$css:!0},iconBox:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,$$css:!0},spinnerSlot:{kVQacm:`lb1rea2x4`,kmkexE:`lbp7890b`,kmuXW:`lb2lah0s`,k71WvV:`lb1ws5yxj`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbnalus7`,$$css:!0},spinnerSlotEnd:{k71WvV:`lb14z9mp`,keTefX:`lbw01apr`,$$css:!0},spinnerSlotShow:{k71WvV:`lb14z9mp`,keTefX:`lb1lziwak`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisual:{kmkexE:`lb1ja9v0h`,k87sOh:`lb13vifvy`,kLqNvP:`lb1o0tod`,kSiTet:`lbg01cxk`,kVAEAm:`lb10l6tqk`,k3aq6I:`lb1a33avv`,k3nNDw:`lb1g0ag68`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisualShow:{kSiTet:`lb1hc1fzr`,k3aq6I:`lb3oybdh`,$$css:!0},variantDefault:{kVAM5u:`lbqnr5ac lbv4eugq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantPrimary:{kVAM5u:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj`,kWkggS:`lb65u3hq lb1hsafae lb1n16ko lbep1hoi`,kMwMTN:`lb15g0kca`,$$css:!0},variantDashed:{kVAM5u:`lbqnr5ac lbv4eugq`,ksu8eU:`lbbsl7fq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbaljia1 lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},variantText:{kVAM5u:`lb9r1u3d`,kWkggS:`lbjbqb8w lb1f5ares`,kMwMTN:`lb66ogz0`,$$css:!0},variantLink:{kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lb16owwnm lbvdzly1`,$$css:!0},dangerOutlined:{kVAM5u:`lb1mpi7gh lbs8cwth`,kWkggS:`lb1saschm lb6yijhg lbzxaxr6`,kKwaWg:null,kMwMTN:`lb12ap7uz`,$$css:!0},dangerSolid:{kVAM5u:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq`,kWkggS:`lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph`,kMwMTN:`lb15g0kca`,$$css:!0},dangerFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lbrq8w1b lb1f2tfg0 lb1lf6bdk`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerText:{kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerInline:{kMwMTN:`lb12ap7uz lbcu7z5f`,$$css:!0},ghostDefault:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},ghostPrimary:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lbjwxqu3 lb16owwnm lbpro1qx`,$$css:!0},ghostDanger:{kVAM5u:`lb9r1u3d`,kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},spinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbvndefy`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,kB7OPa:`lb9f619`,k1xSpc:`lb1rg5ohu`,kmuXW:`lb2lah0s`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lbqnr5ac lb1y0btm7 lbmkeg23 lb17d4w8g lb1hl2dhg lb15xd0no lb6s0dn4 lb9f619 lb1ypdohk lb126qsmr lb3nfvp2 lbk50ysn lbl56j7k lbo5v014 lby3kg0r lb1cp6yjb lb1n2onr6 lbuxw1ft`}).className,{className:`lb1xvjv2a lb1vihcfj lb1v42klx lbfifm61 lbxk0z11`}.className,{className:`lb1l3x1nm lb1vihcfj lb1v42klx lb4z9k3i lb10w6t97`}.className,{className:`lb1r8q1i9 lb1sbi92r lb1v42klx lbif65rj lb1vqgdyp`}.className,{className:`lbugkenv`}.className,{className:`lb8o6c4q`}.className,{className:`lb16rqkct lbnjsko4`}.className,{className:`lb1e6avla`}.className,{className:`lbh8yej3`}.className,{className:`lb15zctf7`}.className,{className:`lb1wdnxgk lbnjsko4 lbvy4d1p`}.className,{className:`lb1wdnxgk lbnjsko4 lb1td3qas`}.className,{className:`lb1wdnxgk lbnjsko4 lb100vrsf`}.className,{className:`lb6s0dn4 lb3nfvp2 lbl56j7k`}.className,{className:`lb1rea2x4 lbp7890b lb2lah0s lb1ws5yxj lb1n2onr6 lb1kpxq89 lbnalus7`}.className,{className:`lb14z9mp lbw01apr`}.className,{className:`lb14z9mp lb1lziwak lbsmyaan`}.className,{className:`lb1ja9v0h lb13vifvy lb1o0tod lbg01cxk lb10l6tqk lb1a33avv lb1g0ag68 lb1kpxq89 lbsmyaan`}.className,{className:`lb1hc1fzr lb3oybdh`}.className,{className:`lbqnr5ac lbv4eugq lb6yijhg lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj lb65u3hq lb1hsafae lb1n16ko lbep1hoi lb15g0kca`}.className,{className:`lbqnr5ac lbv4eugq lbbsl7fq lb6yijhg lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbaljia1 lb5d67gy lb66ogz0`}.className,{className:`lb9r1u3d lbjbqb8w lb1f5ares lb66ogz0`}.className,{className:`lb9r1u3d lbnjsko4 lbjbqb8w lb16owwnm lbvdzly1`}.className,{className:`lb1mpi7gh lbs8cwth lb1saschm lb6yijhg lbzxaxr6 lb12ap7uz`}.className,{className:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph lb15g0kca`}.className,{className:`lb9r1u3d lbrq8w1b lb1f2tfg0 lb1lf6bdk lb12ap7uz`}.className,{className:`lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb12ap7uz lbcu7z5f`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lbjwxqu3 lb16owwnm lbpro1qx`}.className,{className:`lb9r1u3d lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb181nr7w lb16rqkct lb1y0btm7 lbvndefy lbdz8niu lba4qsjk lb1v0ides lb1esw782 lb1v8p93f lb9f619 lb1rg5ohu lb2lah0s lb1kpxq89 lbsmyaan`}.className;var ji=e=>e==null?null:(0,X.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,Z.jsx)(ye,{icon:e,size:`small`}),Mi=e=>e===`small`?Q.sizeSmall:e===`large`?Q.sizeLarge:Q.sizeMiddle,Ni=e=>e===`small`?Q.iconOnlySmall:e===`large`?Q.iconOnlyLarge:Q.iconOnlyMiddle,Pi=({danger:e,ghost:t,type:n})=>{if(t&&n!==`text`&&n!==`link`)return e?Q.ghostDanger:n===`primary`?Q.ghostPrimary:Q.ghostDefault;switch(n){case`primary`:return e?Q.dangerSolid:Q.variantPrimary;case`dashed`:return e?[Q.variantDashed,Q.dangerOutlined]:Q.variantDashed;case`fill`:return e?Q.dangerFill:Q.variantFill;case`text`:return e?[Q.variantText,Q.dangerText]:Q.variantText;case`link`:return e?[Q.variantLink,Q.dangerInline]:Q.variantLink;default:return e?[Q.variantDefault,Q.dangerOutlined]:Q.variantDefault}},Fi={scale:.98},Ii={damping:26,mass:.6,stiffness:600,type:`spring`},Li=({block:e,children:t,className:n,classNames:r,danger:a=!1,disabled:o,outdent:s,ghost:u=!1,href:d,htmlType:f=`button`,icon:p,iconPosition:m=`start`,loading:h,onClick:g,ref:_,shape:v=`default`,size:y=`middle`,stableData:b,styles:x,target:S,type:C=`default`,xstyle:w,...T})=>{let E=vr(),D=(0,X.useRef)(null),O=(0,X.useRef)(null),[k,A]=(0,X.useState)(!!h);h&&!k&&A(!0),(0,X.useLayoutEffect)(()=>{if(h||!k)return;let e=[...D.current?.getAnimations?.()??[],...O.current?.getAnimations?.()??[]].filter(e=>`transitionProperty`in e),t=!1;return Promise.allSettled(e.map(e=>e.finished)).then(()=>{t||A(!1)}),()=>{t=!0}},[h,k]);let j=o||h,M=Mi(y),N=Pi({danger:a,ghost:u,type:C}),P=v===`circle`?Q.shapeCircle:v===`round`?Q.shapeRound:void 0,F=(t==null||t===!1||t===``)&&(h||p)?Ni(y):void 0,I=C===`text`&&s?s===`end`?Q.outdentEnd:Q.outdentStart:void 0,ee=kt([Q.base,Se.info,M,N,P,e&&Q.block,m===`end`&&Q.iconEnd,F,I,w],l(ki(),n)).className,te=b??c({block:e,danger:a,ghost:u,loading:h,shape:v,size:y,type:C}),L=(0,Z.jsx)(`span`,{"aria-hidden":!h,ref:D,...kt([Q.iconBox,Q.spinnerSlot,m===`end`&&Q.spinnerSlotEnd,h&&Q.spinnerSlotShow],l(ki(`spinner`),r?.icon),x?.icon),children:(0,Z.jsx)(`span`,{ref:O,...i(Q.spinnerVisual,h&&Q.spinnerVisualShow),children:(h||k)&&(0,Z.jsx)(`span`,{...i(Q.spinner)})})}),R=p&&!h?(0,Z.jsx)(`span`,{...kt(Q.iconBox,l(ki(`icon`),r?.icon),x?.icon),children:ji(p)}):null,z=(0,Z.jsxs)(Z.Fragment,{children:[L,R,t]}),B=j?{}:{transition:Ii,whileTap:Fi};if(d!==void 0){let e=e=>{j?e.preventDefault():g?.(e)};return(0,Z.jsx)(E.a,{"aria-busy":h||void 0,"aria-disabled":j||void 0,href:o?void 0:d,target:S,...te,...T,className:ee,ref:_,onClick:e,...B,children:z})}let ne=e=>{j?e.preventDefault():g?.(e)};return(0,Z.jsx)(E.button,{type:f,...te,...T,"aria-busy":h||void 0,"aria-disabled":j||void 0,className:ee,disabled:o,ref:_,onClick:ne,...B,children:z})};Li.displayName=`BaseButton`;var Ri=Li;function zi(e,t){return t!=null&&!ht(t)?0:typeof e==`function`?e():e}function Bi(e,t,n){let r=zi(e,n);return typeof r==`number`?r:r?.[t]}function Vi(e){return typeof e==`function`?e():e}function Hi(e,t){return t||e===`click`||e===`mousedown`}function Ui(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Wi(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=L}=t,l=e.context.dataRef,u=X.useRef(void 0),d=Ge(),f=ie(),m=X.useMemo(()=>{function t(t,n,r,i){let a=Y(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=ht(e.pointerType,!0)&&Ke(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||ht(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=We(s),p=ee(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:ht(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return X.useMemo(()=>n?{reference:m}:p,[n,m])}var Gi=b();function Ki(e){let t=X.useCallback(t=>e===void 0?Ye:e.subscribeStore(t),[e]),n=X.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Gi.useSyncExternalStore)(t,n,()=>e?.serverStore)}var qi=Gt&&$e;function Ji(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=X.useRef(!1),s=X.useRef(null),c=X.useRef(!0),l=ie();X.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=Dt(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&je(t)&&t===ze(te(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return re(W(r,`blur`,i),qi&&W(r,`keydown`,a,!0),qi&&W(r,`pointerdown`,l,!0))},[e,n]),X.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);G(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=X.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=We(n.nativeEvent);if(G(a)){if(qi&&!n.relatedTarget){if(!c.current&&!ee(a))return}else if(!Te(a))return}let u=y(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,Y(fe,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,Y(fe,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=G(r)&&r.hasAttribute(Mt(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=ze(te(t));!r&&n===t||q(a.current.floatingContext?.refs.floating.current,n)||q(t,n)||o||y(r??n,e.context.triggerElements)||e.setOpen(!1,Y(fe,i))})}}},[a,r,e,l]);return X.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var Yi=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new ct;restTimeout=new ct;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xi=new WeakMap;function Zi(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xi.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xi.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qi(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xi.get(n);a&&a!==e&&Zi(a),Zi(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xi.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $i(e){let t=e.context.dataRef.current,n=yt(()=>t.hoverInteractionState??Yi.create()).current;return t.hoverInteractionState||=n,gt(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ea(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=ne(),u=M(),d=$i(e),f=ie(),p=J(()=>Hi(c.current.openEvent?.type,d.interactedInside)),m=J(()=>Ui(c.current.openEvent?.type)),h=J(()=>{Zi(d)});K(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),X.useEffect(()=>h,[h]),K(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&G(s)&&o){let e=s,t=o,n=te(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??Ct(e,`[data-rootownerid]`)??n.body;return Qi(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),X.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&ot(l.nodesRef.current,u).length>0)}function a(t){let n=Bi(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,Y(A,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=We(e);Jt(t)?d.interactedInside=Ct(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(y(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&G(o)&&ot(l.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,Y(A,n)),l.events.emit(`floating.closed`,n)})}let b=o;return re(b&&W(b,`mouseenter`,g),b&&W(b,`mouseleave`,_),b&&W(b,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var ta={current:null};function na(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=ta,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:g,events:_}=e.context,v=ne(l),b=$i(e),x=X.useRef(!1),S=h(i),C=h(r),w=h(o),T=h(n),E=h(p),D=h(f),O=J(()=>Hi(g.current.openEvent?.type,b.interactedInside)),k=J(()=>E.current?.()!==!1),j=J((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!q(t,n);if(!G(r))return!1;let a=r;return i.hasMatchingElement(e=>q(e,a))&&(!t||!q(t,a))}),M=J(()=>{b.handler&&=(te(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),N=J(()=>{Zi(b)});return u&&(b.handleCloseOptions=i?.__options),X.useEffect(()=>M,[M]),X.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===A,M(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,b,M]),X.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=Bi(C.current,`close`,b.pointerType);r?b.openChangeTimeout.start(r,()=>{e.setOpen(!1,Y(A,t)),v?.events.emit(`floating.closed`,t)}):n&&(b.openChangeTimeout.clear(),e.setOpen(!1,Y(A,t)),v?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!G(r))return;function i(t){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,a&&!ht(b.pointerType))return;let n=Vi(w.current),r=Bi(C.current,`open`,b.pointerType),i=We(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(G(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(q(t,i)){c=t;break}}G(o)&&G(s)&&!e.context.triggerElements.hasElement(o)&&q(o,s)&&(c=s);let l=c!=null&&j(s,c,i),u=e.select(`open`),d=D.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&x.current,p=!l&&G(c)&&G(s)&&q(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?k()&&e.setOpen(!0,Y(A,t,c)):m||(r?b.openChangeTimeout.start(r,()=>{g&&k()&&e.setOpen(!0,Y(A,t,c))}):g&&k()&&e.setOpen(!0,Y(A,t,c)))}function o(n){if(O()){N();return}M();let r=e.select(`domReferenceElement`),i=te(r);b.restTimeout.clear(),b.restTimeoutPending=!1;let a=g.current.floatingContext??d?.();if(!y(n.relatedTarget,e.context.triggerElements)){if(S.current&&a){e.select(`open`)||b.openChangeTimeout.clear();let r=c.current;b.handler=S.current({...a,tree:v,x:n.clientX,y:n.clientY,onClose(){N(),M(),T.current&&!O()&&r===e.select(`domReferenceElement`)&&t(n,!0)}}),i.addEventListener(`mousemove`,b.handler),b.handler(n)}else b.pointerType===`touch`&&q(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){q(r,e.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let f=m?W(r,`mouseout`,l):void 0;return s?re(W(r,`mousemove`,i,{once:!0}),W(r,`mouseenter`,i),W(r,`mouseleave`,o),f):re(W(r,`mouseenter`,i),W(r,`mouseleave`,o),f)},[M,N,g,C,e,n,S,b,u,j,O,a,s,w,c,v,T,d,D,k,m]),X.useMemo(()=>{if(!n)return;function t(e){b.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=j(i,r,t.target);if(a&&!ht(b.pointerType))return;if(o&&s&&b.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=b.handleCloseOptions?.getScope?.()??r.ownerDocument.body;Qi(b,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Vi(w.current);if(o&&!s||c===0||!s&&b.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;b.restTimeout.clear();function l(){if(b.restTimeoutPending=!1,O())return;let t=e.select(`open`);!b.blockMouseMove&&(!t||s)&&k()&&e.setOpen(!0,Y(A,n,r))}b.pointerType===`touch`?Oi.flushSync(()=>{l()}):s&&o?l():(b.restTimeoutPending=!0,b.restTimeout.start(c,l))}}},[n,b,O,j,a,e,w,k])}function ra(e){return $e&&e.movementX===0&&e.movementY===0}function ia(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function aa(e,t){return ia(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function oa(e,t,n){return ia(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function sa(e,t,n){return ia(t,n?e===bt:e===At,e===Pt)}function ca(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:ia(t,n?e===At:e===bt,e===at)}function la(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:g=void 0,orientation:_=`vertical`,triggerOrientation:v=_,parentOrientation:y,id:b,resetOnPointerLeave:x=!0,externalTree:S,nestedReturnFocusRef:w,grid:T}=t,E=T!=null,D=e.useState(`open`),O=e.useState(`floatingElement`),k=e.useState(`domReferenceElement`),A=e.context.dataRef,j=_e(O),N=ke(k),P=h(j),F=M(),I=ne(S),L=X.useRef(f),R=X.useRef(o??-1),z=X.useRef(null),B=X.useRef(!0),V=J(e=>{i(R.current===-1?null:R.current,e)}),H=X.useRef(!!O),re=X.useRef(D),U=X.useRef(!1),ie=X.useRef(!1),ae=X.useRef(null),oe=h(g),W=h(D),se=h(o),ce=h(x),le=Ge(),ue=Ge(),de=J(()=>{le.cancel();function e(e){d||(ae.current=St(e,{sync:U.current,preventScroll:!0}))}let t=n.current[R.current],r=ie.current;t&&e(t),(U.current?e=>e():e=>le.request(e))(()=>{let i=n.current[R.current]||t;i&&(t||e(i),ve&&(r||!B.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});K(()=>{A.current.orientation=_},[A,_]),K(()=>{D||(z.current=null),D&&f===`auto`||(L.current=f)},[D,f]),K(()=>{a&&(D&&O?(R.current=o??-1,L.current&&o!=null&&(ie.current=!0,V())):H.current&&(R.current=-1,V()))},[a,D,O,o,V]),K(()=>{if(a){if(!D)U.current=!1;else if(O){if(r==null){if(U.current=!1,se.current!=null)return;if(H.current&&(R.current=-1,de()),(!re.current||!H.current)&&L.current&&(z.current!=null||L.current===!0&&z.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ue.request(e):queueMicrotask)(t),e+=1):(R.current=z.current==null||oa(z.current,v,u)||l?Lt(n):_t(n),z.current=null,V())};t()}}else Et(n.current,r)||(R.current=r,de(),ie.current=!1)}}},[a,D,O,r,se,l,n,v,u,V,de,ue]),K(()=>{if(!a||O||!I||d||!H.current)return;let e=I.nodesRef.current,t=e.find(e=>e.id===F)?.context?.elements.floating,n=ze(te(k??t??null)),r=e.some(e=>e.context&&q(e.context.elements.floating,n));t&&!r&&B.current&&t.focus({preventScroll:!0})},[a,O,k,I,F,d]),K(()=>{re.current=D,H.current=!!O});let fe=r!=null,pe=J(e=>{if(!W.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(R.current!==t||r!==t)&&(R.current=t,V(e))}),me=J(()=>y??I?.nodesRef.current.find(e=>e.id===F)?.context?.dataRef?.current.orientation),he=J(()=>Lt(n,oe.current)),ge=J(t=>{if(B.current=!1,U.current=!0,t.which===229||!W.current&&t.currentTarget===P.current)return;if(l&&ca(t.key,_,u,E)){aa(t.key,me())||Ze(t),e.setOpen(!1,Y(C,t.nativeEvent));let n=w?.current??k;je(n)&&n.focus();return}r!=null&&r!==R.current&&!Et(n.current,r)&&(R.current=r);let i=R.current,a=Lt(n,g),o=_t(n,g);if(N||(t.key===`Home`&&(Ze(t),R.current=a,V(t)),t.key===`End`&&(Ze(t),R.current=o,V(t))),T!=null){let e=T(t,R.current,n,_,c,u,g,a,o);if(e!=null&&e!==R.current&&(R.current=e,V(t)),_===`both`)return}if(aa(t.key,_)){Ze(t);let e=ze(t.currentTarget.ownerDocument);if(D&&!d&&q(t.currentTarget,e)&&!n.current.some(t=>t!=null&&q(t,e))){R.current=oa(t.key,_,u)?a:o,V(t),r===R.current&&de();return}let{index:l,wrapped:f}=Je(n.current,i,{decrement:!oa(t.key,_,u),loopFocus:c,allowEscape:s,disabledIndices:g,minIndex:a,maxIndex:o});f&&(U.current=!1),R.current=l,V(t)}}),ve=X.useMemo(()=>({onFocus(e){U.current=!0,pe(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){ra(e)||(U.current=!0,ie.current=!1,p&&pe(e))},onPointerLeave(e){if(!W.current||!B.current||e.pointerType===`touch`)return;U.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ce.current&&(ae.current?.(),ae.current=null,R.current=-1,V(e),!d)){let e=P.current,t=ze(te(e));e&&q(e,t)&&e.focus({preventScroll:!0})}}}),[pe,W,P,p,n,V,ce,d]),ye=X.useMemo(()=>d&&D&&fe&&{"aria-activedescendant":`${b}-${r}`},[d,D,fe,b,r]),be=X.useMemo(()=>({...N?{}:ye,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&D&&!d){let n=We(t.nativeEvent);if(n&&!q(P.current,n))return;Ze(t);let r=Y(et,t.nativeEvent);e.setOpen(!1,r);let i=w?.current??k;!r.isCanceled&&je(i)&&i.focus()}else ge(t)},onPointerMove(e){ra(e)||(B.current=!0)}}),[ye,ge,P,N,e,D,d,k,w]),xe=X.useMemo(()=>{function t(t){e.setOpen(!0,Y(C,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&It(e.nativeEvent)&&(L.current=!d)}function r(e){L.current=f,f===`auto`&&Ke(e.nativeEvent)&&(L.current=!0)}return{onKeyDown(n){let r=e.select(`open`);B.current=!1;let i=n.key.startsWith(`Arrow`),a=sa(n.key,me(),u),o=aa(n.key,r?_:v),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||ee(n.currentTarget)))return ge(n);if(r||m||!i){if(s){let e=aa(n.key,me());z.current=l&&e?null:n.key}l?a&&(Ze(n),r?(R.current=he(),V(n),d&&P.current?.focus()):t(n)):o&&(se.current!=null&&(R.current=se.current),Ze(n),!r&&m?t(n):ge(n),r&&V(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(R.current=-1,V(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[ge,f,he,l,V,e,m,_,v,me,u,se,d,P]),Se=X.useMemo(()=>({...ye,...xe}),[ye,xe]);return X.useMemo(()=>a?{reference:Se,floating:be,item:ve,trigger:xe}:{},[a,Se,be,xe,ve])}function ua(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=J(s),f=e.useState(`open`),p=ie(),m=X.useRef(``),h=X.useRef(u??i??-1),g=X.useRef(null),_=J(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!Qe(n)||n?.matches(`:disabled`)?!1:o==null||!vt(he,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(Ze(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Ze(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=J(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);q(r,n)||q(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});K(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=X.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return X.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var da=.1,fa=da*da,$=.5;function pa(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function ma(e,t,n,r,i,a,o,s,c,l){let u=!1;return pa(e,t,n,r,i,a)&&(u=!u),pa(e,t,i,a,o,s)&&(u=!u),pa(e,t,o,s,c,l)&&(u=!u),pa(e,t,c,l,n,r)&&(u=!u),u}function ha(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ga(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function _a(e={}){let{blockPointerEvents:t=!1}=e,n=new ct,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*fa;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=We(r),g=r.type===`mouseleave`,_=q(u,h),v=q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&G(r.relatedTarget)&&q(u,r.relatedTarget))return;function y(){return!!(s&&ot(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=ga(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=ga(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=ga(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=ga(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!ha(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+$+1,o=C||T?S.bottom-$:S.top,s=C?T?S.bottom-$:S.top:S.bottom-$;M=ma(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-$,o=C||T?S.top+$:S.bottom,s=C?T?S.top+$:S.bottom:S.top+$;M=ma(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+$+1,o=w||E?S.right-$:S.left,s=w?E?S.right-$:S.left:S.right-$;M=ma(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-$,o=w||E?S.left+$:S.right,s=w?E?S.left+$:S.right:S.left+$;M=ma(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function va(e,t,n){let{reference:r,floating:i}=e,a=pt(t),o=Ue(t),s=be(o),c=le(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=Kt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ya(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}=Le(t,e),p=w(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ae(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=ae(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 ba=50,xa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ya},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=va(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<ba&&(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}=va(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Sa=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}=Le(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=le(r),_=pt(o),v=le(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[D(o)]:x(o)),S=p!==`none`;!d&&S&&b.push(...Ce(o,m,p,y));let C=[o,...b],w=await s.detectOverflow(t,h),T=[],E=i.flip?.overflows||[];if(l&&T.push(w[g]),u){let e=Ut(r,a,y);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:r,overflows:T}],!T.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=C[e];if(t&&(u!==`alignment`||_===pt(t)||E.every(e=>pt(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.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=E.filter(e=>{if(S){let t=pt(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{}}}},Ca=new Set([`left`,`top`]);async function wa(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=le(n),s=Kt(n),c=pt(n)===`y`,l=Ca.has(o)?-1:1,u=a&&c?-1:1,d=Le(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 Ta=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 wa(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}}}}},Ea=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}=Le(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=pt(i),p=Ht(f),m=u[p],h=u[f],g=(e,t)=>nt(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}}}}}},Da=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}=Le(e,t),u={x:n,y:r},d=pt(i),f=Ht(d),p=u[f],m=u[d],h=Le(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=Ca.has(le(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}}}},Oa=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}=Le(e,t),c=await i.detectOverflow(t,s),l=le(n),u=Kt(n),d=pt(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 _=p-c.top-c.bottom,v=f-c.left-c.right,y=lt(p-c[m],_),b=lt(f-c[h],v),x=t.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!u&&(d?w=f-2*g(c.left,c.right):C=p-2*g(c.top,c.bottom)),await o({...t,availableWidth:w,availableHeight:C});let T=await i.getDimensions(a.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function ka(e){let t=qt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=je(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=se(n)!==a||se(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Aa(e){return G(e)?e:e.contextElement}function ja(e){let t=Aa(e);if(!je(t))return tt(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ka(t),o=(a?se(n.width):n.width)/r,s=(a?se(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Ma=tt(0);function Na(e){let t=Dt(e);return!xt()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pa(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dt(e)}function Fa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Aa(e),o=tt(1);t&&(r?G(r)&&(o=ja(r)):o=ja(e));let s=Pa(a,n,r)?Na(a):tt(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=Dt(a),t=G(r)?Dt(r):r,n=e,i=I(n);for(;i&&t!==n;){let e=ja(i),t=i.getBoundingClientRect(),r=qt(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=Dt(i),i=I(n)}}return ae({width:u,height:d,x:c,y:l})}function Ia(e,t){let n=Ae(e).scrollLeft;return t?t.left+n:Fa(De(e)).left+n}function La(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ia(e,n),y:n.top+t.scrollTop}}function Ra(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=De(r),s=t?Ft(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=tt(1),u=tt(0),d=je(r);if((d||!a)&&((we(r)!==`body`||me(o))&&(c=Ae(r)),d)){let e=Fa(r);l=ja(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?La(o,c):tt(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 za(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ba(e){let t=Ae(e),n=e.ownerDocument.body,r=g(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=g(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ia(e),o=-t.scrollTop;return qt(n).direction===`rtl`&&(a+=g(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Va=25;function Ha(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Dt(e),a=De(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!xt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ia(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<=Va&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ua(e,t){let n=Fa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ja(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Wa(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ha(e,n,t);else if(t===`document`)r=Ba(De(e));else if(G(t))r=Ua(t,n);else{let n=Na(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ae(r)}function Ga(e,t){let n=t.get(e);if(n)return n;let r=N(e,[],!1).filter(e=>G(e)&&we(e)!==`body`),i=null,a=qt(e).position===`fixed`,o=a?V(e):e;for(;G(o)&&!Pe(o);){let e=qt(o),t=B(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=V(o)}return t.set(e,r),r}function Ka(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ft(t)?[]:Ga(t,this._c):[].concat(n),r],o=Wa(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=Wa(t,a[e],i);s=g(n.top,s),c=lt(n.right,c),l=lt(n.bottom,l),u=g(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function qa(e){let{width:t,height:n}=ka(e);return{width:t,height:n}}function Ja(e,t,n){let r=je(t),i=De(t),a=n===`fixed`,o=Fa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=tt(0);if((r||!a)&&((we(t)!==`body`||me(i))&&(s=Ae(t)),r)){let e=Fa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ia(i));let l=i&&!r&&!a?La(i,s):tt(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 Ya(e){return qt(e).position===`static`}function Xa(e,t){if(!je(e)||qt(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return De(e)===n&&(n=n.ownerDocument.body),n}function Za(e,t){let n=Dt(e);if(Ft(e))return n;if(!je(e)){let t=V(e);for(;t&&!Pe(t);){if(G(t)&&!Ya(t))return t;t=V(t)}return n}let r=Xa(e,t);for(;r&&Xe(r)&&Ya(r);)r=Xa(r,t);return r&&Pe(r)&&Ya(r)&&!B(r)?n:r||v(e)||n}var Qa=async function(e){let t=this.getOffsetParent||Za,n=this.getDimensions,r=await n(e.floating);return{reference:Ja(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $a(e){return qt(e).direction===`rtl`}var eo={convertOffsetParentRelativeRectToViewportRelativeRect:Ra,getDocumentElement:De,getClippingRect:Ka,getOffsetParent:Za,getElementRects:Qa,getClientRects:za,getDimensions:qa,getScale:ja,isElement:G,isRTL:$a};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function no(e,t,n){let r=null,i,a=De(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=Bt(d),h=Bt(a.clientWidth-(u+f)),_=Bt(a.clientHeight-(d+p)),v=Bt(u),y={rootMargin:-m+`px `+-h+`px `+-_+`px `+-v+`px`,threshold:g(0,lt(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(!to(l,e.getBoundingClientRect()))return s();if(n!==c){if(!b)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(x,{...y,root:a.ownerDocument})}catch{r=new IntersectionObserver(x,y)}r.observe(e)}let c=Dt(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ro(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=Aa(e),u=i||a?[...l?N(l):[],...t?N(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?no(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?Fa(e):null;c&&g();function g(){let t=Fa(e);h&&!to(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 io=Ta,ao=Ea,oo=Sa,so=Oa,co=Da,lo=(e,t,n)=>{let r=new Map,i=n??{},a={...eo,...i.platform,_c:r};return xa(e,t,{...i,platform:a})},uo=typeof document<`u`?X.useLayoutEffect:function(){};function fo(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(!fo(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)&&!fo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function po(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mo(e,t){let n=po(e);return Math.round(t*n)/n}function ho(e){let t=X.useRef(e);return uo(()=>{t.current=e}),t}function go(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]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);fo(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=ho(c),D=ho(i),O=ho(l),k=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),lo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!fo(w.current,t)&&(w.current=t,Oi.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);uo(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=X.useRef(!1);uo(()=>(A.current=!0,()=>{A.current=!1}),[]),uo(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=X.useMemo(()=>({reference:b,floating:x}),[b,x]),N=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=mo(M.floating,u.x),r=mo(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...po(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var _o=(e,t)=>{let n=io(e);return{name:n.name,fn:n.fn,options:[e,t]}},vo=(e,t)=>{let n=ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},yo=(e,t)=>({fn:co(e).fn,options:[e,t]}),bo=(e,t)=>{let n=oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},xo=(e,t)=>{let n=so(e);return{name:n.name,fn:n.fn,options:[e,t]}};function So(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=X.useState(null),d=X.useRef(null),f=ne(n),p=X.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=go({...e,elements:{...p,...l&&{reference:l}}}),h=X.useCallback(e=>{let t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=X.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=X.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=X.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return K(()=>{o&&(d.current=o)},[o]),K(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),X.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var Co=X.createContext(void 0);function wo(){return X.useContext(Co)?.direction??`ltr`}var To=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}=Le(e,t)||{};if(l==null)return{};let d=w(u),f={x:n,y:r},p=Ue(i),m=be(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=s.floating[y]||a.floating[m],C=b/2-x/2,T=S/2-h[m]/2-1,E=Math.min(d[_],T),D=Math.min(d[v],T),O=E,k=S-h[m]-D,A=S/2-h[m]/2+C,j=nt(O,A,k),M=!c.arrow&&Kt(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Eo=(e,t)=>{let{name:n,fn:r}=To(e);return{name:n,fn:r,options:[e,t]}},Do={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Oo={sideX:`left`,sideY:`top`},ko=`--available-width`,Ao=`--available-height`,jo=`--anchor-width`,Mo=`--anchor-height`,No=`--transform-origin`,Po=`--positioner-width`,Fo=`--positioner-height`,Io=ko,Lo=Ao;function Ro(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function zo(e,t,n){let{rects:r,placement:i}=e;return{side:Ro(t,le(i),n),align:Kt(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Bo(e){return Vo(e,So)}function Vo(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,w=v.side||`flip`,T=v.align||`flip`,E=v.fallbackAxisSide||`end`,D=y?.crossAxis??!1,O=y?.rootBoundary,k=typeof n==`function`?n:void 0,A=J(k),j=k?A:n,M=h(n),N=h(_),P=wo()===`rtl`,[F,I]=X.useState(null);!_&&F!==null&&I(null);let ee=S===`placement`,L=F?le(F):null,R=F&&ee?Kt(F)||`center`:null,z=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":P?`left`:`right`,"inline-start":P?`right`:`left`}[i],B=R||o,ne=B===`center`?z:`${z}-${B}`,V=l;typeof V==`number`?V={top:V,right:V,bottom:V,left:V}:V&&={top:V.top||0,right:V.right||0,bottom:V.bottom||0,left:V.left||0};let H=+(i===`bottom`),re=+(i===`top`),U=+(i===`right`),ie=+(i===`left`),ae={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:V},oe=X.useRef(null),W=h(a),se=h(s),ce=typeof a==`function`?0:a,ue=typeof s==`function`?0:s,de=[];p&&de.push(p),de.push(_o(e=>{let t=zo(e,i,P),n=typeof W.current==`function`?W.current(t):W.current,r=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ce,ue,P,i]));let fe=T===`none`&&w!==`shift`,pe=!fe&&(u||D||w===`shift`),me=w===`none`?null:bo({...ae,padding:{top:V.top+1+H,right:V.right+1+ie,bottom:V.bottom+1+re,left:V.left+1+U},mainAxis:!D&&w===`flip`,crossAxis:T===`flip`&&`alignment`,fallbackAxisSideDirection:E}),he=fe?null:vo({...ae,rootBoundary:O,mainAxis:T!==`none`,crossAxis:pe,limiter:u||D?void 0:yo(e=>{if(!oe.current)return{};let{width:t,height:n}=oe.current.getBoundingClientRect(),r=pt(le(e.placement)),i=r===`y`?t:n,a=r===`y`?V.left+V.right:V.top+V.bottom;return{offset:i/2+a/2}})},[ae,u,D,O,V,T]);w===`shift`||T===`shift`||B===`center`?de.push(he,me):de.push(me,he),de.push(xo({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!N.current)return;let i=e.style;i.setProperty(Io,`${t}px`),i.setProperty(Lo,`${n}px`);let a=Dt(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(jo,`${u}px`),i.setProperty(Mo,`${d}px`)}}),Eo(e=>({element:oe.current||te(e.elements.floating).createElement(`div`),padding:oe.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=le(r),u=Kt(r),d=pt(l)===`y`,f=oe.current,p=typeof a==`function`?a(zo(e,i,P)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return pe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(No,d?`${m} ${h}`:`${h} ${m}`),{}}},Do,x),K(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let ge=X.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:_e,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:g,open:m?_:void 0,placement:ne,middleware:de,strategy:r,whileElementsMounted:m?void 0:(...e)=>ro(...e,ge),nodeId:b,externalTree:C}),{sideX:De,sideY:Oe}=xe.adaptiveOrigin||Oo,ke=Te?r:`fixed`,Ae=X.useMemo(()=>{let e;return e=Te?x?{position:ke,[De]:ye,[Oe]:be}:{...Ee,position:ke}:{position:ke,top:0,left:0},e[Io]=`100vw`,e[Lo]=`100vh`,Te||(e.opacity=0),e},[x,ke,De,ye,Oe,be,Ee,Te]),je=X.useRef(null);K(()=>{if(!_)return;let e=M.current,t=typeof e==`function`?e():e,n=(Ho(t)?t.current:t)||null;n!==je.current&&(_e.setPositionReference(n),je.current=n)},[_,_e,j,M]),X.useEffect(()=>{if(!_)return;let e=M.current;typeof e!=`function`&&Ho(e)&&e.current!==je.current&&(_e.setPositionReference(e.current),je.current=e.current)},[_,_e,j,M]),X.useEffect(()=>{if(m&&_&&ve.reference&&ve.floating)return ro(ve.reference,ve.floating,Se,ge)},[m,_,ve,Se,ge]);let Me=le(Ce),G=Ro(i,Me,P),Ne=Kt(Ce)||`center`,Pe=!!xe.hide?.referenceHidden;K(()=>{S&&_&&Te&&(Me!==z||ee&&Ne!==B)&&I(Ce)},[S,ee,_,Te,Ce,Me,Ne,z,B]);let Fe=X.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Ie=xe.arrow?.centerOffset!==0;return X.useMemo(()=>({positionerStyles:Ae,arrowStyles:Fe,arrowRef:oe,arrowUncentered:Ie,side:G,align:Ne,physicalSide:Me,anchorHidden:Pe,refs:_e,context:we,isPositioned:Te,update:Se}),[Ae,Fe,oe,Ie,G,Ne,Me,Pe,_e,we,Te,Se])}function Ho(e){return e!=null&&`current`in e}function Uo(e){return e===`starting`?pe:p}function Wo(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),P(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Uo(r),i],stateAttributesMapping:F})}var Go={A:!1,ActionIcon:!1,ActionIconGroup:!1,Alert:!1,Avatar:!1,AvatarGroup:!1,BaseActionIcon:!0,BaseButton:!0,Block:!1,BottomGradientButton:!0,Burger:!1,Button:!0,Center:!1,Checkbox:!1,CheckboxGroup:!1,Collapse:!1,ColorSwatches:!1,CopyButton:!1,DownloadButton:!1,EditableText:!1,Empty:!1,FileTypeIcon:!1,Flexbox:!1,FluentEmoji:!1,GradientButton:!0,Highlighter:!1,Hotkey:!1,Icon:!1,Image:!1,Img:!1,Input:!1,InputNumber:!1,InputPassword:!1,List:!1,ListItem:!1,Select:!1,Switch:!1,Markdown:!1,MaterialFileTypeIcon:!1,Segmented:!1,Skeleton:!1,SkeletonAvatar:!1,SkeletonBlock:!1,SkeletonButton:!1,SkeletonParagraph:!1,SkeletonTags:!1,SkeletonText:!1,SkeletonTitle:!1,Snippet:!1,Tag:!1,Text:!1,TextArea:!1,ThemeSwitch:!1,Video:!1};function Ko(e){let t=e.type;if(typeof t!=`string`){if(typeof t==`function`)return t.displayName||t.name;if(typeof t==`object`&&t)return t.displayName||t.render?.displayName||t.render?.name||t.type?.displayName||t.type?.name}}function qo({children:e,nativeButton:t,triggerNativeButton:n}){let r=(0,X.useMemo)(()=>(0,X.isValidElement)(e)?typeof e.type==`string`&&e.type===`button`:!1,[e]);return{isNativeButtonTriggerElement:r,resolvedNativeButton:(0,X.useMemo)(()=>{if(t!==void 0)return t;if(n!==void 0)return n;if(r)return!0;if(!(0,X.isValidElement)(e))return;if(typeof e.type==`string`||e.props?.href!==void 0)return!1;let i=Ko(e);return i&&i in Go?Go[i]:!1},[e,r,t,n])}}var Jo=Number.parseInt(X.version,10)>=19,Yo=e=>{if((0,X.isValidElement)(e))return Jo?e.props?.ref:e.ref},Xo=(0,X.createContext)(null),Zo=()=>(0,X.use)(Xo),Qo=Xo.Provider,$o=()=>{let[e,t]=(0,X.useState)(typeof document<`u`);return(0,X.useEffect)(()=>{e||t(!0)},[]),e},es,ts=()=>es,ns={align:`center`,side:`top`},rs={align:`start`,side:`top`},is={align:`end`,side:`top`},as={align:`center`,side:`bottom`},os={bottom:as,bottomCenter:as,bottomLeft:{align:`start`,side:`bottom`},bottomRight:{align:`end`,side:`bottom`},left:{align:`center`,side:`left`},leftBottom:{align:`end`,side:`left`},leftTop:{align:`start`,side:`left`},right:{align:`center`,side:`right`},rightBottom:{align:`end`,side:`right`},rightTop:{align:`start`,side:`right`},top:ns,topCenter:ns,topLeft:rs,topRight:is},ss={variantBorderlessWithoutHover:{kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w`,kGVxlE:`lb1gnnqk1`,$$css:!0},variantFilledWithoutHover:{kWkggS:`lbaljia1`,$$css:!0},variantOutlinedWithoutHover:{kVAM5u:`lb10cypdb`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb6yijhg`,$$css:!0}},cs=X.createContext(void 0);function ls(e){let t=X.useContext(cs);if(t===void 0&&!e)throw Error(Me(69));return t}function us(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=X.useRef(null),o=X.useRef(null),s=ce(r);K(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),K(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}var ds=20;function fs(e,t,n,r){let[i,a]=X.useState(!1);K(()=>{if(!e||!t||n==null){a(!1);return}let r=te(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-ds)},[e,t,n]),Ot(e&&(!t||i),r)}function ps(e){let t=X.useRef(``),n=X.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:X.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function ms(e,t){let n=X.useRef(e),r=J(t);K(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function hs(e,t){let{onClick:n,onPointerDown:r}=ps(J((n,r)=>{(typeof e==`function`?e():e)||t(r||(zt?`touch`:``))}));return X.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function gs(e){let[t,n]=X.useState(null),r=hs(e,n);return ms(e,t=>{t&&!e&&n(null)}),X.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var _s=5;function vs(e,t){let n=ys(t);return e.clientX>=n.left-_s&&e.clientX<=n.right+_s&&e.clientY>=n.top-_s&&e.clientY<=n.bottom+_s}function ys(e){let t=e.getBoundingClientRect(),n=Dt(e);if(Tt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function bs(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=ge(),{ref:i,index:a}=Gr(e),o=n===a,s=X.useRef(null),c=Ne(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function xs(e){let{render:t,className:n,style:r,state:i=p,props:a=he,refs:o=he,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=bs({metadata:s});return P(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Ss(e,t){function n(n,r,i){let a=n.currentTarget;Oi.flushSync(()=>{e.setOpen(!1,Y(et,n.nativeEvent,a))}),Be(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&wt(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Cs(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function ws(e){let t=new Set((Array.isArray(e)?e:[e]).flatMap(e=>e===`both`?[`hover`,`click`]:[e]));return{openOnClick:t.has(`click`),openOnHover:t.has(`hover`)}}var Ts,{min:Es,max:Ds,abs:Os,floor:ks}=Math,As=(e,t,n)=>Ds(t,Es(n,e)),js=e=>e.sort((e,t)=>e-t),Ms=setTimeout,Ns=clearTimeout,Ps=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},Fs=()=>{let e;return[new Promise(t=>{e=t}),e]},Is=typeof window<`u`,Ls=()=>(Ts??=/iP(hone|od|ad)/.test(navigator.userAgent)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>0,Ts),Rs=e=>Ds(e.t(),e.o()),zs=({$:e,p:t,i:n,m:r,_:i,t:a,S:o,v:s,I:c},l=0)=>{let u=!!l,d=1,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=null,x=[0,u?Ds(l-1,0):-1],S=!1,C=new Set,w=()=>m-p,T=()=>w()+g+h,E=(e,t)=>{let i=n(e),a=r(e);return v!==1&&y===0?i+a<=t:i<t&&i+a<t+f},D=e=>{e&&(Ls()&&v!==0||b&&y===1?g+=e:h+=e)},O=e=>{let n=o();if(y===2)return n;if(e)return 0;if(b&&y===1)return Es(b[0],n);let r=T(),i=t(r);for(;i>0&&!E(i-1,r);)i--;for(;i<n&&E(i,r);)i++;return i};return{R:()=>d,$:(t=200)=>{let n,r;if(!S||u||_)[n,r]=x;else{let i=T(),o=i+f;c()||(t=Ds(0,t),v!==1&&(i-=t),v!==2&&(o+=t)),[n,r]=x=!b&&(o<=0||i>=a())?[0,-1]:e(Ds(0,i),Ds(0,o)),b&&(n=Es(n,b[0]),r=Ds(r,b[1]))}return[n,Es(r,o()-1)]},l:O,i:e=>n(e)-g,O:()=>m,T:()=>v!==0,o:()=>f,k:()=>p,t:a,C:()=>(_=h,h=0,[_,y===2]),M:e=>(C.add(e),()=>{C.delete(e)}),h:(t,r,c)=>{let l,x=0;switch(t){case 1:{if(c!=null&&(p=c),r===m&&y===0)break;let e=r-m,t=Os(e),n=_&&t<Os(_)+1;_=0,n||y!==0||(v=e<0?2:1),u=!1,m=r,x=4;let i=w();i>=-f-t&&i<=a()+t&&(x+=1,l=t>f);break}case 2:x=8,v!==0&&(h+=g,g=0,x+=1),v=0,y=0,b=null;break;case 3:if(r.length){let e=O(c),t=n(e);i(r,f),D(n(e)-t),x=3,l=!0}break;case 4:f!==r&&(f||(S=l=!0),f=r,x=3);break;case 5:if(r!==o()){if(c){let e=a();s(r,!0),D(a()-e),y=2}else s(r);x=1}break;case 6:D(r),x=1;break;case 7:r!==p&&(p=r,x=1);break;case 8:y=1;break;case 9:b=e(r,r+f),x=1}x&&(d=1+(2147483647&d),C.forEach(e=>{e(x,l)}))}}},Bs=(e,t,n)=>{let r=n?`unshift`:`push`;for(let n=0;n<t;n++)e[r](-1);return e},Vs=(e,t,n)=>{let r=0,i=t-1,a=0;for(;r<=i;){let t=ks((r+i)/2);e(t)<=n?(a=t,r=t+1):i=t-1}return a},Hs=(e,t,n)=>{let r=n&&n[1]||t||40,i=0,a=!t,o=n?n[0].slice(0,e):[];Bs(o,e-o.length);let s=[0],c=e=>{let t=o.length+1;for(let n=e;n<t;n++){let e=o[n-1];e===-1&&(e=r);for(let t=1;t<(n&-n);t<<=1)e+=s[n-t];s[n]=e}s.length=t};c(1);let l=e=>{let t=o[e];return t===-1?r:t},u=t=>{if(!e)return 0;let n=0;for(;t>0;t-=t&-t)n+=s[t];return n},d=t=>Vs(u,e,t);return{$:(e,t)=>[d(e),d(t)],p:d,i:u,m:l,L:(e,t=-1)=>o[e]===t,_:(e,t)=>{for(let[t,n]of e){let e=n-l(t);i+=o[t]===-1?n:e,o[t]=n;for(let n=t+1;n<s.length;n+=n&-n)s[n]+=e}if(a&&t&&i>t){let e=js(o.filter(e=>e!==-1&&e)),t=e.length,n=t/2|0;r=t%2==0?(e[n-1]+e[n])/2:e[n],c(1),a=!1}},t:()=>u(e),S:()=>e,v:(t,n)=>{let r=t-e;e=t,r>=0?Bs(o,r,n):o.splice(n?0:r,-r),c(n?1:s.length)},I:()=>a,A:()=>[o.slice(),r]}},Us=e=>{let t,n,r=null;return{J(i){t||=(n=i.ownerDocument.defaultView,new n.ResizeObserver(t=>{r=t,e(t),r=null})),r&&!r.some(e=>e.target.contains(i))?n.requestAnimationFrame(()=>{i.isConnected&&t.observe(i)}):t.observe(i)},j(e){t.unobserve(e)},G(){t&&t.disconnect()}}},Ws=(e,t,n,r,i,a,o,s)=>{let c,l,u=!1,d=!1,f=!1,p=!1,m=i?`scrollLeft`:`scrollTop`,h=i?`left`:`top`,g=e=>a?-e:e,_=()=>g(r[m]),v=(e,t)=>{r.scrollTo({[h]:e,behavior:t?`smooth`:`instant`})},y=()=>{u||d?(u=!1,b()):(f=!1,e.h(2))},b=()=>{Ns(l),l=Ms(y,150)},x=()=>{u=!1,f&&(p=!0),e.h(1,_(),s&&s()),b()},S=t=>{e.T()&&!t.ctrlKey&&(i?t.deltaX:t.deltaY)&&(u=!0)},C=()=>{d=!0,f=p=!1},w=()=>{d=!1,Ls()&&(f=!0)};return n.addEventListener(`scroll`,x),n.addEventListener(`wheel`,S,{passive:!0}),n.addEventListener(`touchstart`,C,{passive:!0}),n.addEventListener(`touchend`,w,{passive:!0}),n.addEventListener(`touchcancel`,w,{passive:!0}),{D:()=>{_()===e.O()?s&&e.h(7,s()):x()},G:()=>{n.removeEventListener(`scroll`,x),n.removeEventListener(`wheel`,S),n.removeEventListener(`touchstart`,C),n.removeEventListener(`touchend`,w),n.removeEventListener(`touchcancel`,w),Ns(l),c&&c()},F:()=>{let[t,n]=e.C();if(t){p&&o&&o(),p=!1;let i=e.O(),a=i+t,s=e.k()+e.t()-e.o();a<=0||a>=s||i>=s?v(g(a)):r.scrollBy({[h]:g(t),behavior:`instant`}),n&&(c&&c(),e.o()>e.t()&&e.h(1,_()))}return n},K:(n,r,i=v)=>{let a,o,s;c&&c();let l=c=()=>{a=!0,Ns(o),s&&s()},u=()=>{if(!a){if(e.o()&&(Ns(o),o=Ms(l,150)),r){for(let[n,r]=e.$(0);n<=r;n++)if(t.L(n))return;l()}e.h(8),i(g(n()),r)}};if(r&&e.h(9,n()),!a){let t;s=e.M(e=>{2&e&&!t&&(t=!0,Ps(()=>{t=!1,u()}))}),u()}}}},Gs=(e,t,n)=>{let r,i,a=Fs(),o=0,s=new Map,c=new WeakMap,l=Us(a=>{let o=[],l=[];for(let{target:u,contentRect:{width:d,height:f}}of a)if(u===r)(d||f)&&(i.D(),e.h(4,n?d:f));else if(u.offsetParent){let e=s.get(u),r=c.get(u);c.set(u,e);let i=n?d:f;e==null||t.L(e,i)||(r!=null&&r!==e?l:o).push([e,i])}e.h(3,l,!0),e.h(3,o)});return{N(o,s=o.parentElement){l.J(r=s),i=Ws(e,t,s,s,n,n&&getComputedStyle(s).direction===`rtl`,()=>{let e=n?`overflowX`:`overflowY`,t=s.style,r=t[e];t[e]=`hidden`,Ms(()=>{t[e]=r})}),a[1](!0)},U(){l.G(),i&&i.G(),a[1](!1),a=Fs()},Z:(e,t)=>(s.set(e,t),l.J(e),()=>{s.delete(e),l.j(e)}),async ee(n,{align:r,smooth:o,offset:s=0}={}){if(n!=null&&(n=As(n,0,t.S()-1),r===`nearest`)){let i=e.i(n),a=e.O()-e.k();if(i<a)r=`start`;else{if(!(i+t.m(n)>a+e.o()))return;r=`end`}}await a[0]&&i.K(()=>n==null?s:s+e.k()+e.i(n)+(r===`end`?t.m(n)-e.o():r===`center`?(t.m(n)-e.o())/2:0),o)},te(){let e=i&&i.F();o!==(o=t.S())&&e&&s.forEach((e,t)=>{l.j(t),l.J(t)})}}},Ks=Is?X.useLayoutEffect:X.useEffect,qs=(e,t)=>{if(Array.isArray(e))for(let n of e)qs(n,t);else e==null||typeof e==`boolean`||t.push(e)},Js=(e,t)=>e.key??`_`+t,Ys=e=>{let t=(0,X.useRef)(null);return t.current||=e()},Xs=e=>{let t=(0,X.useRef)(e);return Ks(()=>{t.current=e},[e]),t},Zs=(0,X.memo)(({ne:e,re:t,se:n,le:r,ie:i,ce:a,fe:o,ae:s})=>{let c=(0,X.useRef)(null);Ks(()=>t(c.current,n),[n]);let l=(0,X.useMemo)(()=>{let e={contain:`layout style`,overflowAnchor:`none`,position:i&&s?void 0:`absolute`,[o?`height`:`width`]:`100%`,[o?`top`:`left`]:0,[o?`insetInlineStart`:`top`]:r,visibility:!i||s?void 0:`hidden`};return o&&(e.display=`inline-flex`),e},[r,i,s,o]);return(0,Z.jsx)(a,typeof a==`string`?{ref:c,style:l,children:e}:{ref:c,style:l,index:n,children:e})}),Qs=(e,t)=>(0,X.useMemo)(()=>{if(typeof e==`function`)return[n=>e(t[n],n),t.length];let n=(e=>{let t=[];return qs(e,t),t})(e);return[e=>n[e],n.length]},[e,t]),$s=(0,X.forwardRef)(({children:e,data:t,bufferSize:n,itemSize:r,shift:i,horizontal:a,keepMounted:o,cache:s,startMargin:c=0,ssrCount:l,as:u=`div`,item:d=`div`,scrollRef:f,onScroll:p,onScrollEnd:m,onResize:h},g)=>{"use no memo";let[_,v]=Qs(e,t),y=(0,X.useRef)(null),b=(0,X.useRef)(!!l),x=Xs(p),S=Xs(m),C=Xs(h),[w,T,E,D]=Ys(()=>{let e=!!a,t=Hs(v,r,s),n=zs(t,l);return[n,t,Gs(n,t,e),e]});w.h(5,v,i),w.h(7,c);let[O,k]=(0,X.useReducer)(w.R,void 0,w.R),A=w.T(),j=w.t(),M=[];Ks(()=>{let e=!1;b.current=!1;let t=w.M((e,t)=>{1&e&&(t?(0,Oi.flushSync)(k):k()),4&e&&x.current&&x.current(w.O()),8&e&&S.current&&S.current(),2&e&&C.current&&C.current()}),n=y.current;return f?Ps(()=>{!e&&f.current&&E.N(n,f.current)}):E.N(n),()=>{e=!0,t(),E.U()}},[]),Ks(()=>{E.te()},[O]),(0,X.useImperativeHandle)(g,()=>({get cache(){return T.A()},get scrollOffset(){return w.O()},get scrollSize(){return Rs(w)},get viewportSize(){return w.o()},findItemIndex:e=>T.p(e-w.k()),getItemOffset:w.i,getItemSize:T.m,scrollToIndex:E.ee,scrollTo:e=>E.ee(void 0,{offset:e}),scrollBy:e=>E.ee(void 0,{offset:e+w.O()})}),[]);let N=[];if(o){let e=new Set(o);for(let[t,r]=w.$(n);t<=r;t++)e.add(t);for(let t of js([...e]))t>=0&&t<v&&N.push(t)}else for(let[e,t]=w.$(n);e<=t;e++)N.push(e);for(let e of N){let t=_(e);M.push((0,Z.jsx)(Zs,{re:E.Z,se:e,le:w.i(e),ie:T.L(e),ce:d,ne:t,fe:D,ae:b.current},Js(t,e)))}return(0,Z.jsx)(u,{ref:y,style:{contain:`size style`,flex:`none`,position:`relative`,width:D?j:`100%`,height:D?`100%`:j,pointerEvents:A?`none`:void 0},children:M})}),ec=X.createContext(void 0);function tc(){let e=X.useContext(ec);if(e===void 0)throw Error(Me(53));return e}function nc(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var rc=`base-ui-disable-scrollbar`,ic={className:rc,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:rc,precedence:`base-ui:low`,children:`.${rc}{scrollbar-width:none}.${rc}::-webkit-scrollbar{display:none}`})}},ac=`data-has-overflow-x`,oc=`data-has-overflow-y`,sc=`data-overflow-x-start`,cc=`data-overflow-x-end`,lc=`data-overflow-y-start`,uc=`data-overflow-y-end`,dc=e=>t=>t?{[e]:``}:null,fc={hasOverflowX:dc(ac),hasOverflowY:dc(oc),overflowXStart:dc(sc),overflowXEnd:dc(cc),overflowYStart:dc(lc),overflowYEnd:dc(uc),cornerHidden:()=>null},pc=X.createContext(void 0),mc={disableStyleElements:!1};function hc(){return X.useContext(pc)??mc}var gc=`--scroll-area-corner-height`,_c=`--scroll-area-corner-width`,vc=`data-orientation`,yc={x:0,y:0},bc={width:0,height:0},xc={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Sc={x:!0,y:!0,corner:!0},Cc=X.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=wc(i),d=Oe(),f=ie(),p=ie(),{nonce:m,disableStyleElements:h}=hc(),[g,_]=X.useState(!1),[v,y]=X.useState(!1),[b,x]=X.useState(!1),[S,C]=X.useState(!1),[w,T]=X.useState(!1),[E,D]=X.useState(bc),[O,k]=X.useState(bc),[A,j]=X.useState(xc),[M,N]=X.useState(Sc),F=X.useRef(null),I=X.useRef(null),ee=X.useRef(null),te=X.useRef(null),L=X.useRef(null),R=X.useRef(null),z=X.useRef(null),B=X.useRef(null),ne=X.useRef(0),V=X.useRef(0),H=X.useRef(0),re=X.useRef(0),U=X.useRef(`vertical`),ae=X.useRef(yc),oe=X.useRef(null);function W(e){let t=e?x:y,n=e?f:p;t(!0),n.start(500,()=>{t(!1)})}let se=J(e=>{let t=e.x-ae.current.x,n=e.y-ae.current.y;ae.current=e,n!==0&&W(!0),t!==0&&W(!1)}),ce=J(()=>{let e=I.current;e&&oe.current===null&&(oe.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),le=J(e=>{if(e.button!==0||B.current!==null&&(U.current===`vertical`?L.current:R.current)?.hasPointerCapture(B.current))return;B.current=e.pointerId,ne.current=e.clientY,V.current=e.clientX,U.current=e.currentTarget.getAttribute(vc);let t=I.current;t&&(H.current=t.scrollTop,re.current=t.scrollLeft,ce()),(U.current===`vertical`?L.current:R.current)?.setPointerCapture(e.pointerId)}),ue=J(e=>{if(e.pointerId!==B.current)return;B.current=null,(U.current===`vertical`?x:y)(!1),oe.current!==null&&(I.current&&(I.current.style.scrollSnapType=oe.current),oe.current=null);let t=U.current===`vertical`?L.current:R.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),de=J(e=>{if(e.pointerId!==B.current)return;if(e.buttons%2==0){ue(e);return}let t=I.current;if(!t)return;let n=U.current===`vertical`,r=n?L.current:R.current,i=n?ee.current:te.current;if(!r||!i)return;let a=n?`y`:`x`,o=nc(i,`padding`,a),s=nc(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-ne.current:e.clientX-V.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?H.current:re.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),W(n)});function fe(e){C(e.pointerType===`touch`)}function pe(e){if(fe(e),e.pointerType!==`touch`){let t=q(F.current,e.target);_(t)}}let me=X.useMemo(()=>({scrolling:v||b,hasOverflowX:!M.x,hasOverflowY:!M.y,overflowXStart:A.xStart,overflowXEnd:A.xEnd,overflowYStart:A.yStart,overflowYEnd:A.yEnd,cornerHidden:M.corner}),[v,b,M.x,M.y,M.corner,A]),he={role:`presentation`,onPointerEnter:pe,onPointerMove:pe,onPointerDown:fe,onPointerLeave(){_(!1)},style:{position:`relative`,[gc]:`${E.height}px`,[_c]:`${E.width}px`}},ge=P(`div`,e,{state:me,ref:[t,F],props:[he,o],stateAttributesMapping:fc}),_e=X.useMemo(()=>({handlePointerDown:le,handlePointerMove:de,handlePointerUp:ue,handleScroll:se,disableViewportSnap:ce,cornerSize:E,setCornerSize:D,thumbSize:O,setThumbSize:k,hasMeasuredScrollbar:w,setHasMeasuredScrollbar:T,touchModality:S,cornerRef:z,scrollingX:v,scrollingY:b,hovering:g,setHovering:_,viewportRef:I,scrollbarYRef:ee,scrollbarXRef:te,thumbYRef:L,thumbXRef:R,rootId:d,hiddenState:M,setHiddenState:N,overflowEdges:A,setOverflowEdges:j,viewportState:me,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[le,de,ue,se,ce,E,O,w,S,v,b,g,d,M,A,me,s,c,l,u]);return(0,Z.jsxs)(ec.Provider,{value:_e,children:[!h&&ic.getElement(m),ge]})});function wc(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}function Tc(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Ec=X.createContext(void 0);function Dc(e,t){return Math.max(0,e-t)}function Oc(e,t){if(t<=0)return 0;let n=Tc(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var kc=`--scroll-area-overflow-x-start`,Ac=`--scroll-area-overflow-x-end`,jc=`--scroll-area-overflow-y-start`,Mc=`--scroll-area-overflow-y-end`,Nc=`--scroll-area-thumb-height`,Pc=`--scroll-area-thumb-width`,Fc=[kc,Ac,jc,Mc],Ic=!1;function Lc(){Ic||$e||(typeof CSS<`u`&&`registerProperty`in CSS&&Fc.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Ic=!0)}var Rc=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:v,handleScroll:y,touchModality:b,setHovering:x,setOverflowEdges:S,overflowEdgeThreshold:C,viewportState:w}=tc(),T=wo(),E=X.useRef(!0),D=X.useRef([NaN,NaN,NaN,NaN]),O=ie(),k=ie(),A=J(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,y=e.clientHeight,b=e.clientWidth,x=e.scrollTop,w=e.scrollLeft,E=D.current,O=Number.isNaN(E[0]);if(E[0]=y,E[1]=h,E[2]=b,E[3]=_,O&&v(!0),h===0||_===0)return;let k=zc(e),A=k.y,j=k.x,M=b/_,N=y/h,P=Math.max(0,_-b),F=Math.max(0,h-y),I=0,ee=0;j||(I=Oc(T===`rtl`?-w:w,P),ee=P-I);let te=A?0:Oc(x,F),L=A?0:F-te,R=j?0:b,z=A?0:y,B=0,ne=0;!j&&!A&&(B=t?.offsetWidth||0,ne=n?.offsetHeight||0);let V=f.width===0&&f.height===0,H=V?B:0,re=V?ne:0,U=nc(n,`padding`,`x`),ie=nc(t,`padding`,`y`),ae=nc(i,`margin`,`x`),oe=nc(r,`margin`,`y`),W=R-U-ae,se=z-ie-oe,ce=n?Math.min(n.offsetWidth-H,W):W,le=t?Math.min(t.offsetHeight-re,se):se,ue=Math.max(16,ce*M),de=Math.max(16,le*N);if(m(e=>Bc(e,{width:ue,height:de})),t&&r){let e=Vc(r,Nc,x,F,h,de,t.offsetHeight-de-ie-oe);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-ue-U-ae,t=Vc(i,Pc,T===`rtl`?-w:w,P,_,ue,e);i.style.transform=`translate3d(${T===`rtl`?-t:t}px,0,0)`}let fe=[I,ee,te,L];Fc.forEach((t,n)=>{e.style.setProperty(t,`${fe[n]}px`)}),a&&p(e=>Bc(e,{width:B,height:ne})),g(e=>Bc(e,k));let pe={xStart:!j&&I>C.xStart,xEnd:!j&&ee>C.xEnd,yStart:!A&&te>C.yStart,yEnd:!A&&L>C.yEnd};S(e=>Bc(e,pe))});K(()=>{Lc()},[]),K(()=>{queueMicrotask(A)},[A,_,T,C.xStart,C.xEnd,C.yStart,C.yEnd]),K(()=>{o.current?.matches(`:hover`)&&x(!0)},[o,x]),K(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=D.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}A()});return n.observe(e),k.start(0,()=>{let t=dt(e,{subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished.then(Ye))).then(A).catch(()=>{})}),()=>{n.disconnect(),k.clear()}},[A,o,k]);function j(){E.current=!1}let M={...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:ic.className,style:{overflow:`scroll`},onScroll(){o.current&&(A(),(b||!E.current)&&y({x:o.current.scrollLeft,y:o.current.scrollTop}),O.start(100,()=>{E.current=!0}))},onWheel:j,onPointerMove:j,onPointerEnter:j,onKeyDown:j},N=P(`div`,e,{ref:[t,o],state:w,props:[M,a],stateAttributesMapping:fc}),F=X.useMemo(()=>({computeThumbPosition:A}),[A]);return(0,Z.jsx)(Ec.Provider,{value:F,children:N})});function zc(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Bc(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function Vc(e,t,n,r,i,a,o){let s=Tc(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var Hc=X.createContext(void 0);function Uc(){let e=X.useContext(Hc);if(e===void 0)throw Error(Me(54));return e}var Wc=X.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,scrollbarYRef:f,scrollbarXRef:p,viewportRef:m,thumbYRef:h,thumbXRef:g,handlePointerDown:_,handlePointerUp:v,handleScroll:y,disableViewportSnap:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:C,viewportState:w}=tc(),T=i===`vertical`,E={...w,hovering:c,scrolling:T?u:l,orientation:i},D=wo(),O=!C&&!a,k=T?d.y:d.x,A=a||!k;X.useEffect(()=>{if(!A)return;let e=m.current,t=T?f.current:p.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!T,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&D===`rtl`?-a:0,s=n&&D===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),y({x:e.scrollLeft,y:e.scrollTop}))}return W(t,`wheel`,n,{passive:!1})},[D,y,T,p,f,A,m]);let j={...x&&{"data-id":`${x}-scrollbar`},"aria-hidden":!0,onPointerDown(e){if(e.button!==0)return;let t=We(e.nativeEvent),n=T?h.current:g.current;if(n&&q(n,t))return;let r=m.current;if(!r)return;let i=T?f.current:p.current;if(!n||!i)return;let a=T?`y`:`x`,o=nc(n,`margin`,a),s=nc(i,`padding`,a),c=T?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=T?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=T?r.scrollHeight:r.scrollWidth,v=T?r.clientHeight:r.clientWidth,x=(T?i.offsetHeight:i.offsetWidth)-c-s-o;if(x<=0)return;let S=u/x,C=d-v;b(),T?r.scrollTop=S*C:r.scrollLeft=D===`rtl`?-(1-S)*C:S*C,y({x:r.scrollLeft,y:r.scrollTop}),_(e)},onMouseDown(e){e.preventDefault()},onPointerUp:v,onPointerCancel:v,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:O?`hidden`:void 0,...T?{top:0,bottom:`var(${gc})`,insetInlineEnd:0,[Nc]:`${S.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${_c})`,bottom:0,[Pc]:`${S.width}px`}}},M=P(`div`,e,{ref:[t,T?f:p],state:E,props:[j,s],stateAttributesMapping:fc});return A?(0,Z.jsx)(Hc.Provider,{value:i,children:M}):null}),Gc=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=tc(),m=Uc(),h=m===`vertical`;return P(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})}),Kc=u({block:`scroll-area`,elements:[`viewport`,`content`,`scrollbar`,`thumb`,`corner`]}),qc={corner:{kWkggS:`lbjjy28o`,$$css:!0},root:{kB7OPa:`lb9f619`,kVAEAm:`lb1n2onr6`,$$css:!0},scrollbar:{kogj98:`lb10d6zji`,kaIpWk:`lb1vihcfj`,kmkexE:`lbbq4x80`,kWkggS:`lbjbqb8w`,kSiTet:`lb1d72f0e lbg01cxk`,kfzvcC:`lbjtggp9 lb47corl`,kIyJzY:`lb1x59bry`,kZKoxP:`lbey0qcv lbgmi5vj`,kzqmXN:`lbdv5nhs lb1mnm1az`,kgeoSG:`lb10tli2e`,k96MEf:`lb1ify4wq`,kSJ0CW:`lbs81dfj`,kEoFBp:`lb1hmns74`,kcTAPf:`lb5buv36 lbx6tml3`,kgzTxl:`lb1s3lflt lb1uphyuq`,kOlAkY:`lb1hodj4j lb1lntsp6`,$$css:!0},thumb:{kaIpWk:`lb1pjcqnp`,kWkggS:`lbur9dxv`,kZKoxP:`lb5yr21d`,kzqmXN:`lbh8yej3`,$$css:!0},viewport:{kI3sdo:`lb1a2a7pz`,kZeWKH:`lbxqldzo`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb5yr21d`,$$css:!0}},Jc=e=>kt(e).className,Yc=(e,t)=>typeof t==`function`?n=>l(e,t(n)):l(e,t),Xc=({className:e,...t})=>(0,Z.jsx)(Cc,{...t,className:Yc(l(Jc(qc.root),Kc()),e)});Xc.displayName=`ScrollAreaRoot`;var Zc=e=>{if(!e)return;let t=e===!0?`vertical`:e;return t===`horizontal`?`lobe-scroll-area-fade-horizontal`:t===`both`?`lobe-scroll-area-fade-both`:`lobe-scroll-area-fade`},Qc=({className:e,scrollFade:t=!1,xstyle:n,...r})=>(0,Z.jsx)(Rc,{...r,className:Yc(l(Jc([qc.viewport,Se.info,n]),Kc(`viewport`),Zc(t)),e)});Qc.displayName=`ScrollAreaViewport`;var $c=Qc,el=({className:e,...t})=>(0,Z.jsx)(Wc,{...t,className:Yc(l(Jc(qc.scrollbar),Kc(`scrollbar`)),e)});el.displayName=`ScrollAreaScrollbar`;var tl=({className:e,...t})=>(0,Z.jsx)(Gc,{...t,className:Yc(l(Jc(qc.thumb),Kc(`thumb`)),e)});tl.displayName=`ScrollAreaThumb`;var nl={root:{kUOVxO:`lba2rfrd`,k1xSpc:`lb78zum5`,kCS8Yb:`lb1t1x2f9`,kXwgrk:`lbdt5ytf`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kAzted:`lb2lwn1j`,$$css:!0},viewport:{kg3NbH:`lb9xwowr`,kCS8Yb:`lb1t1x2f9`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kZKoxP:`lbt7dq6l`,kAzted:`lb2lwn1j`,$$css:!0}},rl=20,il=({children:e,className:t,itemSize:n,keepMounted:r,viewport:i,viewportProps:a,virtualizerRef:o,...s})=>{let c=(0,X.useRef)(null),l=Fe([c,a?.ref]),u=(0,Z.jsx)($s,{itemSize:n,keepMounted:r,ref:o,scrollRef:c,ssrCount:Math.min(rl,X.Children.count(e)),children:e}),d=(0,Z.jsx)(Qc,{tabIndex:-1,...a,ref:l,xstyle:nl.viewport});return(0,Z.jsxs)(Xc,{"data-virtual":``,...s,className:kt(nl.root,t).className,children:[(0,X.cloneElement)(i??d,{children:u,...i&&{render:d}}),(0,Z.jsx)(el,{children:(0,Z.jsx)(tl,{})})]})};il.displayName=`VirtualScrollArea`;function al(){let e=(0,X.useRef)(!1),t=(0,X.useRef)(null),n=(0,X.useCallback)(()=>{e.current=!0,t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{e.current=!1},120)},[]);return(0,X.useEffect)(()=>()=>{t.current&&clearTimeout(t.current)},[]),{markPointerScroll:n,pointerScrollRef:e,scrollGuardProps:{onPointerDown:n,onTouchMove:n,onWheel:n}}}var ol=`[role^="menuitem"], [role="option"]`,sl=`data-virtual-index`,cl=60,ll=e=>e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(ll).join(``):(0,X.isValidElement)(e)?ll(e.props.children):``,ul=(e,t,n)=>{if(!(0,X.isValidElement)(e))return{disabled:!0,label:``};let r=e.props,i=n?.(e,t)??r.label??r[`aria-label`]??ll(r.children);return{disabled:!!r.disabled||r[`aria-disabled`]===!0||r[`aria-disabled`]===`true`,label:i.trim()}},dl=(e,t,n)=>{if(e.length===0)return-1;let r=t.toLowerCase(),i=(n%e.length+e.length)%e.length;for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,a=e[n];if(!a.disabled&&a.label.toLowerCase().startsWith(r))return n}return-1},fl=(e,t)=>{if(t){for(let t=e.length-1;t>=0;--t)if(!e[t].disabled)return t;return-1}return e.findIndex(e=>!e.disabled)};function pl({children:e,enabled:t,getItemLabel:n,keepMounted:r,typeaheadResetMs:i=500}){let a=(0,X.useRef)(null),o=(0,X.useRef)(null),s=(0,X.useRef)(null),c=(0,X.useRef)(null),[l,u]=(0,X.useState)(null),d=(0,X.useRef)(null),[f,p]=(0,X.useState)(null),{pointerScrollRef:m,scrollGuardProps:h}=al(),g=(0,X.useMemo)(()=>t?X.Children.map(e,(e,t)=>ul(e,t,n))??[]:[],[e,t,n]),_=(0,X.useCallback)(e=>{Object.hasOwn(e,`scrollIntoView`)||(e.scrollIntoView=(...t)=>{m.current||HTMLElement.prototype.scrollIntoView.call(e,...t)})},[m]),v=(0,X.useCallback)(()=>{let e=a.current;e&&!e.contains(document.activeElement)&&e.focus({preventScroll:!0})},[]),y=(0,X.useRef)(-1),b=(0,X.useCallback)(()=>{let e=d.current,t=a.current;if(e===null||!t)return!1;v();let n=t.scrollTop,r=n===y.current;if(y.current=n,!r)return!1;let i=t.querySelector(`[${sl}="${e}"]`),o=i&&(i.matches(ol)?i:i.querySelector(ol));return o?(_(o),s.current=o,o.focus({preventScroll:!0}),!0):!1},[_,v]);(0,X.useEffect)(()=>{let e=a.current;if(!t||!e)return;let n=new MutationObserver(()=>{if(d.current!==null){b();return}let t=s.current,n=document.activeElement;t&&!t.isConnected&&n===document.body?(s.current=null,e.focus({preventScroll:!0})):t&&n===t&&t.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0}))});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[t,b]);let x=(0,X.useRef)(null);(0,X.useEffect)(()=>()=>{x.current!==null&&cancelAnimationFrame(x.current)},[]);let S=(0,X.useCallback)(e=>{c.current=e,d.current=e,u(e),p(e),a.current?.focus({preventScroll:!0}),y.current=-1,o.current?.scrollToIndex(e,{align:`nearest`}),x.current!==null&&cancelAnimationFrame(x.current);let t=0,n=()=>{x.current=null,b(),t+=1,d.current!==null&&t<cl?x.current=requestAnimationFrame(n):d.current!==null&&(d.current=null,p(null))};x.current=requestAnimationFrame(n)},[b]),C=(0,X.useRef)(``),w=(0,X.useRef)(null),T=(0,X.useRef)(null),E=(0,X.useCallback)(()=>{C.current=``,T.current&&clearTimeout(T.current),T.current=null},[]);(0,X.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let D=(0,X.useCallback)(e=>{if(!t||g.length===0||e.target instanceof HTMLElement&&e.target.matches(`input, textarea`))return;if(e.key===`Home`||e.key===`End`){let t=e.key===`End`,n=fl(g,t);if(n===-1)return;e.preventDefault(),e.stopPropagation(),E(),S(n);return}if(e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===` `&&C.current===``)return;e.preventDefault(),e.stopPropagation();let n=C.current===``;g.every(e=>e.disabled||e.label[0]?.toLowerCase()!==e.label[1]?.toLowerCase())&&C.current===e.key&&(C.current=``),C.current+=e.key,T.current&&clearTimeout(T.current),T.current=setTimeout(E,i);let r=n||C.current.length===1?c.current??w.current??-1:w.current??c.current??-1,a=C.current.length===1?r+1:r,o=dl(g,C.current,a);o===-1?e.key!==` `&&E():(w.current=o,S(o))},[t,g,S,E,i]),O=(0,X.useMemo)(()=>t?X.Children.map(e,(e,t)=>{if(!(0,X.isValidElement)(e))return e;let{onFocus:n}=e.props;return(0,X.cloneElement)(e,{[sl]:t,onFocus:e=>{n?.(e);let r=e.target.closest(ol);r&&e.currentTarget.contains(r)&&(s.current=r,_(r)),c.current=t,u(t),d.current===t&&(d.current=null,p(null))}})}):e,[e,t,_]),k=(0,X.useMemo)(()=>{if(!t)return;let n=X.Children.count(e),i=new Set(r);l!==null&&i.add(l),f!==null&&i.add(f);let a=[...i].filter(e=>e>=0&&e<n);return a.length?a:void 0},[l,e,t,f,r]),A=(0,X.useCallback)(e=>{if(d.current===null)return;let t=a.current;t&&(e.relatedTarget&&t.contains(e.relatedTarget)||t.focus({preventScroll:!0}))},[]);return{keepMountedIndices:k,viewportProps:(0,X.useMemo)(()=>({...h,onBlur:A,onKeyDownCapture:D}),[A,D,h]),viewportRef:a,virtualChildren:O,virtualizerRef:o}}var ml=X.createContext(void 0);function hl(){let e=X.useContext(ml);if(e===void 0)throw Error(Me(63));return e}var gl=`data-valid`,_l=`data-invalid`,vl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},yl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},bl={disabled:!1,...yl},xl={valid(e){return e===null?null:e?{[gl]:``}:{[_l]:``}}},Sl=`data-checked`,Cl=`data-unchecked`,wl={...xl,checked(e){return e?{[Sl]:``}:{[Cl]:``}}},Tl={invalid:void 0,name:void 0,validityData:{state:vl,errors:[],error:``,value:``,initialValue:null},setValidityData:Ye,disabled:void 0,setTouched:Ye,setDirty:Ye,setFilled:Ye,setFocused:Ye,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:bl,registerFieldControl:Ye,validation:{getValidationProps:(e,t=p)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ye,getInputControl:()=>null,commit:async()=>{},change:Ye}},El=X.createContext(Tl);function Dl(e=!0){let t=X.useContext(El);if(t.setValidityData===Ye&&!e)throw Error(Me(28));return t}function Ol(e,t,n){let{setFocused:r,focusOwnerRef:i}=Dl(),a=J(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return K(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function kl(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Dl(),s=yt(()=>Symbol());K(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var Al=X.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ye,validationMode:`onSubmit`,submitCountRef:{current:0}});function jl(){return X.useContext(Al)}var Ml=X.createContext({controlId:void 0,registerControlId:Ye,resetControlId:Ye,labelId:void 0,setLabelId:Ye,messageIds:[],setMessageIds:Ye,getDescriptionProps:e=>e});function Nl(){return X.useContext(Ml)}function Pl(e,t,n,r=!0,i,a){let[o,s]=X.useState(),c=Oe(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return K(()=>{let i=e||t||l||!r?void 0:Fl(n.current,c);o!==i&&s(i)}),u}function Fl(e,t){let n=Il(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Il(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Ll(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=Nl(),o=Oe(),s=yt(()=>Symbol()),c=X.useRef(!1),l=X.useRef(!1),u=J(()=>{c.current&&i!==Ye&&(c.current=!1,i(s.current,void 0))});return K(()=>{if(!n||i===Ye){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),K(()=>u,[u]),(n?r:void 0)??t??o}var Rl=X.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:m=!1,disabled:h=!1,render:g,uncheckedValue:_,value:v,style:y,...b}=e,{clearErrors:x}=jl(),{state:S,setTouched:C,setDirty:w,validityData:T,setFilled:E,validationMode:D,disabled:O,name:A,validation:M}=Dl(),{labelId:N}=Nl(),F=O||h,I=A??l,ee=X.useRef(null),te=Ne(ee,c,M.inputRef),L=X.useRef(null),z=Ol(F,L),B=Oe(),ne=Ll({id:s}),V=u?void 0:ne,[H,re]=Fr({controlled:n,default:!!i,name:`Switch`,state:`checked`});kl(L,B,H,void 0,!F,l),K(()=>{E(H)},[H,E]),ms(H,()=>{x(I),w(H!==T.initialValue),M.change(H)});let{getButtonProps:U,buttonRef:ie}=de({disabled:F,native:u}),ae=Pl(a,N,ee,!u,V,b[`aria-label`]),oe={id:u?ne:B,role:`switch`,"aria-checked":H,"aria-readonly":f||void 0,"aria-required":m||void 0,"aria-labelledby":ae,onFocus(){z(!0)},onBlur(){let e=ee.current;e&&!F&&(C(!0),z(!1),D===`onBlur`&&M.commit(e.checked))},onClick(e){if(f||F)return;e.preventDefault();let t=ee.current;t&&k(t,e)}},W={...M.getValidationProps(F),checked:H,disabled:F,form:o,id:V,name:I,required:m,style:I?R:j,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:te,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=Y(ft,e.nativeEvent);d?.(t,n),n.isCanceled||re(t)},onClick(e){e.stopPropagation()},onFocus(){L.current?.focus()},...v===void 0?p:{value:v}},se=X.useMemo(()=>({...S,checked:H,disabled:F,readOnly:f,required:m}),[S,H,F,f,m]),ce=P(`span`,e,{state:se,ref:[t,L,ie],props:[oe,b,U,e=>M.getValidationProps(F,e)],stateAttributesMapping:wl});return(0,Z.jsxs)(ml.Provider,{value:se,children:[ce,!H&&I&&_!==void 0&&(0,Z.jsx)(`input`,{type:`hidden`,form:o,name:I,value:_,disabled:F}),(0,Z.jsx)(`input`,{...W,suppressHydrationWarning:!0})]})}),zl=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=hl();return P(`span`,e,{state:o,ref:t,stateAttributesMapping:wl,props:a})}),Bl=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Vl=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Hl=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ul=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Wl(e,t,n,r){return e===t&&n===r?xn:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ul(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ul(s+1e-7,e,n)-i-r)}return Ul(s,t,r)}}var Gl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Kl=e=>t=>1-e(1-t),ql=Wl(.33,1.53,.69,.99),Jl=Kl(ql),Yl=Gl(Jl),Xl=e=>e>=1?1:(e*=2)<1?.5*Jl(e):.5*(2-2**(-10*(e-1))),Zl=e=>1-Math.sin(Math.acos(e)),Ql=Kl(Zl),$l=Gl(Zl),eu=Wl(.42,0,1,1),tu=Wl(0,0,.58,1),nu=Wl(.42,0,.58,1),ru=e=>Array.isArray(e)&&typeof e[0]!=`number`;function iu(e,t){return ru(e)?e[Hl(0,e.length,t)]:e}var au={linear:xn,easeIn:eu,easeInOut:nu,easeOut:tu,circIn:Zl,circInOut:$l,circOut:Ql,backIn:Jl,backInOut:Yl,backOut:ql,anticipate:Xl},ou=e=>typeof e==`string`,su=e=>{if(jn(e)){let[t,n,r,i]=e;return Wl(t,n,r,i)}return ou(e)?au[e]:e};function cu(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 lu({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=cu(s,r,e+1/3),a=cu(s,r,e),o=cu(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function uu(e,t){return n=>n>0?t:e}var du=(e,t,n)=>e+(t-e)*n,fu=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pu=[Xn,In,yn],mu=e=>pu.find(t=>t.test(e));function hu(e){let t=mu(e);if(!t)return!1;let n=t.parse(e);return t===yn&&(n=lu(n)),n}var gu=(e,t)=>{let n=hu(e),r=hu(t);if(!n||!r)return uu(e,t);let i={...n};return e=>(i.red=fu(n.red,r.red,e),i.green=fu(n.green,r.green,e),i.blue=fu(n.blue,r.blue,e),i.alpha=du(n.alpha,r.alpha,e),In.transform(i))},_u=new Set([`none`,`hidden`]);function vu(e,t){return _u.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yu(e,t){return n=>du(e,t,n)}function bu(e){return typeof e==`number`?yu:typeof e==`string`?En(e)?uu:_n.test(e)?gu:wu:Array.isArray(e)?xu:typeof e==`object`?_n.test(e)?gu:Su:uu}function xu(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>bu(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Su(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bu(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Cu(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 wu=(e,t)=>{let n=an(e),r=an(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?_u.has(e)&&!r.values.length||_u.has(t)&&!n.values.length?vu(e,t):Bl(xu(Cu(n,r),r.values),Jn(r)):uu(e,t)},Tu=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Eu(e,t){let n=Tu.exec(e);if(!n)return;let r=Tu.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Bn(du(a,o,e))+i}function Du(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return du(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Eu(e,t);if(n)return n}return bu(e)(e,t)}var Ou=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>gn.update(t,e),stop:()=>mn(t),now:()=>On.isProcessing?On.timestamp:er.now()}},ku=2e4;function Au(e,t=50,n=ku,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 ju(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Au(o),ku);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Hn(s)}}var Mu=100,Nu=10,Pu=1,Fu=800,Iu=.3,Lu=.3,Ru=.01,zu=2,Bu=.005,Vu=.5,Hu=.01,Uu=10,Wu=.05,Gu=e=>e<0?1/Math.max(1+e,Wu):Math.max(1-e,Wu);function Ku(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Yu(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function qu(e,t){return e*Math.sqrt(1-t*t)}var Ju=12;function Yu(e,t,n){let r=n;for(let n=1;n<Ju;n++)r-=e(r)/t(r);return r}var Xu=.001;function Zu({duration:e=Fu,bounce:t=Iu}){let n,r,i=Gu(t);e=or(Hu,Uu,Hn(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=qu(t,i),o=Math.exp(-r);return Xu-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=qu(t*t,i);return(-n(t)+Xu>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Yu(n,r,a),s=o*Ku(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Pn(e)}}var Qu=(e,t)=>(t?e>=0:e>0)&&e<1/0;function $u(e,t){if(Qu(e,t))return e}function ed(e){let t=$u(e.stiffness),n=$u(e.damping,!0),r=$u(e.mass),i={...e,stiffness:t??Mu,damping:n??Nu,mass:r??Pu,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Gu(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Ku(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Zu(i)),i.isResolvedFromDuration=!0;Qu(i.stiffness)&&Qu(i.damping,!0)||(i.stiffness=Mu,i.damping=Nu)}return i}function td(e=Lu,t=Iu){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,isResolvedFromDuration:u,isTimeDefined:d}=ed({...n}),f=e=>u?0:-Hn(e),p=s/(2*Math.sqrt(o*c)),m=Hn(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Ru:zu),g.restDelta=n.restDelta||(e?Bu:Vu)};_();let v,y,b;if(p<1){let e=qu(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Pn(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Pn(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Au(S),ku),t=nn(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var nd=Object.assign(td,{applyToOptions:e=>{let t=ju(e,100,td);return e.ease=t.ease,e.duration=Pn(t.duration),e.type=`keyframes`,e}});function rd({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?o(g):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?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=nd({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 id(e,t,n){let r=[],i=Tn.mix||Du,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=Bl(Array.isArray(t)?t[o]||xn:t,a)),r.push(a)}return r}function ad(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(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=id(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=Vl(e[r],e[r+1],n);return s[r](i)};return n?t=>l(or(e[0],e[a-1],t)):l}function od(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Vl(0,t,r);e.push(du(n,1,i))}}function sd(e){let t=[0];return od(t,e.length-1),t}function cd(e,t){return e.map(e=>e*t)}function ld(e,t){return e.map(()=>t||nu).splice(0,e.length-1)}function ud({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=ru(r)?r.map(su):su(r)||nu,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(c>=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:sd(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(Tn.mix||Du)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t<i?f(0):c<p&&(t>=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=ad(cd(n&&n.length===t.length?n:sd(t),e),t,{ease:Array.isArray(o)?o:ld(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var dd=5;function fd(e,t,n){let r=Math.max(t-dd,0);return qn(n-e(r),t-r)}function pd(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):fd(t=>e.next(t).value,t,e.next(t).value)}var md={decay:rd,inertia:rd,tween:ud,keyframes:ud,spring:nd};function hd(e){typeof e.type==`string`&&(e.type=md[e.type])}var gd=40,_d=(e,t)=>t-e>gd&&!Tn.useManualTiming?t:e,vd=e=>e/100,yd=e=>Math.round(e*1e4)/1e4,bd=class extends dn{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,t=er.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),lr(this,this.options)}initAnimation(){let{options:e}=this;hd(e);let{type:t=ud,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ud;this.mixKeyframes=void 0,s!==ud&&typeof o[0]!=`number`&&(this.mixKeyframes=Bl(vd,e.mixer?.(o[0],o[1])||Du(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=Au(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=_d(this.startTime,e)),this.pendingStartTime=void 0,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 u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==rd&&(f.value=hn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??yd((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==rd?hn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=or(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return Hn(this.calculatedDuration)}get iterationDuration(){return this.duration+Hn(this.options.delay??0)}get time(){return Hn(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=Pn(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 pd(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(er.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Hn(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ou,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??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(er.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function xd(e){return new bd(e)}var Sd={anticipate:Xl,backInOut:Yl,circInOut:$l};function Cd(e){return e in Sd}function wd(e){typeof e.ease==`string`&&Cd(e.ease)&&(e.ease=Sd[e.ease])}var Td=class extends wn{constructor(e){wd(e),hd(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(er.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new bd({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?or(0,10,a):0,s=this.sample(a);n&&r&&pn(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ed=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(rn.test(e)||e===`0`)&&!e.startsWith(`url(`));function Dd(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 Od(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=Ed(i,t),s=Ed(a,t);return!o||!s?!1:Dd(e)||(n===`spring`||ar(n))&&r}function kd(e){e.duration=0,e.type=`keyframes`}var Ad=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function jd(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ad.test(e[t]))return!0;return!1}var Md=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Nd=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Pd=()=>!Tn.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Fd(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(sr.has(n)||Nd.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 Pd()&&(sr.has(n)||Nd.has(n)&&jd(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Md(e)}var Id=200,Ld=.001,Rd=.1,zd=.001,Bd=100,Vd=100,Hd=new Set([`linear`,`easeIn`,`easeOut`,`easeInOut`]),Ud=e=>Hd.has(e),Wd=new WeakMap,Gd=(e,t)=>{let n=Wd.get(e);return n?.[0]!==t&&(n=[t,`linear(`+sd(Array(t+1)).map(t=>yd(e(t))+` `+yd(t*100)+`%`)+`)`],Wd.set(e,n)),n[1]},Kd=(e,t)=>Math.min(Id,Math.max(2,Math.ceil((t-e)/10))),qd=(e,t)=>Math.abs(e-t)<=Ld,Jd=(e,t)=>e-t,Yd=(e,t,n)=>sd(Array(n+1)).map(n=>du(e,t,n)),Xd=e=>e.motionValue.owner,Zd=e=>Nn.get(e),Qd=({state:e})=>e===`idle`||e===`finished`,$d=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ef=({name:e,motionValue:t})=>e&&Ln.includes(e)&&t?.owner?.current instanceof HTMLElement&&Pd()&&rr();function tf(e){let t=Xd(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&($d(t,`transform`)||`none`)===`none`&&!$d(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Md(e)}var nf=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==Ou?this.js.now():On.isProcessing?On.timestamp:er.now()}start(e=!0){let t=Zd(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=Zd(this.element);e&&!e.isFinishing&&e.release(this.animation)}},rf,af=class extends bd{constructor(e){let t=Xd(e).current,{driver:n=Ou}=e,r,i=tf(e);e.driver=e=>new nf(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=sd(e)),this.cachedOffsets)}get group(){return Zd(Xd(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(er.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==ud||this.holdTime!==null)return;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(i>=0)return;i=t-1}let{ease:a}=this.options;ru(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=jn(a)?Zt(a):Ud(a)?fn[a]:su(a);return[s(i),s(i+1),typeof e==`string`||qd(e(0),0)&&qd(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||ud)===ud?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&p.push(s)}}return p}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=er.now(),t=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-10,!0):t,t,10)}play(){this.isStopped||((this.group||cf(Xd(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(er.now())}get time(){return this.isAccelerated()?Hn(or(0,this.totalDuration,this.at(er.now())-(this.options.delay||0))):super.time}set time(e){(rf??=Object.getOwnPropertyDescriptor(bd.prototype,`time`).set).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},of,sf=e=>{of||queueMicrotask(()=>{let e=of;of=void 0,e.forEach(e=>e())}),(of||=[]).push(e)};function cf(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?Ln:a){let a=r.get(s),c=t===void 0?$d(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&Mn(r,i)||(n+=bn(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=er.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),F.schedule(!1)}),e.oncancel=()=>s.includes(r)&&F.demote(),s.push(r)},T=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},E=(e,t,n,r)=>{let i=Kd(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!qd(i,a))return}}let o=Yd(t,n,i).concat(r).sort(Jd),s=e=>Vl(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*Ld>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!qd(e,a&&c[t])))return}if(!c||c.every((e,t)=>qd(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(yd(t)+` `+yd(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?zd:Rd))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?Yd(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort(Jd))e>d&&l(d,e,0),d=e;return i.sort(Jd)},O=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},k=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Vl(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},A=e=>{let t=er.now()+e;t<m&&(clearTimeout(p),m=t,p=setTimeout(()=>{m=1/0,F.schedule(!1)},e))},j=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),!a){if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=Ln.filter(t=>{if(r.has(t))return!0;let n=i[t]=$d(e,t);return n!==void 0&&!Mn(t,n)}),S(!1);let m=!l&&O(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>Vd)return d.forEach(e=>e.sync()),A(h=n-t-Vd),!0;e=typeof i==`string`?i:i?Gd(i,Kd(n,r)):E(d,n,r,[]),e&&w(k(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(k(d,t,c),0,c-t),p.forEach(e=>e<c-1&&w(C(null,{duration:e-t}),0,e-t))}if(l){let e=u+Math.floor((c-u)/l)*l;w(k(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||S(),!0},M=(e,t)=>{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;A(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a<n-1:a<0&&(t||e<=0)||a>=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},N=()=>!n.size&&(u=!0,Zd(t)===F&&Nn.delete(t),F.isJS||S(),!0),P=()=>{let t=er.now();if(F.isJS||(F.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=$d(e,n.name),o.has(n)||(c=!0))}),F.isFinishing=!1),l=!1,u||(n.forEach(e=>Qd(e)&&n.delete(e)),N()))return;for(let e of n)if(!e.canAccelerate)return F.demote(!0);F.isJS&&(F.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!M(t,a)){if(a){if(t-f<Bd)return F.demote();f=t}if(!j(t))return F.demote()}else if(h!==void 0&&!a)return;n.forEach(e=>e.timing()[0]===1/0&&e.sync())},F={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,On.isProcessing?gn.render(P,!1,!0):sf(P)))},release(e){Qd(e)&&n.delete(e),N()||F.schedule(!0)},check(){if(!F.isJS){for(let t in i)if($d(e,t)!==i[t]&&!g(t))return F.schedule(!0,!0)}},demote(e){if(!(F.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),F.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return Nn.set(t,F),F}var lf=class extends dn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=er.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||Qt;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=er.now();let u=Od(e,i,a,o);u||((Tn.instantAnimations||!s)&&l?.(hn(e,n,t)),e[0]=e[e.length-1],kd(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Fd(n),p=!f&&ef(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=_d(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Td(n)}catch{m=new bd(n)}}else m=p?new af(n):new bd(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(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),cn()),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?.cancel(),this.keyframeResolver?.cancel()}},uf=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return df(this.animations,`duration`)}get iterationDuration(){return df(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function df(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var ff=class extends uf{then(e,t){return this.finished.finally(e).then(()=>{})}};function pf(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function mf(e,t){let n=e?.[t]??e?.default??e;return n===e?n:pf(n,e)}var hf={type:`spring`,stiffness:500,damping:25,restSpeed:10},gf=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_f={type:`keyframes`,duration:.8},vf={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},yf=(e,{keyframes:t})=>t.length>2?_f:sn.has(e)?e.startsWith(`scale`)?gf(t[1]):hf:vf,bf=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function xf(e){for(let t in e)if(!bf.has(t))return!0;return!1}var Sf=(e,t,n,r={},i,a)=>o=>{let s=mf(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Pn(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,hasOnUpdate:!!s.onUpdate};xf(s)||Object.assign(u,yf(e,u)),u.duration&&=Pn(u.duration),u.repeatDelay&&=Pn(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(kd(u),u.delay===0&&(d=!0)),(Tn.instantAnimations||Tn.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,kd(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=hn(u.keyframes,s);if(e!==void 0){gn.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new bd(u):new lf(u)},Cf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wf(e){let t=Cf.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Tf(e,t,n=1){let[r,i]=wf(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return cr(e)?parseFloat(e):e}return En(i)?Tf(i,t,n+1):i}var Ef=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ln]),Df={test:e=>e===`auto`,parse:e=>e},Of=e=>t=>t.test(e),kf=[Cn,kn,Yt,un,Wn,$n,Df],Af=e=>kf.find(Of(e));function jf(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||nr(e)}var Mf=new Set([`auto`,`none`,`0`]);function Nf(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Mf.has(t)&&vn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=tn(n,i))}var Pf=class extends Qt{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Kn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),En(r))){let i=Tf(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ef.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Af(r),o=Af(i);if(Kn(r)!==Kn(i)&&Xt[n])this.needsMeasurement=!0;else if(a!==o){if(Rn(a)&&Rn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Xt[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||jf(e[t]))&&n.push(t);n.length&&Nf(e,n,t)}measure(){let{element:e,name:t}=this;return Xt[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!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?.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.resolveNoneKeyframes()}},Ff=[];function If(e){Lf(e),Ff.unshift(e)}function Lf(e){ir(Ff,e)}function Rf(e){return Ff.find(t=>t.test(e))}function zf(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?gn.update(()=>l.set(c)):(l.run(Sf(o,l,c,s&&Ef.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>gn.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Bf(e,t,n,r,i){let a,o=!1,s=zf(r=>{let s=a?.[r]??e.get(t,r);if(!s){let c;if(!i){let i=n[r];c=Vf(i)??e.read(t,r,i)}s=Vn(c,{owner:i}),o?e(t,{[r]:s}):(a||={})[r]=s}return s},n,r,i);return o=!0,a&&e(t,a),s}function Vf(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Hf(e){return ur(e)&&`ownerSVGElement`in e}var Uf={};function Wf(e){return Uf.current?.add(e),e}var Gf=e=>Uf.current?Uf.current.bind(e):e;function Kf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Uf.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var qf=class{constructor(e=gn.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function Jf(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new qf(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function Yf(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(Mn(i,a)||(t+=(t&&` `)+bn(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+bn(`rotate`,i)),t||`none`}var Xf=new Set([`originX`,`originY`,`originZ`]),Zf=(e,t)=>tr(e.get(t)?.get(),on[t]),Qf=(e,t,n,r)=>{let i,a;if(sn.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Ln.indexOf(e)-Ln.indexOf(t)))}t.get(`transform`)||(!dr(e)&&!t.get(`transformBox`)&&Qf(e,t,`transformBox`,new An(`fill-box`)),t.set(`transform`,new An(`none`),()=>{Nn.get(e)?.check(),e.style.transform=Yf(t)})),a=t.get(`transform`)}else Xf.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new An(``),()=>{let n=Zf(t,`originX`)??`50%`,r=Zf(t,`originY`)??`50%`,i=Zf(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=en(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=tr(r.getCurrent(),on[n])};return t.set(n,r,i,a)},$f=e=>dr(e)||Hf(e),ep=(e,t)=>{if(sn.has(t))return ln(e,t);let n=getComputedStyle(e),r=en(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},tp=Jf(Qf,{test:$f,read:ep});function np(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function rp(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var ip=(e,t,n,r,i=n)=>{let a=rp(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=np(i));let o=on[n]||on[i],s=a?()=>{e[i]=tr(r.get(),on[n])}:()=>{let t=tr(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function ap(e,t,n,r){return gn.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new An(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var op=Jf((e,t,n,r)=>n.startsWith(`path`)&&!sn.has(n)?ap(e,t,n,r):n.startsWith(`attr`)?ip(e,t,n,r,sp(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(sn.has(n)||Xf.has(n)||en(n)||n in e.style?Qf:ip)(e,t,n,r),{test:Hf,read:(e,t)=>sn.has(t)?on[t]?.default||0:en(t)||zn.includes(t)?ep(e,t)||e.getAttribute(np(t))||0:(t=sp(t),e.getAttribute(np(t))??e.getAttribute(t)??void 0)});function sp(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function cp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function up(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 dp(e){return e===void 0||e===1}function fp({scale:e,scaleX:t,scaleY:n}){return!dp(e)||!dp(t)||!dp(n)}var pp=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function mp(e){return fp(e)||gp(e)||hp(e)}function hp(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function gp(e){return _p(e.x)||_p(e.y)}function _p(e){return e&&e!==`0%`}function vp(e,t,n){return n+t*(e-n)}function yp(e,t,n,r,i){return i!==void 0&&(e=vp(e,i,r)),vp(e,n,r)+t}function bp(e,t=0,n=1,r,i){e.min=yp(e.min,t,n,r,i),e.max=yp(e.max,t,n,r,i)}function xp(e,{x:t,y:n}){bp(e.x,t.translate,t.scale,t.originPoint),bp(e.y,n.translate,n.scale,n.originPoint)}var Sp=.999999999999,Cp=1.0000000000001;function wp(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,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Tp(e.x,-a.scroll.offset.x),Tp(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,xp(e,o)),r&&(r.path?.[s]||r)!==a&&mp(a.latestValues)&&Op(e,a.latestValues,a.layout?.layoutBox));t.x<Cp&&t.x>Sp&&(t.x=1),t.y<Cp&&t.y>Sp&&(t.y=1)}function Tp(e,t){e.min+=t,e.max+=t}function Ep(e,t,n,r,i=.5){bp(e,t,n,du(e.min,e.max,i),r)}function Dp(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Op(e,t,n){let r=n??e;Ep(e.x,Dp(t.x,r.x),t.scaleX,t.scale,t.originX),Ep(e.y,Dp(t.y,r.y),t.scaleY,t.scale,t.originY)}function kp(e,t){return cp(up(e.getBoundingClientRect(),t))}function Ap(e,t,n){let r=kp(e,n),{scroll:i}=t;return i&&(Tp(r.x,i.offset.x),Tp(r.y,i.offset.y)),r}var jp=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Mp={},Np=e=>Hf(e)?op:tp,Pp=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Pf}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return kp(this.current)}getProps(){return Mp}};function Fp(e,t,n,r){if(Uf.current?.track(e),r)return zf(e=>r.getValue(e,null),t,n,r);let i=Np(e);return Bf(i,e,t,n,new Pp(i,e))}var Ip=Jf((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ur(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}});function Lp(e,t,n){let r=Dn(e)?e:Vn(e);return r.run(Sf(``,r,t,n)),r.animation}function Rp(e){return typeof e==`object`&&!Array.isArray(e)}function zp(e,t,n,r){return e==null?[]:typeof e==`string`&&Rp(t)?Kf(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Bp(e,t,n){return e*(t+1)+n*t}function Vp(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function Hp(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):Vp(t,r)??e}function Up(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(ir(e,i),r--)}}function Wp(e,t,n,r,i,a){Up(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:du(i,a,r[o]),easing:iu(n,o)})}function Gp(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Kp(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var qp=`easeInOut`,Jp=20;function Yp(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:Hp(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=Qp(e),{delay:l=0,times:u=sd(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=ar(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&tm(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=Pn(b));let r=ju(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&od(u,T),c.length===1&&c.unshift(null),m&&m<Jp){let e=b>0?g/b:0;b=Bp(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Kl(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:iu(f,e-1))}Gp(u,m,e)}let E=w+b;Wp(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Dn(g)){let e=Xp(g,c);b(_,v,Zp(`default`,e))}else{let e=zp(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=Xp(r,c);for(let e in _)b(_[e],$p(v,e),Zp(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Kp);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(Vl(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(qp)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function Xp(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Zp(e,t){return t[e]||(t[e]=[]),t[e]}function Qp(e){return Array.isArray(e)?e:[e]}function $p(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var em=e=>typeof e==`number`,tm=e=>e.every(em);function nm(e,t){return Dn(e)||typeof e==`number`||typeof e==`string`&&!Rp(t)}function rm(e,t,n,r){let i=[];if(nm(e,t))i.push(Lp(e,Rp(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=zp(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Fp(r,t,s,Gn.get(r))):i.push(...Bf(Rf(r)??Ip,r,t,s))}}return i}function im(e,t,n,r){let i=[],a=Yp(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Vn(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:nd},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...rm(n,e,{...t,reduceMotion:o}))}),i}var am=0;function om({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function sm(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var cm=(e,t)=>t===void 0?e:{name:e,at:t};function lm(e){e.pause(),e.time=0,e.stop()}var um=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=Uf.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new ff(n),this.watch()):(this.invalidate(),this.flush())}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+am++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+am++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=this.iterationDuration,r=this.time,[i]=om(this.options,n,r),a=om(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(lm(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,lm(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=Uf.current;Uf.current=this.motionScope;let h;try{h=im(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{Uf.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Vn(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=Lp(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new ff(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=om(this.options,e,n);n>b&&(n=om(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),cm(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?cm(n,r):r===void 0?n:Array.isArray(n)?sm(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Vp(e,this.labels)??this.time}currentRepeat(){return om(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=om(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&ir(e.animations,this)})}};function dm(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function fm(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Uf.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(dm(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new um(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new um([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},rm(e,i,l,t))}return c}return i}var pm=Object.assign(fm(),{addEffect:If,removeEffect:Lf});function mm(e){let t=(0,X.useRef)(e);return(0,X.useLayoutEffect)(()=>{t.current=e}),(0,X.useCallback)((...e)=>t.current(...e),[])}var hm=e=>typeof e==`function`?e():e,gm=(e,{defaultValue:t,onChange:n,value:r}={})=>{let[i,a]=(0,X.useState)(()=>r===void 0?hm(t===void 0?e:t):r),o=r===void 0?i:r;return[o,mm(e=>{a(e),o!==e&&n?.(e,o)})]},_m={lbruu1v2:`lbruu1v2`,$$css:!0},vm=u({block:`switch`,dataAttributes:[`size`,`loading`],elements:[`content`,`thumb`]}),ym={icon:{kYYq5F:`lb10no89f`,kmkexE:`lbaqpy6h`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb15g0kca`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lb10l6tqk`,kIyJzY:`lb12w9bfk`,khDVqt:`lbuxw1ft`,$$css:!0},iconLeft:{kLqNvP:`lbjwk6fx`,kSiTet:`lbg01cxk lbqtmd8e`,km0Bbg:`lb1t448cz lb1gshqrl`,$$css:!0},iconRight:{kt4wiu:`lb1inkcgm`,kSiTet:`lb12foe86`,km0Bbg:`lb1t60ft6`,$$css:!0},iconThumb:{kpwlN0:`lbh3736h`,kYYq5F:`lb1saa4dr`,kMwMTN:`lb16owwnm`,kVAEAm:`lb1n2onr6`,k3aq6I:`lb1c071of`,$$css:!0},loading:{k44tkh:`lb1q3qbx4 lb1u6grsq`,ko0y90:`lba4qsjk`,kKVMdj:`lbb6ayas`,kyAemX:`lb1esw782`,$$css:!0},root:{kmVPX3:`lb1i3ajwb`,kVAM5u:`lb181nr7w`,kaIpWk:`lb1xwekrv`,ksu8eU:`lbng3xce`,kMzoRj:`lbc342km`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,kmkexE:`lbr3aam3`,kGNEyG:`lb6s0dn4`,kWkggS:`lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e`,kGVxlE:`lb11a9emz lb19y05k0`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb5ezrf1`,k1xSpc:`lb3nfvp2`,kjj79g:`lb1nhvcw1`,kSiTet:`lb1k4xm7o`,kVAEAm:`lb1n2onr6`,kIyJzY:`lb12w9bfk`,kfSwDN:`lb87ps6o`,$$css:!0},rootDefault:{kZKoxP:`lb17rw0jw`,k7Eaqz:`lb15hfatp`,kzqmXN:`lb14qfxbe`,$$css:!0},rootSmall:{kZKoxP:`lblup9mm`,k7Eaqz:`lb1264ykn`,kzqmXN:`lbgd8bvy`,$$css:!0},rootText:{kGuDYH:`lbfifm61`,kLWn49:`lbo5v014`,k7Eaqz:`lb1nb6za0`,kzqmXN:`lb14atkfc`,$$css:!0},rootTextSmall:{kGuDYH:`lb1k6wstc`,kLWn49:`lbo5v014`,k7Eaqz:`lb46jg8d`,kzqmXN:`lb14atkfc`,$$css:!0},textSizer:{kUk6DE:`lb1okw0bk`,k1xSpc:`lbrvj5dj`,kayTVb:`lb9ek82g`,kwRFfy:`lb11lfxj5`,kZCmMZ:`lb13jy36j`,kfzvcC:`lb47corl`,k33iCy:`lblshs6z`,khDVqt:`lbuxw1ft`,$$css:!0},textSizerSmall:{kwRFfy:`lb14vy60q`,kZCmMZ:`lbf7dkkf`,$$css:!0},thumb:{kaIpWk:`lb16rqkct`,kmkexE:`lbxj5fsl`,kGNEyG:`lb6s0dn4`,kWkggS:`lb6yijhg`,kGVxlE:`lb1oicym lbiy1ocm lb4g9y83`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k3aq6I:`lb1u2ey76`,kIyJzY:`lb12w9bfk`,$$css:!0},thumbDefault:{kZKoxP:`lbmix8c7`,kzqmXN:`lb1xp8n7a`,$$css:!0},thumbSmall:{kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lb10no89f lbaqpy6h lb6s0dn4 lb15g0kca lb78zum5 lbl56j7k lb47corl lb10l6tqk lb12w9bfk lbuxw1ft`}).className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className,{className:`lbh3736h lb1saa4dr lb16owwnm lb1n2onr6 lb1c071of`}.className,{className:`lb1q3qbx4 lb1u6grsq lba4qsjk lbb6ayas lb1esw782`}.className,{className:`lb1i3ajwb lb181nr7w lb1xwekrv lbng3xce lbc342km lb1a2a7pz lbb3r6kr lbr3aam3 lb6s0dn4 lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e lb11a9emz lb19y05k0 lb9f619 lb1ypdohk lb5ezrf1 lb3nfvp2 lb1nhvcw1 lb1k4xm7o lb1n2onr6 lb12w9bfk lb87ps6o`}.className,{className:`lb17rw0jw lb15hfatp lb14qfxbe`}.className,{className:`lblup9mm lb1264ykn lbgd8bvy`}.className,{className:`lbfifm61 lbo5v014 lb1nb6za0 lb14atkfc`}.className,{className:`lb1k6wstc lbo5v014 lb46jg8d lb14atkfc`}.className,{className:`lb1okw0bk lbrvj5dj lb9ek82g lb11lfxj5 lb13jy36j lb47corl lblshs6z lbuxw1ft`}.className,{className:`lb14vy60q lbf7dkkf`}.className,{className:`lb16rqkct lbxj5fsl lb6s0dn4 lb6yijhg lb1oicym lbiy1ocm lb4g9y83 lb78zum5 lb2lah0s lbl56j7k lb1u2ey76 lb12w9bfk`}.className,{className:`lbmix8c7 lb1xp8n7a`}.className,{className:`lb1kpxq89 lbsmyaan`}.className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className;var bm={default:{checkedX:14,pressedCheckedX:10,pressedWidth:22,width:18},small:{checkedX:12,pressedCheckedX:8,pressedWidth:16,width:12}},xm={default:ym.rootDefault,small:ym.rootSmall},Sm={default:ym.thumbDefault,small:ym.thumbSmall},Cm={damping:24,stiffness:360,type:`spring`},wm=(0,X.createContext)(null),Tm=()=>{let e=(0,X.use)(wm);if(!e)throw Error(`useSwitchContext must be used within a SwitchRoot`);return e},Em=({checked:e,className:t,defaultChecked:n,onCheckedChange:r,onClick:i,onKeyDown:a,onKeyUp:o,onPointerCancel:s,onPointerDown:u,onPointerLeave:d,onPointerUp:f,size:p=`default`,children:m,disabled:h,readOnly:g,required:_,inputRef:v,id:y,name:b,style:x,xstyle:S,...C})=>{let[w,T]=(0,X.useState)(!1),E=(0,X.useRef)(null),[D,O]=gm(n??!1,{defaultValue:n,onChange:e=>{E.current&&r?.(e,E.current)},value:e}),k=(0,X.useMemo)(()=>({isChecked:!!D,isPressed:w,setIsChecked:e=>O(e),setIsPressed:T}),[D,w,O]),A=e=>{E.current=e,i?.(!D,e)},j=!h&&!g,M=e=>{(e.key===`Enter`||e.key===` `)&&(E.current=e),e.key===` `&&j&&T(!0),a?.(e)},N=e=>{e.key===` `&&T(!1),o?.(e)},P=e=>{j&&T(!0),u?.(e)},F=e=>{T(!1),f?.(e)},I=e=>{T(!1),s?.(e)},ee=e=>{T(!1),d?.(e)};return(0,Z.jsx)(wm,{value:k,children:(0,Z.jsx)(Rl,{nativeButton:!0,checked:D,defaultChecked:n,disabled:h,id:y,inputRef:v,name:b,readOnly:g,required:_,render:(0,Z.jsx)(`button`,{...c({size:p}),...C,...kt([_m,Se.info,ym.root,xm[p],S],l(vm(),t),x),onClick:A,onKeyDown:M,onKeyUp:N,onPointerCancel:I,onPointerDown:P,onPointerLeave:ee,onPointerUp:F}),onCheckedChange:O,children:m})})};Em.displayName=`SwitchRoot`;var Dm=({className:e,size:t=`default`,style:n,children:r,...i})=>{let{isChecked:a,isPressed:o}=Tm(),s=(0,X.useRef)(null),c=bm[t],[u,d]=(0,X.useState)(c.checkedX);(0,X.useLayoutEffect)(()=>{let e=s.current?.parentElement;if(!e)return;let t=()=>{let t=e.clientWidth;d(t>0?Math.max(c.checkedX,t-4-c.width):c.checkedX)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[c]);let f=u-c.checkedX,p=a?(o?c.pressedCheckedX:c.checkedX)+f:0,m=o?c.pressedWidth:c.width,[h]=(0,X.useState)(()=>({width:Vn(m),x:Vn(p)})),[g]=(0,X.useState)(()=>({"--switch-x":`${p}px`,width:m}));return(0,X.useEffect)(()=>{let e=s.current;if(!e)return;let t=h.x.on(`change`,t=>{e.style.setProperty(`--switch-x`,`${t}px`)}),n=h.width.on(`change`,t=>{e.style.setProperty(`width`,`${t}px`)});return()=>{t(),n()}},[h]),(0,X.useEffect)(()=>{let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1?{duration:0}:Cm,t=[pm(h.x,p,e),pm(h.width,m,e)];return()=>{for(let e of t)e.stop()}},[h,p,m]),(0,Z.jsx)(zl,{render:(0,Z.jsx)(`span`,{...i,ref:s,...kt([ym.thumb,Sm[t]],l(vm(`thumb`),e),{...g,...n}),children:r})})};Dm.displayName=`SwitchThumb`;var Om={left:ym.iconLeft,right:ym.iconRight,thumb:ym.iconThumb},km=({children:e,className:t,position:n,size:r,style:i,...a})=>(0,Z.jsx)(`span`,{...kt([ym.icon,Om[n]],l(vm(`content`),t),i),...a,children:e});km.displayName=`SwitchIcon`;var Am=(0,X.memo)(({autoFocus:e,checked:t,checkedChildren:n,className:r,classNames:a,defaultChecked:o,defaultValue:s,disabled:u,id:d,loading:f,name:p,onChange:m,onClick:h,ref:g,rootClassName:_,size:v=`default`,style:y,styles:b,tabIndex:x,title:S,unCheckedChildren:C,value:w,...T})=>{let E=u||f,D=w??t,O=s??o,k=!!(n||C);return(0,Z.jsxs)(Em,{...c({loading:f}),...T,autoFocus:e,checked:D,className:l(k&&`lobe-switch-text`,r,_,a?.root),defaultChecked:O,disabled:E,id:d,name:p,ref:g,size:v,style:{...y,...b?.root},tabIndex:x,title:S,xstyle:k&&(v===`small`?ym.rootTextSmall:ym.rootText),onCheckedChange:m,onClick:h,children:[n&&(0,Z.jsx)(km,{className:a?.content,position:`left`,size:v,style:b?.content,children:n}),C&&(0,Z.jsx)(km,{className:a?.content,position:`right`,size:v,style:b?.content,children:C}),k&&(0,Z.jsxs)(`span`,{"aria-hidden":!0,...i(ym.textSizer,v===`small`&&ym.textSizerSmall),children:[(0,Z.jsx)(`span`,{children:n}),(0,Z.jsx)(`span`,{children:C})]}),(0,Z.jsx)(Dm,{className:a?.thumb,size:v,style:b?.thumb,children:f&&(0,Z.jsx)(ye,{...i(ym.loading),icon:_i,size:v===`small`?8:12,style:{color:Ai.colorPrimary}})})]})});Am.displayName=`Switch`;var jm={icon:`lobe-menu-icon`,label:`lobe-menu-label`,popup:`lobe-menu-popup`,positioner:`lobe-menu-positioner`,submenuArrow:`lobe-menu-submenu-arrow`},Mm={danger:{"--lobe-menu-icon-color":`lb107ansx`,kWkggS:`lb86rvtz lb85pxvj lb16xa4ls`,kMwMTN:`lb12ap7uz`,$$css:!0},empty:{kMwMTN:`lb53gy9q lb2poks1`,kkrTdU:`lbt0e3qv lb5ezrf1`,kKX8nH:`lb1k4tb9n`,$$css:!0},extra:{kMwMTN:`lb53gy9q`,kMv6JI:`lb2xbw48`,kGuDYH:`lbfifm61`,keTefX:`lbvc5jky`,kZCmMZ:`lbf7dkkf`,$$css:!0},footer:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kLZC3w:`lb592eyn`,kPef9Z:`lb13fuv20`,kEafiO:`lb178xt8z`,kmuXW:`lb2lah0s`,$$css:!0},groupLabel:{kg3NbH:`lbaope02`,kMwMTN:`lb53gy9q`,kGuDYH:`lb1k6wstc`,k63SB2:`lb1s688f`,kb6lSQ:`lbkv8mnm`,kLWn49:`lb1xxsxie`,kGO01o:`lbjkvuk6`,kLKAdn:`lb1y1aw1k lb1t8wt99`,kP9fke:`lbtvhhri`,kfSwDN:`lb87ps6o`,$$css:!0},header:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kL6WhQ:`lbsyjar`,kfdmCh:`lb1q0q8m5`,kt9PQ7:`lbso031l`,kmuXW:`lb2lah0s`,$$css:!0},icon:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k71WvV:`lbbmvrgn`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},iconAlignStart:{kSGwAc:`lbqcrz7y`,keoZOQ:`lbr9ek0c`,$$css:!0},item:{kaIpWk:`lb1vihcfj`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,k8WAf4:`lb1t0vds8`,kg3NbH:`lbaope02`,kmkexE:`lb18nfrvi`,kGNEyG:`lb6s0dn4`,kWkggS:`lb1kvtry4 lbwew3ed lbn4ptgj`,kMwMTN:`lb66ogz0 lb2poks1`,kkrTdU:`lb5ezrf1`,k1xSpc:`lb78zum5`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,kSiTet:`lbxh3kiz`,kVAEAm:`lb1n2onr6`,kfSwDN:`lb87ps6o`,kAzted:`lb21xpn4`,kzqmXN:`lbh8yej3`,$$css:!0},itemContent:{kUk6DE:`lb98rzlu`,kOIVth:`lbxhr3t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,$$css:!0},itemContentAlignStart:{kGNEyG:`lb1cy8zhl`,$$css:!0},label:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},labelGroup:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,k7Eaqz:`lbeuugli`,$$css:!0},desc:{kVQacm:`lbb3r6kr`,kMwMTN:`lb53gy9q`,kGuDYH:`lbfifm61`,kLWn49:`lb1d3mw78`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},popup:{"--lobe-menu-popup-padding":`lbx5256q`,"--lobe-virtual-scroll-inset":`lb19d6fe`,kaIpWk:`lb1sbi92r`,kI3sdo:`lb1a2a7pz`,kg3NbH:`lb1ctfek0`,kWkggS:`lb1w937bt`,kGVxlE:`lbj07k4p`,k1xSpc:`lb1cuf08c`,kXwgrk:`lbrk0jpx`,kGO01o:`lb5fj2l4 lb1f9yvpy`,kLKAdn:`lblztzta lb7ao2f8`,kskxy:`lb1374xjt`,k7Eaqz:`lb12rczxh`,kXHlph:`lbj8hqjc`,kORKVm:`lb1odjw0f lb1j8km66`,$$css:!0},popupWithSlots:{k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kskxy:`lb1374xjt`,kXHlph:`lb6ikm8r`,kORKVm:`lb10wlt62`,$$css:!0},slotViewport:{kUk6DE:`lb98rzlu`,kAzted:`lb2lwn1j`,kORKVm:`lb1odjw0f`,$$css:!0},positioner:{"--lobe-dropdown-animation-duration":`lbx26zto lb13mkx0c`,"--lobe-dropdown-animation-ease-in":`lb1l96weh`,"--lobe-dropdown-animation-ease-out":`lbmyf473`,"--lobe-dropdown-animation-scale-y":`lbkiw9s4 lbdiwzxj`,kY2c9j:`lbp6lfbs lbkskvg3`,$$css:!0},separator:{kqGvvJ:`lbg9jes1`,kUOVxO:`lbrxpjvj`,kWkggS:`lb1yqcoyj`,kZKoxP:`lbjm9jq1`,$$css:!0},switchWrap:{k1xSpc:`lb3nfvp2`,keTefX:`lbyqm7xq`,$$css:!0},submenuArrow:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,keTefX:`lb13fj5qh`,kZKoxP:`lblup9mm`,kzqmXN:`lb1kky2od`,$$css:!0}},Nm={danger:{className:`lb107ansx lb86rvtz lb85pxvj lb16xa4ls lb12ap7uz`}.className??``,empty:{className:`lb53gy9q lb2poks1 lbt0e3qv lb5ezrf1 lb1k4tb9n`}.className??``,extra:{className:`lb53gy9q lb2xbw48 lbfifm61 lbvc5jky lbf7dkkf`}.className??``,footer:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lb592eyn lb13fuv20 lb178xt8z lb2lah0s`}.className??``,groupLabel:{className:`lbaope02 lb53gy9q lb1k6wstc lb1s688f lbkv8mnm lb1xxsxie lbjkvuk6 lb1y1aw1k lb1t8wt99 lbtvhhri lb87ps6o`}.className??``,header:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lbsyjar lb1q0q8m5 lbso031l lb2lah0s`}.className??``,icon:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lbbmvrgn lb1v9usgg lb6jxa94`}.className??``} ${jm.icon}`,iconAlignStart:{className:`lbqcrz7y lbr9ek0c`}.className??``,item:{className:`lb1vihcfj lb1a2a7pz lbb3r6kr lb1t0vds8 lbaope02 lb18nfrvi lb6s0dn4 lb1kvtry4 lbwew3ed lbn4ptgj lb66ogz0 lb2poks1 lb5ezrf1 lb78zum5 lbif65rj lb1fc57z9 lbxh3kiz lb1n2onr6 lb87ps6o lb21xpn4 lbh8yej3`}.className??``,itemContent:{className:`lb98rzlu lbxhr3t lb6s0dn4 lb78zum5`}.className??``,itemContentAlignStart:{className:`lb1cy8zhl`}.className??``,label:`${{className:`lb98rzlu lbb3r6kr lblyipyv lbuxw1ft`}.className??``} ${jm.label}`,labelGroup:{className:`lb98rzlu lbb3r6kr lb78zum5 lbdt5ytf lbeuugli`}.className??``,desc:{className:`lbb3r6kr lb53gy9q lbfifm61 lb1d3mw78 lblyipyv lbuxw1ft`}.className??``,popup:`${{className:`lbx5256q lb19d6fe lb1sbi92r lb1a2a7pz lb1ctfek0 lb1w937bt lbj07k4p lb1cuf08c lbrk0jpx lb5fj2l4 lb1f9yvpy lblztzta lb7ao2f8 lb1374xjt lb12rczxh lbj8hqjc lb1odjw0f lb1j8km66`}.className??``} ${jm.popup}`,popupWithSlots:{className:`lb78zum5 lbdt5ytf lb1374xjt lb6ikm8r lb10wlt62`}.className??``,slotViewport:{className:`lb98rzlu lb2lwn1j lb1odjw0f`}.className??``,positioner:`${{className:`lbx26zto lb13mkx0c lb1l96weh lbmyf473 lbkiw9s4 lbdiwzxj lbp6lfbs lbkskvg3`}.className??``} ${jm.positioner}`,separator:{className:`lbg9jes1 lbrxpjvj lb1yqcoyj lbjm9jq1`}.className??``,switchWrap:{className:`lb3nfvp2 lbyqm7xq`}.className??``,submenuArrow:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lb13fj5qh lblup9mm lb1kky2od`}.className??``} ${jm.submenuArrow}`},Pm=X.createContext(void 0);function Fm(e){let t=X.useContext(Pm);if(!e&&t===void 0)throw Error(Me(27));return t}var Im=X.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Fm(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return P(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:H,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Lm=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Fm(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=de({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Y(qe,e.nativeEvent))}return P(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Rm=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Fm(),c=Oe(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),P(`p`,e,{ref:t,props:[{id:c},o]})}),zm=X.createContext(void 0);function Bm(){let e=X.useContext(zm);if(e===void 0)throw Error(Me(26));return e}var Vm=`--nested-dialogs`,Hm=`data-nested-dialog-open`,Um={...F,...jt,nestedDialogOpen(e){return e?{[Hm]:``}:null}},Wm=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Fm(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),C=d.useState(`floatingId`);Bm(),S({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?ut(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=P(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y,"aria-describedby":l,role:x,...xe,hidden:!m,onKeyDown(e){mt.has(e.key)&&e.stopPropagation()},style:{[Vm]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:Um});return(0,Z.jsx)(Ee,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})}),Gm=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Fm(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(zm.Provider,{value:n,children:(0,Z.jsxs)(z,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(rt,{ref:i.context.internalBackdropRef,inert:Rt(!s)}),e.children]})}):null});function Km({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=X.useState(0),[d,f]=X.useState(0),p=l===0,m=_(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=We(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||q(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return Ot(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),K(()=>{!r&&!i&&(u(0),f(0))},[r,i]),K(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),oe(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var qm={...Ve,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Jm=class extends ve{constructor(e,t,n){let r=new Vt,i=Ym(e,r,t,n);super(i,Xm(r),qm)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(m(this.state,e,t.trigger)))}};function Ym(e,t,n,r=!1){return{...Wt(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Xm(e){return{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Zm(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Fm(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=ue((e,t)=>new Jm({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);O(b,x),st(b);let{forceUnmount:w}=U(x,b);X.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Y(Ie))}),[w,b]);let E=x||S||u!=null;return(0,Z.jsxs)(Pm.Provider,{value:b,children:[u&&(0,Z.jsx)(T,{handle:u,store:b}),E&&(0,Z.jsx)(Km,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Qm=He(function(e){return Zm(`dialog`,e)}),$m=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Fm(),c=Oe(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),P(`h2`,e,{ref:t,props:[{id:c},o]})});function eh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function th(...e){return t=>{let n=!1,r=e.map(e=>{let r=eh(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():eh(e[t],null)}}}}function nh(...e){return X.useCallback(th(...e),e)}var rh=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},ih=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=rh(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=rh(e.offsetParent);return[t/i,n/a]},ah=class extends X.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(dr(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=dr(e)&&e.offsetWidth||0,r=dr(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=ih(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function oh({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,X.useId)(),c=(0,X.useRef)(null),l=(0,X.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,X.useContext)(Qn),d=nh(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current,p=e=>{let{width:t,height:i,top:a,left:o,right:c,bottom:u,direction:d}=l.current,f=d===`rtl`,p=n===`left`?f?`right:${c}`:`left:${o}`:f?`left:${o}`:`right:${c}`,m=r===`bottom`?`bottom:${u}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return(0,X.useInsertionEffect)(()=>{let{width:e,height:n}=l.current,r=f();if(t||a===!1||!r||!e||!n)return;r.dataset.motionPopId=s;let o=r.ownerDocument,c=o.createElement(`style`);u&&(c.nonce=u);let d=i??o.head;d.appendChild(c),p(c.sheet);let m=0,h=0;return Zn.setup(()=>{let[e,t]=ih(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),Zn.read(()=>{let{sheet:e}=c;if(!e||!m&&!h)return;let t=l.current;t.left+=m,t.right-=m,t.top+=h,t.bottom-=h,e.deleteRule(0),p(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),d.contains(c)&&d.removeChild(c)}},[t]),(0,Z.jsx)(ah,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:X.cloneElement(e,{ref:d})})}var sh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Fn(ch),d=(0,X.useId)(),f=(0,X.useRef)(),p=(0,X.useRef)(n),m=(0,X.useRef)(r);Yn(()=>{p.current=n,m.current=r});let h=!0,g=(0,X.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,X.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,Z.jsx)(oh,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,Z.jsx)(Un.Provider,{value:g,children:e})};function ch(){return new Map}function lh(e=!0){let t=(0,X.useContext)(Un);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,X.useId)();(0,X.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,X.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var uh=e=>e.key||``;function dh(e){let t=[];return X.Children.forEach(e,e=>{(0,X.isValidElement)(e)&&t.push(e)}),t}var fh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=lh(o),f=(0,X.useMemo)(()=>dh(e),[e]),p=o&&!u?[]:f.map(uh),m=(0,X.useRef)(!0),h=Fn(()=>new Map),g=(0,X.useRef)(new Set),[_,v]=(0,X.useState)(f),[y,b]=(0,X.useState)(f);Yn(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,X.useRef)();(0,X.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Yn(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=uh(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(uh(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(uh(e)))?e=f:a===`wait`&&(e=S),b(dh(e)),v(f),null}let{forceRender:C}=(0,X.useContext)(Sn);return(0,Z.jsx)(Z.Fragment,{children:y.map(e=>{let _=uh(e),b=o&&!u?!1:f===y||p.includes(_);return(0,Z.jsx)(sh,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},ph=`self-off`,mh=`a[href], button, input, select, textarea, [tabindex], [contenteditable]:not([contenteditable="false"])`,hh=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]),gh=e=>[...e.querySelectorAll(mh)].find(e=>e.tabIndex>=0&&!e.disabled&&!e.closest(`[inert], [hidden]`)),_h=e=>e?e instanceof HTMLInputElement?!hh.has(e.type):e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||e.matches(`[contenteditable]:not([contenteditable="false"])`):!1,vh=e=>{let t=(0,X.useRef)(null),n=(0,X.useCallback)(()=>{let e=t.current;return e?_h(gh(e))?!0:e:!0},[]);return{focusRingProps:{"data-lobe-focus-ring":ph},initialFocus:e??n,popupRef:t}},yh={"common.clear":`Clear`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.delete":`Delete`,"common.edit":`Edit`,"common.empty":`(empty)`},bh=(e,t)=>()=>{},xh=[.32,.72,0,1],Sh={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:xh}},Ch={duration:.18,ease:xh},wh=(0,X.createContext)(null),Th=()=>(0,X.use)(wh),Eh=wh.Provider,Dh=u({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),Oh={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kI3sdo:`lb1a2a7pz`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},kh=(e,t,n)=>{let r=l(i(e).className,n);return typeof t==`function`?e=>l(r,t(e)):l(r,t)},Ah=(0,X.createContext)(null),jh=(0,X.createContext)(null),Mh=()=>(0,X.use)(Ah),Nh=()=>(0,X.use)(jh),Ph=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,X.useState)(!!e);(0,X.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,X.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,X.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Nt(`modal`,r),d=(0,X.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,Z.jsx)(Ah,{value:e,children:(0,Z.jsx)(jh,{value:c,children:(0,Z.jsx)(Eh,{value:d,children:(0,Z.jsx)(Qm,{modal:!0,open:!0,...i,children:t})})})}):null},Fh=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Nt(`modal`,e),a=(0,X.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,Z.jsx)(Eh,{value:a,children:(0,Z.jsx)(Qm,{modal:!0,...n,children:t})})},Ih=({open:e,onExitComplete:t,...n})=>e===void 0?(0,Z.jsx)(Fh,{...n}):(0,Z.jsx)(Ph,{open:e,onExitComplete:t,...n}),Lh=({container:e,...t})=>{let n=Re();return(0,Z.jsx)(Gm,{container:e??n??void 0,...t})},Rh=({className:e,style:t,...n})=>{let r=Mh(),a=Th(),o=vr(),s=a?.zIndex===void 0?void 0:{zIndex:a.zIndex};return r===null?(0,Z.jsx)(Im,{...n,style:{...s,...t},className:kh(Oh.backdrop,e,Dh(`backdrop`))}):(0,Z.jsx)(Im,{...n,style:{...s,...t,transition:`none`},className:l(i(Oh.backdrop).className,Dh(`backdrop`),e),render:(0,Z.jsx)(o.div,{animate:{opacity:+!!r},initial:{opacity:0},transition:Ch})})},zh=({className:e,children:t,initialFocus:n,width:r,style:a,motionProps:o,panelClassName:s,panelData:c,panelXstyle:u,popupStyle:d,ref:f,xstyle:p,...m})=>{let h=Mh(),g=Nh(),_=Th(),v=vr(),y=_?.zIndex===void 0?void 0:{zIndex:_.zIndex+1},{focusRingProps:b,initialFocus:x,popupRef:S}=vh(n),C=Fe([f,_?.popupRef,S]);return h!==null&&g?(0,Z.jsx)(Wm,{...b,...m,initialFocus:x,ref:C,style:{...y,...d},className:l(i(Oh.popup,p).className,Dh(`wrapper`),e),children:(0,Z.jsx)(fh,{onExitComplete:g.onExitComplete,children:h?(0,Z.jsx)(v.div,{...Sh,...o,...c,style:{maxWidth:r??void 0,transition:`none`,...a},className:l(i(Oh.popupInner,u).className,Dh(),s),children:t},`modal-popup-panel`):null})}):(0,Z.jsx)(Wm,{...b,...m,initialFocus:x,ref:C,style:{...y,...d},className:kh([Oh.popup,p],e,Dh(`wrapper`)),children:(0,Z.jsx)(`div`,{...c,...kt([Oh.popupInner,u],l(Dh(),s),{maxWidth:r??void 0,...a}),children:t})})},Bh=zh,Vh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Oh.header,n],l(Dh(`header`),e),t)}),Hh=Vh,Uh=({className:e,xstyle:t,...n})=>(0,Z.jsx)($m,{...n,className:kh([Oh.title,t],e,Dh(`title`))}),Wh=({className:e,...t})=>(0,Z.jsx)(Rm,{...t,className:kh(void 0,e,Dh(`description`))}),Gh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Oh.content,n],l(Dh(`content`),e),t)}),Kh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Oh.footer,n],l(Dh(`footer`),e),t)}),qh=({className:e,children:t,xstyle:n,...r})=>(0,Z.jsx)(Lm,{...r,className:kh([Oh.closeInline,Oh.close,Se.info,n],e,Dh(`close`)),children:t??(0,Z.jsx)(E,{size:16})}),Jh=(0,X.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),Yh=()=>(0,X.use)(Jh),Xh=({children:e,root:t})=>{let n=Re(),r=t??n??document.body;return(0,Oi.createPortal)(e,r)},Zh=({config:e})=>{let{close:t}=Yh(),[n,r]=(0,X.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,X.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,X.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,Z.jsxs)(Z.Fragment,{children:[a&&(0,Z.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,Z.jsxs)(Kh,{children:[(0,Z.jsx)(Ri,{type:`fill`,onClick:u,children:i}),(0,Z.jsx)(Ri,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};Zh.displayName=`ConfirmBody`;var Qh=0;function $h(){let e=Qh++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,X.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,initialFocus:s,maskClosable:c,onOpenChange:l,onOpenChangeComplete:p,open:m,styles:h,title:g,width:_}=n,v=m??!0,y=(0,X.useCallback)((e,n)=>{(e||c!==!1||n?.reason!==`outside-press`)&&(e||d(t),l?.(e))},[t,c,l]),b=(0,X.useCallback)(()=>{p?.(!1),f(t)},[t,p]),x=(0,X.useCallback)(()=>d(t),[t]),S=(0,X.useCallback)(e=>u(t,{maskClosable:e}),[t]),C=g!==void 0&&g!==!1&&g!==null;return(0,Z.jsx)(Jh,{value:{close:x,setCanDismissByClickOutside:S},children:(0,Z.jsx)(Ih,{open:v,onExitComplete:b,onOpenChange:y,children:(0,Z.jsxs)(Lh,{children:[(0,Z.jsx)(Rh,{className:i?.backdrop,style:h?.backdrop}),(0,Z.jsxs)(Bh,{className:i?.popup,initialFocus:s,popupStyle:h?.popup,width:_,children:[C&&(0,Z.jsxs)(Hh,{className:i?.header,style:h?.header,children:[(0,Z.jsx)(Uh,{className:i?.title,style:h?.title,children:g}),(0,Z.jsx)(qh,{className:i?.close,style:h?.close})]}),(0,Z.jsx)(Gh,{className:i?.content,style:h?.content,xstyle:!C&&Oh.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,X.memo)(({stack:e})=>$o()?e.map(e=>(0,Z.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,X.useSyncExternalStore)(o,c,l),r=$o();return(0,X.useEffect)(()=>{if(!r)return;let n=e??document.body;return bh(t,n)},[r,e]),!r||n.length===0?null:(0,Z.jsx)(Xh,{root:e,children:(0,Z.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,Z.jsx)(Zh,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var eg=$h(),tg=eg.ModalHost,ng=eg.createModal;eg.confirmModal;var rg=`ryugi:modal-escape`,ig=e=>{try{return!!e.frameElement?.hasAttribute(`data-ryugi-modal`)}catch{return!1}},ag=e=>e instanceof HTMLElement&&(e.isContentEditable||e.tagName===`INPUT`||e.tagName===`TEXTAREA`);function og(e=window){if(!ig(e))return()=>void 0;let t=t=>{t.key!==`Escape`||ag(t.target)||e.parent.postMessage({type:rg},e.location.origin)};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}var sg=new Map,cg=new Set,lg=()=>{for(let e of cg)e()};function ug(e){if(typeof e!=`object`||!e)return;let{type:t,artifact:n,threads:r}=e;t===`thread-activity`&&typeof n==`string`&&typeof r==`object`&&r&&(Object.keys(r).length===0?sg.delete(n):sg.set(n,r),lg())}function dg(){sg.size!==0&&(sg.clear(),lg())}var fg=e=>(cg.add(e),()=>{cg.delete(e)}),pg=e=>{for(let t of sg.values())if(t[e])return t[e];return null};function mg(e){return(0,X.useSyncExternalStore)(fg,()=>pg(e),()=>null)}var hg=()=>document.documentElement.dataset.ryugiEmbedParent??null,gg=()=>hg()??location.origin,_g=e=>e.source===window.parent&&e.origin===gg();function vg(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},gg())}function yg(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_}=t??{},v=_===void 0?void 0:JSON.stringify(_);return(0,X.useEffect)(()=>{n&&vg(e,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_})},[e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,v]),n&&window.parent!==window}var bg=`ryugi:split`;function xg(e){if(e.parent===e)return!1;try{return e.parent.location.origin===e.location.origin}catch{return!1}}function Sg(e=window){return ig(e)?null:e.document.documentElement.dataset.ryugiEmbedParent||(xg(e)?e.location.origin:null)}var Cg=(e=window)=>Sg(e)!==null,wg=(e=window)=>xg(e),Tg=(e,t=window)=>{let n=Sg(t);n&&t.parent.postMessage({type:bg,...e},n)},Eg=(e,t)=>e?.postMessage({type:bg,...t},location.origin);function Dg(e){let t=t=>{let n=document.documentElement.dataset.ryugiEmbedParent,r=!!n&&t.origin===n&&t.source===window.parent;if(t.origin!==location.origin&&!r)return;let i=t.data;i&&i.type===bg&&e(i,t.source)};return window.addEventListener(`message`,t),()=>window.removeEventListener(`message`,t)}var Og=640,kg=(e,t=window)=>e&&(!xg(t)||t.parent.innerWidth<=Og);function Ag(){let[e,t]=(0,X.useState)({role:null,other:null});return(0,X.useEffect)(()=>{if(!Cg())return;let e=Dg(e=>{e.kind===`split-role`&&t({role:e.role,other:e.other})});return Tg({kind:`want-role`}),e},[]),e}function jg({comments:e,open:t,available:r,onComments:i,onHistory:a,compact:o=!1}){let s=n(`document.railComments`,{count:e}),c=n(`document.history`);return(0,Z.jsxs)(`div`,{"aria-label":n(`document.rail`),role:`group`,className:`x78zum5 x6s0dn4 x1jnr06f x2lah0s`,children:[(0,Z.jsxs)(`button`,{"aria-label":o?s:void 0,"aria-pressed":!t,title:o?s:void 0,type:`button`,onClick:()=>{t&&i()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`}}[!t|0],children:[(0,Z.jsx)(yi,{"aria-hidden":`true`,size:14}),o?e:s]}),(0,Z.jsxs)(`button`,{"aria-label":o?c:void 0,"aria-pressed":t,disabled:!r,title:r?o?c:void 0:n(`document.historyOffline`),type:`button`,onClick:()=>{t||a()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},2:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`},3:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4 xahzvm9 xo2rkog`}}[!!o<<1|!!t],children:[(0,Z.jsx)(Ci,{"aria-hidden":`true`,size:14}),o?null:c]})]})}var Mg=3e3,Ng=globalThis;function Pg(e){return Ng.__ryugiEmbedAnchor=e,()=>{Ng.__ryugiEmbedAnchor===e&&(Ng.__ryugiEmbedAnchor=null)}}var Fg=()=>Ng.__ryugiEmbedAnchor?.read()??null,Ig=e=>Ng.__ryugiEmbedAnchor?.apply(e)??!1;function Lg(e,t=Date.now()){Ng.__ryugiPendingAnchor={anchor:e,until:t+Mg}}function Rg(e=Date.now()){let t=Ng.__ryugiPendingAnchor;return t&&e<t.until?t.anchor:null}function zg(){Ng.__ryugiPendingAnchor=null}var Bg=[{type:`document`,refAttribute:`document`,subTargets:[`block`],splitPane:!0},{type:`artboard`,refAttribute:`artboard`,subTargets:[`group`,`board`],splitPane:!0},{type:`whiteboard`,refAttribute:`whiteboard`,subTargets:[`page`,`frame`],splitPane:!0},{type:`html`,refAttribute:`html`,subTargets:[],splitPane:!0},{type:`slides`,refAttribute:`slides`,subTargets:[`slide`],splitPane:!0},{type:`report`,refAttribute:`report`,subTargets:[`block`],splitPane:!0},{type:`storyboard`,refAttribute:`storyboard`,subTargets:[`shot`],splitPane:!0},{type:`verify`,refAttribute:`verify`,subTargets:[],splitPane:!0}],Vg=Bg.map(e=>e.refAttribute),Hg=[...new Set(Bg.flatMap(e=>e.subTargets))];function Ug(e){return Bg.find(t=>t.type===e)??null}var Wg=e=>r(e)&&a(e).splitRole===`board`,Gg=[...Bg.filter(e=>e.splitPane).map(e=>e.type),`verify`],Kg=e=>Gg.includes(e),qg=[`with`,`kind`,`board`,`group`,`frame`,`wbpage`,`slide`,`block`],Jg={block:`block`,frame:`frame`,page:`wbpage`,slide:`slide`,group:`group`,board:`board`},Yg=(e,t)=>{for(let n of e){let e=t(n);if(e)return{[n]:e}}return{}};function Xg(e){let t=new URLSearchParams(e),n=t.get(`with`);if(!n||!s(n))return null;let i=t.get(`kind`);if(i&&r(i)&&a(i).linksOut)return{with:n,kind:i,...Yg(a(i).splitFocus??[],e=>t.get(Jg[e]))};let c=i&&r(i)&&a(i).splitFocus&&!a(i).splitUnnamed?i:null;return{with:n,...c?{kind:c}:{},...Yg(a(c??o).splitFocus??[],e=>t.get(Jg[e]))}}function Zg(e,t){let n=new URLSearchParams(e);for(let e of qg)n.delete(e);t&&(n.set(`with`,t.with),t.kind&&n.set(`kind`,t.kind),t.frame?n.set(`frame`,t.frame):t.page?n.set(`wbpage`,t.page):t.slide?n.set(`slide`,t.slide):t.group?n.set(`group`,t.group):t.board?n.set(`board`,t.board):t.block&&n.set(`block`,t.block));let r=n.toString();return r?`?${r}`:``}function Qg(e,t){if(e.kind!==`artifact`||!Kg(e.type))return null;let n=Xg(t);return n?{type:e.type,split:n}:null}export{Wm as $,la as $n,Tl as $t,rg as A,ts as An,Tr as Ar,Hf as At,Vh as B,ko as Bn,nd as Bt,Tg as C,hs as Cn,$r as Cr,mp as Ct,ug as D,ls as Dn,Gr as Dr,Kf as Dt,yg as E,us as En,qr as Er,np as Et,Yh as F,qo as Fn,mf as Ft,Uh as G,bo as Gn,Bl as Gt,zh as H,Po as Hn,du as Ht,Rh as I,Wo as In,pf as It,yh as J,go as Jn,Ml as Jt,Oh as K,_o as Kn,Ll as Kt,Gh as L,Uo as Ln,xd as Lt,ig as M,Qo as Mn,Nr as Mr,Ef as Mt,tg as N,Zo as Nn,Pr as Nr,Tf as Nt,dg as O,ss as On,Rr as Or,Wf as Ot,ng as P,Yo as Pn,vr as Pr,Sf as Pt,Gm as Q,ua as Qn,Ol as Qt,Wh as R,Bo as Rn,ad as Rt,Eg as S,gs as Sn,ti as Sr,fp as St,_g as T,fs as Tn,Yr as Tr,lp as Tt,Lh as U,Oo as Un,Ql as Ut,Bh as V,Fo as Vn,Au as Vt,Ih as W,wo as Wn,Vl as Wt,$m as X,eo as Xn,jl as Xt,lh as Y,ro as Yn,Nl as Yt,Qm as Z,_a as Zn,kl as Zt,Ag as _,Cs as _n,di as _r,Op as _t,Zg as a,pl as an,Wi as ar,Mm as at,Cg as b,bs as bn,ai as br,gp as bt,Hg as c,el as cn,Li as cr,mm as ct,zg as d,Dc as dn,Ti as dr,jp as dt,El as en,na as er,Rm as et,Pg as f,Oc as fn,Ci as fr,Ap as ft,jg as g,ws as gn,pi as gr,vp as gt,Lg as h,ic as hn,hi as hr,wp as ht,Qg as i,xl as in,Ki as ir,Nm as it,og as j,$o as jn,kr as jr,Pf as jt,mg as k,os as kn,Fr as kr,Gf as kt,Ug as l,tl as ln,Ai as lr,pm as lt,Fg as m,hc as mn,_i as mr,xp as mt,Wg as n,yl as nn,$i as nr,Im as nt,Bg as o,il as on,Bi as or,Am as ot,Rg as p,Tc as pn,xi as pr,kp as pt,Dh as q,vo as qn,Pl as qt,Xg as r,vl as rn,Ji as rr,jm as rt,Vg as s,Xc as sn,Ri as sr,gm as st,Yg as t,Dl as tn,ea as tr,Lm as tt,Ig as u,$c as un,Di as ur,Lp as ut,wg as v,Ss as vn,li as vr,Tp as vt,hg as w,ms as wn,Zr as wr,cp as wt,Dg as x,vs as xn,ri as xr,hp as xt,kg as y,xs as yn,si as yr,pp as yt,Kh as z,Ao as zn,ed as zt};
|