@flowtomic/ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliding-number.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/animation/sliding-number/sliding-number.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAItB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"sliding-number.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/animation/sliding-number/sliding-number.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAItB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwF/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;IACtE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,MAAM,EACN,SAAS,EACT,MAAc,EACd,YAAoB,EACpB,UAAiB,EACjB,QAAgB,EAChB,gBAAsB,EACtB,aAAiB,EACjB,UAIC,EACD,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA+GpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -18,7 +18,10 @@ function SlidingNumberRoller({ prevValue, value, place, transition }) {
|
|
|
18
18
|
animatedValue.set(targetNumber);
|
|
19
19
|
}, [targetNumber, animatedValue]);
|
|
20
20
|
const [measureRef, { height }] = useMeasure();
|
|
21
|
-
return (_jsxs("span", { ref: measureRef, "data-slot": "sliding-number-roller", className: "relative inline-block w-[1ch]
|
|
21
|
+
return (_jsxs("span", { ref: measureRef, "data-slot": "sliding-number-roller", className: "relative inline-block shrink-0 w-[1ch] h-[1em] overflow-hidden leading-none tabular-nums", style: {
|
|
22
|
+
color: "var(--animated-number-color, inherit)",
|
|
23
|
+
lineHeight: 1,
|
|
24
|
+
}, children: [_jsx("span", { className: "invisible", children: "0" }), [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((digit) => (_jsx(SlidingNumberDisplay, { motionValue: animatedValue, number: digit, height: height ?? 0, transition: transition }, `sliding-digit-${digit}`)))] }));
|
|
22
25
|
}
|
|
23
26
|
function SlidingNumberDisplay({ motionValue, number, height, transition, }) {
|
|
24
27
|
const y = useTransform(motionValue, (latest) => {
|
|
@@ -32,12 +35,12 @@ function SlidingNumberDisplay({ motionValue, number, height, transition, }) {
|
|
|
32
35
|
return translateY;
|
|
33
36
|
});
|
|
34
37
|
if (!height) {
|
|
35
|
-
return _jsx("span", { className: "invisible absolute", children: number });
|
|
38
|
+
return _jsx("span", { className: "invisible absolute top-0 left-0 w-full h-[1em] leading-none", children: number });
|
|
36
39
|
}
|
|
37
40
|
return (_jsx(motion.span, { "data-slot": "sliding-number-display", style: {
|
|
38
41
|
y,
|
|
39
42
|
color: "var(--animated-number-color, inherit)",
|
|
40
|
-
}, className: "absolute
|
|
43
|
+
}, className: "absolute top-0 left-0 w-full h-[1em] flex items-center justify-center leading-none", transition: { ...transition, type: "spring" }, children: number }));
|
|
41
44
|
}
|
|
42
45
|
function SlidingNumber({ ref, number, className, inView = false, inViewMargin = "0px", inViewOnce = true, padStart = false, decimalSeparator = ".", decimalPlaces = 0, transition = {
|
|
43
46
|
stiffness: 200,
|
|
@@ -88,7 +91,7 @@ function SlidingNumber({ ref, number, className, inView = false, inViewMargin =
|
|
|
88
91
|
: [], [newDecStrRaw]);
|
|
89
92
|
const newDecValue = newDecStrRaw ? parseInt(newDecStrRaw, 10) : 0;
|
|
90
93
|
const prevDecValue = adjustedPrevDec ? parseInt(adjustedPrevDec, 10) : 0;
|
|
91
|
-
return (_jsxs("span", { ref: localRef, "data-slot": "sliding-number", className: cn("flex items-center", className), style: {
|
|
94
|
+
return (_jsxs("span", { ref: localRef, "data-slot": "sliding-number", className: cn("flex flex-row flex-nowrap items-center", className), style: {
|
|
92
95
|
color: "inherit",
|
|
93
96
|
...props.style,
|
|
94
97
|
}, ...props, children: [isInView && Number(number) < 0 && (_jsx("span", { className: "mr-1", style: { color: "var(--animated-number-color, inherit)" }, children: "-" })), intPlaces.map((place) => (_jsx(SlidingNumberRoller, { prevValue: parseInt(adjustedPrevInt, 10), value: parseInt(newIntStr ?? "0", 10), place: place, transition: transition }, `int-${place}`))), newDecStrRaw && (_jsxs(_Fragment, { children: [_jsx("span", { style: { color: "var(--animated-number-color, inherit)" }, children: decimalSeparator }), decPlaces.map((place) => (_jsx(SlidingNumberRoller, { prevValue: prevDecValue, value: newDecValue, place: place, transition: transition }, `dec-${place}`)))] }))] }));
|
package/dist/index.js
CHANGED
|
@@ -2837,7 +2837,7 @@ ${e.themeCSS}`;if(e.fontFamily!==void 0)t+=`
|
|
|
2837
2837
|
`)},sNe=function(){var e=parseInt(document.body.getAttribute(U8)||"0",10);return isFinite(e)?e:0},qht=function(){z8.useEffect(function(){return document.body.setAttribute(U8,(sNe()+1).toString()),function(){var e=sNe()-1;if(e<=0)document.body.removeAttribute(U8);else document.body.setAttribute(U8,e.toString())}},[])},Kme=function(e){var{noRelative:n,noImportant:t,gapMode:a}=e,i=a===void 0?"margin":a;qht();var r=z8.useMemo(function(){return Zme(i)},[i]);return z8.createElement(Dht,{styles:xht(r,!n,i,!t?"!important":"")})};var Rme=!1;if(typeof window<"u")try{H8=Object.defineProperty({},"passive",{get:function(){return Rme=!0,!0}}),window.addEventListener("test",H8,H8),window.removeEventListener("test",H8,H8)}catch(e){Rme=!1}var H8,r6=Rme?{passive:!1}:!1;var Ght=function(e){return e.tagName==="TEXTAREA"},uNe=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!Ght(e)&&t[n]==="visible")},Lht=function(e){return uNe(e,"overflowY")},Mht=function(e){return uNe(e,"overflowX")},Nme=function(e,n){var t=n.ownerDocument,a=n;do{if(typeof ShadowRoot<"u"&&a instanceof ShadowRoot)a=a.host;var i=mNe(e,a);if(i){var r=lNe(e,a),A=r[1],o=r[2];if(A>o)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},Uht=function(e){var{scrollTop:n,scrollHeight:t,clientHeight:a}=e;return[n,t,a]},zht=function(e){var{scrollLeft:n,scrollWidth:t,clientWidth:a}=e;return[n,t,a]},mNe=function(e,n){return e==="v"?Lht(n):Mht(n)},lNe=function(e,n){return e==="v"?Uht(n):zht(n)},Hht=function(e,n){return e==="h"&&n==="rtl"?-1:1},pNe=function(e,n,t,a,i){var r=Hht(e,window.getComputedStyle(n).direction),A=r*a,o=t.target,s=n.contains(o),u=!1,m=A>0,l=0,p=0;do{if(!o)break;var d=lNe(e,o),g=d[0],b=d[1],f=d[2],h=b-f-r*g;if(g||h){if(mNe(e,o))l+=h,p+=g}var w=o.parentNode;o=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!s&&o!==document.body||s&&(n.contains(o)||n===o));if(m&&(i&&Math.abs(l)<1||!i&&A>l))u=!0;else if(!m&&(i&&Math.abs(p)<1||!i&&-A>p))u=!0;return u};var yP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dNe=function(e){return[e.deltaX,e.deltaY]},gNe=function(e){return e&&"current"in e?e.current:e},Yht=function(e,n){return e[0]===n[0]&&e[1]===n[1]},Zht=function(e){return`
|
|
2838
2838
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
2839
2839
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
2840
|
-
`)},Kht=0,Y8=[];function bNe(e){var n=bA.useRef([]),t=bA.useRef([0,0]),a=bA.useRef(),i=bA.useState(Kht++)[0],r=bA.useState(sG)[0],A=bA.useRef(e);bA.useEffect(function(){A.current=e},[e]),bA.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=bP([e.lockRef.current],(e.shards||[]).map(gNe),!0).filter(Boolean);return b.forEach(function(f){return f.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(i))})}}return},[e.inert,e.lockRef.current,e.shards]);var o=bA.useCallback(function(b,f){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!A.current.allowPinchZoom;var h=yP(b),w=t.current,B="deltaX"in b?b.deltaX:w[0]-h[0],C="deltaY"in b?b.deltaY:w[1]-h[1],y,k=b.target,Q=Math.abs(B)>Math.abs(C)?"h":"v";if("touches"in b&&Q==="h"&&k.type==="range")return!1;var I=Nme(Q,k);if(!I)return!0;if(I)y=Q;else y=Q==="v"?"h":"v",I=Nme(Q,k);if(!I)return!1;if(!a.current&&"changedTouches"in b&&(B||C))a.current=y;if(!y)return!0;var x=a.current||y;return pNe(x,f,b,x==="h"?B:C,!0)},[]),s=bA.useCallback(function(b){var f=b;if(!Y8.length||Y8[Y8.length-1]!==r)return;var h="deltaY"in f?dNe(f):yP(f),w=n.current.filter(function(y){return y.name===f.type&&(y.target===f.target||f.target===y.shadowParent)&&Yht(y.delta,h)})[0];if(w&&w.should){if(f.cancelable)f.preventDefault();return}if(!w){var B=(A.current.shards||[]).map(gNe).filter(Boolean).filter(function(y){return y.contains(f.target)}),C=B.length>0?o(f,B[0]):!A.current.noIsolation;if(C){if(f.cancelable)f.preventDefault()}}},[]),u=bA.useCallback(function(b,f,h,w){var B={name:b,delta:f,target:h,should:w,shadowParent:Rht(h)};n.current.push(B),setTimeout(function(){n.current=n.current.filter(function(C){return C!==B})},1)},[]),m=bA.useCallback(function(b){t.current=yP(b),a.current=void 0},[]),l=bA.useCallback(function(b){u(b.type,dNe(b),b.target,o(b,e.lockRef.current))},[]),p=bA.useCallback(function(b){u(b.type,yP(b),b.target,o(b,e.lockRef.current))},[]);bA.useEffect(function(){return Y8.push(r),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:p}),document.addEventListener("wheel",s,r6),document.addEventListener("touchmove",s,r6),document.addEventListener("touchstart",m,r6),function(){Y8=Y8.filter(function(b){return b!==r}),document.removeEventListener("wheel",s,r6),document.removeEventListener("touchmove",s,r6),document.removeEventListener("touchstart",m,r6)}},[]);var{removeScrollBar:d,inert:g}=e;return bA.createElement(bA.Fragment,null,g?bA.createElement(r,{styles:Zht(i)}):null,d?bA.createElement(Kme,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rht(e){var n=null;while(e!==null){if(e instanceof ShadowRoot)n=e.host,e=e.host;e=e.parentNode}return n}var fNe=Mme(wP,bNe);var hNe=CP.forwardRef(function(e,n){return CP.createElement(cG,Or({},e,{ref:n,sideCar:fNe}))});hNe.classNames=cG.classNames;var A6=hNe;import{jsx as ha}from"react/jsx-runtime";var Jme=["Enter"," "],Nht=["ArrowDown","PageUp","Home"],BNe=["ArrowUp","PageDown","End"],Jht=[...Nht,...BNe],Pht={ltr:[...Jme,"ArrowRight"],rtl:[...Jme,"ArrowLeft"]},Xht={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pG="Menu",[mG,jht,$ht]=ld(pG),[o6,Mk]=ma(pG,[$ht,wg,Nm]),dG=wg(),yNe=Nm(),[CNe,Uk]=o6(pG),[Sht,gG]=o6(pG),kNe=(e)=>{let{__scopeMenu:n,open:t=!1,children:a,dir:i,onOpenChange:r,modal:A=!0}=e,o=dG(n),[s,u]=Lt.useState(null),m=Lt.useRef(!1),l=Li(r),p=Bc(i);return Lt.useEffect(()=>{let d=()=>{m.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>m.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),ha(B0,{...o,children:ha(CNe,{scope:n,open:t,onOpenChange:l,content:s,onContentChange:u,children:ha(Sht,{scope:n,onClose:Lt.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:m,dir:p,modal:A,children:a})})})};kNe.displayName=pG;var Oht="MenuAnchor",Pme=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e,i=dG(t);return ha(y0,{...i,...a,ref:n})});Pme.displayName=Oht;var Xme="MenuPortal",[Wht,QNe]=o6(Xme,{forceMount:void 0}),ENe=(e)=>{let{__scopeMenu:n,forceMount:t,children:a,container:i}=e,r=Uk(Xme,n);return ha(Wht,{scope:n,forceMount:t,children:ha(ii,{present:t||r.open,children:ha(sf,{asChild:!0,container:i,children:a})})})};ENe.displayName=Xme;var yg="MenuContent",[Tht,jme]=o6(yg),_Ne=Lt.forwardRef((e,n)=>{let t=QNe(yg,e.__scopeMenu),{forceMount:a=t.forceMount,...i}=e,r=Uk(yg,e.__scopeMenu),A=gG(yg,e.__scopeMenu);return ha(mG.Provider,{scope:e.__scopeMenu,children:ha(ii,{present:a||r.open,children:ha(mG.Slot,{scope:e.__scopeMenu,children:A.modal?ha(Vht,{...i,ref:n}):ha(ewt,{...i,ref:n})})})})}),Vht=Lt.forwardRef((e,n)=>{let t=Uk(yg,e.__scopeMenu),a=Lt.useRef(null),i=ot(n,a);return Lt.useEffect(()=>{let r=a.current;if(r)return Gk(r)},[]),ha($me,{...e,ref:i,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:on(e.onFocusOutside,(r)=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),ewt=Lt.forwardRef((e,n)=>{let t=Uk(yg,e.__scopeMenu);return ha($me,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),nwt=af("MenuContent.ScrollLock"),$me=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,loop:a=!1,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:A,disableOutsidePointerEvents:o,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:d,disableOutsideScroll:g,...b}=e,f=Uk(yg,t),h=gG(yg,t),w=dG(t),B=yNe(t),C=jht(t),[y,k]=Lt.useState(null),Q=Lt.useRef(null),I=ot(n,Q,f.onContentChange),x=Lt.useRef(0),U=Lt.useRef(""),M=Lt.useRef(0),D=Lt.useRef(null),G=Lt.useRef("right"),E=Lt.useRef(0),F=g?A6:Lt.Fragment,_=g?{as:nwt,allowPinchZoom:!0}:void 0,q=(z)=>{let H=U.current+z,Y=C().filter((P)=>!P.disabled),K=document.activeElement,Z=Y.find((P)=>P.ref.current===K)?.textValue,N=Y.map((P)=>P.textValue),J=pwt(N,H,Z),V=Y.find((P)=>P.textValue===J)?.ref.current;if(function P(te){if(U.current=te,window.clearTimeout(x.current),te!=="")x.current=window.setTimeout(()=>P(""),1000)}(H),V)setTimeout(()=>V.focus())};Lt.useEffect(()=>{return()=>window.clearTimeout(x.current)},[]),x8();let L=Lt.useCallback((z)=>{return G.current===D.current?.side&&gwt(z,D.current?.area)},[]);return ha(Tht,{scope:t,searchRef:U,onItemEnter:Lt.useCallback((z)=>{if(L(z))z.preventDefault()},[L]),onItemLeave:Lt.useCallback((z)=>{if(L(z))return;Q.current?.focus(),k(null)},[L]),onTriggerLeave:Lt.useCallback((z)=>{if(L(z))z.preventDefault()},[L]),pointerGraceTimerRef:M,onPointerGraceIntentChange:Lt.useCallback((z)=>{D.current=z},[]),children:ha(F,{..._,children:ha($2,{asChild:!0,trapped:i,onMountAutoFocus:on(r,(z)=>{z.preventDefault(),Q.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:A,children:ha(pd,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:d,children:ha(Xh,{asChild:!0,...B,dir:h.dir,orientation:"vertical",loop:a,currentTabStopId:y,onCurrentTabStopIdChange:k,onEntryFocus:on(s,(z)=>{if(!h.isUsingKeyboardRef.current)z.preventDefault()}),preventScrollOnEntryFocus:!0,children:ha(xk,{role:"menu","aria-orientation":"vertical","data-state":NNe(f.open),"data-radix-menu-content":"",dir:h.dir,...w,...b,ref:I,style:{outline:"none",...b.style},onKeyDown:on(b.onKeyDown,(z)=>{let Y=z.target.closest("[data-radix-menu-content]")===z.currentTarget,K=z.ctrlKey||z.altKey||z.metaKey,Z=z.key.length===1;if(Y){if(z.key==="Tab")z.preventDefault();if(!K&&Z)q(z.key)}let N=Q.current;if(z.target!==N)return;if(!Jht.includes(z.key))return;z.preventDefault();let V=C().filter((P)=>!P.disabled).map((P)=>P.ref.current);if(BNe.includes(z.key))V.reverse();mwt(V)}),onBlur:on(e.onBlur,(z)=>{if(!z.currentTarget.contains(z.target))window.clearTimeout(x.current),U.current=""}),onPointerMove:on(e.onPointerMove,lG((z)=>{let H=z.target,Y=E.current!==z.clientX;if(z.currentTarget.contains(H)&&Y){let K=z.clientX>E.current?"right":"left";G.current=K,E.current=z.clientX}}))})})})})})})});_Ne.displayName=yg;var twt="MenuGroup",Sme=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{role:"group",...a,ref:n})});Sme.displayName=twt;var awt="MenuLabel",INe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{...a,ref:n})});INe.displayName=awt;var kP="MenuItem",wNe="menu.itemSelect",EP=Lt.forwardRef((e,n)=>{let{disabled:t=!1,onSelect:a,...i}=e,r=Lt.useRef(null),A=gG(kP,e.__scopeMenu),o=jme(kP,e.__scopeMenu),s=ot(n,r),u=Lt.useRef(!1),m=()=>{let l=r.current;if(!t&&l){let p=new CustomEvent(wNe,{bubbles:!0,cancelable:!0});if(l.addEventListener(wNe,(d)=>a?.(d),{once:!0}),X2(l,p),p.defaultPrevented)u.current=!1;else A.onClose()}};return ha(FNe,{...i,ref:s,disabled:t,onClick:on(e.onClick,m),onPointerDown:(l)=>{e.onPointerDown?.(l),u.current=!0},onPointerUp:on(e.onPointerUp,(l)=>{if(!u.current)l.currentTarget?.click()}),onKeyDown:on(e.onKeyDown,(l)=>{let p=o.searchRef.current!=="";if(t||p&&l.key===" ")return;if(Jme.includes(l.key))l.currentTarget.click(),l.preventDefault()})})});EP.displayName=kP;var FNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,disabled:a=!1,textValue:i,...r}=e,A=jme(kP,t),o=yNe(t),s=Lt.useRef(null),u=ot(n,s),[m,l]=Lt.useState(!1),[p,d]=Lt.useState("");return Lt.useEffect(()=>{let g=s.current;if(g)d((g.textContent??"").trim())},[r.children]),ha(mG.ItemSlot,{scope:t,disabled:a,textValue:i??p,children:ha(jh,{asChild:!0,...o,focusable:!a,children:ha(Ln.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:on(e.onPointerMove,lG((g)=>{if(a)A.onItemLeave(g);else if(A.onItemEnter(g),!g.defaultPrevented)g.currentTarget.focus({preventScroll:!0})})),onPointerLeave:on(e.onPointerLeave,lG((g)=>A.onItemLeave(g))),onFocus:on(e.onFocus,()=>l(!0)),onBlur:on(e.onBlur,()=>l(!1))})})})}),iwt="MenuCheckboxItem",vNe=Lt.forwardRef((e,n)=>{let{checked:t=!1,onCheckedChange:a,...i}=e;return ha(LNe,{scope:e.__scopeMenu,checked:t,children:ha(EP,{role:"menuitemcheckbox","aria-checked":QP(t)?"mixed":t,...i,ref:n,"data-state":Tme(t),onSelect:on(i.onSelect,()=>a?.(QP(t)?!0:!t),{checkForDefaultPrevented:!1})})})});vNe.displayName=iwt;var DNe="MenuRadioGroup",[rwt,Awt]=o6(DNe,{value:void 0,onValueChange:()=>{}}),xNe=Lt.forwardRef((e,n)=>{let{value:t,onValueChange:a,...i}=e,r=Li(a);return ha(rwt,{scope:e.__scopeMenu,value:t,onValueChange:r,children:ha(Sme,{...i,ref:n})})});xNe.displayName=DNe;var qNe="MenuRadioItem",GNe=Lt.forwardRef((e,n)=>{let{value:t,...a}=e,i=Awt(qNe,e.__scopeMenu),r=t===i.value;return ha(LNe,{scope:e.__scopeMenu,checked:r,children:ha(EP,{role:"menuitemradio","aria-checked":r,...a,ref:n,"data-state":Tme(r),onSelect:on(a.onSelect,()=>i.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});GNe.displayName=qNe;var Ome="MenuItemIndicator",[LNe,owt]=o6(Ome,{checked:!1}),MNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,forceMount:a,...i}=e,r=owt(Ome,t);return ha(ii,{present:a||QP(r.checked)||r.checked===!0,children:ha(Ln.span,{...i,ref:n,"data-state":Tme(r.checked)})})});MNe.displayName=Ome;var cwt="MenuSeparator",UNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{role:"separator","aria-orientation":"horizontal",...a,ref:n})});UNe.displayName=cwt;var swt="MenuArrow",zNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e,i=dG(t);return ha(qk,{...i,...a,ref:n})});zNe.displayName=swt;var Wme="MenuSub",[uwt,HNe]=o6(Wme),YNe=(e)=>{let{__scopeMenu:n,children:t,open:a=!1,onOpenChange:i}=e,r=Uk(Wme,n),A=dG(n),[o,s]=Lt.useState(null),[u,m]=Lt.useState(null),l=Li(i);return Lt.useEffect(()=>{if(r.open===!1)l(!1);return()=>l(!1)},[r.open,l]),ha(B0,{...A,children:ha(CNe,{scope:n,open:a,onOpenChange:l,content:u,onContentChange:m,children:ha(uwt,{scope:n,contentId:Bi(),triggerId:Bi(),trigger:o,onTriggerChange:s,children:t})})})};YNe.displayName=Wme;var uG="MenuSubTrigger",ZNe=Lt.forwardRef((e,n)=>{let t=Uk(uG,e.__scopeMenu),a=gG(uG,e.__scopeMenu),i=HNe(uG,e.__scopeMenu),r=jme(uG,e.__scopeMenu),A=Lt.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:s}=r,u={__scopeMenu:e.__scopeMenu},m=Lt.useCallback(()=>{if(A.current)window.clearTimeout(A.current);A.current=null},[]);return Lt.useEffect(()=>m,[m]),Lt.useEffect(()=>{let l=o.current;return()=>{window.clearTimeout(l),s(null)}},[o,s]),ha(Pme,{asChild:!0,...u,children:ha(FNe,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":i.contentId,"data-state":NNe(t.open),...e,ref:tu(n,i.onTriggerChange),onClick:(l)=>{if(e.onClick?.(l),e.disabled||l.defaultPrevented)return;if(l.currentTarget.focus(),!t.open)t.onOpenChange(!0)},onPointerMove:on(e.onPointerMove,lG((l)=>{if(r.onItemEnter(l),l.defaultPrevented)return;if(!e.disabled&&!t.open&&!A.current)r.onPointerGraceIntentChange(null),A.current=window.setTimeout(()=>{t.onOpenChange(!0),m()},100)})),onPointerLeave:on(e.onPointerLeave,lG((l)=>{m();let p=t.content?.getBoundingClientRect();if(p){let d=t.content?.dataset.side,g=d==="right",b=g?-5:5,f=p[g?"left":"right"],h=p[g?"right":"left"];r.onPointerGraceIntentChange({area:[{x:l.clientX+b,y:l.clientY},{x:f,y:p.top},{x:h,y:p.top},{x:h,y:p.bottom},{x:f,y:p.bottom}],side:d}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(l),l.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:on(e.onKeyDown,(l)=>{let p=r.searchRef.current!=="";if(e.disabled||p&&l.key===" ")return;if(Pht[a.dir].includes(l.key))t.onOpenChange(!0),t.content?.focus(),l.preventDefault()})})})});ZNe.displayName=uG;var KNe="MenuSubContent",RNe=Lt.forwardRef((e,n)=>{let t=QNe(yg,e.__scopeMenu),{forceMount:a=t.forceMount,...i}=e,r=Uk(yg,e.__scopeMenu),A=gG(yg,e.__scopeMenu),o=HNe(KNe,e.__scopeMenu),s=Lt.useRef(null),u=ot(n,s);return ha(mG.Provider,{scope:e.__scopeMenu,children:ha(ii,{present:a||r.open,children:ha(mG.Slot,{scope:e.__scopeMenu,children:ha($me,{id:o.contentId,"aria-labelledby":o.triggerId,...i,ref:u,align:"start",side:A.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(m)=>{if(A.isUsingKeyboardRef.current)s.current?.focus();m.preventDefault()},onCloseAutoFocus:(m)=>m.preventDefault(),onFocusOutside:on(e.onFocusOutside,(m)=>{if(m.target!==o.trigger)r.onOpenChange(!1)}),onEscapeKeyDown:on(e.onEscapeKeyDown,(m)=>{A.onClose(),m.preventDefault()}),onKeyDown:on(e.onKeyDown,(m)=>{let l=m.currentTarget.contains(m.target),p=Xht[A.dir].includes(m.key);if(l&&p)r.onOpenChange(!1),o.trigger?.focus(),m.preventDefault()})})})})})});RNe.displayName=KNe;function NNe(e){return e?"open":"closed"}function QP(e){return e==="indeterminate"}function Tme(e){return QP(e)?"indeterminate":e?"checked":"unchecked"}function mwt(e){let n=document.activeElement;for(let t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}function lwt(e,n){return e.map((t,a)=>e[(n+a)%e.length])}function pwt(e,n,t){let i=n.length>1&&Array.from(n).every((u)=>u===n[0])?n[0]:n,r=t?e.indexOf(t):-1,A=lwt(e,Math.max(r,0));if(i.length===1)A=A.filter((u)=>u!==t);let s=A.find((u)=>u.toLowerCase().startsWith(i.toLowerCase()));return s!==t?s:void 0}function dwt(e,n){let{x:t,y:a}=e,i=!1;for(let r=0,A=n.length-1;r<n.length;A=r++){let o=n[r],s=n[A],u=o.x,m=o.y,l=s.x,p=s.y;if(m>a!==p>a&&t<(l-u)*(a-m)/(p-m)+u)i=!i}return i}function gwt(e,n){if(!n)return!1;let t={x:e.clientX,y:e.clientY};return dwt(t,n)}function lG(e){return(n)=>n.pointerType==="mouse"?e(n):void 0}var Z8=kNe,K8=Pme,R8=ENe,N8=_Ne,J8=Sme,P8=INe,X8=EP,j8=vNe,$8=xNe,S8=GNe,O8=MNe,W8=UNe,T8=zNe,bG=YNe,V8=ZNe,eF=RNe;import{Fragment as bwt,jsx as Fs,jsxs as fwt}from"react/jsx-runtime";var ele="ContextMenu",[hwt,IQi]=ma(ele,[Mk]),Wu=Mk(),[wwt,JNe]=hwt(ele),PNe=(e)=>{let{__scopeContextMenu:n,children:t,onOpenChange:a,dir:i,modal:r=!0}=e,[A,o]=Zr.useState(!1),s=Wu(n),u=Li(a),m=Zr.useCallback((l)=>{o(l),u(l)},[u]);return Fs(wwt,{scope:n,open:A,onOpenChange:m,modal:r,children:Fs(Z8,{...s,dir:i,open:A,onOpenChange:m,modal:r,children:t})})};PNe.displayName=ele;var XNe="ContextMenuTrigger",jNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,disabled:a=!1,...i}=e,r=JNe(XNe,t),A=Wu(t),o=Zr.useRef({x:0,y:0}),s=Zr.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...o.current})}),u=Zr.useRef(0),m=Zr.useCallback(()=>window.clearTimeout(u.current),[]),l=(p)=>{o.current={x:p.clientX,y:p.clientY},r.onOpenChange(!0)};return Zr.useEffect(()=>m,[m]),Zr.useEffect(()=>void(a&&m()),[a,m]),fwt(bwt,{children:[Fs(K8,{...A,virtualRef:s}),Fs(Ln.span,{"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,...i,ref:n,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:a?e.onContextMenu:on(e.onContextMenu,(p)=>{m(),l(p),p.preventDefault()}),onPointerDown:a?e.onPointerDown:on(e.onPointerDown,_P((p)=>{m(),u.current=window.setTimeout(()=>l(p),700)})),onPointerMove:a?e.onPointerMove:on(e.onPointerMove,_P(m)),onPointerCancel:a?e.onPointerCancel:on(e.onPointerCancel,_P(m)),onPointerUp:a?e.onPointerUp:on(e.onPointerUp,_P(m))})]})});jNe.displayName=XNe;var Bwt="ContextMenuPortal",$Ne=(e)=>{let{__scopeContextMenu:n,...t}=e,a=Wu(n);return Fs(R8,{...a,...t})};$Ne.displayName=Bwt;var SNe="ContextMenuContent",ONe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=JNe(SNe,t),r=Wu(t),A=Zr.useRef(!1);return Fs(N8,{...r,...a,ref:n,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:(o)=>{if(e.onCloseAutoFocus?.(o),!o.defaultPrevented&&A.current)o.preventDefault();A.current=!1},onInteractOutside:(o)=>{if(e.onInteractOutside?.(o),!o.defaultPrevented&&!i.modal)A.current=!0},style:{...e.style,...{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});ONe.displayName=SNe;var ywt="ContextMenuGroup",WNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(J8,{...i,...a,ref:n})});WNe.displayName=ywt;var Cwt="ContextMenuLabel",TNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(P8,{...i,...a,ref:n})});TNe.displayName=Cwt;var kwt="ContextMenuItem",VNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(X8,{...i,...a,ref:n})});VNe.displayName=kwt;var Qwt="ContextMenuCheckboxItem",eJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(j8,{...i,...a,ref:n})});eJe.displayName=Qwt;var Ewt="ContextMenuRadioGroup",nJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs($8,{...i,...a,ref:n})});nJe.displayName=Ewt;var _wt="ContextMenuRadioItem",tJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(S8,{...i,...a,ref:n})});tJe.displayName=_wt;var Iwt="ContextMenuItemIndicator",aJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(O8,{...i,...a,ref:n})});aJe.displayName=Iwt;var Fwt="ContextMenuSeparator",iJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(W8,{...i,...a,ref:n})});iJe.displayName=Fwt;var vwt="ContextMenuArrow",Dwt=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(T8,{...i,...a,ref:n})});Dwt.displayName=vwt;var rJe="ContextMenuSub",AJe=(e)=>{let{__scopeContextMenu:n,children:t,onOpenChange:a,open:i,defaultOpen:r}=e,A=Wu(n),[o,s]=fa({prop:i,defaultProp:r??!1,onChange:a,caller:rJe});return Fs(bG,{...A,open:o,onOpenChange:s,children:t})};AJe.displayName=rJe;var xwt="ContextMenuSubTrigger",oJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(V8,{...i,...a,ref:n})});oJe.displayName=xwt;var qwt="ContextMenuSubContent",cJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(eF,{...i,...a,ref:n,style:{...e.style,...{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});cJe.displayName=qwt;function _P(e){return(n)=>n.pointerType!=="mouse"?e(n):void 0}var sJe=PNe,uJe=jNe,nle=$Ne,mJe=ONe,lJe=WNe,pJe=TNe,dJe=VNe,gJe=eJe,bJe=nJe,fJe=tJe,tle=aJe,hJe=iJe;var wJe=AJe,BJe=oJe,yJe=cJe;import{forwardRef as Uwt,createElement as zwt}from"react";var CJe=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lwt=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,a)=>a?a.toUpperCase():t.toLowerCase()),ale=(e)=>{let n=Lwt(e);return n.charAt(0).toUpperCase()+n.slice(1)},IP=(...e)=>e.filter((n,t,a)=>{return Boolean(n)&&n.trim()!==""&&a.indexOf(n)===t}).join(" ").trim(),kJe=(e)=>{for(let n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};import{forwardRef as Mwt,createElement as EJe}from"react";var QJe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _Je=Mwt(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:i="",children:r,iconNode:A,...o},s)=>EJe("svg",{ref:s,...QJe,width:n,height:n,stroke:e,strokeWidth:a?Number(t)*24/Number(n):t,className:IP("lucide",i),...!r&&!kJe(o)&&{"aria-hidden":"true"},...o},[...A.map(([u,m])=>EJe(u,m)),...Array.isArray(r)?r:[r]]));var cn=(e,n)=>{let t=Uwt(({className:a,...i},r)=>zwt(_Je,{ref:r,iconNode:n,className:IP(`lucide-${CJe(ale(e))}`,`lucide-${e}`,a),...i}));return t.displayName=ale(e),t};var Hwt=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],C0=cn("arrow-down",Hwt);var Ywt=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fG=cn("arrow-left",Ywt);var Zwt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],hG=cn("arrow-right",Zwt);var Kwt=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],wG=cn("arrow-up",Kwt);var Rwt=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],BG=cn("bell",Rwt);var Nwt=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],yG=cn("bold",Nwt);var Jwt=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],CG=cn("book",Jwt);var Pwt=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],kG=cn("bookmark",Pwt);var Xwt=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],c6=cn("brain",Xwt);var jwt=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],s6=cn("calendar",jwt);var $wt=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ru=cn("check",$wt);var Swt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mr=cn("chevron-down",Swt);var Owt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],uf=cn("chevron-left",Owt);var Wwt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Au=cn("chevron-right",Wwt);var Twt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],QG=cn("chevron-up",Twt);var Vwt=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],u6=cn("chevrons-up-down",Vwt);var eBt=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],k0=cn("circle-check-big",eBt);var nBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$h=cn("circle-check",nBt);var tBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mf=cn("circle-question-mark",tBt);var aBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Q0=cn("circle-x",aBt);var iBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lf=cn("circle",iBt);var rBt=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sh=cn("clock",rBt);var ABt=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],EG=cn("code",ABt);var oBt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],zk=cn("columns-2",oBt);var cBt=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],E0=cn("copy",cBt);var sBt=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],_G=cn("corner-down-left",sBt);var uBt=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],IG=cn("dot",uBt);var mBt=[["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"}]],FG=cn("download",mBt);var lBt=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Cg=cn("ellipsis",lBt);var pBt=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],m6=cn("external-link",pBt);var dBt=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],vG=cn("eye-off",dBt);var gBt=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hk=cn("eye",gBt);var bBt=[["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"}]],l6=cn("file-text",bBt);var fBt=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],p6=cn("grip-vertical",fBt);var hBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],DG=cn("heading-1",hBt);var wBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]],xG=cn("heading-2",wBt);var BBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],qG=cn("heading-3",BBt);var yBt=[["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"}]],_0=cn("image",yBt);var CBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],GG=cn("info",CBt);var kBt=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],LG=cn("italic",kBt);var QBt=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],MG=cn("list-ordered",QBt);var EBt=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],d6=cn("list",EBt);var _Bt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kg=cn("loader-circle",_Bt);var IBt=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],UG=cn("log-out",IBt);var FBt=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],zG=cn("menu",FBt);var vBt=[["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"}]],HG=cn("message-circle",vBt);var DBt=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],YG=cn("message-square",DBt);var xBt=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],ZG=cn("mic",xBt);var qBt=[["path",{d:"M5 12h14",key:"1ays0h"}]],g6=cn("minus",qBt);var GBt=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],KG=cn("moon",GBt);var LBt=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Yk=cn("octagon-x",LBt);var MBt=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],RG=cn("palette",MBt);var UBt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zk=cn("panel-left",UBt);var zBt=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],I0=cn("paperclip",zBt);var HBt=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],NG=cn("pause",HBt);var YBt=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],JG=cn("pin",YBt);var ZBt=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Kk=cn("play",ZBt);var KBt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pf=cn("plus",KBt);var RBt=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],PG=cn("quote",RBt);var NBt=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],XG=cn("refresh-cw",NBt);var JBt=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],jG=cn("save",JBt);var PBt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],F0=cn("search",PBt);var XBt=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],v0=cn("settings",XBt);var jBt=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],$G=cn("share-2",jBt);var $Bt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Oh=cn("square",$Bt);var SBt=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],SG=cn("strikethrough",SBt);var OBt=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],OG=cn("sun",OBt);var WBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],Rk=cn("text-align-center",WBt);var TBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],Nk=cn("text-align-end",TBt);var VBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],df=cn("text-align-start",VBt);var e0t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Jk=cn("trash-2",e0t);var n0t=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],WG=cn("trash",n0t);var t0t=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],nF=cn("trending-up",t0t);var a0t=[["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"}]],Wh=cn("triangle-alert",a0t);var i0t=[["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"}]],TG=cn("type",i0t);var r0t=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],VG=cn("upload",r0t);var A0t=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],b6=cn("user",A0t);var o0t=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],eL=cn("wrench",o0t);var c0t=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fA=cn("x",c0t);import{jsxDEV as eo}from"react/jsx-dev-runtime";function ile(e){return eo(sJe,{"data-slot":"context-menu",...e},void 0,!1,void 0,this)}ile.displayName="ContextMenu";function rle(e){return eo(uJe,{"data-slot":"context-menu-trigger",...e},void 0,!1,void 0,this)}rle.displayName="ContextMenuTrigger";function Ale(e){return eo(lJe,{"data-slot":"context-menu-group",...e},void 0,!1,void 0,this)}Ale.displayName="ContextMenuGroup";function ole(e){return eo(nle,{"data-slot":"context-menu-portal",...e},void 0,!1,void 0,this)}ole.displayName="ContextMenuPortal";function cle(e){return eo(wJe,{"data-slot":"context-menu-sub",...e},void 0,!1,void 0,this)}cle.displayName="ContextMenuSub";function sle(e){return eo(bJe,{"data-slot":"context-menu-radio-group",...e},void 0,!1,void 0,this)}sle.displayName="ContextMenuRadioGroup";function ule({className:e,inset:n,children:t,...a}){return eo(BJe,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:ae("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[t,eo(Au,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}ule.displayName="ContextMenuSubTrigger";function mle({className:e,...n}){return eo(yJe,{"data-slot":"context-menu-sub-content",className:ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n},void 0,!1,void 0,this)}mle.displayName="ContextMenuSubContent";function lle({className:e,...n}){return eo(nle,{children:eo(mJe,{"data-slot":"context-menu-content",className:ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)}lle.displayName="ContextMenuContent";function ple({className:e,inset:n,variant:t="default",...a}){return eo(dJe,{"data-slot":"context-menu-item","data-inset":n,"data-variant":t,className:ae("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a},void 0,!1,void 0,this)}ple.displayName="ContextMenuItem";function dle({className:e,children:n,checked:t,...a}){return eo(gJe,{"data-slot":"context-menu-checkbox-item",className:ae("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:t,...a,children:[eo("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:eo(tle,{children:eo(ru,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)}dle.displayName="ContextMenuCheckboxItem";function gle({className:e,children:n,...t}){return eo(fJe,{"data-slot":"context-menu-radio-item",className:ae("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t,children:[eo("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:eo(tle,{children:eo(lf,{className:"size-2 fill-current"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)}gle.displayName="ContextMenuRadioItem";function ble({className:e,inset:n,...t}){return eo(pJe,{"data-slot":"context-menu-label","data-inset":n,className:ae("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...t},void 0,!1,void 0,this)}ble.displayName="ContextMenuLabel";function fle({className:e,...n}){return eo(hJe,{"data-slot":"context-menu-separator",className:ae("bg-border -mx-1 my-1 h-px",e),...n},void 0,!1,void 0,this)}fle.displayName="ContextMenuSeparator";function hle({className:e,...n}){return eo("span",{"data-slot":"context-menu-shortcut",className:ae("text-muted-foreground ml-auto text-xs tracking-widest",e),...n},void 0,!1,void 0,this)}hle.displayName="ContextMenuShortcut";import*as jc from"react";import{jsx as ou}from"react/jsx-runtime";var FP="DropdownMenu",[s0t,B1i]=ma(FP,[Mk]),Jm=Mk(),[u0t,IJe]=s0t(FP),FJe=(e)=>{let{__scopeDropdownMenu:n,children:t,dir:a,open:i,defaultOpen:r,onOpenChange:A,modal:o=!0}=e,s=Jm(n),u=jc.useRef(null),[m,l]=fa({prop:i,defaultProp:r??!1,onChange:A,caller:FP});return ou(u0t,{scope:n,triggerId:Bi(),triggerRef:u,contentId:Bi(),open:m,onOpenChange:l,onOpenToggle:jc.useCallback(()=>l((p)=>!p),[l]),modal:o,children:ou(Z8,{...s,open:m,onOpenChange:l,dir:a,modal:o,children:t})})};FJe.displayName=FP;var vJe="DropdownMenuTrigger",DJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,disabled:a=!1,...i}=e,r=IJe(vJe,t),A=Jm(t);return ou(K8,{asChild:!0,...A,children:ou(Ln.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...i,ref:tu(n,r.triggerRef),onPointerDown:on(e.onPointerDown,(o)=>{if(!a&&o.button===0&&o.ctrlKey===!1){if(r.onOpenToggle(),!r.open)o.preventDefault()}}),onKeyDown:on(e.onKeyDown,(o)=>{if(a)return;if(["Enter"," "].includes(o.key))r.onOpenToggle();if(o.key==="ArrowDown")r.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(o.key))o.preventDefault()})})})});DJe.displayName=vJe;var m0t="DropdownMenuPortal",xJe=(e)=>{let{__scopeDropdownMenu:n,...t}=e,a=Jm(n);return ou(R8,{...a,...t})};xJe.displayName=m0t;var qJe="DropdownMenuContent",GJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=IJe(qJe,t),r=Jm(t),A=jc.useRef(!1);return ou(N8,{id:i.contentId,"aria-labelledby":i.triggerId,...r,...a,ref:n,onCloseAutoFocus:on(e.onCloseAutoFocus,(o)=>{if(!A.current)i.triggerRef.current?.focus();A.current=!1,o.preventDefault()}),onInteractOutside:on(e.onInteractOutside,(o)=>{let s=o.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,m=s.button===2||u;if(!i.modal||m)A.current=!0}),style:{...e.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});GJe.displayName=qJe;var l0t="DropdownMenuGroup",p0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(J8,{...i,...a,ref:n})});p0t.displayName=l0t;var d0t="DropdownMenuLabel",LJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(P8,{...i,...a,ref:n})});LJe.displayName=d0t;var g0t="DropdownMenuItem",MJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(X8,{...i,...a,ref:n})});MJe.displayName=g0t;var b0t="DropdownMenuCheckboxItem",f0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(j8,{...i,...a,ref:n})});f0t.displayName=b0t;var h0t="DropdownMenuRadioGroup",w0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou($8,{...i,...a,ref:n})});w0t.displayName=h0t;var B0t="DropdownMenuRadioItem",y0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(S8,{...i,...a,ref:n})});y0t.displayName=B0t;var C0t="DropdownMenuItemIndicator",k0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(O8,{...i,...a,ref:n})});k0t.displayName=C0t;var Q0t="DropdownMenuSeparator",UJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(W8,{...i,...a,ref:n})});UJe.displayName=Q0t;var E0t="DropdownMenuArrow",_0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(T8,{...i,...a,ref:n})});_0t.displayName=E0t;var I0t="DropdownMenuSubTrigger",F0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(V8,{...i,...a,ref:n})});F0t.displayName=I0t;var v0t="DropdownMenuSubContent",D0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(eF,{...i,...a,ref:n,style:{...e.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});D0t.displayName=v0t;var zJe=FJe,HJe=DJe,YJe=xJe,ZJe=GJe;var KJe=LJe,RJe=MJe;var NJe=UJe;import*as tL from"react";import{jsxDEV as nL}from"react/jsx-dev-runtime";var dd=zJe;dd.displayName="DropdownMenu";var gd=HJe;gd.displayName="DropdownMenuTrigger";var bd=tL.forwardRef(({className:e,sideOffset:n=4,...t},a)=>{return nL(YJe,{children:nL(ZJe,{ref:a,sideOffset:n,className:ae("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bd.displayName="DropdownMenuContent";var no=tL.forwardRef(({className:e,...n},t)=>{return nL(RJe,{ref:t,className:ae("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n},void 0,!1,void 0,this)});no.displayName="DropdownMenuItem";var D0=tL.forwardRef(({className:e,...n},t)=>{return nL(KJe,{ref:t,className:ae("px-2 py-1.5 text-sm font-semibold",e),...n},void 0,!1,void 0,this)});D0.displayName="DropdownMenuLabel";var Qg=tL.forwardRef(({className:e,...n},t)=>{return nL(NJe,{ref:t,className:ae("-mx-1 my-1 h-px bg-muted",e),...n},void 0,!1,void 0,this)});Qg.displayName="DropdownMenuSeparator";import*as JJe from"react";import{jsxDEV as wle}from"react/jsx-dev-runtime";var aL=JJe.forwardRef(({isOpen:e,children:n,className:t,transition:a,initialRotateX:i=25,initialRotateY:r=0,initialScale:A=0.85,initialOpacity:o=0,initialTranslateZ:s=-100,perspective:u="1200px",disabled:m=!1},l)=>{let p={type:"spring",stiffness:280,damping:25,mass:0.8,...a};if(m)return wle("div",{ref:l,className:t,children:n},void 0,!1,void 0,this);return wle("div",{style:{perspective:u,transformStyle:"preserve-3d"},className:"relative",children:wle(Gi.div,{ref:l,initial:!1,animate:e?{opacity:1,scale:1,rotateX:0,rotateY:0,z:0}:{opacity:o,scale:A,rotateX:i,rotateY:r,z:s},transition:p,style:{transformStyle:"preserve-3d"},className:ae("relative",t),children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});aL.displayName="Animated3D";import*as vP from"react";import{jsxDEV as PJe}from"react/jsx-dev-runtime";var iL=vP.forwardRef(({isOpen:e,className:n,blurIntensity:t=10,opacity:a=0.5,backgroundColor:i="black",disabled:r=!1,duration:A=0.2},o)=>{let s=vP.useMemo(()=>{let u=(m,l)=>{if(m.startsWith("rgba(")){let g=m.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(g)return`rgba(${g[1]}, ${g[2]}, ${g[3]}, ${l})`}if(m.startsWith("rgb(")){let g=m.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(g)return`rgba(${g[1]}, ${g[2]}, ${g[3]}, ${l})`}if(m.startsWith("#")){let g=m.replace("#",""),b=parseInt(g.substring(0,2),16),f=parseInt(g.substring(2,4),16),h=parseInt(g.substring(4,6),16);return`rgba(${b}, ${f}, ${h}, ${l})`}let p={black:[0,0,0],white:[255,255,255],red:[255,0,0],green:[0,128,0],blue:[0,0,255],transparent:[0,0,0]},d=m.toLowerCase();if(p[d]){let[g,b,f]=p[d];return`rgba(${g}, ${b}, ${f}, ${l})`}return m};return{open:u(i,a),closed:u(i,0)}},[i,a]);if(r)return PJe("div",{ref:o,className:ae("fixed inset-0 z-40",n),style:{backgroundColor:`${i}${Math.round(a*255).toString(16).padStart(2,"0")}`,backdropFilter:e?`blur(${t}px)`:"blur(0px)"}},void 0,!1,void 0,this);return PJe(Gi.div,{ref:o,initial:!1,animate:e?{backdropFilter:`blur(${t}px)`,backgroundColor:s.open}:{backdropFilter:"blur(0px)",backgroundColor:s.closed},transition:{duration:A},className:ae("fixed inset-0 z-40",n)},void 0,!1,void 0,this)});iL.displayName="BackdropBlur";import{useEffect as q0t,useRef as rL,useState as G0t}from"react";import{jsxDEV as jJe}from"react/jsx-dev-runtime";var L0t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-={}[];:,.<>/?";function Ble(e){let n=Math.floor(Math.random()*e.length);return e.charAt(n)}function XJe(e,n){if(!e)return"";let t="";for(let a=0;a<e.length;a+=1){let i=e[a];t+=i===" "?" ":Ble(n)}return t}var $Je=({text:e,className:n,revealDelayMs:t=50,charset:a=L0t,flipDelayMs:i=50,encryptedClassName:r,revealedClassName:A})=>{let o=rL(null),s=Vq(o,{once:!0}),[u,m]=G0t(0),l=rL(null),p=rL(0),d=rL(0),g=rL(e?XJe(e,a).split(""):[]);if(q0t(()=>{if(!s)return;let b=e?XJe(e,a):"";g.current=b.split(""),p.current=performance.now(),d.current=p.current,m(0);let f=!1,h=(w)=>{if(f)return;let B=w-p.current,C=e.length,y=Math.min(C,Math.floor(B/Math.max(1,t)));if(m(y),y>=C)return;if(w-d.current>=Math.max(0,i)){for(let Q=0;Q<C;Q+=1)if(Q>=y)if(e[Q]!==" ")g.current[Q]=Ble(a);else g.current[Q]=" ";d.current=w}l.current=requestAnimationFrame(h)};return l.current=requestAnimationFrame(h),()=>{if(f=!0,l.current!==null)cancelAnimationFrame(l.current)}},[s,e,t,a,i]),!e)return null;return jJe(Gi.span,{ref:o,className:ae(n),"aria-label":e,role:"text",children:e.split("").map((b,f)=>{let h=f<u,w=h?b:b===" "?" ":g.current[f]??Ble(a);return jJe("span",{className:ae(h?A:r),children:w},f,!1,void 0,this)})},void 0,!1,void 0,this)};import*as SJe from"react";import{jsxDEV as vs}from"react/jsx-dev-runtime";var M0t=({size:e=16})=>vs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[vs("title",{children:"Loader"},void 0,!1,void 0,this),vs("g",{clipPath:"url(#clip0_2393_1490)",children:[vs("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vs("defs",{children:vs("clipPath",{id:"clip0_2393_1490",children:vs("rect",{fill:"white",height:"16",width:"16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yle=SJe.forwardRef(({className:e,size:n=16,...t},a)=>vs("div",{ref:a,className:ae("inline-flex animate-spin items-center justify-center",e),...t,children:vs(M0t,{size:n},void 0,!1,void 0,this)},void 0,!1,void 0,this));yle.displayName="Loader";import*as WJe from"react";import{jsxDEV as OJe}from"react/jsx-dev-runtime";var AL=WJe.forwardRef(({className:e,value:n=0,max:t=100,...a},i)=>{let r=Math.min(Math.max(n/t*100,0),100);return OJe("div",{ref:i,className:ae("relative h-2 w-full overflow-hidden rounded-full bg-secondary",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":n,...a,children:OJe("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-r}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)});AL.displayName="Progress";import{memo as U0t,useMemo as z0t}from"react";import{jsxDEV as Y0t}from"react/jsx-dev-runtime";var H0t=({children:e,as:n="p",className:t,duration:a=2,spread:i=2})=>{let r=Gi.create(n),A=z0t(()=>(e?.length??0)*i,[e,i]);return Y0t(r,{animate:{backgroundPosition:"0% center"},className:ae("relative inline-block bg-size-[250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",t),initial:{backgroundPosition:"100% center"},style:{"--spread":`${A}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:a,ease:"linear"},children:e},void 0,!1,void 0,this)},Pk=U0t(H0t);Pk.displayName="Shimmer";import*as Tu from"react";import{useState as Z0t,useRef as TJe,useEffect as oL,useMemo as K0t}from"react";function VJe(e,n){let t;return(...a)=>{window.clearTimeout(t),t=window.setTimeout(()=>e(...a),n)}}function ePe({debounce:e,scroll:n,polyfill:t,offsetSize:a}={debounce:0,scroll:!1,offsetSize:!1}){let i=t||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[r,A]=Z0t({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),o=TJe({element:null,scrollContainers:null,resizeObserver:null,lastBounds:r,orientationHandler:null}),s=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,m=TJe(!1);oL(()=>(m.current=!0,()=>void(m.current=!1)));let[l,p,d]=K0t(()=>{let h=()=>{if(!o.current.element)return;let{left:w,top:B,width:C,height:y,bottom:k,right:Q,x:I,y:x}=o.current.element.getBoundingClientRect(),U={left:w,top:B,width:C,height:y,bottom:k,right:Q,x:I,y:x};o.current.element instanceof HTMLElement&&a&&(U.height=o.current.element.offsetHeight,U.width=o.current.element.offsetWidth),Object.freeze(U),m.current&&!P0t(o.current.lastBounds,U)&&A(o.current.lastBounds=U)};return[h,u?VJe(h,u):h,s?VJe(h,s):h]},[A,a,s,u]);function g(){o.current.scrollContainers&&(o.current.scrollContainers.forEach((h)=>h.removeEventListener("scroll",d,!0)),o.current.scrollContainers=null),o.current.resizeObserver&&(o.current.resizeObserver.disconnect(),o.current.resizeObserver=null),o.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",o.current.orientationHandler):("onorientationchange"in window)&&window.removeEventListener("orientationchange",o.current.orientationHandler))}function b(){o.current.element&&(o.current.resizeObserver=new i(d),o.current.resizeObserver.observe(o.current.element),n&&o.current.scrollContainers&&o.current.scrollContainers.forEach((h)=>h.addEventListener("scroll",d,{capture:!0,passive:!0})),o.current.orientationHandler=()=>{d()},("orientation"in screen)&&("addEventListener"in screen.orientation)?screen.orientation.addEventListener("change",o.current.orientationHandler):("onorientationchange"in window)&&window.addEventListener("orientationchange",o.current.orientationHandler))}let f=(h)=>{!h||h===o.current.element||(g(),o.current.element=h,o.current.scrollContainers=nPe(h),b())};return N0t(d,!!n),R0t(p),oL(()=>{g(),b()},[n,d,p]),oL(()=>g,[]),[f,r,l]}function R0t(e){oL(()=>{let n=e;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[e])}function N0t(e,n){oL(()=>{if(n){let t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[e,n])}function nPe(e){let n=[];if(!e||e===document.body)return n;let{overflow:t,overflowX:a,overflowY:i}=window.getComputedStyle(e);return[t,a,i].some((r)=>r==="auto"||r==="scroll")&&n.push(e),[...n,...nPe(e.parentElement)]}var J0t=["x","y","top","bottom","left","right","width","height"],P0t=(e,n)=>J0t.every((t)=>e[t]===n[t]);import{jsxDEV as gf,Fragment as j0t}from"react/jsx-dev-runtime";function tPe({prevValue:e,value:n,place:t,transition:a}){let i=Math.floor(e/t)%10,r=Math.floor(n/t)%10,A=vk(i,a);Tu.useEffect(()=>{A.set(r)},[r,A]);let[o,{height:s}]=ePe();return gf("span",{ref:o,"data-slot":"sliding-number-roller",className:"relative inline-block w-[1ch] overflow-x-visible overflow-y-clip leading-none tabular-nums",style:{color:"var(--animated-number-color, inherit)"},children:[gf("span",{className:"invisible",children:"0"},void 0,!1,void 0,this),[0,1,2,3,4,5,6,7,8,9].map((u)=>gf(X0t,{motionValue:A,number:u,height:s,transition:a},`sliding-digit-${u}`,!1,void 0,this))]},void 0,!0,void 0,this)}function X0t({motionValue:e,number:n,height:t,transition:a}){let i=nf(e,(r)=>{if(!t)return 0;let A=r%10,o=(10+n-A)%10,s=o*t;if(o>5)s-=10*t;return s});if(!t)return gf("span",{className:"invisible absolute",children:n},void 0,!1,void 0,this);return gf(Gi.span,{"data-slot":"sliding-number-display",style:{y:i,color:"var(--animated-number-color, inherit)"},className:"absolute inset-0 flex items-center justify-center",transition:{...a,type:"spring"},children:n},void 0,!1,void 0,this)}function tF({ref:e,number:n,className:t,inView:a=!1,inViewMargin:i="0px",inViewOnce:r=!0,padStart:A=!1,decimalSeparator:o=".",decimalPlaces:s=0,transition:u={stiffness:200,damping:20,mass:0.4},...m}){let l=Tu.useRef(null);Tu.useImperativeHandle(e,()=>{if(!l.current)throw Error("SlidingNumber ref is not available");return l.current});let p=Vq(l,{once:r,margin:i}),d=!a||p,g=Tu.useRef(0),b=Tu.useMemo(()=>!d?0:Math.abs(Number(n)),[n,d]),f=Tu.useCallback((_)=>s!=null?_.toFixed(s):_.toString(),[s]),h=f(b),[w,B=""]=h.split("."),C=A&&w?.length===1?`0${w}`:w,y=f(g.current),[k="",Q=""]=y.split("."),I=A&&k.length===1?`0${k}`:k,x=Tu.useMemo(()=>{return I.length>(C?.length??0)?I.slice(-(C?.length??0)):I.padStart(C?.length??0,"0")},[I,C]),U=Tu.useMemo(()=>{if(!B)return"";return Q.length>B.length?Q.slice(0,B.length):Q.padEnd(B.length,"0")},[Q,B]);Tu.useEffect(()=>{if(d)g.current=b},[b,d]);let M=C?.length??0,D=Tu.useMemo(()=>Array.from({length:M},(_,q)=>10**(M-q-1)),[M]),G=Tu.useMemo(()=>B?Array.from({length:B.length},(_,q)=>10**(B.length-q-1)):[],[B]),E=B?parseInt(B,10):0,F=U?parseInt(U,10):0;return gf("span",{ref:l,"data-slot":"sliding-number",className:ae("flex items-center",t),style:{color:"inherit",...m.style},...m,children:[d&&Number(n)<0&&gf("span",{className:"mr-1",style:{color:"var(--animated-number-color, inherit)"},children:"-"},void 0,!1,void 0,this),D.map((_)=>gf(tPe,{prevValue:parseInt(x,10),value:parseInt(C??"0",10),place:_,transition:u},`int-${_}`,!1,void 0,this)),B&&gf(j0t,{children:[gf("span",{style:{color:"var(--animated-number-color, inherit)"},children:o},void 0,!1,void 0,this),G.map((_)=>gf(tPe,{prevValue:F,value:E,place:_,transition:u},`dec-${_}`,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as $0t}from"react/jsx-dev-runtime";function aF({className:e,...n}){return $0t(kg,{role:"status","aria-label":"Loading",className:ae("size-4 animate-spin",e),...n},void 0,!1,void 0,this)}aF.displayName="Spinner";import*as rde from"react";import{createContext as AFt,useContext as oFt,useEffect as cFt,useRef as sFt,useState as ide}from"react";class ko extends Error{constructor(e){super(e);this.name="ShikiError"}}function S0t(e){return vle(e)}function vle(e){if(Array.isArray(e))return O0t(e);if(e instanceof RegExp)return e;if(typeof e==="object")return W0t(e);return e}function O0t(e){let n=[];for(let t=0,a=e.length;t<a;t++)n[t]=vle(e[t]);return n}function W0t(e){let n={};for(let t in e)n[t]=vle(e[t]);return n}function mPe(e,...n){return n.forEach((t)=>{for(let a in t)e[a]=t[a]}),e}function lPe(e){let n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(n===0)return e;else if(~n===e.length-1)return lPe(e.substring(0,e.length-1));else return e.substr(~n+1)}var Cle=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,DP=class{static hasCaptures(e){if(e===null)return!1;return Cle.lastIndex=0,Cle.test(e)}static replaceCaptures(e,n,t){return e.replace(Cle,(a,i,r,A)=>{let o=t[parseInt(i||r,10)];if(o){let s=n.substring(o.start,o.end);while(s[0]===".")s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return a})}};function pPe(e,n){if(e<n)return-1;if(e>n)return 1;return 0}function dPe(e,n){if(e===null&&n===null)return 0;if(!e)return-1;if(!n)return 1;let t=e.length,a=n.length;if(t===a){for(let i=0;i<t;i++){let r=pPe(e[i],n[i]);if(r!==0)return r}return 0}return t-a}function aPe(e){if(/^#[0-9a-f]{6}$/i.test(e))return!0;if(/^#[0-9a-f]{8}$/i.test(e))return!0;if(/^#[0-9a-f]{3}$/i.test(e))return!0;if(/^#[0-9a-f]{4}$/i.test(e))return!0;return!1}function gPe(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var bPe=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let n=this.fn(e);return this.cache.set(e,n),n}},uL=class{constructor(e,n,t){this._colorMap=e,this._defaults=n,this._root=t}static createFromRawTheme(e,n){return this.createFromParsedTheme(eyt(e),n)}static createFromParsedTheme(e,n){return tyt(e,n)}_cachedMatchRoot=new bPe((e)=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let n=e.scopeName,a=this._cachedMatchRoot.get(n).find((i)=>T0t(e.parent,i.parentScopes));if(!a)return null;return new fPe(a.fontStyle,a.foreground,a.background)}},kle=class e{constructor(n,t){this.parent=n,this.scopeName=t}static push(n,t){for(let a of t)n=new e(n,a);return n}static from(...n){let t=null;for(let a=0;a<n.length;a++)t=new e(t,n[a]);return t}push(n){return new e(this,n)}getSegments(){let n=this,t=[];while(n)t.push(n.scopeName),n=n.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(n){if(this===n)return!0;if(this.parent===null)return!1;return this.parent.extends(n)}getExtensionIfDefined(n){let t=[],a=this;while(a&&a!==n)t.push(a.scopeName),a=a.parent;return a===n?t.reverse():void 0}};function T0t(e,n){if(n.length===0)return!0;for(let t=0;t<n.length;t++){let a=n[t],i=!1;if(a===">"){if(t===n.length-1)return!1;a=n[++t],i=!0}while(e){if(V0t(e.scopeName,a))break;if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function V0t(e,n){return n===e||e.startsWith(n)&&e[n.length]==="."}var fPe=class{constructor(e,n,t){this.fontStyle=e,this.foregroundId=n,this.backgroundId=t}};function eyt(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,t=[],a=0;for(let i=0,r=n.length;i<r;i++){let A=n[i];if(!A.settings)continue;let o;if(typeof A.scope==="string"){let l=A.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),o=l.split(",")}else if(Array.isArray(A.scope))o=A.scope;else o=[""];let s=-1;if(typeof A.settings.fontStyle==="string"){s=0;let l=A.settings.fontStyle.split(" ");for(let p=0,d=l.length;p<d;p++)switch(l[p]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let u=null;if(typeof A.settings.foreground==="string"&&aPe(A.settings.foreground))u=A.settings.foreground;let m=null;if(typeof A.settings.background==="string"&&aPe(A.settings.background))m=A.settings.background;for(let l=0,p=o.length;l<p;l++){let g=o[l].trim().split(" "),b=g[g.length-1],f=null;if(g.length>1)f=g.slice(0,g.length-1),f.reverse();t[a++]=new nyt(b,f,i,s,u,m)}}return t}var nyt=class{constructor(e,n,t,a,i,r){this.scope=e,this.parentScopes=n,this.index=t,this.fontStyle=a,this.foreground=i,this.background=r}},$c=((e)=>{return e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e})($c||{});function tyt(e,n){e.sort((s,u)=>{let m=pPe(s.scope,u.scope);if(m!==0)return m;if(m=dPe(s.parentScopes,u.parentScopes),m!==0)return m;return s.index-u.index});let t=0,a="#000000",i="#ffffff";while(e.length>=1&&e[0].scope===""){let s=e.shift();if(s.fontStyle!==-1)t=s.fontStyle;if(s.foreground!==null)a=s.foreground;if(s.background!==null)i=s.background}let r=new ayt(n),A=new fPe(t,r.getId(a),r.getId(i)),o=new ryt(new Ele(0,null,-1,0,0),[]);for(let s=0,u=e.length;s<u;s++){let m=e[s];o.insert(0,m.scope,m.parentScopes,m.fontStyle,r.getId(m.foreground),r.getId(m.background))}return new uL(r,A,o)}var ayt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,t=e.length;n<t;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}},iyt=Object.freeze([]),Ele=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(n,t,a,i,r){this.scopeDepth=n,this.parentScopes=t||iyt,this.fontStyle=a,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(n){let t=[];for(let a=0,i=n.length;a<i;a++)t[a]=n[a].clone();return t}acceptOverwrite(n,t,a,i){if(this.scopeDepth>n)console.log("how did this happen?");else this.scopeDepth=n;if(t!==-1)this.fontStyle=t;if(a!==0)this.foreground=a;if(i!==0)this.background=i}},ryt=class e{constructor(n,t=[],a={}){this._mainRule=n,this._children=a,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(n,t){if(n.scopeDepth!==t.scopeDepth)return t.scopeDepth-n.scopeDepth;let a=0,i=0;while(!0){if(n.parentScopes[a]===">")a++;if(t.parentScopes[i]===">")i++;if(a>=n.parentScopes.length||i>=t.parentScopes.length)break;let r=t.parentScopes[i].length-n.parentScopes[a].length;if(r!==0)return r;a++,i++}return t.parentScopes.length-n.parentScopes.length}match(n){if(n!==""){let a=n.indexOf("."),i,r;if(a===-1)i=n,r="";else i=n.substring(0,a),r=n.substring(a+1);if(this._children.hasOwnProperty(i))return this._children[i].match(r)}let t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(e._cmpBySpecificity),t}insert(n,t,a,i,r,A){if(t===""){this._doInsertHere(n,a,i,r,A);return}let o=t.indexOf("."),s,u;if(o===-1)s=t,u="";else s=t.substring(0,o),u=t.substring(o+1);let m;if(this._children.hasOwnProperty(s))m=this._children[s];else m=new e(this._mainRule.clone(),Ele.cloneArr(this._rulesWithParentScopes)),this._children[s]=m;m.insert(n+1,u,a,i,r,A)}_doInsertHere(n,t,a,i,r){if(t===null){this._mainRule.acceptOverwrite(n,a,i,r);return}for(let A=0,o=this._rulesWithParentScopes.length;A<o;A++){let s=this._rulesWithParentScopes[A];if(dPe(s.parentScopes,t)===0){s.acceptOverwrite(n,a,i,r);return}}if(a===-1)a=this._mainRule.fontStyle;if(i===0)i=this._mainRule.foreground;if(r===0)r=this._mainRule.background;this._rulesWithParentScopes.push(new Ele(n,t,a,i,r))}},f6=class e{static toBinaryStr(n){return n.toString(2).padStart(32,"0")}static print(n){let t=e.getLanguageId(n),a=e.getTokenType(n),i=e.getFontStyle(n),r=e.getForeground(n),A=e.getBackground(n);console.log({languageId:t,tokenType:a,fontStyle:i,foreground:r,background:A})}static getLanguageId(n){return(n&255)>>>0}static getTokenType(n){return(n&768)>>>8}static containsBalancedBrackets(n){return(n&1024)!==0}static getFontStyle(n){return(n&30720)>>>11}static getForeground(n){return(n&16744448)>>>15}static getBackground(n){return(n&4278190080)>>>24}static set(n,t,a,i,r,A,o){let s=e.getLanguageId(n),u=e.getTokenType(n),m=e.containsBalancedBrackets(n)?1:0,l=e.getFontStyle(n),p=e.getForeground(n),d=e.getBackground(n);if(t!==0)s=t;if(a!==8)u=oyt(a);if(i!==null)m=i?1:0;if(r!==-1)l=r;if(A!==0)p=A;if(o!==0)d=o;return(s<<0|u<<8|m<<10|l<<11|p<<15|d<<24)>>>0}};function Ayt(e){return e}function oyt(e){return e}function qP(e,n){let t=[],a=cyt(e),i=a.next();while(i!==null){let s=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=a.next()}let u=A();if(t.push({matcher:u,priority:s}),i!==",")break;i=a.next()}return t;function r(){if(i==="-"){i=a.next();let s=r();return(u)=>!!s&&!s(u)}if(i==="("){i=a.next();let s=o();if(i===")")i=a.next();return s}if(iPe(i)){let s=[];do s.push(i),i=a.next();while(iPe(i));return(u)=>n(s,u)}return null}function A(){let s=[],u=r();while(u)s.push(u),u=r();return(m)=>s.every((l)=>l(m))}function o(){let s=[],u=A();while(u){if(s.push(u),i==="|"||i===",")do i=a.next();while(i==="|"||i===",");else break;u=A()}return(m)=>s.some((l)=>l(m))}}function iPe(e){return!!e&&!!e.match(/[\w\.:]+/)}function cyt(e){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=n.exec(e);return{next:()=>{if(!t)return null;let a=t[0];return t=n.exec(e),a}}}function hPe(e){if(typeof e.dispose==="function")e.dispose()}var mL=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},syt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},uyt=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let n=e.toKey();if(this._seenReferenceKeys.has(n))return;this._seenReferenceKeys.add(n),this._references.push(e)}},myt=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new mL(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let n=new uyt;for(let t of e)lyt(t,this.initialScopeName,this.repo,n);for(let t of n.references)if(t instanceof mL){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function lyt(e,n,t,a){let i=t.lookup(e.scopeName);if(!i){if(e.scopeName===n)throw Error(`No grammar provided for <${n}>`);return}let r=t.lookup(n);if(e instanceof mL)xP({baseGrammar:r,selfGrammar:i},a);else _le(e.ruleName,{baseGrammar:r,selfGrammar:i,repository:i.repository},a);let A=t.injections(e.scopeName);if(A)for(let o of A)a.add(new mL(o))}function _le(e,n,t){if(n.repository&&n.repository[e]){let a=n.repository[e];GP([a],n,t)}}function xP(e,n){if(e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns))GP(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n);if(e.selfGrammar.injections)GP(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function GP(e,n,t){for(let a of e){if(t.visitedRule.has(a))continue;t.visitedRule.add(a);let i=a.repository?mPe({},n.repository,a.repository):n.repository;if(Array.isArray(a.patterns))GP(a.patterns,{...n,repository:i},t);let r=a.include;if(!r)continue;let A=wPe(r);switch(A.kind){case 0:xP({...n,selfGrammar:n.baseGrammar},t);break;case 1:xP(n,t);break;case 2:_le(A.ruleName,{...n,repository:i},t);break;case 3:case 4:let o=A.scopeName===n.selfGrammar.scopeName?n.selfGrammar:A.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(o){let s={baseGrammar:n.baseGrammar,selfGrammar:o,repository:i};if(A.kind===4)_le(A.ruleName,s,t);else xP(s,t)}else if(A.kind===4)t.add(new syt(A.scopeName,A.ruleName));else t.add(new mL(A.scopeName));break}}}var pyt=class{kind=0},dyt=class{kind=1},gyt=class{constructor(e){this.ruleName=e}kind=2},byt=class{constructor(e){this.scopeName=e}kind=3},fyt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function wPe(e){if(e==="$base")return new pyt;else if(e==="$self")return new dyt;let n=e.indexOf("#");if(n===-1)return new byt(e);else if(n===0)return new gyt(e.substring(1));else{let t=e.substring(0,n),a=e.substring(n+1);return new fyt(t,a)}}var hyt=/\\(\d+)/,rPe=/\\(\d+)/g,YIi=Symbol("RuleId"),wyt=-1,BPe=-2;function yPe(e){return e}function CPe(e){return e}var dL=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,t,a){this.$location=e,this.id=n,this._name=t||null,this._nameIsCapturing=DP.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=DP.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${lPe(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){if(!this._nameIsCapturing||this._name===null||e===null||n===null)return this._name;return DP.replaceCaptures(this._name,e,n)}getContentName(e,n){if(!this._contentNameIsCapturing||this._contentName===null)return this._contentName;return DP.replaceCaptures(this._contentName,e,n)}},Byt=class extends dL{retokenizeCapturedWithRuleId;constructor(e,n,t,a,i){super(e,n,t,a);this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,n){throw Error("Not supported!")}compile(e,n){throw Error("Not supported!")}compileAG(e,n,t,a){throw Error("Not supported!")}},yyt=class extends dL{_match;captures;_cachedCompiledPatterns;constructor(e,n,t,a,i){super(e,n,t,null);this._match=new lL(a,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new pL,this.collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},APe=class extends dL{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,a,i){super(e,n,t,a);this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}collectPatterns(e,n){for(let t of this.patterns)e.getRule(t).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new pL,this.collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},Ile=class extends dL{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,a,i,r,A,o,s,u){super(e,n,t,a);this._begin=new lL(i,this.id),this.beginCaptures=r,this._end=new lL(A?A:"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e,n).compileAG(e,t,a)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pL;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);if(this.applyEndPatternLast)this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end);else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}if(this._end.hasBackReferences)if(this.applyEndPatternLast)this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n);else this._cachedCompiledPatterns.setSource(0,n);return this._cachedCompiledPatterns}},LP=class extends dL{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,t,a,i,r,A,o,s){super(e,n,t,a);this._begin=new lL(i,this.id),this.beginCaptures=r,this.whileCaptures=o,this._while=new lL(A,BPe),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null;if(this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pL;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,t,a){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,t,a)}_getCachedCompiledWhilePatterns(e,n){if(!this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns=new pL,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while);if(this._while.hasBackReferences)this._cachedCompiledWhilePatterns.setSource(0,n?n:"");return this._cachedCompiledWhilePatterns}},kPe=class e{static createCaptureRule(n,t,a,i,r){return n.registerRule((A)=>{return new Byt(t,A,a,i,r)})}static getCompiledRuleId(n,t,a){if(!n.id)t.registerRule((i)=>{if(n.id=i,n.match)return new yyt(n.$vscodeTextmateLocation,n.id,n.name,n.match,e._compileCaptures(n.captures,t,a));if(typeof n.begin>"u"){if(n.repository)a=mPe({},a,n.repository);let r=n.patterns;if(typeof r>"u"&&n.include)r=[{include:n.include}];return new APe(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,e._compilePatterns(r,t,a))}if(n.while)return new LP(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,a),n.while,e._compileCaptures(n.whileCaptures||n.captures,t,a),e._compilePatterns(n.patterns,t,a));return new Ile(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,a),n.end,e._compileCaptures(n.endCaptures||n.captures,t,a),n.applyEndPatternLast,e._compilePatterns(n.patterns,t,a))});return n.id}static _compileCaptures(n,t,a){let i=[];if(n){let r=0;for(let A in n){if(A==="$vscodeTextmateLocation")continue;let o=parseInt(A,10);if(o>r)r=o}for(let A=0;A<=r;A++)i[A]=null;for(let A in n){if(A==="$vscodeTextmateLocation")continue;let o=parseInt(A,10),s=0;if(n[A].patterns)s=e.getCompiledRuleId(n[A],t,a);i[o]=e.createCaptureRule(t,n[A].$vscodeTextmateLocation,n[A].name,n[A].contentName,s)}}return i}static _compilePatterns(n,t,a){let i=[];if(n)for(let r=0,A=n.length;r<A;r++){let o=n[r],s=-1;if(o.include){let u=wPe(o.include);switch(u.kind){case 0:case 1:s=e.getCompiledRuleId(a[o.include],t,a);break;case 2:let m=a[u.ruleName];if(m)s=e.getCompiledRuleId(m,t,a);break;case 3:case 4:let l=u.scopeName,p=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(l,a);if(d)if(p){let g=d.repository[p];if(g)s=e.getCompiledRuleId(g,t,d.repository)}else s=e.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else s=e.getCompiledRuleId(o,t,a);if(s!==-1){let u=t.getRule(s),m=!1;if(u instanceof APe||u instanceof Ile||u instanceof LP){if(u.hasMissingPatterns&&u.patterns.length===0)m=!0}if(m)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(n?n.length:0)!==i.length}}},lL=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(n,t){if(n&&typeof n==="string"){let a=n.length,i=0,r=[],A=!1;for(let o=0;o<a;o++)if(n.charAt(o)==="\\"){if(o+1<a){let u=n.charAt(o+1);if(u==="z")r.push(n.substring(i,o)),r.push("$(?!\\n)(?<!\\n)"),i=o+2;else if(u==="A"||u==="G")A=!0;o++}}if(this.hasAnchor=A,i===0)this.source=n;else r.push(n.substring(i,a)),this.source=r.join("")}else this.hasAnchor=!1,this.source=n;if(this.hasAnchor)this._anchorCache=this._buildAnchorCache();else this._anchorCache=null;if(this.ruleId=t,typeof this.source==="string")this.hasBackReferences=hyt.test(this.source);else this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(n){if(this.source===n)return;if(this.source=n,this.hasAnchor)this._anchorCache=this._buildAnchorCache()}resolveBackReferences(n,t){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let a=t.map((i)=>{return n.substring(i.start,i.end)});return rPe.lastIndex=0,this.source.replace(rPe,(i,r)=>{return gPe(a[parseInt(r,10)]||"")})}_buildAnchorCache(){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let n=[],t=[],a=[],i=[],r,A,o,s;for(r=0,A=this.source.length;r<A;r++)if(o=this.source.charAt(r),n[r]=o,t[r]=o,a[r]=o,i[r]=o,o==="\\"){if(r+1<A){if(s=this.source.charAt(r+1),s==="A")n[r+1]="",t[r+1]="",a[r+1]="A",i[r+1]="A";else if(s==="G")n[r+1]="",t[r+1]="G",a[r+1]="",i[r+1]="G";else n[r+1]=s,t[r+1]=s,a[r+1]=s,i[r+1]=s;r++}}return{A0_G0:n.join(""),A0_G1:t.join(""),A1_G0:a.join(""),A1_G1:i.join("")}}resolveAnchors(n,t){if(!this.hasAnchor||!this._anchorCache||typeof this.source!=="string")return this.source;if(n)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;else if(t)return this._anchorCache.A0_G1;else return this._anchorCache.A0_G0}},pL=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){if(this._cached)this._cached.dispose(),this._cached=null;if(this._anchorCache.A0_G0)this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null;if(this._anchorCache.A0_G1)this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null;if(this._anchorCache.A1_G0)this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null;if(this._anchorCache.A1_G1)this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){if(this._items[e].source!==n)this._disposeCaches(),this._items[e].setSource(n)}compile(e){if(!this._cached){let n=this._items.map((t)=>t.source);this._cached=new oPe(e,n,this._items.map((t)=>t.ruleId))}return this._cached}compileAG(e,n,t){if(!this._hasAnchors)return this.compile(e);else if(n)if(t){if(!this._anchorCache.A1_G1)this._anchorCache.A1_G1=this._resolveAnchors(e,n,t);return this._anchorCache.A1_G1}else{if(!this._anchorCache.A1_G0)this._anchorCache.A1_G0=this._resolveAnchors(e,n,t);return this._anchorCache.A1_G0}else if(t){if(!this._anchorCache.A0_G1)this._anchorCache.A0_G1=this._resolveAnchors(e,n,t);return this._anchorCache.A0_G1}else{if(!this._anchorCache.A0_G0)this._anchorCache.A0_G0=this._resolveAnchors(e,n,t);return this._anchorCache.A0_G0}}_resolveAnchors(e,n,t){let a=this._items.map((i)=>i.resolveAnchors(n,t));return new oPe(e,a,this._items.map((i)=>i.ruleId))}},oPe=class{constructor(e,n,t){this.regExps=n,this.rules=t,this.scanner=e.createOnigScanner(n)}scanner;dispose(){if(typeof this.scanner.dispose==="function")this.scanner.dispose()}toString(){let e=[];for(let n=0,t=this.rules.length;n<t;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
2840
|
+
`)},Kht=0,Y8=[];function bNe(e){var n=bA.useRef([]),t=bA.useRef([0,0]),a=bA.useRef(),i=bA.useState(Kht++)[0],r=bA.useState(sG)[0],A=bA.useRef(e);bA.useEffect(function(){A.current=e},[e]),bA.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=bP([e.lockRef.current],(e.shards||[]).map(gNe),!0).filter(Boolean);return b.forEach(function(f){return f.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(i))})}}return},[e.inert,e.lockRef.current,e.shards]);var o=bA.useCallback(function(b,f){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!A.current.allowPinchZoom;var h=yP(b),w=t.current,B="deltaX"in b?b.deltaX:w[0]-h[0],C="deltaY"in b?b.deltaY:w[1]-h[1],y,k=b.target,Q=Math.abs(B)>Math.abs(C)?"h":"v";if("touches"in b&&Q==="h"&&k.type==="range")return!1;var I=Nme(Q,k);if(!I)return!0;if(I)y=Q;else y=Q==="v"?"h":"v",I=Nme(Q,k);if(!I)return!1;if(!a.current&&"changedTouches"in b&&(B||C))a.current=y;if(!y)return!0;var x=a.current||y;return pNe(x,f,b,x==="h"?B:C,!0)},[]),s=bA.useCallback(function(b){var f=b;if(!Y8.length||Y8[Y8.length-1]!==r)return;var h="deltaY"in f?dNe(f):yP(f),w=n.current.filter(function(y){return y.name===f.type&&(y.target===f.target||f.target===y.shadowParent)&&Yht(y.delta,h)})[0];if(w&&w.should){if(f.cancelable)f.preventDefault();return}if(!w){var B=(A.current.shards||[]).map(gNe).filter(Boolean).filter(function(y){return y.contains(f.target)}),C=B.length>0?o(f,B[0]):!A.current.noIsolation;if(C){if(f.cancelable)f.preventDefault()}}},[]),u=bA.useCallback(function(b,f,h,w){var B={name:b,delta:f,target:h,should:w,shadowParent:Rht(h)};n.current.push(B),setTimeout(function(){n.current=n.current.filter(function(C){return C!==B})},1)},[]),m=bA.useCallback(function(b){t.current=yP(b),a.current=void 0},[]),l=bA.useCallback(function(b){u(b.type,dNe(b),b.target,o(b,e.lockRef.current))},[]),p=bA.useCallback(function(b){u(b.type,yP(b),b.target,o(b,e.lockRef.current))},[]);bA.useEffect(function(){return Y8.push(r),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:p}),document.addEventListener("wheel",s,r6),document.addEventListener("touchmove",s,r6),document.addEventListener("touchstart",m,r6),function(){Y8=Y8.filter(function(b){return b!==r}),document.removeEventListener("wheel",s,r6),document.removeEventListener("touchmove",s,r6),document.removeEventListener("touchstart",m,r6)}},[]);var{removeScrollBar:d,inert:g}=e;return bA.createElement(bA.Fragment,null,g?bA.createElement(r,{styles:Zht(i)}):null,d?bA.createElement(Kme,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rht(e){var n=null;while(e!==null){if(e instanceof ShadowRoot)n=e.host,e=e.host;e=e.parentNode}return n}var fNe=Mme(wP,bNe);var hNe=CP.forwardRef(function(e,n){return CP.createElement(cG,Or({},e,{ref:n,sideCar:fNe}))});hNe.classNames=cG.classNames;var A6=hNe;import{jsx as ha}from"react/jsx-runtime";var Jme=["Enter"," "],Nht=["ArrowDown","PageUp","Home"],BNe=["ArrowUp","PageDown","End"],Jht=[...Nht,...BNe],Pht={ltr:[...Jme,"ArrowRight"],rtl:[...Jme,"ArrowLeft"]},Xht={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pG="Menu",[mG,jht,$ht]=ld(pG),[o6,Mk]=ma(pG,[$ht,wg,Nm]),dG=wg(),yNe=Nm(),[CNe,Uk]=o6(pG),[Sht,gG]=o6(pG),kNe=(e)=>{let{__scopeMenu:n,open:t=!1,children:a,dir:i,onOpenChange:r,modal:A=!0}=e,o=dG(n),[s,u]=Lt.useState(null),m=Lt.useRef(!1),l=Li(r),p=Bc(i);return Lt.useEffect(()=>{let d=()=>{m.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>m.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),ha(B0,{...o,children:ha(CNe,{scope:n,open:t,onOpenChange:l,content:s,onContentChange:u,children:ha(Sht,{scope:n,onClose:Lt.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:m,dir:p,modal:A,children:a})})})};kNe.displayName=pG;var Oht="MenuAnchor",Pme=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e,i=dG(t);return ha(y0,{...i,...a,ref:n})});Pme.displayName=Oht;var Xme="MenuPortal",[Wht,QNe]=o6(Xme,{forceMount:void 0}),ENe=(e)=>{let{__scopeMenu:n,forceMount:t,children:a,container:i}=e,r=Uk(Xme,n);return ha(Wht,{scope:n,forceMount:t,children:ha(ii,{present:t||r.open,children:ha(sf,{asChild:!0,container:i,children:a})})})};ENe.displayName=Xme;var yg="MenuContent",[Tht,jme]=o6(yg),_Ne=Lt.forwardRef((e,n)=>{let t=QNe(yg,e.__scopeMenu),{forceMount:a=t.forceMount,...i}=e,r=Uk(yg,e.__scopeMenu),A=gG(yg,e.__scopeMenu);return ha(mG.Provider,{scope:e.__scopeMenu,children:ha(ii,{present:a||r.open,children:ha(mG.Slot,{scope:e.__scopeMenu,children:A.modal?ha(Vht,{...i,ref:n}):ha(ewt,{...i,ref:n})})})})}),Vht=Lt.forwardRef((e,n)=>{let t=Uk(yg,e.__scopeMenu),a=Lt.useRef(null),i=ot(n,a);return Lt.useEffect(()=>{let r=a.current;if(r)return Gk(r)},[]),ha($me,{...e,ref:i,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:on(e.onFocusOutside,(r)=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),ewt=Lt.forwardRef((e,n)=>{let t=Uk(yg,e.__scopeMenu);return ha($me,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),nwt=af("MenuContent.ScrollLock"),$me=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,loop:a=!1,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:A,disableOutsidePointerEvents:o,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:d,disableOutsideScroll:g,...b}=e,f=Uk(yg,t),h=gG(yg,t),w=dG(t),B=yNe(t),C=jht(t),[y,k]=Lt.useState(null),Q=Lt.useRef(null),I=ot(n,Q,f.onContentChange),x=Lt.useRef(0),U=Lt.useRef(""),M=Lt.useRef(0),D=Lt.useRef(null),G=Lt.useRef("right"),E=Lt.useRef(0),F=g?A6:Lt.Fragment,_=g?{as:nwt,allowPinchZoom:!0}:void 0,q=(z)=>{let H=U.current+z,Y=C().filter((P)=>!P.disabled),K=document.activeElement,Z=Y.find((P)=>P.ref.current===K)?.textValue,N=Y.map((P)=>P.textValue),J=pwt(N,H,Z),V=Y.find((P)=>P.textValue===J)?.ref.current;if(function P(te){if(U.current=te,window.clearTimeout(x.current),te!=="")x.current=window.setTimeout(()=>P(""),1000)}(H),V)setTimeout(()=>V.focus())};Lt.useEffect(()=>{return()=>window.clearTimeout(x.current)},[]),x8();let L=Lt.useCallback((z)=>{return G.current===D.current?.side&&gwt(z,D.current?.area)},[]);return ha(Tht,{scope:t,searchRef:U,onItemEnter:Lt.useCallback((z)=>{if(L(z))z.preventDefault()},[L]),onItemLeave:Lt.useCallback((z)=>{if(L(z))return;Q.current?.focus(),k(null)},[L]),onTriggerLeave:Lt.useCallback((z)=>{if(L(z))z.preventDefault()},[L]),pointerGraceTimerRef:M,onPointerGraceIntentChange:Lt.useCallback((z)=>{D.current=z},[]),children:ha(F,{..._,children:ha($2,{asChild:!0,trapped:i,onMountAutoFocus:on(r,(z)=>{z.preventDefault(),Q.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:A,children:ha(pd,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:l,onInteractOutside:p,onDismiss:d,children:ha(Xh,{asChild:!0,...B,dir:h.dir,orientation:"vertical",loop:a,currentTabStopId:y,onCurrentTabStopIdChange:k,onEntryFocus:on(s,(z)=>{if(!h.isUsingKeyboardRef.current)z.preventDefault()}),preventScrollOnEntryFocus:!0,children:ha(xk,{role:"menu","aria-orientation":"vertical","data-state":NNe(f.open),"data-radix-menu-content":"",dir:h.dir,...w,...b,ref:I,style:{outline:"none",...b.style},onKeyDown:on(b.onKeyDown,(z)=>{let Y=z.target.closest("[data-radix-menu-content]")===z.currentTarget,K=z.ctrlKey||z.altKey||z.metaKey,Z=z.key.length===1;if(Y){if(z.key==="Tab")z.preventDefault();if(!K&&Z)q(z.key)}let N=Q.current;if(z.target!==N)return;if(!Jht.includes(z.key))return;z.preventDefault();let V=C().filter((P)=>!P.disabled).map((P)=>P.ref.current);if(BNe.includes(z.key))V.reverse();mwt(V)}),onBlur:on(e.onBlur,(z)=>{if(!z.currentTarget.contains(z.target))window.clearTimeout(x.current),U.current=""}),onPointerMove:on(e.onPointerMove,lG((z)=>{let H=z.target,Y=E.current!==z.clientX;if(z.currentTarget.contains(H)&&Y){let K=z.clientX>E.current?"right":"left";G.current=K,E.current=z.clientX}}))})})})})})})});_Ne.displayName=yg;var twt="MenuGroup",Sme=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{role:"group",...a,ref:n})});Sme.displayName=twt;var awt="MenuLabel",INe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{...a,ref:n})});INe.displayName=awt;var kP="MenuItem",wNe="menu.itemSelect",EP=Lt.forwardRef((e,n)=>{let{disabled:t=!1,onSelect:a,...i}=e,r=Lt.useRef(null),A=gG(kP,e.__scopeMenu),o=jme(kP,e.__scopeMenu),s=ot(n,r),u=Lt.useRef(!1),m=()=>{let l=r.current;if(!t&&l){let p=new CustomEvent(wNe,{bubbles:!0,cancelable:!0});if(l.addEventListener(wNe,(d)=>a?.(d),{once:!0}),X2(l,p),p.defaultPrevented)u.current=!1;else A.onClose()}};return ha(FNe,{...i,ref:s,disabled:t,onClick:on(e.onClick,m),onPointerDown:(l)=>{e.onPointerDown?.(l),u.current=!0},onPointerUp:on(e.onPointerUp,(l)=>{if(!u.current)l.currentTarget?.click()}),onKeyDown:on(e.onKeyDown,(l)=>{let p=o.searchRef.current!=="";if(t||p&&l.key===" ")return;if(Jme.includes(l.key))l.currentTarget.click(),l.preventDefault()})})});EP.displayName=kP;var FNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,disabled:a=!1,textValue:i,...r}=e,A=jme(kP,t),o=yNe(t),s=Lt.useRef(null),u=ot(n,s),[m,l]=Lt.useState(!1),[p,d]=Lt.useState("");return Lt.useEffect(()=>{let g=s.current;if(g)d((g.textContent??"").trim())},[r.children]),ha(mG.ItemSlot,{scope:t,disabled:a,textValue:i??p,children:ha(jh,{asChild:!0,...o,focusable:!a,children:ha(Ln.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:on(e.onPointerMove,lG((g)=>{if(a)A.onItemLeave(g);else if(A.onItemEnter(g),!g.defaultPrevented)g.currentTarget.focus({preventScroll:!0})})),onPointerLeave:on(e.onPointerLeave,lG((g)=>A.onItemLeave(g))),onFocus:on(e.onFocus,()=>l(!0)),onBlur:on(e.onBlur,()=>l(!1))})})})}),iwt="MenuCheckboxItem",vNe=Lt.forwardRef((e,n)=>{let{checked:t=!1,onCheckedChange:a,...i}=e;return ha(LNe,{scope:e.__scopeMenu,checked:t,children:ha(EP,{role:"menuitemcheckbox","aria-checked":QP(t)?"mixed":t,...i,ref:n,"data-state":Tme(t),onSelect:on(i.onSelect,()=>a?.(QP(t)?!0:!t),{checkForDefaultPrevented:!1})})})});vNe.displayName=iwt;var DNe="MenuRadioGroup",[rwt,Awt]=o6(DNe,{value:void 0,onValueChange:()=>{}}),xNe=Lt.forwardRef((e,n)=>{let{value:t,onValueChange:a,...i}=e,r=Li(a);return ha(rwt,{scope:e.__scopeMenu,value:t,onValueChange:r,children:ha(Sme,{...i,ref:n})})});xNe.displayName=DNe;var qNe="MenuRadioItem",GNe=Lt.forwardRef((e,n)=>{let{value:t,...a}=e,i=Awt(qNe,e.__scopeMenu),r=t===i.value;return ha(LNe,{scope:e.__scopeMenu,checked:r,children:ha(EP,{role:"menuitemradio","aria-checked":r,...a,ref:n,"data-state":Tme(r),onSelect:on(a.onSelect,()=>i.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});GNe.displayName=qNe;var Ome="MenuItemIndicator",[LNe,owt]=o6(Ome,{checked:!1}),MNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,forceMount:a,...i}=e,r=owt(Ome,t);return ha(ii,{present:a||QP(r.checked)||r.checked===!0,children:ha(Ln.span,{...i,ref:n,"data-state":Tme(r.checked)})})});MNe.displayName=Ome;var cwt="MenuSeparator",UNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e;return ha(Ln.div,{role:"separator","aria-orientation":"horizontal",...a,ref:n})});UNe.displayName=cwt;var swt="MenuArrow",zNe=Lt.forwardRef((e,n)=>{let{__scopeMenu:t,...a}=e,i=dG(t);return ha(qk,{...i,...a,ref:n})});zNe.displayName=swt;var Wme="MenuSub",[uwt,HNe]=o6(Wme),YNe=(e)=>{let{__scopeMenu:n,children:t,open:a=!1,onOpenChange:i}=e,r=Uk(Wme,n),A=dG(n),[o,s]=Lt.useState(null),[u,m]=Lt.useState(null),l=Li(i);return Lt.useEffect(()=>{if(r.open===!1)l(!1);return()=>l(!1)},[r.open,l]),ha(B0,{...A,children:ha(CNe,{scope:n,open:a,onOpenChange:l,content:u,onContentChange:m,children:ha(uwt,{scope:n,contentId:Bi(),triggerId:Bi(),trigger:o,onTriggerChange:s,children:t})})})};YNe.displayName=Wme;var uG="MenuSubTrigger",ZNe=Lt.forwardRef((e,n)=>{let t=Uk(uG,e.__scopeMenu),a=gG(uG,e.__scopeMenu),i=HNe(uG,e.__scopeMenu),r=jme(uG,e.__scopeMenu),A=Lt.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:s}=r,u={__scopeMenu:e.__scopeMenu},m=Lt.useCallback(()=>{if(A.current)window.clearTimeout(A.current);A.current=null},[]);return Lt.useEffect(()=>m,[m]),Lt.useEffect(()=>{let l=o.current;return()=>{window.clearTimeout(l),s(null)}},[o,s]),ha(Pme,{asChild:!0,...u,children:ha(FNe,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":i.contentId,"data-state":NNe(t.open),...e,ref:tu(n,i.onTriggerChange),onClick:(l)=>{if(e.onClick?.(l),e.disabled||l.defaultPrevented)return;if(l.currentTarget.focus(),!t.open)t.onOpenChange(!0)},onPointerMove:on(e.onPointerMove,lG((l)=>{if(r.onItemEnter(l),l.defaultPrevented)return;if(!e.disabled&&!t.open&&!A.current)r.onPointerGraceIntentChange(null),A.current=window.setTimeout(()=>{t.onOpenChange(!0),m()},100)})),onPointerLeave:on(e.onPointerLeave,lG((l)=>{m();let p=t.content?.getBoundingClientRect();if(p){let d=t.content?.dataset.side,g=d==="right",b=g?-5:5,f=p[g?"left":"right"],h=p[g?"right":"left"];r.onPointerGraceIntentChange({area:[{x:l.clientX+b,y:l.clientY},{x:f,y:p.top},{x:h,y:p.top},{x:h,y:p.bottom},{x:f,y:p.bottom}],side:d}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(l),l.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:on(e.onKeyDown,(l)=>{let p=r.searchRef.current!=="";if(e.disabled||p&&l.key===" ")return;if(Pht[a.dir].includes(l.key))t.onOpenChange(!0),t.content?.focus(),l.preventDefault()})})})});ZNe.displayName=uG;var KNe="MenuSubContent",RNe=Lt.forwardRef((e,n)=>{let t=QNe(yg,e.__scopeMenu),{forceMount:a=t.forceMount,...i}=e,r=Uk(yg,e.__scopeMenu),A=gG(yg,e.__scopeMenu),o=HNe(KNe,e.__scopeMenu),s=Lt.useRef(null),u=ot(n,s);return ha(mG.Provider,{scope:e.__scopeMenu,children:ha(ii,{present:a||r.open,children:ha(mG.Slot,{scope:e.__scopeMenu,children:ha($me,{id:o.contentId,"aria-labelledby":o.triggerId,...i,ref:u,align:"start",side:A.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(m)=>{if(A.isUsingKeyboardRef.current)s.current?.focus();m.preventDefault()},onCloseAutoFocus:(m)=>m.preventDefault(),onFocusOutside:on(e.onFocusOutside,(m)=>{if(m.target!==o.trigger)r.onOpenChange(!1)}),onEscapeKeyDown:on(e.onEscapeKeyDown,(m)=>{A.onClose(),m.preventDefault()}),onKeyDown:on(e.onKeyDown,(m)=>{let l=m.currentTarget.contains(m.target),p=Xht[A.dir].includes(m.key);if(l&&p)r.onOpenChange(!1),o.trigger?.focus(),m.preventDefault()})})})})})});RNe.displayName=KNe;function NNe(e){return e?"open":"closed"}function QP(e){return e==="indeterminate"}function Tme(e){return QP(e)?"indeterminate":e?"checked":"unchecked"}function mwt(e){let n=document.activeElement;for(let t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}function lwt(e,n){return e.map((t,a)=>e[(n+a)%e.length])}function pwt(e,n,t){let i=n.length>1&&Array.from(n).every((u)=>u===n[0])?n[0]:n,r=t?e.indexOf(t):-1,A=lwt(e,Math.max(r,0));if(i.length===1)A=A.filter((u)=>u!==t);let s=A.find((u)=>u.toLowerCase().startsWith(i.toLowerCase()));return s!==t?s:void 0}function dwt(e,n){let{x:t,y:a}=e,i=!1;for(let r=0,A=n.length-1;r<n.length;A=r++){let o=n[r],s=n[A],u=o.x,m=o.y,l=s.x,p=s.y;if(m>a!==p>a&&t<(l-u)*(a-m)/(p-m)+u)i=!i}return i}function gwt(e,n){if(!n)return!1;let t={x:e.clientX,y:e.clientY};return dwt(t,n)}function lG(e){return(n)=>n.pointerType==="mouse"?e(n):void 0}var Z8=kNe,K8=Pme,R8=ENe,N8=_Ne,J8=Sme,P8=INe,X8=EP,j8=vNe,$8=xNe,S8=GNe,O8=MNe,W8=UNe,T8=zNe,bG=YNe,V8=ZNe,eF=RNe;import{Fragment as bwt,jsx as Fs,jsxs as fwt}from"react/jsx-runtime";var ele="ContextMenu",[hwt,IQi]=ma(ele,[Mk]),Wu=Mk(),[wwt,JNe]=hwt(ele),PNe=(e)=>{let{__scopeContextMenu:n,children:t,onOpenChange:a,dir:i,modal:r=!0}=e,[A,o]=Zr.useState(!1),s=Wu(n),u=Li(a),m=Zr.useCallback((l)=>{o(l),u(l)},[u]);return Fs(wwt,{scope:n,open:A,onOpenChange:m,modal:r,children:Fs(Z8,{...s,dir:i,open:A,onOpenChange:m,modal:r,children:t})})};PNe.displayName=ele;var XNe="ContextMenuTrigger",jNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,disabled:a=!1,...i}=e,r=JNe(XNe,t),A=Wu(t),o=Zr.useRef({x:0,y:0}),s=Zr.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...o.current})}),u=Zr.useRef(0),m=Zr.useCallback(()=>window.clearTimeout(u.current),[]),l=(p)=>{o.current={x:p.clientX,y:p.clientY},r.onOpenChange(!0)};return Zr.useEffect(()=>m,[m]),Zr.useEffect(()=>void(a&&m()),[a,m]),fwt(bwt,{children:[Fs(K8,{...A,virtualRef:s}),Fs(Ln.span,{"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,...i,ref:n,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:a?e.onContextMenu:on(e.onContextMenu,(p)=>{m(),l(p),p.preventDefault()}),onPointerDown:a?e.onPointerDown:on(e.onPointerDown,_P((p)=>{m(),u.current=window.setTimeout(()=>l(p),700)})),onPointerMove:a?e.onPointerMove:on(e.onPointerMove,_P(m)),onPointerCancel:a?e.onPointerCancel:on(e.onPointerCancel,_P(m)),onPointerUp:a?e.onPointerUp:on(e.onPointerUp,_P(m))})]})});jNe.displayName=XNe;var Bwt="ContextMenuPortal",$Ne=(e)=>{let{__scopeContextMenu:n,...t}=e,a=Wu(n);return Fs(R8,{...a,...t})};$Ne.displayName=Bwt;var SNe="ContextMenuContent",ONe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=JNe(SNe,t),r=Wu(t),A=Zr.useRef(!1);return Fs(N8,{...r,...a,ref:n,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:(o)=>{if(e.onCloseAutoFocus?.(o),!o.defaultPrevented&&A.current)o.preventDefault();A.current=!1},onInteractOutside:(o)=>{if(e.onInteractOutside?.(o),!o.defaultPrevented&&!i.modal)A.current=!0},style:{...e.style,...{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});ONe.displayName=SNe;var ywt="ContextMenuGroup",WNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(J8,{...i,...a,ref:n})});WNe.displayName=ywt;var Cwt="ContextMenuLabel",TNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(P8,{...i,...a,ref:n})});TNe.displayName=Cwt;var kwt="ContextMenuItem",VNe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(X8,{...i,...a,ref:n})});VNe.displayName=kwt;var Qwt="ContextMenuCheckboxItem",eJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(j8,{...i,...a,ref:n})});eJe.displayName=Qwt;var Ewt="ContextMenuRadioGroup",nJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs($8,{...i,...a,ref:n})});nJe.displayName=Ewt;var _wt="ContextMenuRadioItem",tJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(S8,{...i,...a,ref:n})});tJe.displayName=_wt;var Iwt="ContextMenuItemIndicator",aJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(O8,{...i,...a,ref:n})});aJe.displayName=Iwt;var Fwt="ContextMenuSeparator",iJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(W8,{...i,...a,ref:n})});iJe.displayName=Fwt;var vwt="ContextMenuArrow",Dwt=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(T8,{...i,...a,ref:n})});Dwt.displayName=vwt;var rJe="ContextMenuSub",AJe=(e)=>{let{__scopeContextMenu:n,children:t,onOpenChange:a,open:i,defaultOpen:r}=e,A=Wu(n),[o,s]=fa({prop:i,defaultProp:r??!1,onChange:a,caller:rJe});return Fs(bG,{...A,open:o,onOpenChange:s,children:t})};AJe.displayName=rJe;var xwt="ContextMenuSubTrigger",oJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(V8,{...i,...a,ref:n})});oJe.displayName=xwt;var qwt="ContextMenuSubContent",cJe=Zr.forwardRef((e,n)=>{let{__scopeContextMenu:t,...a}=e,i=Wu(t);return Fs(eF,{...i,...a,ref:n,style:{...e.style,...{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});cJe.displayName=qwt;function _P(e){return(n)=>n.pointerType!=="mouse"?e(n):void 0}var sJe=PNe,uJe=jNe,nle=$Ne,mJe=ONe,lJe=WNe,pJe=TNe,dJe=VNe,gJe=eJe,bJe=nJe,fJe=tJe,tle=aJe,hJe=iJe;var wJe=AJe,BJe=oJe,yJe=cJe;import{forwardRef as Uwt,createElement as zwt}from"react";var CJe=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lwt=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,a)=>a?a.toUpperCase():t.toLowerCase()),ale=(e)=>{let n=Lwt(e);return n.charAt(0).toUpperCase()+n.slice(1)},IP=(...e)=>e.filter((n,t,a)=>{return Boolean(n)&&n.trim()!==""&&a.indexOf(n)===t}).join(" ").trim(),kJe=(e)=>{for(let n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};import{forwardRef as Mwt,createElement as EJe}from"react";var QJe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _Je=Mwt(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:i="",children:r,iconNode:A,...o},s)=>EJe("svg",{ref:s,...QJe,width:n,height:n,stroke:e,strokeWidth:a?Number(t)*24/Number(n):t,className:IP("lucide",i),...!r&&!kJe(o)&&{"aria-hidden":"true"},...o},[...A.map(([u,m])=>EJe(u,m)),...Array.isArray(r)?r:[r]]));var cn=(e,n)=>{let t=Uwt(({className:a,...i},r)=>zwt(_Je,{ref:r,iconNode:n,className:IP(`lucide-${CJe(ale(e))}`,`lucide-${e}`,a),...i}));return t.displayName=ale(e),t};var Hwt=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],C0=cn("arrow-down",Hwt);var Ywt=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fG=cn("arrow-left",Ywt);var Zwt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],hG=cn("arrow-right",Zwt);var Kwt=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],wG=cn("arrow-up",Kwt);var Rwt=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],BG=cn("bell",Rwt);var Nwt=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],yG=cn("bold",Nwt);var Jwt=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],CG=cn("book",Jwt);var Pwt=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],kG=cn("bookmark",Pwt);var Xwt=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],c6=cn("brain",Xwt);var jwt=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],s6=cn("calendar",jwt);var $wt=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ru=cn("check",$wt);var Swt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mr=cn("chevron-down",Swt);var Owt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],uf=cn("chevron-left",Owt);var Wwt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Au=cn("chevron-right",Wwt);var Twt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],QG=cn("chevron-up",Twt);var Vwt=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],u6=cn("chevrons-up-down",Vwt);var eBt=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],k0=cn("circle-check-big",eBt);var nBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$h=cn("circle-check",nBt);var tBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mf=cn("circle-question-mark",tBt);var aBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Q0=cn("circle-x",aBt);var iBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lf=cn("circle",iBt);var rBt=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sh=cn("clock",rBt);var ABt=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],EG=cn("code",ABt);var oBt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],zk=cn("columns-2",oBt);var cBt=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],E0=cn("copy",cBt);var sBt=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],_G=cn("corner-down-left",sBt);var uBt=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],IG=cn("dot",uBt);var mBt=[["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"}]],FG=cn("download",mBt);var lBt=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Cg=cn("ellipsis",lBt);var pBt=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],m6=cn("external-link",pBt);var dBt=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],vG=cn("eye-off",dBt);var gBt=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hk=cn("eye",gBt);var bBt=[["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"}]],l6=cn("file-text",bBt);var fBt=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],p6=cn("grip-vertical",fBt);var hBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],DG=cn("heading-1",hBt);var wBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]],xG=cn("heading-2",wBt);var BBt=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],qG=cn("heading-3",BBt);var yBt=[["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"}]],_0=cn("image",yBt);var CBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],GG=cn("info",CBt);var kBt=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],LG=cn("italic",kBt);var QBt=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],MG=cn("list-ordered",QBt);var EBt=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],d6=cn("list",EBt);var _Bt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kg=cn("loader-circle",_Bt);var IBt=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],UG=cn("log-out",IBt);var FBt=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],zG=cn("menu",FBt);var vBt=[["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"}]],HG=cn("message-circle",vBt);var DBt=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],YG=cn("message-square",DBt);var xBt=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],ZG=cn("mic",xBt);var qBt=[["path",{d:"M5 12h14",key:"1ays0h"}]],g6=cn("minus",qBt);var GBt=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],KG=cn("moon",GBt);var LBt=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Yk=cn("octagon-x",LBt);var MBt=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],RG=cn("palette",MBt);var UBt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zk=cn("panel-left",UBt);var zBt=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],I0=cn("paperclip",zBt);var HBt=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],NG=cn("pause",HBt);var YBt=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],JG=cn("pin",YBt);var ZBt=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Kk=cn("play",ZBt);var KBt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pf=cn("plus",KBt);var RBt=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],PG=cn("quote",RBt);var NBt=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],XG=cn("refresh-cw",NBt);var JBt=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],jG=cn("save",JBt);var PBt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],F0=cn("search",PBt);var XBt=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],v0=cn("settings",XBt);var jBt=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],$G=cn("share-2",jBt);var $Bt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Oh=cn("square",$Bt);var SBt=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],SG=cn("strikethrough",SBt);var OBt=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],OG=cn("sun",OBt);var WBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],Rk=cn("text-align-center",WBt);var TBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],Nk=cn("text-align-end",TBt);var VBt=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],df=cn("text-align-start",VBt);var e0t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Jk=cn("trash-2",e0t);var n0t=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],WG=cn("trash",n0t);var t0t=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],nF=cn("trending-up",t0t);var a0t=[["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"}]],Wh=cn("triangle-alert",a0t);var i0t=[["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"}]],TG=cn("type",i0t);var r0t=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],VG=cn("upload",r0t);var A0t=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],b6=cn("user",A0t);var o0t=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],eL=cn("wrench",o0t);var c0t=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fA=cn("x",c0t);import{jsxDEV as eo}from"react/jsx-dev-runtime";function ile(e){return eo(sJe,{"data-slot":"context-menu",...e},void 0,!1,void 0,this)}ile.displayName="ContextMenu";function rle(e){return eo(uJe,{"data-slot":"context-menu-trigger",...e},void 0,!1,void 0,this)}rle.displayName="ContextMenuTrigger";function Ale(e){return eo(lJe,{"data-slot":"context-menu-group",...e},void 0,!1,void 0,this)}Ale.displayName="ContextMenuGroup";function ole(e){return eo(nle,{"data-slot":"context-menu-portal",...e},void 0,!1,void 0,this)}ole.displayName="ContextMenuPortal";function cle(e){return eo(wJe,{"data-slot":"context-menu-sub",...e},void 0,!1,void 0,this)}cle.displayName="ContextMenuSub";function sle(e){return eo(bJe,{"data-slot":"context-menu-radio-group",...e},void 0,!1,void 0,this)}sle.displayName="ContextMenuRadioGroup";function ule({className:e,inset:n,children:t,...a}){return eo(BJe,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:ae("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[t,eo(Au,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}ule.displayName="ContextMenuSubTrigger";function mle({className:e,...n}){return eo(yJe,{"data-slot":"context-menu-sub-content",className:ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n},void 0,!1,void 0,this)}mle.displayName="ContextMenuSubContent";function lle({className:e,...n}){return eo(nle,{children:eo(mJe,{"data-slot":"context-menu-content",className:ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)}lle.displayName="ContextMenuContent";function ple({className:e,inset:n,variant:t="default",...a}){return eo(dJe,{"data-slot":"context-menu-item","data-inset":n,"data-variant":t,className:ae("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a},void 0,!1,void 0,this)}ple.displayName="ContextMenuItem";function dle({className:e,children:n,checked:t,...a}){return eo(gJe,{"data-slot":"context-menu-checkbox-item",className:ae("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:t,...a,children:[eo("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:eo(tle,{children:eo(ru,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)}dle.displayName="ContextMenuCheckboxItem";function gle({className:e,children:n,...t}){return eo(fJe,{"data-slot":"context-menu-radio-item",className:ae("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t,children:[eo("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:eo(tle,{children:eo(lf,{className:"size-2 fill-current"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)}gle.displayName="ContextMenuRadioItem";function ble({className:e,inset:n,...t}){return eo(pJe,{"data-slot":"context-menu-label","data-inset":n,className:ae("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...t},void 0,!1,void 0,this)}ble.displayName="ContextMenuLabel";function fle({className:e,...n}){return eo(hJe,{"data-slot":"context-menu-separator",className:ae("bg-border -mx-1 my-1 h-px",e),...n},void 0,!1,void 0,this)}fle.displayName="ContextMenuSeparator";function hle({className:e,...n}){return eo("span",{"data-slot":"context-menu-shortcut",className:ae("text-muted-foreground ml-auto text-xs tracking-widest",e),...n},void 0,!1,void 0,this)}hle.displayName="ContextMenuShortcut";import*as jc from"react";import{jsx as ou}from"react/jsx-runtime";var FP="DropdownMenu",[s0t,B1i]=ma(FP,[Mk]),Jm=Mk(),[u0t,IJe]=s0t(FP),FJe=(e)=>{let{__scopeDropdownMenu:n,children:t,dir:a,open:i,defaultOpen:r,onOpenChange:A,modal:o=!0}=e,s=Jm(n),u=jc.useRef(null),[m,l]=fa({prop:i,defaultProp:r??!1,onChange:A,caller:FP});return ou(u0t,{scope:n,triggerId:Bi(),triggerRef:u,contentId:Bi(),open:m,onOpenChange:l,onOpenToggle:jc.useCallback(()=>l((p)=>!p),[l]),modal:o,children:ou(Z8,{...s,open:m,onOpenChange:l,dir:a,modal:o,children:t})})};FJe.displayName=FP;var vJe="DropdownMenuTrigger",DJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,disabled:a=!1,...i}=e,r=IJe(vJe,t),A=Jm(t);return ou(K8,{asChild:!0,...A,children:ou(Ln.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...i,ref:tu(n,r.triggerRef),onPointerDown:on(e.onPointerDown,(o)=>{if(!a&&o.button===0&&o.ctrlKey===!1){if(r.onOpenToggle(),!r.open)o.preventDefault()}}),onKeyDown:on(e.onKeyDown,(o)=>{if(a)return;if(["Enter"," "].includes(o.key))r.onOpenToggle();if(o.key==="ArrowDown")r.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(o.key))o.preventDefault()})})})});DJe.displayName=vJe;var m0t="DropdownMenuPortal",xJe=(e)=>{let{__scopeDropdownMenu:n,...t}=e,a=Jm(n);return ou(R8,{...a,...t})};xJe.displayName=m0t;var qJe="DropdownMenuContent",GJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=IJe(qJe,t),r=Jm(t),A=jc.useRef(!1);return ou(N8,{id:i.contentId,"aria-labelledby":i.triggerId,...r,...a,ref:n,onCloseAutoFocus:on(e.onCloseAutoFocus,(o)=>{if(!A.current)i.triggerRef.current?.focus();A.current=!1,o.preventDefault()}),onInteractOutside:on(e.onInteractOutside,(o)=>{let s=o.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,m=s.button===2||u;if(!i.modal||m)A.current=!0}),style:{...e.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});GJe.displayName=qJe;var l0t="DropdownMenuGroup",p0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(J8,{...i,...a,ref:n})});p0t.displayName=l0t;var d0t="DropdownMenuLabel",LJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(P8,{...i,...a,ref:n})});LJe.displayName=d0t;var g0t="DropdownMenuItem",MJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(X8,{...i,...a,ref:n})});MJe.displayName=g0t;var b0t="DropdownMenuCheckboxItem",f0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(j8,{...i,...a,ref:n})});f0t.displayName=b0t;var h0t="DropdownMenuRadioGroup",w0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou($8,{...i,...a,ref:n})});w0t.displayName=h0t;var B0t="DropdownMenuRadioItem",y0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(S8,{...i,...a,ref:n})});y0t.displayName=B0t;var C0t="DropdownMenuItemIndicator",k0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(O8,{...i,...a,ref:n})});k0t.displayName=C0t;var Q0t="DropdownMenuSeparator",UJe=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(W8,{...i,...a,ref:n})});UJe.displayName=Q0t;var E0t="DropdownMenuArrow",_0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(T8,{...i,...a,ref:n})});_0t.displayName=E0t;var I0t="DropdownMenuSubTrigger",F0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(V8,{...i,...a,ref:n})});F0t.displayName=I0t;var v0t="DropdownMenuSubContent",D0t=jc.forwardRef((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,i=Jm(t);return ou(eF,{...i,...a,ref:n,style:{...e.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});D0t.displayName=v0t;var zJe=FJe,HJe=DJe,YJe=xJe,ZJe=GJe;var KJe=LJe,RJe=MJe;var NJe=UJe;import*as tL from"react";import{jsxDEV as nL}from"react/jsx-dev-runtime";var dd=zJe;dd.displayName="DropdownMenu";var gd=HJe;gd.displayName="DropdownMenuTrigger";var bd=tL.forwardRef(({className:e,sideOffset:n=4,...t},a)=>{return nL(YJe,{children:nL(ZJe,{ref:a,sideOffset:n,className:ae("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bd.displayName="DropdownMenuContent";var no=tL.forwardRef(({className:e,...n},t)=>{return nL(RJe,{ref:t,className:ae("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n},void 0,!1,void 0,this)});no.displayName="DropdownMenuItem";var D0=tL.forwardRef(({className:e,...n},t)=>{return nL(KJe,{ref:t,className:ae("px-2 py-1.5 text-sm font-semibold",e),...n},void 0,!1,void 0,this)});D0.displayName="DropdownMenuLabel";var Qg=tL.forwardRef(({className:e,...n},t)=>{return nL(NJe,{ref:t,className:ae("-mx-1 my-1 h-px bg-muted",e),...n},void 0,!1,void 0,this)});Qg.displayName="DropdownMenuSeparator";import*as JJe from"react";import{jsxDEV as wle}from"react/jsx-dev-runtime";var aL=JJe.forwardRef(({isOpen:e,children:n,className:t,transition:a,initialRotateX:i=25,initialRotateY:r=0,initialScale:A=0.85,initialOpacity:o=0,initialTranslateZ:s=-100,perspective:u="1200px",disabled:m=!1},l)=>{let p={type:"spring",stiffness:280,damping:25,mass:0.8,...a};if(m)return wle("div",{ref:l,className:t,children:n},void 0,!1,void 0,this);return wle("div",{style:{perspective:u,transformStyle:"preserve-3d"},className:"relative",children:wle(Gi.div,{ref:l,initial:!1,animate:e?{opacity:1,scale:1,rotateX:0,rotateY:0,z:0}:{opacity:o,scale:A,rotateX:i,rotateY:r,z:s},transition:p,style:{transformStyle:"preserve-3d"},className:ae("relative",t),children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});aL.displayName="Animated3D";import*as vP from"react";import{jsxDEV as PJe}from"react/jsx-dev-runtime";var iL=vP.forwardRef(({isOpen:e,className:n,blurIntensity:t=10,opacity:a=0.5,backgroundColor:i="black",disabled:r=!1,duration:A=0.2},o)=>{let s=vP.useMemo(()=>{let u=(m,l)=>{if(m.startsWith("rgba(")){let g=m.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(g)return`rgba(${g[1]}, ${g[2]}, ${g[3]}, ${l})`}if(m.startsWith("rgb(")){let g=m.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(g)return`rgba(${g[1]}, ${g[2]}, ${g[3]}, ${l})`}if(m.startsWith("#")){let g=m.replace("#",""),b=parseInt(g.substring(0,2),16),f=parseInt(g.substring(2,4),16),h=parseInt(g.substring(4,6),16);return`rgba(${b}, ${f}, ${h}, ${l})`}let p={black:[0,0,0],white:[255,255,255],red:[255,0,0],green:[0,128,0],blue:[0,0,255],transparent:[0,0,0]},d=m.toLowerCase();if(p[d]){let[g,b,f]=p[d];return`rgba(${g}, ${b}, ${f}, ${l})`}return m};return{open:u(i,a),closed:u(i,0)}},[i,a]);if(r)return PJe("div",{ref:o,className:ae("fixed inset-0 z-40",n),style:{backgroundColor:`${i}${Math.round(a*255).toString(16).padStart(2,"0")}`,backdropFilter:e?`blur(${t}px)`:"blur(0px)"}},void 0,!1,void 0,this);return PJe(Gi.div,{ref:o,initial:!1,animate:e?{backdropFilter:`blur(${t}px)`,backgroundColor:s.open}:{backdropFilter:"blur(0px)",backgroundColor:s.closed},transition:{duration:A},className:ae("fixed inset-0 z-40",n)},void 0,!1,void 0,this)});iL.displayName="BackdropBlur";import{useEffect as q0t,useRef as rL,useState as G0t}from"react";import{jsxDEV as jJe}from"react/jsx-dev-runtime";var L0t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-={}[];:,.<>/?";function Ble(e){let n=Math.floor(Math.random()*e.length);return e.charAt(n)}function XJe(e,n){if(!e)return"";let t="";for(let a=0;a<e.length;a+=1){let i=e[a];t+=i===" "?" ":Ble(n)}return t}var $Je=({text:e,className:n,revealDelayMs:t=50,charset:a=L0t,flipDelayMs:i=50,encryptedClassName:r,revealedClassName:A})=>{let o=rL(null),s=Vq(o,{once:!0}),[u,m]=G0t(0),l=rL(null),p=rL(0),d=rL(0),g=rL(e?XJe(e,a).split(""):[]);if(q0t(()=>{if(!s)return;let b=e?XJe(e,a):"";g.current=b.split(""),p.current=performance.now(),d.current=p.current,m(0);let f=!1,h=(w)=>{if(f)return;let B=w-p.current,C=e.length,y=Math.min(C,Math.floor(B/Math.max(1,t)));if(m(y),y>=C)return;if(w-d.current>=Math.max(0,i)){for(let Q=0;Q<C;Q+=1)if(Q>=y)if(e[Q]!==" ")g.current[Q]=Ble(a);else g.current[Q]=" ";d.current=w}l.current=requestAnimationFrame(h)};return l.current=requestAnimationFrame(h),()=>{if(f=!0,l.current!==null)cancelAnimationFrame(l.current)}},[s,e,t,a,i]),!e)return null;return jJe(Gi.span,{ref:o,className:ae(n),"aria-label":e,role:"text",children:e.split("").map((b,f)=>{let h=f<u,w=h?b:b===" "?" ":g.current[f]??Ble(a);return jJe("span",{className:ae(h?A:r),children:w},f,!1,void 0,this)})},void 0,!1,void 0,this)};import*as SJe from"react";import{jsxDEV as vs}from"react/jsx-dev-runtime";var M0t=({size:e=16})=>vs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[vs("title",{children:"Loader"},void 0,!1,void 0,this),vs("g",{clipPath:"url(#clip0_2393_1490)",children:[vs("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this),vs("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vs("defs",{children:vs("clipPath",{id:"clip0_2393_1490",children:vs("rect",{fill:"white",height:"16",width:"16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yle=SJe.forwardRef(({className:e,size:n=16,...t},a)=>vs("div",{ref:a,className:ae("inline-flex animate-spin items-center justify-center",e),...t,children:vs(M0t,{size:n},void 0,!1,void 0,this)},void 0,!1,void 0,this));yle.displayName="Loader";import*as WJe from"react";import{jsxDEV as OJe}from"react/jsx-dev-runtime";var AL=WJe.forwardRef(({className:e,value:n=0,max:t=100,...a},i)=>{let r=Math.min(Math.max(n/t*100,0),100);return OJe("div",{ref:i,className:ae("relative h-2 w-full overflow-hidden rounded-full bg-secondary",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":n,...a,children:OJe("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-r}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)});AL.displayName="Progress";import{memo as U0t,useMemo as z0t}from"react";import{jsxDEV as Y0t}from"react/jsx-dev-runtime";var H0t=({children:e,as:n="p",className:t,duration:a=2,spread:i=2})=>{let r=Gi.create(n),A=z0t(()=>(e?.length??0)*i,[e,i]);return Y0t(r,{animate:{backgroundPosition:"0% center"},className:ae("relative inline-block bg-size-[250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",t),initial:{backgroundPosition:"100% center"},style:{"--spread":`${A}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:a,ease:"linear"},children:e},void 0,!1,void 0,this)},Pk=U0t(H0t);Pk.displayName="Shimmer";import*as Tu from"react";import{useState as Z0t,useRef as TJe,useEffect as oL,useMemo as K0t}from"react";function VJe(e,n){let t;return(...a)=>{window.clearTimeout(t),t=window.setTimeout(()=>e(...a),n)}}function ePe({debounce:e,scroll:n,polyfill:t,offsetSize:a}={debounce:0,scroll:!1,offsetSize:!1}){let i=t||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[r,A]=Z0t({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),o=TJe({element:null,scrollContainers:null,resizeObserver:null,lastBounds:r,orientationHandler:null}),s=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,m=TJe(!1);oL(()=>(m.current=!0,()=>void(m.current=!1)));let[l,p,d]=K0t(()=>{let h=()=>{if(!o.current.element)return;let{left:w,top:B,width:C,height:y,bottom:k,right:Q,x:I,y:x}=o.current.element.getBoundingClientRect(),U={left:w,top:B,width:C,height:y,bottom:k,right:Q,x:I,y:x};o.current.element instanceof HTMLElement&&a&&(U.height=o.current.element.offsetHeight,U.width=o.current.element.offsetWidth),Object.freeze(U),m.current&&!P0t(o.current.lastBounds,U)&&A(o.current.lastBounds=U)};return[h,u?VJe(h,u):h,s?VJe(h,s):h]},[A,a,s,u]);function g(){o.current.scrollContainers&&(o.current.scrollContainers.forEach((h)=>h.removeEventListener("scroll",d,!0)),o.current.scrollContainers=null),o.current.resizeObserver&&(o.current.resizeObserver.disconnect(),o.current.resizeObserver=null),o.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",o.current.orientationHandler):("onorientationchange"in window)&&window.removeEventListener("orientationchange",o.current.orientationHandler))}function b(){o.current.element&&(o.current.resizeObserver=new i(d),o.current.resizeObserver.observe(o.current.element),n&&o.current.scrollContainers&&o.current.scrollContainers.forEach((h)=>h.addEventListener("scroll",d,{capture:!0,passive:!0})),o.current.orientationHandler=()=>{d()},("orientation"in screen)&&("addEventListener"in screen.orientation)?screen.orientation.addEventListener("change",o.current.orientationHandler):("onorientationchange"in window)&&window.addEventListener("orientationchange",o.current.orientationHandler))}let f=(h)=>{!h||h===o.current.element||(g(),o.current.element=h,o.current.scrollContainers=nPe(h),b())};return N0t(d,!!n),R0t(p),oL(()=>{g(),b()},[n,d,p]),oL(()=>g,[]),[f,r,l]}function R0t(e){oL(()=>{let n=e;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[e])}function N0t(e,n){oL(()=>{if(n){let t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[e,n])}function nPe(e){let n=[];if(!e||e===document.body)return n;let{overflow:t,overflowX:a,overflowY:i}=window.getComputedStyle(e);return[t,a,i].some((r)=>r==="auto"||r==="scroll")&&n.push(e),[...n,...nPe(e.parentElement)]}var J0t=["x","y","top","bottom","left","right","width","height"],P0t=(e,n)=>J0t.every((t)=>e[t]===n[t]);import{jsxDEV as gf,Fragment as j0t}from"react/jsx-dev-runtime";function tPe({prevValue:e,value:n,place:t,transition:a}){let i=Math.floor(e/t)%10,r=Math.floor(n/t)%10,A=vk(i,a);Tu.useEffect(()=>{A.set(r)},[r,A]);let[o,{height:s}]=ePe();return gf("span",{ref:o,"data-slot":"sliding-number-roller",className:"relative inline-block shrink-0 w-[1ch] h-[1em] overflow-hidden leading-none tabular-nums",style:{color:"var(--animated-number-color, inherit)",lineHeight:1},children:[gf("span",{className:"invisible",children:"0"},void 0,!1,void 0,this),[0,1,2,3,4,5,6,7,8,9].map((u)=>gf(X0t,{motionValue:A,number:u,height:s??0,transition:a},`sliding-digit-${u}`,!1,void 0,this))]},void 0,!0,void 0,this)}function X0t({motionValue:e,number:n,height:t,transition:a}){let i=nf(e,(r)=>{if(!t)return 0;let A=r%10,o=(10+n-A)%10,s=o*t;if(o>5)s-=10*t;return s});if(!t)return gf("span",{className:"invisible absolute top-0 left-0 w-full h-[1em] leading-none",children:n},void 0,!1,void 0,this);return gf(Gi.span,{"data-slot":"sliding-number-display",style:{y:i,color:"var(--animated-number-color, inherit)"},className:"absolute top-0 left-0 w-full h-[1em] flex items-center justify-center leading-none",transition:{...a,type:"spring"},children:n},void 0,!1,void 0,this)}function tF({ref:e,number:n,className:t,inView:a=!1,inViewMargin:i="0px",inViewOnce:r=!0,padStart:A=!1,decimalSeparator:o=".",decimalPlaces:s=0,transition:u={stiffness:200,damping:20,mass:0.4},...m}){let l=Tu.useRef(null);Tu.useImperativeHandle(e,()=>{if(!l.current)throw Error("SlidingNumber ref is not available");return l.current});let p=Vq(l,{once:r,margin:i}),d=!a||p,g=Tu.useRef(0),b=Tu.useMemo(()=>!d?0:Math.abs(Number(n)),[n,d]),f=Tu.useCallback((_)=>s!=null?_.toFixed(s):_.toString(),[s]),h=f(b),[w,B=""]=h.split("."),C=A&&w?.length===1?`0${w}`:w,y=f(g.current),[k="",Q=""]=y.split("."),I=A&&k.length===1?`0${k}`:k,x=Tu.useMemo(()=>{return I.length>(C?.length??0)?I.slice(-(C?.length??0)):I.padStart(C?.length??0,"0")},[I,C]),U=Tu.useMemo(()=>{if(!B)return"";return Q.length>B.length?Q.slice(0,B.length):Q.padEnd(B.length,"0")},[Q,B]);Tu.useEffect(()=>{if(d)g.current=b},[b,d]);let M=C?.length??0,D=Tu.useMemo(()=>Array.from({length:M},(_,q)=>10**(M-q-1)),[M]),G=Tu.useMemo(()=>B?Array.from({length:B.length},(_,q)=>10**(B.length-q-1)):[],[B]),E=B?parseInt(B,10):0,F=U?parseInt(U,10):0;return gf("span",{ref:l,"data-slot":"sliding-number",className:ae("flex flex-row flex-nowrap items-center",t),style:{color:"inherit",...m.style},...m,children:[d&&Number(n)<0&&gf("span",{className:"mr-1",style:{color:"var(--animated-number-color, inherit)"},children:"-"},void 0,!1,void 0,this),D.map((_)=>gf(tPe,{prevValue:parseInt(x,10),value:parseInt(C??"0",10),place:_,transition:u},`int-${_}`,!1,void 0,this)),B&&gf(j0t,{children:[gf("span",{style:{color:"var(--animated-number-color, inherit)"},children:o},void 0,!1,void 0,this),G.map((_)=>gf(tPe,{prevValue:F,value:E,place:_,transition:u},`dec-${_}`,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as $0t}from"react/jsx-dev-runtime";function aF({className:e,...n}){return $0t(kg,{role:"status","aria-label":"Loading",className:ae("size-4 animate-spin",e),...n},void 0,!1,void 0,this)}aF.displayName="Spinner";import*as rde from"react";import{createContext as AFt,useContext as oFt,useEffect as cFt,useRef as sFt,useState as ide}from"react";class ko extends Error{constructor(e){super(e);this.name="ShikiError"}}function S0t(e){return vle(e)}function vle(e){if(Array.isArray(e))return O0t(e);if(e instanceof RegExp)return e;if(typeof e==="object")return W0t(e);return e}function O0t(e){let n=[];for(let t=0,a=e.length;t<a;t++)n[t]=vle(e[t]);return n}function W0t(e){let n={};for(let t in e)n[t]=vle(e[t]);return n}function mPe(e,...n){return n.forEach((t)=>{for(let a in t)e[a]=t[a]}),e}function lPe(e){let n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(n===0)return e;else if(~n===e.length-1)return lPe(e.substring(0,e.length-1));else return e.substr(~n+1)}var Cle=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,DP=class{static hasCaptures(e){if(e===null)return!1;return Cle.lastIndex=0,Cle.test(e)}static replaceCaptures(e,n,t){return e.replace(Cle,(a,i,r,A)=>{let o=t[parseInt(i||r,10)];if(o){let s=n.substring(o.start,o.end);while(s[0]===".")s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return a})}};function pPe(e,n){if(e<n)return-1;if(e>n)return 1;return 0}function dPe(e,n){if(e===null&&n===null)return 0;if(!e)return-1;if(!n)return 1;let t=e.length,a=n.length;if(t===a){for(let i=0;i<t;i++){let r=pPe(e[i],n[i]);if(r!==0)return r}return 0}return t-a}function aPe(e){if(/^#[0-9a-f]{6}$/i.test(e))return!0;if(/^#[0-9a-f]{8}$/i.test(e))return!0;if(/^#[0-9a-f]{3}$/i.test(e))return!0;if(/^#[0-9a-f]{4}$/i.test(e))return!0;return!1}function gPe(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var bPe=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let n=this.fn(e);return this.cache.set(e,n),n}},uL=class{constructor(e,n,t){this._colorMap=e,this._defaults=n,this._root=t}static createFromRawTheme(e,n){return this.createFromParsedTheme(eyt(e),n)}static createFromParsedTheme(e,n){return tyt(e,n)}_cachedMatchRoot=new bPe((e)=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let n=e.scopeName,a=this._cachedMatchRoot.get(n).find((i)=>T0t(e.parent,i.parentScopes));if(!a)return null;return new fPe(a.fontStyle,a.foreground,a.background)}},kle=class e{constructor(n,t){this.parent=n,this.scopeName=t}static push(n,t){for(let a of t)n=new e(n,a);return n}static from(...n){let t=null;for(let a=0;a<n.length;a++)t=new e(t,n[a]);return t}push(n){return new e(this,n)}getSegments(){let n=this,t=[];while(n)t.push(n.scopeName),n=n.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(n){if(this===n)return!0;if(this.parent===null)return!1;return this.parent.extends(n)}getExtensionIfDefined(n){let t=[],a=this;while(a&&a!==n)t.push(a.scopeName),a=a.parent;return a===n?t.reverse():void 0}};function T0t(e,n){if(n.length===0)return!0;for(let t=0;t<n.length;t++){let a=n[t],i=!1;if(a===">"){if(t===n.length-1)return!1;a=n[++t],i=!0}while(e){if(V0t(e.scopeName,a))break;if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function V0t(e,n){return n===e||e.startsWith(n)&&e[n.length]==="."}var fPe=class{constructor(e,n,t){this.fontStyle=e,this.foregroundId=n,this.backgroundId=t}};function eyt(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,t=[],a=0;for(let i=0,r=n.length;i<r;i++){let A=n[i];if(!A.settings)continue;let o;if(typeof A.scope==="string"){let l=A.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),o=l.split(",")}else if(Array.isArray(A.scope))o=A.scope;else o=[""];let s=-1;if(typeof A.settings.fontStyle==="string"){s=0;let l=A.settings.fontStyle.split(" ");for(let p=0,d=l.length;p<d;p++)switch(l[p]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let u=null;if(typeof A.settings.foreground==="string"&&aPe(A.settings.foreground))u=A.settings.foreground;let m=null;if(typeof A.settings.background==="string"&&aPe(A.settings.background))m=A.settings.background;for(let l=0,p=o.length;l<p;l++){let g=o[l].trim().split(" "),b=g[g.length-1],f=null;if(g.length>1)f=g.slice(0,g.length-1),f.reverse();t[a++]=new nyt(b,f,i,s,u,m)}}return t}var nyt=class{constructor(e,n,t,a,i,r){this.scope=e,this.parentScopes=n,this.index=t,this.fontStyle=a,this.foreground=i,this.background=r}},$c=((e)=>{return e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e})($c||{});function tyt(e,n){e.sort((s,u)=>{let m=pPe(s.scope,u.scope);if(m!==0)return m;if(m=dPe(s.parentScopes,u.parentScopes),m!==0)return m;return s.index-u.index});let t=0,a="#000000",i="#ffffff";while(e.length>=1&&e[0].scope===""){let s=e.shift();if(s.fontStyle!==-1)t=s.fontStyle;if(s.foreground!==null)a=s.foreground;if(s.background!==null)i=s.background}let r=new ayt(n),A=new fPe(t,r.getId(a),r.getId(i)),o=new ryt(new Ele(0,null,-1,0,0),[]);for(let s=0,u=e.length;s<u;s++){let m=e[s];o.insert(0,m.scope,m.parentScopes,m.fontStyle,r.getId(m.foreground),r.getId(m.background))}return new uL(r,A,o)}var ayt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,t=e.length;n<t;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}},iyt=Object.freeze([]),Ele=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(n,t,a,i,r){this.scopeDepth=n,this.parentScopes=t||iyt,this.fontStyle=a,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(n){let t=[];for(let a=0,i=n.length;a<i;a++)t[a]=n[a].clone();return t}acceptOverwrite(n,t,a,i){if(this.scopeDepth>n)console.log("how did this happen?");else this.scopeDepth=n;if(t!==-1)this.fontStyle=t;if(a!==0)this.foreground=a;if(i!==0)this.background=i}},ryt=class e{constructor(n,t=[],a={}){this._mainRule=n,this._children=a,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(n,t){if(n.scopeDepth!==t.scopeDepth)return t.scopeDepth-n.scopeDepth;let a=0,i=0;while(!0){if(n.parentScopes[a]===">")a++;if(t.parentScopes[i]===">")i++;if(a>=n.parentScopes.length||i>=t.parentScopes.length)break;let r=t.parentScopes[i].length-n.parentScopes[a].length;if(r!==0)return r;a++,i++}return t.parentScopes.length-n.parentScopes.length}match(n){if(n!==""){let a=n.indexOf("."),i,r;if(a===-1)i=n,r="";else i=n.substring(0,a),r=n.substring(a+1);if(this._children.hasOwnProperty(i))return this._children[i].match(r)}let t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(e._cmpBySpecificity),t}insert(n,t,a,i,r,A){if(t===""){this._doInsertHere(n,a,i,r,A);return}let o=t.indexOf("."),s,u;if(o===-1)s=t,u="";else s=t.substring(0,o),u=t.substring(o+1);let m;if(this._children.hasOwnProperty(s))m=this._children[s];else m=new e(this._mainRule.clone(),Ele.cloneArr(this._rulesWithParentScopes)),this._children[s]=m;m.insert(n+1,u,a,i,r,A)}_doInsertHere(n,t,a,i,r){if(t===null){this._mainRule.acceptOverwrite(n,a,i,r);return}for(let A=0,o=this._rulesWithParentScopes.length;A<o;A++){let s=this._rulesWithParentScopes[A];if(dPe(s.parentScopes,t)===0){s.acceptOverwrite(n,a,i,r);return}}if(a===-1)a=this._mainRule.fontStyle;if(i===0)i=this._mainRule.foreground;if(r===0)r=this._mainRule.background;this._rulesWithParentScopes.push(new Ele(n,t,a,i,r))}},f6=class e{static toBinaryStr(n){return n.toString(2).padStart(32,"0")}static print(n){let t=e.getLanguageId(n),a=e.getTokenType(n),i=e.getFontStyle(n),r=e.getForeground(n),A=e.getBackground(n);console.log({languageId:t,tokenType:a,fontStyle:i,foreground:r,background:A})}static getLanguageId(n){return(n&255)>>>0}static getTokenType(n){return(n&768)>>>8}static containsBalancedBrackets(n){return(n&1024)!==0}static getFontStyle(n){return(n&30720)>>>11}static getForeground(n){return(n&16744448)>>>15}static getBackground(n){return(n&4278190080)>>>24}static set(n,t,a,i,r,A,o){let s=e.getLanguageId(n),u=e.getTokenType(n),m=e.containsBalancedBrackets(n)?1:0,l=e.getFontStyle(n),p=e.getForeground(n),d=e.getBackground(n);if(t!==0)s=t;if(a!==8)u=oyt(a);if(i!==null)m=i?1:0;if(r!==-1)l=r;if(A!==0)p=A;if(o!==0)d=o;return(s<<0|u<<8|m<<10|l<<11|p<<15|d<<24)>>>0}};function Ayt(e){return e}function oyt(e){return e}function qP(e,n){let t=[],a=cyt(e),i=a.next();while(i!==null){let s=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=a.next()}let u=A();if(t.push({matcher:u,priority:s}),i!==",")break;i=a.next()}return t;function r(){if(i==="-"){i=a.next();let s=r();return(u)=>!!s&&!s(u)}if(i==="("){i=a.next();let s=o();if(i===")")i=a.next();return s}if(iPe(i)){let s=[];do s.push(i),i=a.next();while(iPe(i));return(u)=>n(s,u)}return null}function A(){let s=[],u=r();while(u)s.push(u),u=r();return(m)=>s.every((l)=>l(m))}function o(){let s=[],u=A();while(u){if(s.push(u),i==="|"||i===",")do i=a.next();while(i==="|"||i===",");else break;u=A()}return(m)=>s.some((l)=>l(m))}}function iPe(e){return!!e&&!!e.match(/[\w\.:]+/)}function cyt(e){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=n.exec(e);return{next:()=>{if(!t)return null;let a=t[0];return t=n.exec(e),a}}}function hPe(e){if(typeof e.dispose==="function")e.dispose()}var mL=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},syt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},uyt=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let n=e.toKey();if(this._seenReferenceKeys.has(n))return;this._seenReferenceKeys.add(n),this._references.push(e)}},myt=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new mL(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let n=new uyt;for(let t of e)lyt(t,this.initialScopeName,this.repo,n);for(let t of n.references)if(t instanceof mL){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function lyt(e,n,t,a){let i=t.lookup(e.scopeName);if(!i){if(e.scopeName===n)throw Error(`No grammar provided for <${n}>`);return}let r=t.lookup(n);if(e instanceof mL)xP({baseGrammar:r,selfGrammar:i},a);else _le(e.ruleName,{baseGrammar:r,selfGrammar:i,repository:i.repository},a);let A=t.injections(e.scopeName);if(A)for(let o of A)a.add(new mL(o))}function _le(e,n,t){if(n.repository&&n.repository[e]){let a=n.repository[e];GP([a],n,t)}}function xP(e,n){if(e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns))GP(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n);if(e.selfGrammar.injections)GP(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function GP(e,n,t){for(let a of e){if(t.visitedRule.has(a))continue;t.visitedRule.add(a);let i=a.repository?mPe({},n.repository,a.repository):n.repository;if(Array.isArray(a.patterns))GP(a.patterns,{...n,repository:i},t);let r=a.include;if(!r)continue;let A=wPe(r);switch(A.kind){case 0:xP({...n,selfGrammar:n.baseGrammar},t);break;case 1:xP(n,t);break;case 2:_le(A.ruleName,{...n,repository:i},t);break;case 3:case 4:let o=A.scopeName===n.selfGrammar.scopeName?n.selfGrammar:A.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(o){let s={baseGrammar:n.baseGrammar,selfGrammar:o,repository:i};if(A.kind===4)_le(A.ruleName,s,t);else xP(s,t)}else if(A.kind===4)t.add(new syt(A.scopeName,A.ruleName));else t.add(new mL(A.scopeName));break}}}var pyt=class{kind=0},dyt=class{kind=1},gyt=class{constructor(e){this.ruleName=e}kind=2},byt=class{constructor(e){this.scopeName=e}kind=3},fyt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function wPe(e){if(e==="$base")return new pyt;else if(e==="$self")return new dyt;let n=e.indexOf("#");if(n===-1)return new byt(e);else if(n===0)return new gyt(e.substring(1));else{let t=e.substring(0,n),a=e.substring(n+1);return new fyt(t,a)}}var hyt=/\\(\d+)/,rPe=/\\(\d+)/g,YIi=Symbol("RuleId"),wyt=-1,BPe=-2;function yPe(e){return e}function CPe(e){return e}var dL=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,t,a){this.$location=e,this.id=n,this._name=t||null,this._nameIsCapturing=DP.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=DP.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${lPe(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){if(!this._nameIsCapturing||this._name===null||e===null||n===null)return this._name;return DP.replaceCaptures(this._name,e,n)}getContentName(e,n){if(!this._contentNameIsCapturing||this._contentName===null)return this._contentName;return DP.replaceCaptures(this._contentName,e,n)}},Byt=class extends dL{retokenizeCapturedWithRuleId;constructor(e,n,t,a,i){super(e,n,t,a);this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,n){throw Error("Not supported!")}compile(e,n){throw Error("Not supported!")}compileAG(e,n,t,a){throw Error("Not supported!")}},yyt=class extends dL{_match;captures;_cachedCompiledPatterns;constructor(e,n,t,a,i){super(e,n,t,null);this._match=new lL(a,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new pL,this.collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},APe=class extends dL{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,a,i){super(e,n,t,a);this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}collectPatterns(e,n){for(let t of this.patterns)e.getRule(t).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new pL,this.collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},Ile=class extends dL{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,a,i,r,A,o,s,u){super(e,n,t,a);this._begin=new lL(i,this.id),this.beginCaptures=r,this._end=new lL(A?A:"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e,n).compileAG(e,t,a)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pL;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);if(this.applyEndPatternLast)this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end);else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}if(this._end.hasBackReferences)if(this.applyEndPatternLast)this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n);else this._cachedCompiledPatterns.setSource(0,n);return this._cachedCompiledPatterns}},LP=class extends dL{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,t,a,i,r,A,o,s){super(e,n,t,a);this._begin=new lL(i,this.id),this.beginCaptures=r,this.whileCaptures=o,this._while=new lL(A,BPe),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null;if(this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,a){return this._getCachedCompiledPatterns(e).compileAG(e,t,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pL;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,t,a){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,t,a)}_getCachedCompiledWhilePatterns(e,n){if(!this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns=new pL,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while);if(this._while.hasBackReferences)this._cachedCompiledWhilePatterns.setSource(0,n?n:"");return this._cachedCompiledWhilePatterns}},kPe=class e{static createCaptureRule(n,t,a,i,r){return n.registerRule((A)=>{return new Byt(t,A,a,i,r)})}static getCompiledRuleId(n,t,a){if(!n.id)t.registerRule((i)=>{if(n.id=i,n.match)return new yyt(n.$vscodeTextmateLocation,n.id,n.name,n.match,e._compileCaptures(n.captures,t,a));if(typeof n.begin>"u"){if(n.repository)a=mPe({},a,n.repository);let r=n.patterns;if(typeof r>"u"&&n.include)r=[{include:n.include}];return new APe(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,e._compilePatterns(r,t,a))}if(n.while)return new LP(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,a),n.while,e._compileCaptures(n.whileCaptures||n.captures,t,a),e._compilePatterns(n.patterns,t,a));return new Ile(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,a),n.end,e._compileCaptures(n.endCaptures||n.captures,t,a),n.applyEndPatternLast,e._compilePatterns(n.patterns,t,a))});return n.id}static _compileCaptures(n,t,a){let i=[];if(n){let r=0;for(let A in n){if(A==="$vscodeTextmateLocation")continue;let o=parseInt(A,10);if(o>r)r=o}for(let A=0;A<=r;A++)i[A]=null;for(let A in n){if(A==="$vscodeTextmateLocation")continue;let o=parseInt(A,10),s=0;if(n[A].patterns)s=e.getCompiledRuleId(n[A],t,a);i[o]=e.createCaptureRule(t,n[A].$vscodeTextmateLocation,n[A].name,n[A].contentName,s)}}return i}static _compilePatterns(n,t,a){let i=[];if(n)for(let r=0,A=n.length;r<A;r++){let o=n[r],s=-1;if(o.include){let u=wPe(o.include);switch(u.kind){case 0:case 1:s=e.getCompiledRuleId(a[o.include],t,a);break;case 2:let m=a[u.ruleName];if(m)s=e.getCompiledRuleId(m,t,a);break;case 3:case 4:let l=u.scopeName,p=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(l,a);if(d)if(p){let g=d.repository[p];if(g)s=e.getCompiledRuleId(g,t,d.repository)}else s=e.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else s=e.getCompiledRuleId(o,t,a);if(s!==-1){let u=t.getRule(s),m=!1;if(u instanceof APe||u instanceof Ile||u instanceof LP){if(u.hasMissingPatterns&&u.patterns.length===0)m=!0}if(m)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(n?n.length:0)!==i.length}}},lL=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(n,t){if(n&&typeof n==="string"){let a=n.length,i=0,r=[],A=!1;for(let o=0;o<a;o++)if(n.charAt(o)==="\\"){if(o+1<a){let u=n.charAt(o+1);if(u==="z")r.push(n.substring(i,o)),r.push("$(?!\\n)(?<!\\n)"),i=o+2;else if(u==="A"||u==="G")A=!0;o++}}if(this.hasAnchor=A,i===0)this.source=n;else r.push(n.substring(i,a)),this.source=r.join("")}else this.hasAnchor=!1,this.source=n;if(this.hasAnchor)this._anchorCache=this._buildAnchorCache();else this._anchorCache=null;if(this.ruleId=t,typeof this.source==="string")this.hasBackReferences=hyt.test(this.source);else this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(n){if(this.source===n)return;if(this.source=n,this.hasAnchor)this._anchorCache=this._buildAnchorCache()}resolveBackReferences(n,t){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let a=t.map((i)=>{return n.substring(i.start,i.end)});return rPe.lastIndex=0,this.source.replace(rPe,(i,r)=>{return gPe(a[parseInt(r,10)]||"")})}_buildAnchorCache(){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let n=[],t=[],a=[],i=[],r,A,o,s;for(r=0,A=this.source.length;r<A;r++)if(o=this.source.charAt(r),n[r]=o,t[r]=o,a[r]=o,i[r]=o,o==="\\"){if(r+1<A){if(s=this.source.charAt(r+1),s==="A")n[r+1]="",t[r+1]="",a[r+1]="A",i[r+1]="A";else if(s==="G")n[r+1]="",t[r+1]="G",a[r+1]="",i[r+1]="G";else n[r+1]=s,t[r+1]=s,a[r+1]=s,i[r+1]=s;r++}}return{A0_G0:n.join(""),A0_G1:t.join(""),A1_G0:a.join(""),A1_G1:i.join("")}}resolveAnchors(n,t){if(!this.hasAnchor||!this._anchorCache||typeof this.source!=="string")return this.source;if(n)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;else if(t)return this._anchorCache.A0_G1;else return this._anchorCache.A0_G0}},pL=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){if(this._cached)this._cached.dispose(),this._cached=null;if(this._anchorCache.A0_G0)this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null;if(this._anchorCache.A0_G1)this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null;if(this._anchorCache.A1_G0)this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null;if(this._anchorCache.A1_G1)this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){if(this._items[e].source!==n)this._disposeCaches(),this._items[e].setSource(n)}compile(e){if(!this._cached){let n=this._items.map((t)=>t.source);this._cached=new oPe(e,n,this._items.map((t)=>t.ruleId))}return this._cached}compileAG(e,n,t){if(!this._hasAnchors)return this.compile(e);else if(n)if(t){if(!this._anchorCache.A1_G1)this._anchorCache.A1_G1=this._resolveAnchors(e,n,t);return this._anchorCache.A1_G1}else{if(!this._anchorCache.A1_G0)this._anchorCache.A1_G0=this._resolveAnchors(e,n,t);return this._anchorCache.A1_G0}else if(t){if(!this._anchorCache.A0_G1)this._anchorCache.A0_G1=this._resolveAnchors(e,n,t);return this._anchorCache.A0_G1}else{if(!this._anchorCache.A0_G0)this._anchorCache.A0_G0=this._resolveAnchors(e,n,t);return this._anchorCache.A0_G0}}_resolveAnchors(e,n,t){let a=this._items.map((i)=>i.resolveAnchors(n,t));return new oPe(e,a,this._items.map((i)=>i.ruleId))}},oPe=class{constructor(e,n,t){this.regExps=n,this.rules=t,this.scanner=e.createOnigScanner(n)}scanner;dispose(){if(typeof this.scanner.dispose==="function")this.scanner.dispose()}toString(){let e=[];for(let n=0,t=this.rules.length;n<t;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
2841
2841
|
`)}findNextMatchSync(e,n,t){let a=this.scanner.findNextMatchSync(e,n,t);if(!a)return null;return{ruleId:this.rules[a.index],captureIndices:a.captureIndices}}},Qle=class{constructor(e,n){this.languageId=e,this.tokenType=n}},Cyt=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(n,t){this._defaultAttributes=new Qle(n,8),this._embeddedLanguagesMatcher=new kyt(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){if(n===null)return e._NULL_SCOPE_METADATA;return this._getBasicScopeAttributes.get(n)}static _NULL_SCOPE_METADATA=new Qle(0,0);_getBasicScopeAttributes=new bPe((n)=>{let t=this._scopeToLanguage(n),a=this._toStandardTokenType(n);return new Qle(t,a)});_scopeToLanguage(n){return this._embeddedLanguagesMatcher.match(n)||0}_toStandardTokenType(n){let t=n.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},kyt=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let n=e.map(([t,a])=>gPe(t));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let n=e.match(this.scopesRegExp);if(!n)return;return this.values.get(n[1])}},ZIi={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},QPe=!1,cPe=class{constructor(e,n){this.stack=e,this.stoppedEarly=n}};function EPe(e,n,t,a,i,r,A,o){let s=n.content.length,u=!1,m=-1;if(A){let d=Qyt(e,n,t,a,i,r);i=d.stack,a=d.linePos,t=d.isFirstLine,m=d.anchorPosition}let l=Date.now();while(!u){if(o!==0){if(Date.now()-l>o)return new cPe(i,!0)}p()}return new cPe(i,!1);function p(){let d=Eyt(e,n,t,a,i,m);if(!d){r.produce(i,s),u=!0;return}let{captureIndices:g,matchedRuleId:b}=d,f=g&&g.length>0?g[0].end>a:!1;if(b===wyt){let h=i.getRule(e);r.produce(i,g[0].start),i=i.withContentNameScopesList(i.nameScopesList),cL(e,n,t,i,r,h.endCaptures,g),r.produce(i,g[0].end);let w=i;if(i=i.parent,m=w.getAnchorPos(),!f&&w.getEnterPos()===a){i=w,r.produce(i,s),u=!0;return}}else{let h=e.getRule(b);r.produce(i,g[0].start);let w=i,B=h.getName(n.content,g),C=i.contentNameScopesList.pushAttributed(B,e);if(i=i.push(b,a,m,g[0].end===s,null,C,C),h instanceof Ile){let y=h;cL(e,n,t,i,r,y.beginCaptures,g),r.produce(i,g[0].end),m=g[0].end;let k=y.getContentName(n.content,g),Q=C.pushAttributed(k,e);if(i=i.withContentNameScopesList(Q),y.endHasBackReferences)i=i.withEndRule(y.getEndWithResolvedBackReferences(n.content,g));if(!f&&w.hasSameRuleAs(i)){i=i.pop(),r.produce(i,s),u=!0;return}}else if(h instanceof LP){let y=h;cL(e,n,t,i,r,y.beginCaptures,g),r.produce(i,g[0].end),m=g[0].end;let k=y.getContentName(n.content,g),Q=C.pushAttributed(k,e);if(i=i.withContentNameScopesList(Q),y.whileHasBackReferences)i=i.withEndRule(y.getWhileWithResolvedBackReferences(n.content,g));if(!f&&w.hasSameRuleAs(i)){i=i.pop(),r.produce(i,s),u=!0;return}}else if(cL(e,n,t,i,r,h.captures,g),r.produce(i,g[0].end),i=i.pop(),!f){i=i.safePop(),r.produce(i,s),u=!0;return}}if(g[0].end>a)a=g[0].end,t=!1}}function Qyt(e,n,t,a,i,r){let A=i.beginRuleCapturedEOL?0:-1,o=[];for(let s=i;s;s=s.pop()){let u=s.getRule(e);if(u instanceof LP)o.push({rule:u,stack:s})}for(let s=o.pop();s;s=o.pop()){let{ruleScanner:u,findOptions:m}=Fyt(s.rule,e,s.stack.endRule,t,a===A),l=u.findNextMatchSync(n,a,m);if(l){if(l.ruleId!==BPe){i=s.stack.pop();break}if(l.captureIndices&&l.captureIndices.length){if(r.produce(s.stack,l.captureIndices[0].start),cL(e,n,t,s.stack,r,s.rule.whileCaptures,l.captureIndices),r.produce(s.stack,l.captureIndices[0].end),A=l.captureIndices[0].end,l.captureIndices[0].end>a)a=l.captureIndices[0].end,t=!1}}else{i=s.stack.pop();break}}return{stack:i,linePos:a,anchorPosition:A,isFirstLine:t}}function Eyt(e,n,t,a,i,r){let A=_yt(e,n,t,a,i,r),o=e.getInjections();if(o.length===0)return A;let s=Iyt(o,e,n,t,a,i,r);if(!s)return A;if(!A)return s;let u=A.captureIndices[0].start,m=s.captureIndices[0].start;if(m<u||s.priorityMatch&&m===u)return s;return A}function _yt(e,n,t,a,i,r){let A=i.getRule(e),{ruleScanner:o,findOptions:s}=_Pe(A,e,i.endRule,t,a===r),u=o.findNextMatchSync(n,a,s);if(u)return{captureIndices:u.captureIndices,matchedRuleId:u.ruleId};return null}function Iyt(e,n,t,a,i,r,A){let o=Number.MAX_VALUE,s=null,u,m=0,l=r.contentNameScopesList.getScopeNames();for(let p=0,d=e.length;p<d;p++){let g=e[p];if(!g.matcher(l))continue;let b=n.getRule(g.ruleId),{ruleScanner:f,findOptions:h}=_Pe(b,n,null,a,i===A),w=f.findNextMatchSync(t,i,h);if(!w)continue;let B=w.captureIndices[0].start;if(B>=o)continue;if(o=B,s=w.captureIndices,u=w.ruleId,m=g.priority,o===i)break}if(s)return{priorityMatch:m===-1,captureIndices:s,matchedRuleId:u};return null}function _Pe(e,n,t,a,i){if(QPe){let A=e.compile(n,t),o=IPe(a,i);return{ruleScanner:A,findOptions:o}}return{ruleScanner:e.compileAG(n,t,a,i),findOptions:0}}function Fyt(e,n,t,a,i){if(QPe){let A=e.compileWhile(n,t),o=IPe(a,i);return{ruleScanner:A,findOptions:o}}return{ruleScanner:e.compileWhileAG(n,t,a,i),findOptions:0}}function IPe(e,n){let t=0;if(!e)t|=1;if(!n)t|=4;return t}function cL(e,n,t,a,i,r,A){if(r.length===0)return;let o=n.content,s=Math.min(r.length,A.length),u=[],m=A[0].end;for(let l=0;l<s;l++){let p=r[l];if(p===null)continue;let d=A[l];if(d.length===0)continue;if(d.start>m)break;while(u.length>0&&u[u.length-1].endPos<=d.start)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0)i.produceFromScopes(u[u.length-1].scopes,d.start);else i.produce(a,d.start);if(p.retokenizeCapturedWithRuleId){let b=p.getName(o,A),f=a.contentNameScopesList.pushAttributed(b,e),h=p.getContentName(o,A),w=f.pushAttributed(h,e),B=a.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,f,w),C=e.createOnigString(o.substring(0,d.end));EPe(e,C,t&&d.start===0,d.start,B,i,!1,0),hPe(C);continue}let g=p.getName(o,A);if(g!==null){let f=(u.length>0?u[u.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);u.push(new vyt(f,d.end))}}while(u.length>0)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var vyt=class{scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}};function Dyt(e,n,t,a,i,r,A,o){return new qyt(e,n,t,a,i,r,A,o)}function sPe(e,n,t,a,i){let r=qP(n,MP),A=kPe.getCompiledRuleId(t,a,i.repository);for(let o of r)e.push({debugSelector:n,matcher:o.matcher,ruleId:A,grammar:i,priority:o.priority})}function MP(e,n){if(n.length<e.length)return!1;let t=0;return e.every((a)=>{for(let i=t;i<n.length;i++)if(xyt(n[i],a))return t=i+1,!0;return!1})}function xyt(e,n){if(!e)return!1;if(e===n)return!0;let t=n.length;return e.length>t&&e.substr(0,t)===n&&e[t]==="."}var qyt=class{constructor(e,n,t,a,i,r,A,o){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=o,this._basicScopeAttributesProvider=new Cyt(t,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=A,this._grammar=uPe(n,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let s of Object.keys(i)){let u=qP(s,MP);for(let m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:i[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)if(e)e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:(i)=>{if(i===this._rootScopeName)return this._grammar;return this.getExternalGrammar(i)},injections:(i)=>{return this._grammarRepository.injections(i)}},n=[],t=this._rootScopeName,a=e.lookup(t);if(a){let i=a.injections;if(i)for(let A in i)sPe(n,A,i[A],this,a);let r=this._grammarRepository.injections(t);if(r)r.forEach((A)=>{let o=this.getExternalGrammar(A);if(o){let s=o.injectionSelector;if(s)sPe(n,s,o,this,o)}})}return n.sort((i,r)=>i.priority-r.priority),n}getInjections(){if(this._injections===null)this._injections=this._collectInjections();return this._injections}registerRule(e){let n=++this._lastRuleId,t=e(yPe(n));return this._ruleId2desc[n]=t,t}getRule(e){return this._ruleId2desc[CPe(e)]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];else if(this._grammarRepository){let t=this._grammarRepository.lookup(e);if(t)return this._includedGrammars[e]=uPe(t,n&&n.$base),this._includedGrammars[e]}return}tokenizeLine(e,n,t=0){let a=this._tokenize(e,n,!1,t);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,n,t=0){let a=this._tokenize(e,n,!0,t);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,n,t,a){if(this._rootId===-1)this._rootId=kPe.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections();let i;if(!n||n===Fle.NULL){i=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),l=f6.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),p=this.getRule(this._rootId).getName(null,null),d;if(p)d=sL.createRootAndLookUpScopeName(p,l,this);else d=sL.createRoot("unknown",l);n=new Fle(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,n.reset();e=e+`
|
|
2842
2842
|
`;let r=this.createOnigString(e),A=r.content.length,o=new Lyt(t,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=EPe(this,r,i,0,n,o,!0,a);return hPe(r),{lineLength:A,lineTokens:o,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function uPe(e,n){return e=S0t(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=n||e.repository.$self,e}var sL=class e{constructor(n,t,a){this.parent=n,this.scopePath=t,this.tokenAttributes=a}static fromExtension(n,t){let a=n,i=n?.scopePath??null;for(let r of t)i=kle.push(i,r.scopeNames),a=new e(a,i,r.encodedTokenAttributes);return a}static createRoot(n,t){return new e(null,new kle(null,n),t)}static createRootAndLookUpScopeName(n,t,a){let i=a.getMetadataForScope(n),r=new kle(null,n),A=a.themeProvider.themeMatch(r),o=e.mergeAttributes(t,i,A);return new e(null,r,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return e.equals(this,n)}static equals(n,t){do{if(n===t)return!0;if(!n&&!t)return!0;if(!n||!t)return!1;if(n.scopeName!==t.scopeName||n.tokenAttributes!==t.tokenAttributes)return!1;n=n.parent,t=t.parent}while(!0)}static mergeAttributes(n,t,a){let i=-1,r=0,A=0;if(a!==null)i=a.fontStyle,r=a.foregroundId,A=a.backgroundId;return f6.set(n,t.languageId,t.tokenType,null,i,r,A)}pushAttributed(n,t){if(n===null)return this;if(n.indexOf(" ")===-1)return e._pushAttributed(this,n,t);let a=n.split(/ /g),i=this;for(let r of a)i=e._pushAttributed(i,r,t);return i}static _pushAttributed(n,t,a){let i=a.getMetadataForScope(t),r=n.scopePath.push(t),A=a.themeProvider.themeMatch(r),o=e.mergeAttributes(n.tokenAttributes,i,A);return new e(n,r,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(n){let t=[],a=this;while(a&&a!==n)t.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===n?t.reverse():void 0}},Fle=class e{constructor(n,t,a,i,r,A,o,s){this.parent=n,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=A,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(n){if(n===null)return!1;return e._equals(this,n)}static _equals(n,t){if(n===t)return!0;if(!this._structuralEquals(n,t))return!1;return sL.equals(n.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(n,t){do{if(n===t)return!0;if(!n&&!t)return!0;if(!n||!t)return!1;if(n.depth!==t.depth||n.ruleId!==t.ruleId||n.endRule!==t.endRule)return!1;n=n.parent,t=t.parent}while(!0)}clone(){return this}static _reset(n){while(n)n._enterPos=-1,n._anchorPos=-1,n=n.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){if(this.parent)return this.parent;return this}push(n,t,a,i,r,A,o){return new e(this,n,t,a,i,r,A,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(n){return n.getRule(this.ruleId)}toString(){let n=[];return this._writeString(n,0),"["+n.join(",")+"]"}_writeString(n,t){if(this.parent)t=this.parent._writeString(n,t);return n[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(n){if(this.contentNameScopesList===n)return this;return this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,n)}withEndRule(n){if(this.endRule===n)return this;return new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(n){let t=this;while(t&&t._enterPos===n._enterPos){if(t.ruleId===n.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:CPe(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(n,t){let a=sL.fromExtension(n?.nameScopesList??null,t.nameScopesList);return new e(n,yPe(t.ruleId),t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,a,sL.fromExtension(a,t.contentNameScopesList))}},Gyt=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap((t)=>{if(t==="*")return this.allowAny=!0,[];return qP(t,MP).map((a)=>a.matcher)}),this.unbalancedBracketScopes=n.flatMap((t)=>qP(t,MP).map((a)=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let n of this.unbalancedBracketScopes)if(n(e))return!1;for(let n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}},Lyt=class{constructor(e,n,t,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways)i=!0;if(this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let r=e?.getScopeNames()??[];for(let A of this._tokenTypeOverrides)if(A.matcher(r))a=f6.set(a,0,Ayt(A.type),null,-1,0,0);if(this.balancedBracketSelectors)i=this.balancedBracketSelectors.match(r)}if(i)a=f6.set(a,0,8,i,-1,0,0);if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}let t=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:t}),this._lastTokenEndIndex=n}getResult(e,n){if(this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1)this._tokens.pop();if(this._tokens.length===0)this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0;return this._tokens}getBinaryResult(e,n){if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1)this._binaryTokens.pop(),this._binaryTokens.pop();if(this._binaryTokens.length===0)this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0;let t=new Uint32Array(this._binaryTokens.length);for(let a=0,i=this._binaryTokens.length;a<i;a++)t[a]=this._binaryTokens[a];return t}},Myt=class{constructor(e,n){this._onigLib=n,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){if(this._rawGrammars.set(e.scopeName,e),n)this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,n,t,a,i){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,Dyt(e,r,n,t,a,i,this,this._onigLib))}return this._grammars.get(e)}},FPe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Myt(uL.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(uL.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,t){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:t})}loadGrammarWithConfiguration(e,n,t){return this._loadGrammar(e,n,t.embeddedLanguages,t.tokenTypes,new Gyt(t.balancedBracketSelectors||[],t.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,t,a,i){let r=new myt(this._syncRegistry,e);while(r.Q.length>0)r.Q.map((A)=>this._loadSingleGrammar(A.scopeName)),r.processQueue();return this._grammarForScopeName(e,n,t,a,i)}_loadSingleGrammar(e){if(!this._ensureGrammarCache.has(e))this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0)}_doLoadSingleGrammar(e){let n=this._options.loadGrammar(e);if(n){let t=typeof this._options.getInjections==="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,t)}}addGrammar(e,n=[],t=0,a=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,t,a)}_grammarForScopeName(e,n=0,t=null,a=null,i=null){return this._syncRegistry.grammarForScopeName(e,n,t,a,i)}},UP=Fle.NULL;var zP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Xk{constructor(e,n,t){if(this.normal=n,this.property=e,t)this.space=t}}Xk.prototype.normal={};Xk.prototype.property={};Xk.prototype.space=void 0;function Dle(e,n){let t={},a={};for(let i of e)Object.assign(t,i.property),Object.assign(a,i.normal);return new Xk(t,a,n)}function x0(e){return e.toLowerCase()}class cu{constructor(e,n){this.attribute=n,this.property=e}}cu.prototype.attribute="";cu.prototype.booleanish=!1;cu.prototype.boolean=!1;cu.prototype.commaOrSpaceSeparated=!1;cu.prototype.commaSeparated=!1;cu.prototype.defined=!1;cu.prototype.mustUseProperty=!1;cu.prototype.number=!1;cu.prototype.overloadedBoolean=!1;cu.prototype.property="";cu.prototype.spaceSeparated=!1;cu.prototype.space=void 0;var gL={};Be(gL,{spaceSeparated:()=>fr,overloadedBoolean:()=>HP,number:()=>Zn,commaSeparated:()=>jk,commaOrSpaceSeparated:()=>tp,booleanish:()=>Qo,boolean:()=>Qa});var Uyt=0,Qa=h6(),Qo=h6(),HP=h6(),Zn=h6(),fr=h6(),jk=h6(),tp=h6();function h6(){return 2**++Uyt}var xle=Object.keys(gL);class iF extends cu{constructor(e,n,t,a){let i=-1;super(e,n);if(vPe(this,"space",a),typeof t==="number")while(++i<xle.length){let r=xle[i];vPe(this,xle[i],(t&gL[r])===gL[r])}}}iF.prototype.defined=!0;function vPe(e,n,t){if(t)e[n]=t}function Eg(e){let n={},t={};for(let[a,i]of Object.entries(e.properties)){let r=new iF(a,e.transform(e.attributes||{},a),i,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(a))r.mustUseProperty=!0;n[a]=r,t[x0(a)]=a,t[x0(r.attribute)]=a}return new Xk(n,t,e.space)}var qle=Eg({properties:{ariaActiveDescendant:null,ariaAtomic:Qo,ariaAutoComplete:null,ariaBusy:Qo,ariaChecked:Qo,ariaColCount:Zn,ariaColIndex:Zn,ariaColSpan:Zn,ariaControls:fr,ariaCurrent:null,ariaDescribedBy:fr,ariaDetails:null,ariaDisabled:Qo,ariaDropEffect:fr,ariaErrorMessage:null,ariaExpanded:Qo,ariaFlowTo:fr,ariaGrabbed:Qo,ariaHasPopup:null,ariaHidden:Qo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fr,ariaLevel:Zn,ariaLive:null,ariaModal:Qo,ariaMultiLine:Qo,ariaMultiSelectable:Qo,ariaOrientation:null,ariaOwns:fr,ariaPlaceholder:null,ariaPosInSet:Zn,ariaPressed:Qo,ariaReadOnly:Qo,ariaRelevant:null,ariaRequired:Qo,ariaRoleDescription:fr,ariaRowCount:Zn,ariaRowIndex:Zn,ariaRowSpan:Zn,ariaSelected:Qo,ariaSetSize:Zn,ariaSort:null,ariaValueMax:Zn,ariaValueMin:Zn,ariaValueNow:Zn,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function YP(e,n){return n in e?e[n]:n}function ZP(e,n){return YP(e,n.toLowerCase())}var DPe=Eg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jk,acceptCharset:fr,accessKey:fr,action:null,allow:null,allowFullScreen:Qa,allowPaymentRequest:Qa,allowUserMedia:Qa,alt:null,as:null,async:Qa,autoCapitalize:null,autoComplete:fr,autoFocus:Qa,autoPlay:Qa,blocking:fr,capture:null,charSet:null,checked:Qa,cite:null,className:fr,cols:Zn,colSpan:null,content:null,contentEditable:Qo,controls:Qa,controlsList:fr,coords:Zn|jk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qa,defer:Qa,dir:null,dirName:null,disabled:Qa,download:HP,draggable:Qo,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qa,formTarget:null,headers:fr,height:Zn,hidden:HP,high:Zn,href:null,hrefLang:null,htmlFor:fr,httpEquiv:fr,id:null,imageSizes:null,imageSrcSet:null,inert:Qa,inputMode:null,integrity:null,is:null,isMap:Qa,itemId:null,itemProp:fr,itemRef:fr,itemScope:Qa,itemType:fr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qa,low:Zn,manifest:null,max:null,maxLength:Zn,media:null,method:null,min:null,minLength:Zn,multiple:Qa,muted:Qa,name:null,nonce:null,noModule:Qa,noValidate:Qa,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qa,optimum:Zn,pattern:null,ping:fr,placeholder:null,playsInline:Qa,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qa,referrerPolicy:null,rel:fr,required:Qa,reversed:Qa,rows:Zn,rowSpan:Zn,sandbox:fr,scope:null,scoped:Qa,seamless:Qa,selected:Qa,shadowRootClonable:Qa,shadowRootDelegatesFocus:Qa,shadowRootMode:null,shape:null,size:Zn,sizes:null,slot:null,span:Zn,spellCheck:Qo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zn,step:null,style:null,tabIndex:Zn,target:null,title:null,translate:null,type:null,typeMustMatch:Qa,useMap:null,value:Qo,width:Zn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fr,axis:null,background:null,bgColor:null,border:Zn,borderColor:null,bottomMargin:Zn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qa,declare:Qa,event:null,face:null,frame:null,frameBorder:null,hSpace:Zn,leftMargin:Zn,link:null,longDesc:null,lowSrc:null,marginHeight:Zn,marginWidth:Zn,noResize:Qa,noHref:Qa,noShade:Qa,noWrap:Qa,object:null,profile:null,prompt:null,rev:null,rightMargin:Zn,rules:null,scheme:null,scrolling:Qo,standby:null,summary:null,text:null,topMargin:Zn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qa,disableRemotePlayback:Qa,prefix:null,property:null,results:Zn,security:null,unselectable:null},space:"html",transform:ZP});var xPe=Eg({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tp,accentHeight:Zn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zn,amplitude:Zn,arabicForm:null,ascent:Zn,attributeName:null,attributeType:null,azimuth:Zn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zn,by:null,calcMode:null,capHeight:Zn,className:fr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zn,diffuseConstant:Zn,direction:null,display:null,dur:null,divisor:Zn,dominantBaseline:null,download:Qa,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zn,enableBackground:null,end:null,event:null,exponent:Zn,externalResourcesRequired:null,fill:null,fillOpacity:Zn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jk,g2:jk,glyphName:jk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zn,horizOriginX:Zn,horizOriginY:Zn,id:null,ideographic:Zn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zn,k:Zn,k1:Zn,k2:Zn,k3:Zn,k4:Zn,kernelMatrix:tp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zn,overlineThickness:Zn,paintOrder:null,panose1:null,path:null,pathLength:Zn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zn,pointsAtY:Zn,pointsAtZ:Zn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tp,rev:tp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tp,requiredFeatures:tp,requiredFonts:tp,requiredFormats:tp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zn,specularExponent:Zn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zn,strikethroughThickness:Zn,string:null,stroke:null,strokeDashArray:tp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zn,strokeOpacity:Zn,strokeWidth:null,style:null,surfaceScale:Zn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tp,tabIndex:Zn,tableValues:null,target:null,targetX:Zn,targetY:Zn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zn,underlineThickness:Zn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zn,values:null,vAlphabetic:Zn,vMathematical:Zn,vectorEffect:null,vHanging:Zn,vIdeographic:Zn,version:null,vertAdvY:Zn,vertOriginX:Zn,vertOriginY:Zn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:YP});var Gle=Eg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}});var Lle=Eg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ZP});var Mle=Eg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}});var Ule={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var zyt=/[A-Z]/g,qPe=/-[a-z]/g,Hyt=/^data[-\w.:]+$/i;function q0(e,n){let t=x0(n),a=n,i=cu;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Hyt.test(n)){if(n.charAt(4)==="-"){let r=n.slice(5).replace(qPe,Zyt);a="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=n.slice(4);if(!qPe.test(r)){let A=r.replace(zyt,Yyt);if(A.charAt(0)!=="-")A="-"+A;n="data"+A}}i=iF}return new i(a,n)}function Yyt(e){return"-"+e.toLowerCase()}function Zyt(e){return e.charAt(1).toUpperCase()}var G0=Dle([qle,DPe,Gle,Lle,Mle],"html"),fd=Dle([qle,xPe,Gle,Lle,Mle],"svg");var GPe={}.hasOwnProperty;function rF(e,n){let t=n||{};function a(i,...r){let{invalid:A,handlers:o}=a;if(i&&GPe.call(i,e)){let s=String(i[e]);A=GPe.call(o,s)?o[s]:a.unknown}if(A)return A.call(this,i,...r)}return a.handlers=t.handlers||{},a.invalid=t.invalid,a.unknown=t.unknown,a}var Kyt=/["&'<>`]/g,Ryt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nyt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Jyt=/[|\\{}()[\]^$+*?.]/g,LPe=new WeakMap;function MPe(e,n){if(e=e.replace(n.subset?Pyt(n.subset):Kyt,a),n.subset||n.escapeOnly)return e;return e.replace(Ryt,t).replace(Nyt,a);function t(i,r,A){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,A.charCodeAt(r+2),n)}function a(i,r,A){return n.format(i.charCodeAt(0),A.charCodeAt(r+1),n)}}function Pyt(e){let n=LPe.get(e);if(!n)n=Xyt(e),LPe.set(e,n);return n}function Xyt(e){let n=[],t=-1;while(++t<e.length)n.push(e[t].replace(Jyt,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}var jyt=/[\dA-Fa-f]/;function UPe(e,n,t){let a="&#x"+e.toString(16).toUpperCase();return t&&n&&!jyt.test(String.fromCharCode(n))?a:a+";"}var $yt=/\d/;function zPe(e,n,t){let a="&#"+String(e);return t&&n&&!$yt.test(String.fromCharCode(n))?a:a+";"}var HPe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var KP={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};var YPe=["cent","copy","divide","gt","lt","not","para","times"];var ZPe={}.hasOwnProperty,zle={},RP;for(RP in KP)if(ZPe.call(KP,RP))zle[KP[RP]]=RP;var Syt=/[^\dA-Za-z]/;function KPe(e,n,t,a){let i=String.fromCharCode(e);if(ZPe.call(zle,i)){let r=zle[i],A="&"+r;if(t&&HPe.includes(r)&&!YPe.includes(r)&&(!a||n&&n!==61&&Syt.test(String.fromCharCode(n))))return A;return A+";"}return""}function RPe(e,n,t){let a=UPe(e,n,t.omitOptionalSemicolons),i;if(t.useNamedReferences||t.useShortestReferences)i=KPe(e,n,t.omitOptionalSemicolons,t.attribute);if((t.useShortestReferences||!i)&&t.useShortestReferences){let r=zPe(e,n,t.omitOptionalSemicolons);if(r.length<a.length)a=r}return i&&(!t.useShortestReferences||i.length<a.length)?i:a}function L0(e,n){return MPe(e,Object.assign({format:RPe},n))}var Oyt=/^>|^->|<!--|-->|--!>|<!-$/g,Wyt=[">"],Tyt=["<",">"];function NPe(e,n,t,a){return a.settings.bogusComments?"<?"+L0(e.value,Object.assign({},a.settings.characterReferences,{subset:Wyt}))+">":"<!--"+e.value.replace(Oyt,i)+"-->";function i(r){return L0(r,Object.assign({},a.settings.characterReferences,{subset:Tyt}))}}function JPe(e,n,t,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function AF(e,n){let t=String(e);if(typeof n!=="string")throw TypeError("Expected character");let a=0,i=t.indexOf(n);while(i!==-1)a++,i=t.indexOf(n,i+n.length);return a}function Hle(e){let n=[],t=String(e||""),a=t.indexOf(","),i=0,r=!1;while(!r){if(a===-1)a=t.length,r=!0;let A=t.slice(i,a).trim();if(A||!r)n.push(A);i=a+1,a=t.indexOf(",",i)}return n}function oF(e,n){let t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function Yle(e){let n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function cF(e){return e.join(" ").trim()}var Vyt=/[ \t\n\f\r]/g;function M0(e){return typeof e==="object"?e.type==="text"?PPe(e.value):!1:PPe(e)}function PPe(e){return e.replace(Vyt,"")===""}var $o=XPe(1),Zle=XPe(-1),eCt=[];function XPe(e){return n;function n(t,a,i){let r=t?t.children:eCt,A=(a||0)+e,o=r[A];if(!i)while(o&&M0(o))A+=e,o=r[A];return o}}var nCt={}.hasOwnProperty;function NP(e){return n;function n(t,a,i){return nCt.call(e,t.tagName)&&e[t.tagName](t,a,i)}}var bL=NP({body:aCt,caption:Kle,colgroup:Kle,dd:oCt,dt:ACt,head:Kle,html:tCt,li:rCt,optgroup:cCt,option:sCt,p:iCt,rp:jPe,rt:jPe,tbody:mCt,td:$Pe,tfoot:lCt,th:$Pe,thead:uCt,tr:pCt});function Kle(e,n,t){let a=$o(t,n,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&M0(a.value.charAt(0)))}function tCt(e,n,t){let a=$o(t,n);return!a||a.type!=="comment"}function aCt(e,n,t){let a=$o(t,n);return!a||a.type!=="comment"}function iCt(e,n,t){let a=$o(t,n);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function rCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&a.tagName==="li"}function ACt(e,n,t){let a=$o(t,n);return Boolean(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function oCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function jPe(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function cCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&a.tagName==="optgroup"}function sCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function uCt(e,n,t){let a=$o(t,n);return Boolean(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function mCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function lCt(e,n,t){return!$o(t,n)}function pCt(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&a.tagName==="tr"}function $Pe(e,n,t){let a=$o(t,n);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}var SPe=NP({body:bCt,colgroup:fCt,head:gCt,html:dCt,tbody:hCt});function dCt(e){let n=$o(e,-1);return!n||n.type!=="comment"}function gCt(e){let n=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(n.has(a.tagName))return!1;n.add(a.tagName)}let t=e.children[0];return!t||t.type==="element"}function bCt(e){let n=$o(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&M0(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function fCt(e,n,t){let a=Zle(t,n),i=$o(e,-1,!0);if(t&&a&&a.type==="element"&&a.tagName==="colgroup"&&bL(a,t.children.indexOf(a),t))return!1;return Boolean(i&&i.type==="element"&&i.tagName==="col")}function hCt(e,n,t){let a=Zle(t,n),i=$o(e,-1);if(t&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&bL(a,t.children.indexOf(a),t))return!1;return Boolean(i&&i.type==="element"&&i.tagName==="tr")}var JP={name:[[`
|
|
2843
2843
|
\f\r &/=>`.split(""),`
|