@lunora/studio 1.0.0-alpha.71 → 1.0.0-alpha.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone/{chunk-RBU52M5T.js → chunk-BRQVCDCN.js} +1 -1
- package/dist/standalone/chunk-KMLEIUJH.js +1 -0
- package/dist/standalone/{chunk-TJ2WZ5OP.js → chunk-W3YWXG4O.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/package.json +2 -2
- package/dist/standalone/chunk-QWJ3NPE3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as as,b as is}from"./chunk-F6GOKFMU.js";import{a as ls}from"./chunk-M536Y2KX.js";import{a as ao,b as io,c as lo,d as es,e as cr}from"./chunk-KYF2E5CJ.js";import{$ as Yn,A as Jt,C as Zn,D as B,E as Wn,F as qn,I as Xt,L as Ie,M as Go,N as eo,P as $o,Q as Gn,R as $n,S as Qo,T as to,U as oo,V as ro,W as no,X as Yo,Y as so,_ as Qn,aa as Jo,b as Mn,ba as Xo,ea as er,fa as ge,ga as Jn,ha as co,i as Vn,ia as Xn,j as Ln,ja as se,k as Bn,ka as tr,l as zr,m as Uo,ma as or,na as rr,o as Ko,oa as nr,p as Hn,pa as sr,q as Zo,qa as ar,ra as ir,s as Fn,sa as ts,ta as os,u as jn,ua as lr,v as zn,va as rs,w as Un,x as Wo,y as qo,z as Kn}from"./chunk-7YEFOSPH.js";import{f as Nn}from"./chunk-ILNELDFC.js";import{a as fn,b as gn,d as hn,e as xo,f as jo,g as vn,h as xn,i as bn,j as yn,k as Pn}from"./chunk-SMIESS7P.js";import{a as dr}from"./chunk-HPFLBYRI.js";import{c as ns,h as ss,k as Ur}from"./chunk-QBWRC5YX.js";import{B as Dn,C as In,I as pe,J as _n,K as Yt,O,P as q,R as An,e as le,p as bo,q as kn}from"./chunk-CFPZYHPY.js";import{a as mn}from"./chunk-7QIFDWQV.js";import{b as _e,c as Kr}from"./chunk-FXCBF4XT.js";import{a as De,c as wn,h as zo,i as On}from"./chunk-2OUPA2WJ.js";import{a as jr,b as En}from"./chunk-THIXMMZD.js";import{a as Se,c as W,i as Ue,j as _}from"./chunk-6ST5ECQA.js";import{a as Tn}from"./chunk-XBDKZZ67.js";import{a as Cn,b as Rn,c as Sn,d as Re,m as po}from"./chunk-4CGALXS3.js";import{b as Hr}from"./chunk-LE56LPNH.js";import{a as i,d as Br,e as C,f as E,g as Fr,h as oe,j as z}from"./chunk-3XIESWL4.js";var D=C(Fr(),1);var we=C(E(),1),F=C(E(),1);var s=C(oe(),1);var cs=C(E(),1),Ne=C(oe(),1);var ai={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},ii={overflow:"auto",whiteSpace:"pre-wrap"},pr=class extends cs.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:a}=this.state;if(a===null)return(0,Ne.jsx)(Ne.Fragment,{children:e});let c=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Ne.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:ai,children:[(0,Ne.jsx)("strong",{children:c}),(0,Ne.jsx)("pre",{"data-testid":"dash-error-message",style:ii,children:a.message}),(0,Ne.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Be={};Br(Be,{Arrow:()=>Ns,Backdrop:()=>Es,Close:()=>Is,Description:()=>Ms,Handle:()=>Po,Popup:()=>Rs,Portal:()=>hs,Positioner:()=>vs,Root:()=>us,Title:()=>Os,Trigger:()=>ms,Viewport:()=>Vs,createHandle:()=>Ls});var Te=C(E(),1);var ur=C(E(),1);var Zr=ur.createContext(void 0);function Q(t){let e=ur.useContext(Zr);if(e===void 0&&!t)throw new Error(W(47));return e}i(Q,"usePopoverRootContext");var Ae=C(E(),1),ds=C(mn(),1);function li(){return{...ao(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}i(li,"createInitialState");var ci={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),openMethod:B(t=>t.openMethod),openChangeReason:B(t=>t.openChangeReason),modal:B(t=>t.modal),focusManagerModal:B(t=>t.focusManagerModal),stickIfOpen:B(t=>t.stickIfOpen),titleElementId:B(t=>t.titleElementId),descriptionElementId:B(t=>t.descriptionElementId),openOnHover:B(t=>t.openOnHover),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},uo=class t extends Xt{static{i(this,"PopoverStore")}constructor(e,o,r=!1){let n={...li(),...e},a=new so;n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=io(a,o,r),super(n,{popupRef:Ae.createRef(),backdropRef:Ae.createRef(),internalBackdropRef:Ae.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ae.createRef(),beforeContentFocusGuardRef:Ae.createRef(),stickIfOpenTimeout:new Dn,triggerElements:a},ci)}setOpen=i((e,o)=>{let r=o.reason===O.triggerHover,n=o.reason===O.triggerPress&&o.event.detail===0,a=!e&&(o.reason===O.escapeKey||o.reason==null),c=Gn(o),d=this.select("activeTriggerId");if(!e&&o.reason===O.closePress&&o.trigger==null&&d!=null&&(o.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let l={open:e,openChangeReason:o.reason};$o(l,e,o.trigger,c()),this.update(l)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),ds.flushSync(p)):p(),n||a?this.set("instantType",n?"click":"dismiss"):o.reason===O.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)},"setOpen");static useStore(e,o){let{store:r,internalStore:n}=eo(e,(a,c)=>new t(o,a,c));return Ae.useEffect(()=>n?.disposeEffect(),[n]),r}disposeEffect=i(()=>this.context.stickIfOpenTimeout.disposeEffect(),"disposeEffect")};var Ke=C(oe(),1);function ps({props:t}){let{children:e,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:a,modal:c=!1,handle:d,triggerId:p,defaultTriggerId:l=null}=t,u=uo.useStore(d?.store,{modal:c,open:r,openProp:o,activeTriggerId:l,triggerIdProp:p});Qo(u,o,r,l),u.useControlledProp("openProp",o),u.useControlledProp("triggerIdProp",p);let h=u.useState("open"),f=u.useState("mounted"),v=u.useState("payload"),m=Fn()!=null;u.useContextCallback("onOpenChange",n),u.useContextCallback("onOpenChangeComplete",a),Yo(u,h),oo(u);let{forceUnmount:g}=ro(h,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:c,nested:m}),Te.useEffect(()=>{h||u.context.stickIfOpenTimeout.clear()},[u,h]);let x=Te.useCallback(()=>{u.setOpen(!1,q(O.imperativeAction))},[u]);Te.useImperativeHandle(t.actionsRef,()=>({unmount:g,close:x}),[g,x]);let b=h||f,P=Te.useMemo(()=>({store:u}),[u]);return(0,Ke.jsxs)(Zr.Provider,{value:P,children:[b&&(0,Ke.jsx)(di,{store:u,modal:c}),typeof e=="function"?e({payload:v}):e]})}i(ps,"PopoverRootComponent");function us(t){return Q(!0)?(0,Ke.jsx)(ps,{props:t}):(0,Ke.jsx)(Un,{children:(0,Ke.jsx)(ps,{props:t})})}i(us,"PopoverRoot");function di({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Jt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference??Ue,a=r.trigger??Ue,c=Te.useMemo(()=>Se(Ie,r.floating),[r.floating]);return no(t,{activeTriggerProps:n,inactiveTriggerProps:a,popupProps:c}),null}i(di,"PopoverInteractions");var Ve=C(E(),1);var Ze=C(oe(),1);var ms=Ve.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,handle:p,payload:l,openOnHover:u=!1,delay:h=300,closeDelay:f=0,id:v,...m}=e,g=Q(!0),x=p?.store??g?.store;if(!x)throw new Error(W(74));let b=le(v),P=x.useState("isTriggerActive",b),y=x.useState("floatingRootContext"),S=x.useState("isOpenedByTrigger",b),R=x.useState("triggerPopupId",b),N=Ve.useRef(null),{registerTrigger:T,isMountedByThisTrigger:k}=to(b,N,x,{payload:l,disabled:c,openOnHover:u,closeDelay:f}),w=x.useState("openChangeReason"),M=x.useState("stickIfOpen"),H=x.useState("openMethod"),G=x.useState("focusManagerModal"),V=Xo(y,{enabled:!c&&y!=null&&u&&(H!=="touch"||w!==O.triggerPress),mouseOnly:!0,move:!1,handleClose:er(),restMs:h,delay:{close:f},triggerElementRef:N,isActiveTrigger:P,isClosing:i(()=>x.select("transitionStatus")==="ending","isClosing")}),K=qo(y,{enabled:y!=null,stickIfOpen:M}),U=tr(()=>x.select("open"),ne=>{x.set("openMethod",ne)}),$=x.useState("triggerProps",k),{getButtonProps:Y,buttonRef:A}=_e({disabled:c,native:d}),I={open(ne){return ne&&w===O.triggerPress?Xn.open(ne):co.open(ne)}},{preFocusGuardRef:Z,handlePreFocusGuardFocus:ie,handleFocusTargetFocus:ce}=es(x,N),ee=_("button",e,{state:{disabled:c,open:S},ref:[A,o,T,N],props:[K.reference,V,$,U,{[Uo]:"",id:b,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":R},m,Y],stateAttributesMapping:I});return k&&!G?(0,Ze.jsxs)(Ve.Fragment,{children:[(0,Ze.jsx)(zr,{ref:Z,onFocus:ie}),(0,Ze.jsx)(Ve.Fragment,{children:ee},b),(0,Ze.jsx)(zr,{ref:x.context.triggerFocusTargetRef,onFocus:ce})]}):(0,Ze.jsx)(Ve.Fragment,{children:ee},b)},"PopoverTrigger"));var gs=C(E(),1);var mr=C(E(),1);var Wr=mr.createContext(void 0);function fs(){let t=mr.useContext(Wr);if(t===void 0)throw new Error(W(45));return t}i(fs,"usePopoverPortalContext");var qr=C(oe(),1);var hs=gs.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=Q();return a.useState("mounted")||r?(0,qr.jsx)(Wr.Provider,{value:r,children:(0,qr.jsx)(Zo,{ref:o,...n})}):null},"PopoverPortal"));var fo=C(E(),1);var fr=C(E(),1);var Gr=fr.createContext(void 0);function mo(){let t=fr.useContext(Gr);if(!t)throw new Error(W(46));return t}i(mo,"usePopoverPositionerContext");var yo=C(oe(),1);var vs=fo.forwardRef(i(function(e,o){let{render:r,className:n,style:a,anchor:c,positionMethod:d="absolute",side:p="bottom",align:l="center",sideOffset:u=0,alignOffset:h=0,collisionBoundary:f="clipping-ancestors",collisionPadding:v=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:x=!1,collisionAvoidance:b=Ko,...P}=e,{store:y}=Q(),S=fs(),R=jn(),N=y.useState("floatingRootContext"),T=y.useState("mounted"),k=y.useState("open"),w=y.useState("openChangeReason"),M=y.useState("activeTriggerElement"),H=y.useState("modal"),G=y.useState("openMethod"),V=y.useState("positionerElement"),K=y.useState("instantType"),U=y.useState("transitionStatus"),$=y.useState("hasViewport"),Y=fo.useRef(null),A=_n(V,!1,!1),I=nr({anchor:c,floatingRootContext:N,positionMethod:d,mounted:T,side:p,sideOffset:u,align:l,alignOffset:h,arrowPadding:m,collisionBoundary:f,collisionPadding:v,sticky:g,disableAnchorTracking:x,keepMounted:S,nodeId:R,collisionAvoidance:b,adaptiveOrigin:$?rr:void 0}),Z=N.useState("domReferenceElement");De(()=>{let ee=Z,ne=Y.current;if(ee&&(Y.current=ee),ne&&ee&&ee!==ne){y.set("instantType",void 0);let me=new AbortController;return A(()=>{y.set("instantType","trigger-change")},me.signal),()=>{me.abort()}}},[Z,A,y]),os(k&&H===!0&&w!==O.triggerHover,G==="touch",V,M);let ie=fo.useCallback(ee=>{y.set("positionerElement",ee)},[y]),ce={open:k,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:K},de=ir(e,ce,{styles:I.positionerStyles,transitionStatus:U,props:P,refs:[o,ie],hidden:!T,inert:!k});return(0,yo.jsxs)(Gr.Provider,{value:I,children:[T&&H===!0&&w!==O.triggerHover&&(0,yo.jsx)(sr,{ref:y.context.internalBackdropRef,inert:or(!k),cutout:M}),(0,yo.jsx)(zn,{id:R,children:de})]})},"PopoverPositioner"));var gr=C(E(),1);var Le=C(E(),1);var xs=C(oe(),1);var bs=Le.createContext(void 0);function ys(){let[t,e]=Le.useState(0),o=wn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:Le.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(ys,"useClosePartCount");function Ps(t){let{value:e,children:o}=t;return(0,xs.jsx)(bs.Provider,{value:e,children:o})}i(Ps,"ClosePartProvider");function Cs(){let t=Le.useContext(bs);De(()=>t?.register(),[t])}i(Cs,"useClosePartRegistration");var $r=C(oe(),1);var pi={...se,...pe},Rs=gr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,initialFocus:c,finalFocus:d,...p}=e,{store:l}=Q(),u=mo(),h=rs(!0)!=null,{context:f,hasClosePart:v}=ys(),m=l.useState("open"),g=l.useState("openMethod"),x=l.useState("instantType"),b=l.useState("transitionStatus"),P=l.useState("popupProps"),y=l.useState("titleElementId"),S=l.useState("descriptionElementId"),R=l.useState("modal"),N=l.useState("mounted"),T=l.useState("openChangeReason"),k=l.useState("activeTriggerElement"),w=l.useState("floatingRootContext"),M=w.useState("floatingId"),H=l.useState("disabled"),G=l.useState("openOnHover"),V=l.useState("closeDelay"),K=p.id??M;Yt({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),Jo(w,{enabled:G&&!H,closeDelay:V});let U=c===void 0?Go(l.context.popupRef):c,$=R!==!1&&v;l.useSyncedValue("focusManagerModal",$);let Y=gr.useCallback(Z=>{l.set("popupElement",Z)},[l]),A={open:m,side:u.side,align:u.align,instant:x,transitionStatus:b},I=_("div",e,{state:A,ref:[o,l.context.popupRef,Y],props:[P,{id:K,role:"dialog",...Ie,"aria-labelledby":y,"aria-describedby":S,onKeyDown(Z){h&&lr.has(Z.key)&&Z.stopPropagation()}},ar(b),p],stateAttributesMapping:pi});return(0,$r.jsx)(Wo,{context:w,openInteractionType:g,modal:$,disabled:!N||T===O.triggerHover,initialFocus:U,returnFocus:d,restoreFocus:"popup",previousFocusableElement:On(k)?k:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,$r.jsx)(Ps,{value:f,children:I})})},"PopoverPopup"));var Ss=C(E(),1);var Ns=Ss.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),{arrowRef:l,side:u,align:h,arrowUncentered:f,arrowStyles:v}=mo();return _("div",e,{state:{open:p,side:u,align:h,uncentered:f},ref:[o,l],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:se})},"PopoverArrow"));var Ts=C(E(),1);var ui={...se,...pe},Es=Ts.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),l=d.useState("mounted"),u=d.useState("transitionStatus"),h=d.useState("openChangeReason");return _("div",e,{state:{open:p,transitionStatus:u},ref:[d.context.backdropRef,o],props:[{role:"presentation",hidden:!l,style:{pointerEvents:h===O.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},c],stateAttributesMapping:ui})},"PopoverBackdrop"));var ws=C(E(),1);var Os=ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("titleElementId",p),_("h2",e,{ref:o,props:[{id:p},c]})},"PopoverTitle"));var ks=C(E(),1);var Ms=ks.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),_("p",e,{ref:o,props:[{id:p},c]})},"PopoverDescription"));var Ds=C(E(),1);var Is=Ds.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{buttonRef:l,getButtonProps:u}=_e({disabled:c,focusableWhenDisabled:!1,native:d}),{store:h}=Q();return Cs(),_("button",e,{ref:[o,l],props:[{onClick(v){h.setOpen(!1,q(O.closePress,v.nativeEvent))}},p,u]})},"PopoverClose"));var As=C(E(),1);var _s=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var mi={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Vs=As.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,{store:p}=Q(),{side:l}=mo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l,cssVars:_s,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:mi})},"PopoverViewport"));var Po=class{static{i(this,"PopoverHandle")}constructor(){this.store=new uo}open(e){let o=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!o)throw new Error(W(80,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ls(){return new Po}i(Ls,"createPopoverHandle");var ae={};Br(ae,{Backdrop:()=>Hs,Close:()=>js,Description:()=>Us,Handle:()=>No,Popup:()=>Gs,Portal:()=>Qs,Root:()=>oa,Title:()=>aa,Trigger:()=>ia,Viewport:()=>na,createHandle:()=>la});var Bs=C(E(),1);var Co=C(E(),1);var hr=Co.createContext(!1),Qr=Co.createContext(void 0);function re(t){let e=Co.useContext(Qr);if(t===!1&&e===void 0)throw new Error(W(27));return e}i(re,"useDialogRootContext");var fi={...se,...pe},Hs=Bs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,forceRender:c=!1,...d}=e,{store:p}=re(),l=p.useState("open"),u=p.useState("nested"),h=p.useState("mounted"),f=p.useState("transitionStatus");return _("div",e,{state:{open:l,transitionStatus:f},ref:[p.context.backdropRef,o],stateAttributesMapping:fi,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:c||!u})},"DialogBackdrop"));var Fs=C(E(),1);var js=Fs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{store:l}=re(),u=l.useState("open"),{getButtonProps:h,buttonRef:f}=_e({disabled:c,native:d}),v={disabled:c};function m(g){u&&l.setOpen(!1,q(O.closePress,g.nativeEvent))}return i(m,"handleClick"),_("button",e,{state:v,ref:[o,f],props:[{onClick:m},p,h]})},"DialogClose"));var zs=C(E(),1);var Us=zs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("descriptionElementId",l),_("p",e,{ref:o,props:[{id:l},d]})},"DialogDescription"));var Ws=C(E(),1);var Ks=(function(t){return t.nestedDialogs="--nested-dialogs",t})({});var Zs=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var vr=C(E(),1);var Yr=vr.createContext(void 0);function xr(){let t=vr.useContext(Yr);if(t===void 0)throw new Error(W(26));return t}i(xr,"useDialogPortalContext");var qs=C(oe(),1);var gi={...se,...pe,nestedDialogOpen(t){return t?{[Zs.nestedDialogOpen]:""}:null}},Gs=Ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,finalFocus:c,initialFocus:d,...p}=e,{store:l}=re(),u=l.useState("descriptionElementId"),h=l.useState("disablePointerDismissal"),f=l.useState("floatingRootContext"),v=l.useState("popupProps"),m=l.useState("modal"),g=l.useState("mounted"),x=l.useState("nested"),b=l.useState("nestedOpenDialogCount"),P=l.useState("open"),y=l.useState("openMethod"),S=l.useState("titleElementId"),R=l.useState("transitionStatus"),N=l.useState("role"),T=f.useState("floatingId"),k=p.id??T;xr(),Yt({open:P,ref:l.context.popupRef,onComplete(){P&&l.context.onOpenChangeComplete?.(!0)}});let w=d===void 0?Go(l.context.popupRef):d,M=b>0,H=l.useStateSetter("popupElement"),V=_("div",e,{state:{open:P,nested:x,transitionStatus:R,nestedDialogOpen:M},props:[v,{id:k,"aria-labelledby":S??void 0,"aria-describedby":u??void 0,role:N,...Ie,hidden:!g,onKeyDown(K){lr.has(K.key)&&K.stopPropagation()},style:{[Ks.nestedDialogs]:b}},p],ref:[o,l.context.popupRef,H],stateAttributesMapping:gi});return(0,qs.jsx)(Wo,{context:f,openInteractionType:y,disabled:!g,closeOnFocusOut:!h,initialFocus:w,returnFocus:c,modal:m!==!1,restoreFocus:"popup",children:V})},"DialogPopup"));var $s=C(E(),1);var Ro=C(oe(),1);var Qs=$s.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=re(),c=a.useState("mounted"),d=a.useState("modal"),p=a.useState("open");return c||r?(0,Ro.jsx)(Yr.Provider,{value:r,children:(0,Ro.jsxs)(Zo,{ref:o,...n,children:[c&&d===!0&&(0,Ro.jsx)(sr,{ref:a.context.internalBackdropRef,inert:or(!p)}),e.children]})}):null},"DialogPortal"));var ta=C(E(),1);var Xs=C(E(),1);var Ee=C(E(),1);function Ys(t){let{store:e,actionsRef:o}=t,r=e.useState("open");Yo(e,r),oo(e);let{forceUnmount:n}=ro(r,e),a=Ee.useCallback(()=>{e.setOpen(!1,q(O.imperativeAction))},[e]);Ee.useImperativeHandle(o,()=>({unmount:n,close:a}),[n,a])}i(Ys,"useDialogRoot");function Js({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),a=t.useState("modal"),c=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,l]=Ee.useState(0),[u,h]=Ee.useState(0),f=p===0,v=Jt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:a==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(b){if(!t.context.outsidePressEnabledRef.current||"button"in b&&b.button!==0||"touches"in b&&b.touches.length!==1)return!1;let P=kn(b);return f&&!n?a&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===P||t.context.backdropRef.current===P||bo(P,c)&&!P?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:f});ts(r&&a===!0,c),t.useContextCallback("onNestedDialogOpen",(b,P)=>{l(b),h(P)}),t.useContextCallback("onNestedDialogClose",()=>{l(0),h(0)}),Ee.useEffect(()=>(e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(p+1,u+(o?1:0)),e?.onNestedDialogClose&&!r&&e.onNestedDialogClose(),()=>{e?.onNestedDialogClose&&r&&e.onNestedDialogClose()}),[o,r,p,u,e]);let m=v.reference??Ue,g=v.trigger??Ue,x=v.floating??Ue;return no(t,{activeTriggerProps:m,inactiveTriggerProps:g,popupProps:x,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Js,"DialogInteractions");var br=C(E(),1);var hi={...lo,modal:B(t=>t.modal),nested:B(t=>t.nested),nestedOpenDialogCount:B(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:B(t=>t.nestedOpenDrawerCount),disablePointerDismissal:B(t=>t.disablePointerDismissal),openMethod:B(t=>t.openMethod),descriptionElementId:B(t=>t.descriptionElementId),titleElementId:B(t=>t.titleElementId),viewportElement:B(t=>t.viewportElement),role:B(t=>t.role)},go=class t extends Xt{static{i(this,"DialogStore")}constructor(e,o,r=!1){let n=new so,a=vi(e);a.floatingRootContext=io(n,o,r),super(a,{popupRef:br.createRef(),backdropRef:br.createRef(),internalBackdropRef:br.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},hi)}setOpen=i((e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let r={open:e};$o(r,e,o.trigger),this.update(r)},"setOpen");static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a),!0).store}};function vi(t={}){return{...ao(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(vi,"createInitialState");var So=C(oe(),1);function ea(t,e="dialog"){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:a,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:l,handle:u,triggerId:h,defaultTriggerId:f=null}=t,v=e==="drawer",m=e==="alert-dialog",g=m?!0:p,x=m||d,b=m?"alertdialog":"dialog",P=re(!0),S={modal:g,disablePointerDismissal:x,nested:!!P,role:b},R=go.useStore(u?.store,{open:n,openProp:r,activeTriggerId:f,triggerIdProp:h,...S});Zn(()=>{let H=r===void 0&&R.state.open===!1&&n===!0?{open:!0,activeTriggerId:f}:null;m?R.update(H?{...S,...H}:S):H&&R.update(H)}),R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",h),R.useSyncedValues(S),R.useContextCallback("onOpenChange",a),R.useContextCallback("onOpenChangeComplete",c);let N=R.useState("open"),T=R.useState("mounted"),k=R.useState("payload");Ys({store:R,actionsRef:l});let w=N||T,M=Xs.useMemo(()=>({store:R}),[R]);return(0,So.jsx)(hr.Provider,{value:!1,children:(0,So.jsxs)(Qr.Provider,{value:M,children:[w&&(0,So.jsx)(Js,{store:R,parentContext:P?.store.context,isDrawer:v}),typeof o=="function"?o({payload:k}):o]})})}i(ea,"useRenderDialogRoot");function oa(t){let e=ta.useContext(hr)?"drawer":"dialog";return ea(t,e)}i(oa,"DialogRoot");var ra=C(E(),1);var Jr=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var xi={...se,...pe,nested(t){return t?{[Jr.nested]:""}:null},nestedDialogOpen(t){return t?{[Jr.nestedDialogOpen]:""}:null}},na=ra.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=xr(),{store:l}=re(),u=l.useState("open"),h=l.useState("nested"),f=l.useState("transitionStatus"),v=l.useState("nestedOpenDialogCount"),m=l.useState("mounted"),g=l.useStateSetter("viewportElement"),x=v>0;return _("div",e,{enabled:p||m,state:{open:u,nested:h,transitionStatus:f,nestedDialogOpen:x},ref:[o,g],stateAttributesMapping:xi,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:c},d]})},"DialogViewport"));var sa=C(E(),1);var aa=sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("titleElementId",l),_("h2",e,{ref:o,props:[{id:l},d]})},"DialogTitle"));var yr=C(E(),1);var ia=yr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,id:p,payload:l,handle:u,...h}=e,f=re(!0),v=u?.store??f?.store;if(!v)throw new Error(W(79));let m=le(p),g=v.useState("floatingRootContext"),x=v.useState("isOpenedByTrigger",m),b=v.useState("triggerPopupId",m),P=yr.useRef(null),{registerTrigger:y,isMountedByThisTrigger:S}=to(m,P,v,{payload:l}),{getButtonProps:R,buttonRef:N}=_e({disabled:c,native:d}),T=qo(g,{enabled:g!=null}),k=tr(()=>v.select("open"),H=>{v.set("openMethod",H)}),w={disabled:c,open:x},M=v.useState("triggerProps",S);return _("button",e,{state:w,ref:[N,o,y,P],props:[T.reference,M,k,{[Uo]:"",id:m,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":b},h,R],stateAttributesMapping:co})},"DialogTrigger"));var No=class{static{i(this,"DialogHandle")}constructor(e){this.store=e??new go}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,q(O.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function la(){return new No}i(la,"createDialogHandle");var ve={};Br(ve,{Arrow:()=>Ea,Handle:()=>To,Popup:()=>Na,Portal:()=>Pa,Positioner:()=>Ra,Provider:()=>wa,Root:()=>da,Trigger:()=>ga,Viewport:()=>Ma,createHandle:()=>Da});var he=C(E(),1);var Pr=C(E(),1);var Xr=Pr.createContext(void 0);function ue(t){let e=Pr.useContext(Xr);if(e===void 0&&!t)throw new Error(W(72));return e}i(ue,"useTooltipRootContext");var ca=C(E(),1);var bi={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),isInstantPhase:B(t=>t.isInstantPhase),trackCursorAxis:B(t=>t.trackCursorAxis),disableHoverablePopup:B(t=>t.disableHoverablePopup),lastOpenChangeReason:B(t=>t.openChangeReason),closeOnClick:B(t=>t.closeOnClick),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},ho=class t extends Xt{static{i(this,"TooltipStore")}constructor(e,o,r=!1){let n=new so,a={...yi(),...e};a.floatingRootContext=io(n,o,r),super(a,{popupRef:ca.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},bi)}setOpen=i((e,o)=>{$n(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,q(O.triggerPress,e))}static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a)).store}};function yi(){return{...ao(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}i(yi,"createInitialState");var Cr=C(oe(),1);var da=Wn(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:a=!1,trackCursorAxis:c="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:l,handle:u,triggerId:h,defaultTriggerId:f=null,children:v}=e,m=ho.useStore(u?.store,{open:r,openProp:n,activeTriggerId:f,triggerIdProp:h});Qo(m,n,r,f),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",h),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",l);let g=m.useState("open"),x=!o&&g,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:a}),m.useSyncedValue("disabled",o),oo(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:R}=ro(x,m),N=m.useState("isInstantPhase"),T=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),w=he.useRef(null);De(()=>{g&&o&&m.setOpen(!1,q(O.disabled))},[g,o,m]),De(()=>{R==="ending"&&k===O.none||R!=="ending"&&N?(T!=="delay"&&(w.current=T),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[R,N,k,T,m]),De(()=>{x&&b==null&&m.set("payload",void 0)},[m,b,x]);let M=he.useCallback(()=>{m.setOpen(!1,q(O.imperativeAction))},[m]);he.useImperativeHandle(d,()=>({unmount:S,close:M}),[S,M]);let H=x||P||!o&&c!=="none";return(0,Cr.jsxs)(Xr.Provider,{value:m,children:[H&&(0,Cr.jsx)(Pi,{store:m,disabled:o,trackCursorAxis:c}),typeof v=="function"?v({payload:y}):v]})},"TooltipRoot"));function Pi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Jt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),a=Kn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),c=he.useMemo(()=>Se(a.reference,n.reference),[a.reference,n.reference]),d=he.useMemo(()=>Se(a.trigger,n.trigger),[a.trigger,n.trigger]),p=he.useMemo(()=>Se(Ie,a.floating,n.floating),[a.floating,n.floating]);return no(t,{activeTriggerProps:c,inactiveTriggerProps:d,popupProps:p}),null}i(Pi,"TooltipInteractions");var Sr=C(E(),1);var Rr=C(E(),1);var en=Rr.createContext(void 0);function pa(){return Rr.useContext(en)}i(pa,"useTooltipProviderContext");var ua=(function(t){return t[t.popupOpen=Jn.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});var fa="data-base-ui-tooltip-trigger";function ma(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(zo(n))return n}}let e=t.target;return zo(e)?e:null}i(ma,"getTargetElement");function Ci(t){let e=t;for(;e;){if(e.hasAttribute(fa))return e;let o=e.parentElement;if(o){e=o;continue}let r=e.getRootNode();e="host"in r&&zo(r.host)?r.host:null}return null}i(Ci,"closestEnabledTooltipTrigger");var ga=qn(i(function(e,o){let{render:r,className:n,style:a,handle:c,payload:d,disabled:p,delay:l,closeOnClick:u=!0,closeDelay:h,id:f,...v}=e,m=ue(!0),g=c?.store??m;if(!g)throw new Error(W(82));let x=le(f),b=g.useState("isTriggerActive",x),P=g.useState("isOpenedByTrigger",x),y=g.useState("floatingRootContext"),S=Sr.useRef(null),R=l??600,N=h??0,{registerTrigger:T,isMountedByThisTrigger:k}=to(x,S,g,{payload:d,closeOnClick:u,closeDelay:N}),w=pa(),{delayRef:M,isInstantPhase:H,hasProvider:G}=Ln(y,{open:P}),V=Yn(y);g.useSyncedValue("isInstantPhase",H);let K=g.useState("disabled"),U=p??K,$=Bn(U),Y=g.useState("trackCursorAxis"),A=g.useState("disableHoverablePopup"),I=Sr.useRef(!1),Z=In(),ie=Sr.useRef(void 0);function ce(){let j=w?.delay,J=typeof M.current=="object"?M.current.open:void 0,te=R;return G&&(J!==0?te=l??j??R:te=0),te}i(ce,"getOpenDelay");function de(j){let J=S.current;if(!J||!j)return!1;let te=Ci(j);return te!==null&&te!==J&&bo(J,te)}i(de,"isEnabledNestedTriggerTarget");function ee(j){let J=de(j);return I.current=J,J&&(V.openChangeTimeout.clear(),V.restTimeout.clear(),V.restTimeoutPending=!1,Z.clear()),J}i(ee,"detectNestedTriggerHover");let ne=Xo(y,{enabled:!U,mouseOnly:!0,move:!1,handleClose:!A&&Y!=="both"?er():null,restMs:ce,delay(){let j=typeof M.current=="object"?M.current.close:void 0,J=N;return h==null&&G&&(J=j),{close:J}},triggerElementRef:S,isActiveTrigger:b,isClosing:i(()=>g.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!I.current}}),me=Qn(y,{enabled:!U}).reference,Oe=i(j=>{let J=I.current,te=ma(j),xe=ee(te),fe=S.current,Me=fe&&te&&bo(fe,te);if(xe&&g.select("open")&&g.select("lastOpenChangeReason")===O.triggerHover){g.setOpen(!1,q(O.triggerHover,j));return}if(J&&!xe&&Me&&!$.current&&!g.select("open")&&fe&&Mn(ie.current)){let be=i(()=>{!I.current&&!$.current&&!g.select("open")&&g.setOpen(!0,q(O.triggerHover,j,fe))},"open"),ye=ce();ye===0?(Z.clear(),be()):Z.start(ye,be)}},"handleNestedTriggerHover"),ke=g.useState("triggerProps",k);return _("button",e,{state:{open:P},ref:[o,T,S],props:[ne,me,k||Y!=="none"?ke:void 0,{onMouseOver(j){Oe(j.nativeEvent)},onFocus(j){de(ma(j.nativeEvent))&&j.preventBaseUIHandler()},onMouseLeave(){I.current=!1,Z.clear(),ie.current=void 0},onPointerEnter(j){ie.current=j.pointerType},onPointerDown(j){ie.current=j.pointerType,g.set("closeOnClick",u),u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},onClick(j){u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},id:x,[ua.triggerDisabled]:U?"":void 0,[fa]:U?void 0:""},v],stateAttributesMapping:co})},"TooltipTrigger"));var ya=C(E(),1);var Nr=C(E(),1);var tn=Nr.createContext(void 0);function ha(){let t=Nr.useContext(tn);if(t===void 0)throw new Error(W(70));return t}i(ha,"useTooltipPortalContext");var Tr=C(E(),1),va=C(mn(),1);var xa=C(oe(),1);var ba=Tr.forwardRef(i(function(e,o){let{children:r,container:n,className:a,render:c,style:d,...p}=e,{portalNode:l,portalSubtree:u}=Hn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!l?null:(0,xa.jsxs)(Tr.Fragment,{children:[u,l&&va.createPortal(r,l)]})},"FloatingPortalLite"));var on=C(oe(),1);var Pa=ya.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e;return ue().useState("mounted")||r?(0,on.jsx)(tn.Provider,{value:r,children:(0,on.jsx)(ba,{ref:o,...n})}):null},"TooltipPortal"));var wr=C(E(),1);var Er=C(E(),1);var rn=Er.createContext(void 0);function vo(){let t=Er.useContext(rn);if(t===void 0)throw new Error(W(71));return t}i(vo,"useTooltipPositionerContext");var Ca=C(oe(),1);var Ra=wr.forwardRef(i(function(e,o){let{render:r,className:n,anchor:a,positionMethod:c="absolute",side:d="top",align:p="center",sideOffset:l=0,alignOffset:u=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:v=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:x=Ko,style:b,...P}=e,y=ue(),S=ha(),R=y.useState("open"),N=y.useState("mounted"),T=y.useState("trackCursorAxis"),k=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),M=y.useState("instantType"),H=y.useState("transitionStatus"),G=y.useState("hasViewport"),V=nr({anchor:a,positionMethod:c,floatingRootContext:w,mounted:N,side:d,sideOffset:l,align:p,alignOffset:u,collisionBoundary:h,collisionPadding:f,sticky:m,arrowPadding:v,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:x,adaptiveOrigin:G?rr:void 0}),K=wr.useMemo(()=>({open:R,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:T!=="none"?"tracking-cursor":M}),[R,V.side,V.align,V.anchorHidden,T,M]),U=ir(e,K,{styles:V.positionerStyles,transitionStatus:H,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!N,inert:!R||T==="both"||k});return(0,Ca.jsx)(rn.Provider,{value:V,children:U})},"TooltipPositioner"));var Sa=C(E(),1);var Ri={...se,...pe},Na=Sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{side:p,align:l}=vo(),u=d.useState("open"),h=d.useState("instantType"),f=d.useState("transitionStatus"),v=d.useState("popupProps"),m=d.useState("floatingRootContext"),g=d.useState("disabled"),x=d.useState("closeDelay");Yt({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Jo(m,{enabled:!g,closeDelay:x});let b=d.useStateSetter("popupElement");return _("div",e,{state:{open:u,side:p,align:l,instant:h,transitionStatus:f},ref:[o,d.context.popupRef,b],props:[v,ar(f),c],stateAttributesMapping:Ri})},"TooltipPopup"));var Ta=C(E(),1);var Ea=Ta.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{arrowRef:p,side:l,align:u,arrowUncentered:h,arrowStyles:f}=vo(),v=d.useState("open"),m=d.useState("instantType");return _("div",e,{state:{open:v,side:l,align:u,uncentered:h,instant:m},ref:[o,p],props:[{style:f,"aria-hidden":!0},c],stateAttributesMapping:se})},"TooltipArrow"));var nn=C(E(),1);var sn=C(oe(),1);var wa=i(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,a=nn.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),c=nn.useMemo(()=>({open:o,close:r}),[o,r]);return(0,sn.jsx)(en.Provider,{value:a,children:(0,sn.jsx)(Vn,{delay:c,timeoutMs:n,children:e.children})})},"TooltipProvider");var ka=C(E(),1);var Oa=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Si={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Ma=ka.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=ue(),l=vo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l.side,cssVars:Oa,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:Si})},"TooltipViewport"));var To=class{static{i(this,"TooltipHandle")}constructor(){this.store=new ho}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!o)throw new Error(W(81,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Da(){return new To}i(Da,"createTooltipHandle");var Ia=C(Fr(),1);var _a=C(oe(),1);var Ni=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?Rn:Cn(e,o),"p"),Aa=i(t=>{let e=(0,Ia.c)(7),{catalogs:o,children:r,i18n:n,locale:a}=t,c;e[0]!==o||e[1]!==n||e[2]!==a?(c=Ni(n,a,o),e[0]=o,e[1]=n,e[2]=a,e[3]=c):c=e[3];let d=c,p;return e[4]!==r||e[5]!==d?(p=(0,_a.jsx)(Sn,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var ln=C(Fr(),1);var He=C(E(),1);var X=C(oe(),1);var an="lunora:command-palette",Va=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(an))},"ne"),Ti=i(t=>{let e=(0,ln.c)(18),{active:o,index:r,item:n,onActivate:a,onSelect:c}=t,d;e[0]!==n||e[1]!==c?(d=i(()=>{c(n)},"c"),e[0]=n,e[1]=c,e[2]=d):d=e[2];let p=d,l;e[3]!==r||e[4]!==a?(l=i(()=>{a(r)},"i"),e[3]=r,e[4]=a,e[5]=l):l=e[5];let u=l,h=o?"bg-accent text-accent-foreground":"text-foreground",f;e[6]!==h?(f=z("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",h),e[6]=h,e[7]=f):f=e[7];let v;e[8]!==n.label?(v=(0,X.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=v):v=e[9];let m;e[10]!==n.group?(m=(0,X.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let g;return e[12]!==p||e[13]!==u||e[14]!==f||e[15]!==v||e[16]!==m?(g=(0,X.jsx)("li",{children:(0,X.jsxs)("button",{className:f,onClick:p,onMouseEnter:u,type:"button",children:[v,m]})}),e[12]=p,e[13]=u,e[14]=f,e[15]=v,e[16]=m,e[17]=g):g=e[17],g},"G"),La=i(t=>{let e=(0,ln.c)(39),{items:o}=t,r=Re(),n=xo(),[a,c]=(0,He.useState)(!1),[d,p]=(0,He.useState)(""),[l,u]=(0,He.useState)(0),h=(0,He.useRef)(null),f,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=i(()=>{let A=i(Z=>{(Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="k"&&(Z.preventDefault(),c(!0))},"t"),I=i(()=>{c(!0)},"a");return globalThis.addEventListener("keydown",A),globalThis.addEventListener(an,I),()=>{globalThis.removeEventListener("keydown",A),globalThis.removeEventListener(an,I)}},"d"),v=[],e[0]=f,e[1]=v):(f=e[0],v=e[1]),(0,He.useEffect)(f,v);let m;if(e[2]!==o||e[3]!==d){e:{let A=d.trim().toLowerCase();if(A===""){m=o;break e}m=o.filter(I=>I.label.toLowerCase().includes(A)||I.group.toLowerCase().includes(A))}e[2]=o,e[3]=d,e[4]=m}else m=e[4];let g=m,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=i(A=>{c(A),A||(p(""),u(0))},"S"),e[5]=x):x=e[5];let b=x,P;e[6]!==n?(P=i(A=>{b(!1),po(n({to:A.to}))},"T"),e[6]=n,e[7]=P):P=e[7];let y=P,S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i(A=>{p(A.target.value),u(0)},"D"),e[8]=S):S=e[8];let R=S,N;e[9]!==l||e[10]!==g||e[11]!==y?(N=i(A=>{e:switch(A.key){case"ArrowDown":{A.preventDefault(),u(I=>g.length===0?0:(I+1)%g.length);break e}case"ArrowUp":{A.preventDefault(),u(I=>g.length===0?0:(I-1+g.length)%g.length);break e}case"Enter":{A.preventDefault();let I=g[l];I!==void 0&&y(I);break e}}},"A"),e[9]=l,e[10]=g,e[11]=y,e[12]=N):N=e[12];let T=N,k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=(0,X.jsx)(ae.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[13]=k):k=e[13];let w;e[14]!==r?(w=r("Command palette"),e[14]=r,e[15]=w):w=e[15];let M;e[16]!==w?(M=(0,X.jsx)(ae.Title,{className:"sr-only",children:w}),e[16]=w,e[17]=M):M=e[17];let H;e[18]===Symbol.for("react.memo_cache_sentinel")?(H=(0,X.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,X.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,X.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[18]=H):H=e[18];let G;e[19]!==r?(G=r("Search\u2026"),e[19]=r,e[20]=G):G=e[20];let V;e[21]!==T||e[22]!==d||e[23]!==G?(V=(0,X.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[H,(0,X.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:R,onKeyDown:T,placeholder:G,ref:h,type:"text",value:d})]}),e[21]=T,e[22]=d,e[23]=G,e[24]=V):V=e[24];let K;e[25]!==l||e[26]!==g||e[27]!==y||e[28]!==r?(K=g.length===0?(0,X.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):g.map((A,I)=>(0,X.jsx)(Ti,{active:I===l,index:I,item:A,onActivate:u,onSelect:y},A.to)),e[25]=l,e[26]=g,e[27]=y,e[28]=r,e[29]=K):K=e[29];let U;e[30]!==K?(U=(0,X.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:K}),e[30]=K,e[31]=U):U=e[31];let $;e[32]!==M||e[33]!==V||e[34]!==U?($=(0,X.jsxs)(ae.Portal,{children:[k,(0,X.jsxs)(ae.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[M,V,U]})]}),e[32]=M,e[33]=V,e[34]=U,e[35]=$):$=e[35];let Y;return e[36]!==a||e[37]!==$?(Y=(0,X.jsx)(ae.Root,{onOpenChange:b,open:a,children:$}),e[36]=a,e[37]=$,e[38]=Y):Y=e[38],Y},"re");var Ua="(prefers-color-scheme: dark)",Ka=i(()=>{try{return globalThis.localStorage}catch{return}},"ma"),Ei=i(t=>t==="system"||t==="light"||t==="dark","Ja"),Za=i(()=>globalThis.matchMedia,"pa"),Wa="lunora-studio-theme",cn=["system","light","dark"],wi=i((t="system")=>{try{let e=Ka()?.getItem(Wa);return Ei(e)?e:t}catch{return t}},"Xa"),Ba=i(t=>{let e=Ka();if(e!==void 0)try{e.setItem(Wa,t)}catch{}},"Yt"),Oi=i(()=>{try{return Za()?.(Ua).matches?"dark":"light"}catch{return"light"}},"Ya"),ki=i((t,e)=>t==="system"?e:t,"es"),Mi=i(t=>{let e;try{e=Za()?.(Ua)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"ts"),un=(0,F.createContext)(null),Di=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,F.useState)(()=>wi(e)),[n,a]=(0,F.useState)(()=>Oi());(0,F.useEffect)(()=>Mi(a),[]);let c=i(p=>{Ba(p),r(p)},"o"),d={cycleTheme:i(()=>{r(p=>{let l=cn[(cn.indexOf(p)+1)%cn.length]??p;return Ba(l),l})},"cycleTheme"),resolvedTheme:ki(o,n),setTheme:c,systemTheme:n,theme:o};return(0,s.jsx)(un,{value:d,children:t})},"as"),Ii=i(t=>{let e=(0,D.c)(3),{children:o}=t,r=(0,F.use)(un),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,s.jsx)(Di,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"ss"),_i=i(()=>{let t=(0,F.use)(un);if(t===null)throw new Hr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"rs");function Qg({delay:t=0,...e}){return(0,s.jsx)(ve.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Qg,"Nn");function Ai(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ai,"ns");function Vi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Vi,"is");function Li({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:a,...c}){return(0,s.jsx)(ve.Portal,{children:(0,s.jsx)(ve.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,s.jsxs)(ve.Popup,{"data-slot":"tooltip-content",className:z("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...c,children:[a,(0,s.jsx)(ve.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(Li,"os");var Bi=i(t=>{let e=(0,D.c)(5),{className:o}=t,r;e[0]!==o?(r=z("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let a;return e[3]!==r?(a=(0,s.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=a):a=e[4],a},"ls"),qa="lunora.studio.rulesBannerDismissed",Hi=i(()=>{try{return globalThis.localStorage.getItem(qa)==="1"}catch{return!1}},"ds"),Fi=i(()=>{try{globalThis.localStorage.setItem(qa,"1")}catch{}},"cs"),ji=i(()=>{let t=(0,D.c)(18),e=Re(),[o,r]=(0,F.useState)(zi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>{r(!0),Fi()},"n"),t[0]=n):n=t[0];let a=n;if(o)return null;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=c):c=t[1];let d;t[2]!==e?(d=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let l;t[5]!==e?(l=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=l):l=t[6];let u;t[7]!==d||t[8]!==l?(u=(0,s.jsxs)("span",{children:[d," ",p," ",l]}),t[7]=d,t[8]=l,t[9]=u):u=t[9];let h;t[10]!==e?(h=e("Dismiss"),t[10]=e,t[11]=h):h=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=f):f=t[12];let v;t[13]!==h?(v=(0,s.jsx)("button",{"aria-label":h,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:a,type:"button",children:f}),t[13]=h,t[14]=v):v=t[14];let m;return t[15]!==u||t[16]!==v?(m=(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[c,u,v]}),t[15]=u,t[16]=v,t[17]=m):m=t[17],m},"us");function zi(){return Hi()}i(zi,"hs");var Ui=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,s.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"ms"),Ki=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,s.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"ps"),Zi=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"gs"),Wi=[{Icon:Ui,value:"system"},{Icon:Ki,value:"light"},{Icon:Zi,value:"dark"}],qi=i(()=>{let t=(0,D.c)(19),{theme:e,setTheme:o}=_i(),r=Re(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let a;t[2]!==r?(a=r("Light theme"),t[2]=r,t[3]=a):a=t[3];let c;t[4]!==r?(c=r("System theme"),t[4]=r,t[5]=c):c=t[5];let d;t[6]!==n||t[7]!==a||t[8]!==c?(d={dark:n,light:a,system:c},t[6]=n,t[7]=a,t[8]=c,t[9]=d):d=t[9];let p=d,l;t[10]!==r?(l=r("Theme"),t[10]=r,t[11]=l):l=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Wi.map(f=>{let{Icon:v,value:m}=f,g=e===m;return(0,s.jsxs)("button",{"aria-checked":g,"aria-label":p[m],className:z("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",g?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[g&&(0,s.jsx)(Nn.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,s.jsx)("span",{className:"relative",children:(0,s.jsx)(v,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let h;return t[16]!==l||t[17]!==u?(h=(0,s.jsx)("div",{"aria-label":l,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=l,t[17]=u,t[18]=h):h=t[18],h},"bs");function Ga(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ga,"ba");function $a(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i($a,"va");function Qa({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:a=6,...c}){return(0,s.jsx)(Be.Portal,{keepMounted:r,children:(0,s.jsx)(Be.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:a,children:(0,s.jsx)(Be.Popup,{className:z("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...c})})})}i(Qa,"ya");var dn=768;function Gi(){let t=(0,D.c)(2),[e,o]=(0,F.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let a=globalThis.matchMedia(`(max-width: ${dn-1}px)`),c=i(()=>{o(globalThis.innerWidth<dn)},"o");return a.addEventListener("change",c),o(globalThis.innerWidth<dn),()=>{a.removeEventListener("change",c)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,F.useEffect)(r,n),!!e}i(Gi,"vs");function $i(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i($i,"ys");function Qi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Qi,"xs");function Yi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Yi,"ws");function Ji({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,s.jsxs)(Qi,{children:[(0,s.jsx)(Yi,{}),(0,s.jsxs)(ae.Popup,{"data-slot":"sheet-content","data-side":o,className:z("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,s.jsxs)(ae.Close,{"data-slot":"sheet-close",render:(0,s.jsx)(Kr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,s.jsx)(Ur,{icon:ns,strokeWidth:2}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(Ji,"ks");function Xi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Xi,"Ns");function el(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(el,"Ms");function tl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(tl,"Ss");var ol="sidebar_state",rl=3600*24*7,nl="16rem",sl="18rem",al="3rem",il="b",Ya=we.createContext(null);function Or(){let t=we.useContext(Ya);if(!t)throw new Hr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(Or,"Vt");function ll({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:a,...c}){let d=Gi(),[p,l]=we.useState(!1),[u,h]=we.useState(t),f=e??u,v=i(x=>{let b=typeof x=="function"?x(f):x;o?o(b):h(b),document.cookie=`${ol}=${b}; path=/; max-age=${rl}`},"b"),m=i(()=>d?l(x=>!x):v(x=>!x),"p");we.useEffect(()=>{let x=i(b=>{b.key===il&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),m())},"f");return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[m]);let g={state:f?"expanded":"collapsed",open:f,setOpen:v,isMobile:d,openMobile:p,setOpenMobile:l,toggleSidebar:m};return(0,s.jsx)(Ya.Provider,{value:g,children:(0,s.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nl,"--sidebar-width-icon":al,...n},className:z("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...c,children:a})})}i(ll,"zs");function cl({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:a,...c}){let{isMobile:d,state:p,openMobile:l,setOpenMobile:u}=Or();return o==="none"?(0,s.jsx)("div",{"data-slot":"sidebar",className:z("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...c,children:n}):d?(0,s.jsx)($i,{open:l,onOpenChange:u,...c,children:(0,s.jsxs)(Ji,{dir:a,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":sl},side:t,children:[(0,s.jsxs)(Xi,{className:"sr-only",children:[(0,s.jsx)(el,{children:"Sidebar"}),(0,s.jsx)(tl,{children:"Displays the mobile sidebar."})]}),(0,s.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,s.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,s.jsx)("div",{"data-slot":"sidebar-gap",className:z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,s.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...c,children:(0,s.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}i(cl,"$s");function dl(t){let e=(0,D.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:a}=Or(),c;e[4]!==o?(c=z(o),e[4]=o,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a?(d=i(h=>{r?.(h),a()},"d"),e[6]=r,e[7]=a,e[8]=d):d=e[8];let p,l;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Ur,{icon:ss,strokeWidth:2,className:"rtl:rotate-180"}),l=(0,s.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=l):(p=e[9],l=e[10]);let u;return e[11]!==n||e[12]!==c||e[13]!==d?(u=(0,s.jsxs)(Kr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:c,onClick:d,...n,children:[p,l]}),e[11]=n,e[12]=c,e[13]=d,e[14]=u):u=e[14],u}i(dl,"Rs");function pl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(pl,"Is");function ul(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ul,"Vs");function ml(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ml,"Zs");function fl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(fl,"Ks");function gl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(gl,"Es");function hl(t){let e=(0,D.c)(10),o,r,n,a;if(e[0]!==t){let{className:p,render:l,...u}=t;o=l,a=jr,r="div",n=Se({className:z("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=a}else o=e[1],r=e[2],n=e[3],a=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=c):c=e[5];let d;return e[6]!==o||e[7]!==r||e[8]!==n?(d={defaultTagName:r,props:n,render:o,state:c},e[6]=o,e[7]=r,e[8]=n,e[9]=d):d=e[9],a(d)}i(hl,"Hs");function vl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(vl,"Os");function Ha(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Ha,"ea");function Fa(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Fa,"ta");var xl=Tn("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ja({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:a,...c}){let{isMobile:d,state:p}=Or(),l=jr({defaultTagName:"button",props:Se({className:z(xl({variant:o,size:r}),a)},c),render:n?(0,s.jsx)(Vi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,s.jsxs)(Ai,{children:[l,(0,s.jsx)(Li,{side:"right",align:"center",hidden:p!=="collapsed"||d,...n})]})):l}i(Ja,"wa");var L=i((t,e)=>(0,F.lazy)(()=>t().then(o=>({default:o[e]}))),"w"),bl=L(()=>import("./chunk-QWJ3NPE3.js"),"InsightsPanel"),yl=(0,F.lazy)(()=>import("./chunk-ZNNAGR6N.js")),Pl=(0,F.lazy)(()=>import("./chunk-XEDU5FO4.js")),Cl=L(()=>import("./chunk-GSPTEMYN.js"),"AgentsPanel"),Rl=L(()=>import("./chunk-BEH5N5ZA.js"),"AnalyticsPanel"),Sl=(0,F.lazy)(()=>import("./chunk-5OWIOACV.js")),Nl=L(()=>import("./chunk-HP2UCWND.js"),"AuthAuditPanel"),Tl=L(()=>import("./chunk-7J5N6DGQ.js"),"AuthConfigPanel"),El=L(()=>import("./chunk-FGTK44LR.js"),"AuthSessionsPanel"),wl=L(()=>import("./chunk-B43FTQJ7.js"),"OrganizationsPanel"),Ol=L(()=>import("./chunk-YI3WYUXK.js"),"UsersPanel"),kl=L(()=>import("./chunk-OHKRN65U.js"),"ContainersPanel"),Ml=L(()=>import("./chunk-IDNNI63H.js"),"DeploymentHealthPanel"),Dl=L(()=>import("./chunk-T2JIUFOD.js"),"TableEditor"),Il=L(()=>import("./chunk-BNUJ7QMG.js"),"ExportImportPanel"),_l=L(()=>import("./chunk-4WLYA3XE.js"),"MigrationsPanel"),Al=L(()=>import("./chunk-L7N7F3DA.js"),"PitrPanel"),Vl=L(()=>import("./chunk-TLHJRWNK.js"),"FlagsPanel"),Ll=L(()=>import("./chunk-2F7G7IWQ.js"),"FunctionRunner"),Bl=L(()=>import("./chunk-5U2THBI7.js"),"FunctionStatsPanel"),Hl=L(()=>import("./chunk-PWWHP76O.js"),"IssuesPanel"),Fl=L(()=>import("./chunk-XQBTNJUQ.js"),"AuditPanel"),jl=L(()=>import("./chunk-2Y36BVVM.js"),"LogDrainsPanel"),zl=(0,F.lazy)(()=>import("./chunk-C43X4M5U.js").then(t=>({default:t.LogsPanel}))),Ul=L(()=>import("./chunk-EXFBIISG.js"),"MailPanel"),Kl=L(()=>import("./chunk-DVOBKIUX.js"),"SchedulePanel"),Zl=(0,F.lazy)(()=>import("./chunk-RAA2RGG6.js")),Wl=(0,F.lazy)(()=>import("./chunk-F5QWLENA.js")),ql=L(()=>import("./chunk-TJ2WZ5OP.js"),"KvBrowser"),Gl=L(()=>import("./chunk-KDOC2DP5.js"),"NotificationsPanel"),$l=L(()=>import("./chunk-34UVAASH.js"),"PaymentsPanel"),Ql=L(()=>import("./chunk-QVEHPYA5.js"),"PermissionsPanel"),Yl=(0,F.lazy)(()=>import("./chunk-65OTWFS3.js")),Jl=(0,F.lazy)(()=>import("./chunk-EVN46TVV.js")),Xl=(0,F.lazy)(()=>import("./chunk-YD5NF6UT.js")),ec=L(()=>import("./chunk-EKRN4ZQM.js"),"HealthPanel"),tc=L(()=>import("./chunk-6DWCIIHE.js"),"MetricsPanel"),oc=L(()=>import("./chunk-UIS34ZPB.js"),"SchemaViewer"),rc=L(()=>import("./chunk-QGKAJTQQ.js"),"SettingsPanel"),nc=L(()=>import("./chunk-VPAXCQ2Y.js"),"SqlEditorPanel"),sc=L(()=>import("./chunk-P24JBHEZ.js"),"FileBrowser"),ac=L(()=>import("./chunk-SA3MDZC3.js"),"StorageRulesPanel"),ic=L(()=>import("./chunk-3FUFEZ65.js"),"TracesPanel"),lc=L(()=>import("./chunk-LJDP7NRB.js"),"VectorBrowser"),cc=(0,F.lazy)(()=>import("./chunk-D7XXWV4E.js")),Xa=(0,F.createContext)(null),dc={analytics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,s.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,s.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,s.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,s.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,s.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,s.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,s.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,s.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,s.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,s.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),health:(0,s.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,s.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,s.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,s.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,s.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,s.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,s.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,s.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,s.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,s.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,s.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),realtime:(0,s.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,s.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),security:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,s.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,s.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,s.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,s.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},ja=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","audit","realtime","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],pc={analytics:"analytics",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},za=i((t,e)=>{let o=pc[t];return o===void 0||e[o]},"sa"),pn=i(t=>{let e=(0,D.c)(2),{tab:o}=t,r=dc[o],n;return e[0]!==r?(n=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"Gt"),uc=i(t=>t,"Vr"),ei=uc(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","security","rls","permissions","insights","issues","logs","traces","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),mc=new Set(["api","data","sql"]),fc=i(t=>{let e=t.split("/").findLast(Boolean)??"";return ei.includes(e)?e:"home"},"Kr"),gc=i(t=>{let e=(0,D.c)(19),{chrome:o,connected:r}=t,n=Re(),a;e[0]!==n?(a=n("admin token"),e[0]=n,e[1]=a):a=e[1];let c;e[2]!==a?(c=(0,s.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:a}),e[2]=a,e[3]=c):c=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,s.jsx)(An,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,s.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let l;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(l=r&&(0,s.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=l):l=e[13];let u;return e[14]!==c||e[15]!==d||e[16]!==p||e[17]!==l?(u=(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[c,d,p,l]}),e[14]=c,e[15]=d,e[16]=p,e[17]=l,e[18]=u):u=e[18],u},"Er"),hc=i(t=>{let e=(0,D.c)(25),{current:o,group:r,groupLabel:n,selectTab:a,tabDescription:c,tabLabel:d}=t,p=r.tabs.includes(o)?"page":void 0,l=n[r.key],u=r.tabs[0],h;e[0]!==u?(h=(0,s.jsx)(pn,{tab:u}),e[0]=u,e[1]=h):h=e[1];let f;e[2]!==p||e[3]!==l||e[4]!==h?(f=(0,s.jsx)($a,{"aria-current":p,"aria-label":l,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=p,e[3]=l,e[4]=h,e[5]=f):f=e[5];let v=n[r.key],m;e[6]!==v?(m=(0,s.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:v}),e[6]=v,e[7]=m):m=e[7];let g;if(e[8]!==o||e[9]!==r.tabs||e[10]!==a||e[11]!==c||e[12]!==d){let P;e[14]!==o||e[15]!==a||e[16]!==c||e[17]!==d?(P=i(y=>(0,s.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:a,title:c[y],type:"button",children:[(0,s.jsx)(pn,{tab:y}),(0,s.jsx)("span",{children:d[y]})]},y),"k"),e[14]=o,e[15]=a,e[16]=c,e[17]=d,e[18]=P):P=e[18],g=r.tabs.map(P),e[8]=o,e[9]=r.tabs,e[10]=a,e[11]=c,e[12]=d,e[13]=g}else g=e[13];let x;e[19]!==m||e[20]!==g?(x=(0,s.jsxs)(Qa,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,g]}),e[19]=m,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==f||e[23]!==x?(b=(0,s.jsxs)(Ga,{children:[f,x]}),e[22]=f,e[23]=x,e[24]=b):b=e[24],b},"Hr"),vc=i(t=>{let e=(0,D.c)(45),{chrome:o,collapsed:r,connected:n}=t,a=Re();if(o===null){let y;e[0]!==a?(y=a("Admin"),e[0]=a,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let R;e[3]!==a?(R=a("Admin"),e[3]=a,e[4]=R):R=e[4];let N;e[5]!==R?(N=(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:R}),e[5]=R,e[6]=N):N=e[6];let T;e[7]!==a?(T=a("Studio"),e[7]=a,e[8]=T):T=e[8];let k;e[9]!==T?(k=(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:T}),e[9]=T,e[10]=k):k=e[10];let w;e[11]!==N||e[12]!==k?(w=(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[N,k]}),e[11]=N,e[12]=k,e[13]=w):w=e[13];let M;return e[14]!==y||e[15]!==w?(M=(0,s.jsxs)(Ja,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,w]}),e[14]=y,e[15]=w,e[16]=M):M=e[16],M}let c=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==c?(d=z("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",c),e[17]=c,e[18]=d):d=e[18];let p;e[19]!==n||e[20]!==a?(p=a(n?"Connected":"Not connected"),e[19]=n,e[20]=a,e[21]=p):p=e[21];let l=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==l?(u=z("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",l),e[22]=l,e[23]=u):u=e[23];let h;e[24]!==u?(h=(0,s.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,s.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=h):h=e[25];let f;e[26]!==r||e[27]!==n||e[28]!==a?(f=!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:a("Admin")}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:a(n?"Connected":"Not connected")})]}),(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=a,e[29]=f):f=e[29];let v;e[30]!==d||e[31]!==p||e[32]!==h||e[33]!==f?(v=(0,s.jsxs)($a,{className:d,"data-testid":"dash-app-connect",title:p,children:[h,f]}),e[30]=d,e[31]=p,e[32]=h,e[33]=f,e[34]=v):v=e[34];let m=r?"end":"start",g=r?"right":"top",x;e[35]!==o||e[36]!==n?(x=(0,s.jsx)(gc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=x):x=e[37];let b;e[38]!==g||e[39]!==x||e[40]!==m?(b=(0,s.jsx)(Qa,{align:m,keepMounted:!0,side:g,children:x}),e[38]=g,e[39]=x,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==v?(P=(0,s.jsxs)(Ga,{children:[v,b]}),e[42]=b,e[43]=v,e[44]=P):P=e[44],P},"Or"),xc=i(t=>{let e=(0,D.c)(28),{chrome:o,connected:r,current:n,groupLabel:a,groups:c,selectTab:d,tabDescription:p,tabLabel:l}=t,u=Re(),{state:h}=Or(),f=h==="collapsed",v=f&&"justify-center px-0",m;e[0]!==v?(m=z("flex items-center gap-2.5 px-1.5 py-1",v),e[0]=v,e[1]=m):m=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(Bi,{className:"size-9 shrink-0 text-foreground"}),e[2]=g):g=e[2];let x;e[3]!==f||e[4]!==r||e[5]!==u?(x=!f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,s.jsx)(En,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=f,e[4]=r,e[5]=u,e[6]=x):x=e[6];let b;e[7]!==m||e[8]!==x?(b=(0,s.jsx)(ul,{children:(0,s.jsxs)("div",{className:m,children:[g,x]})}),e[7]=m,e[8]=x,e[9]=b):b=e[9];let P;e[10]!==f||e[11]!==n||e[12]!==a||e[13]!==c||e[14]!==d||e[15]!==p||e[16]!==l?(P=f?c.map(N=>(0,s.jsx)(hc,{current:n,group:N,groupLabel:a,selectTab:d,tabDescription:p,tabLabel:l},N.key)):c.map(N=>(0,s.jsxs)(gl,{children:[(0,s.jsx)(hl,{className:"text-[11px] font-medium tracking-wider uppercase",children:a[N.key]}),(0,s.jsx)(vl,{children:(0,s.jsx)(Ha,{children:N.tabs.map(T=>(0,s.jsx)(Fa,{children:(0,s.jsxs)(Ja,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":T,"data-testid":`dash-tab-${T}`,isActive:n===T,onClick:d,title:p[T],tooltip:p[T],children:[(0,s.jsx)(pn,{tab:T}),(0,s.jsx)("span",{children:l[T]})]})},T))})})]},N.key)),e[10]=f,e[11]=n,e[12]=a,e[13]=c,e[14]=d,e[15]=p,e[16]=l,e[17]=P):P=e[17];let y;e[18]!==P?(y=(0,s.jsx)(fl,{children:P}),e[18]=P,e[19]=y):y=e[19];let S;e[20]!==o||e[21]!==f||e[22]!==r?(S=(0,s.jsx)(ml,{children:(0,s.jsx)(Ha,{children:(0,s.jsx)(Fa,{children:(0,s.jsx)(vc,{chrome:o,collapsed:f,connected:r})})})}),e[20]=o,e[21]=f,e[22]=r,e[23]=S):S=e[23];let R;return e[24]!==b||e[25]!==y||e[26]!==S?(R=(0,s.jsxs)(cl,{collapsible:"icon",variant:"inset",children:[b,y,S]}),e[24]=b,e[25]=y,e[26]=S,e[27]=R):R=e[27],R},"Br"),ti=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(dr,{className:"h-8 w-40"}),(0,s.jsx)(dr,{className:"h-8 w-24"})]}),(0,s.jsx)(dr,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Ma"),bc=i(()=>{let t=(0,D.c)(330),e=Re(),o=xo(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Sc},t[0]=r):r=t[0];let n=Pn(r),a,c;t[1]!==n?(a=fc(n),c=mc.has(a),t[1]=n,t[2]=a,t[3]=c):(a=t[2],c=t[3]);let d=c,p=as(),l;t[4]!==p?(l=i(Ce=>({...Ce,tabs:Ce.tabs.filter(Fo=>za(Fo,p))}),"c"),t[4]=p,t[5]=l):l=t[5];let u=ja.map(l).filter(Nc),h,f;t[6]!==a||t[7]!==p||t[8]!==o?(h=i(()=>{za(a,p)||po(o({replace:!0,to:"/home"}))},"g"),f=[a,p,o],t[6]=a,t[7]=p,t[8]=o,t[9]=h,t[10]=f):(h=t[9],f=t[10]),(0,F.useEffect)(h,f);let v;t[11]!==e?(v=e("Agents"),t[11]=e,t[12]=v):v=t[12];let m;t[13]!==e?(m=e("Analytics"),t[13]=e,t[14]=m):m=t[14];let g;t[15]!==e?(g=e("API"),t[15]=e,t[16]=g):g=t[16];let x;t[17]!==e?(x=e("Audit"),t[17]=e,t[18]=x):x=t[18];let b;t[19]!==e?(b=e("Auth audit"),t[19]=e,t[20]=b):b=t[20];let P;t[21]!==e?(P=e("Configuration"),t[21]=e,t[22]=P):P=t[22];let y;t[23]!==e?(y=e("Sessions"),t[23]=e,t[24]=y):y=t[24];let S;t[25]!==e?(S=e("Containers"),t[25]=e,t[26]=S):S=t[26];let R;t[27]!==e?(R=e("Dashboards"),t[27]=e,t[28]=R):R=t[28];let N;t[29]!==e?(N=e("Data"),t[29]=e,t[30]=N):N=t[30];let T;t[31]!==e?(T=e("Deployment health"),t[31]=e,t[32]=T):T=t[32];let k;t[33]!==e?(k=e("Log drains"),t[33]=e,t[34]=k):k=t[34];let w;t[35]!==e?(w=e("Export / Import"),t[35]=e,t[36]=w):w=t[36];let M;t[37]!==e?(M=e("Fan-out"),t[37]=e,t[38]=M):M=t[38];let H;t[39]!==e?(H=e("Files"),t[39]=e,t[40]=H):H=t[40];let G;t[41]!==e?(G=e("Flags"),t[41]=e,t[42]=G):G=t[42];let V;t[43]!==e?(V=e("Functions"),t[43]=e,t[44]=V):V=t[44];let K;t[45]!==e?(K=e("Health"),t[45]=e,t[46]=K):K=t[46];let U;t[47]!==e?(U=e("Home"),t[47]=e,t[48]=U):U=t[48];let $;t[49]!==e?($=e("Performance"),t[49]=e,t[50]=$):$=t[50];let Y;t[51]!==e?(Y=e("Issues"),t[51]=e,t[52]=Y):Y=t[52];let A;t[53]!==e?(A=e("KV"),t[53]=e,t[54]=A):A=t[54];let I;t[55]!==e?(I=e("Logs"),t[55]=e,t[56]=I):I=t[56];let Z;t[57]!==e?(Z=e("Metrics"),t[57]=e,t[58]=Z):Z=t[58];let ie;t[59]!==e?(ie=e("Migrations"),t[59]=e,t[60]=ie):ie=t[60];let ce;t[61]!==e?(ce=e("Notifications"),t[61]=e,t[62]=ce):ce=t[62];let de;t[63]!==e?(de=e("Organizations"),t[63]=e,t[64]=de):de=t[64];let ee;t[65]!==e?(ee=e("Time Travel"),t[65]=e,t[66]=ee):ee=t[66];let ne;t[67]!==e?(ne=e("Mail"),t[67]=e,t[68]=ne):ne=t[68];let me;t[69]!==e?(me=e("Payments"),t[69]=e,t[70]=me):me=t[70];let Oe;t[71]!==e?(Oe=e("Permissions"),t[71]=e,t[72]=Oe):Oe=t[72];let ke;t[73]!==e?(ke=e("Queues"),t[73]=e,t[74]=ke):ke=t[74];let Fe;t[75]!==e?(Fe=e("Realtime"),t[75]=e,t[76]=Fe):Fe=t[76];let je;t[77]!==e?(je=e("RLS Policies"),t[77]=e,t[78]=je):je=t[78];let ze;t[79]!==e?(ze=e("Scheduled"),t[79]=e,t[80]=ze):ze=t[80];let j;t[81]!==e?(j=e("Schema"),t[81]=e,t[82]=j):j=t[82];let J;t[83]!==e?(J=e("Security"),t[83]=e,t[84]=J):J=t[84];let te;t[85]!==e?(te=e("Settings"),t[85]=e,t[86]=te):te=t[86];let xe;t[87]!==e?(xe=e("SQL editor"),t[87]=e,t[88]=xe):xe=t[88];let fe;t[89]!==e?(fe=e("Traces"),t[89]=e,t[90]=fe):fe=t[90];let Me;t[91]!==e?(Me=e("Access Rules"),t[91]=e,t[92]=Me):Me=t[92];let be;t[93]!==e?(be=e("Users"),t[93]=e,t[94]=be):be=t[94];let ye;t[95]!==e?(ye=e("Vectors"),t[95]=e,t[96]=ye):ye=t[96];let We;t[97]!==e?(We=e("Workflows"),t[97]=e,t[98]=We):We=t[98];let Eo;t[99]!==P||t[100]!==y||t[101]!==S||t[102]!==R||t[103]!==N||t[104]!==T||t[105]!==k||t[106]!==w||t[107]!==M||t[108]!==H||t[109]!==G||t[110]!==V||t[111]!==K||t[112]!==U||t[113]!==$||t[114]!==Y||t[115]!==A||t[116]!==I||t[117]!==Z||t[118]!==ie||t[119]!==ce||t[120]!==de||t[121]!==ee||t[122]!==ne||t[123]!==me||t[124]!==Oe||t[125]!==ke||t[126]!==Fe||t[127]!==je||t[128]!==ze||t[129]!==j||t[130]!==J||t[131]!==te||t[132]!==xe||t[133]!==fe||t[134]!==Me||t[135]!==be||t[136]!==ye||t[137]!==We||t[138]!==v||t[139]!==m||t[140]!==g||t[141]!==x||t[142]!==b?(Eo={agents:v,analytics:m,api:g,audit:x,authAudit:b,authConfig:P,authSessions:y,containers:S,dashboards:R,data:N,deploymentHealth:T,drains:k,export:w,fanout:M,files:H,flags:G,functions:V,health:K,home:U,insights:$,issues:Y,kv:A,logs:I,metrics:Z,migrations:ie,notifications:ce,organizations:de,pitr:ee,mail:ne,payments:me,permissions:Oe,queues:ke,realtime:Fe,rls:je,schedule:ze,schema:j,security:J,settings:te,sql:xe,traces:fe,storageRules:Me,users:be,vectors:ye,workflows:We},t[99]=P,t[100]=y,t[101]=S,t[102]=R,t[103]=N,t[104]=T,t[105]=k,t[106]=w,t[107]=M,t[108]=H,t[109]=G,t[110]=V,t[111]=K,t[112]=U,t[113]=$,t[114]=Y,t[115]=A,t[116]=I,t[117]=Z,t[118]=ie,t[119]=ce,t[120]=de,t[121]=ee,t[122]=ne,t[123]=me,t[124]=Oe,t[125]=ke,t[126]=Fe,t[127]=je,t[128]=ze,t[129]=j,t[130]=J,t[131]=te,t[132]=xe,t[133]=fe,t[134]=Me,t[135]=be,t[136]=ye,t[137]=We,t[138]=v,t[139]=m,t[140]=g,t[141]=x,t[142]=b,t[143]=Eo):Eo=t[143];let Pe=Eo,kr={advisors:e("Advisors"),auth:e("Auth"),database:e("Database"),functions:e("Functions"),observability:e("Observability"),operations:e("Operations"),overview:e("Overview"),settings:e("Settings"),storage:e("Storage")},qe;t[144]!==e?(qe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[144]=e,t[145]=qe):qe=t[145];let Ge;t[146]!==e?(Ge=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[146]=e,t[147]=Ge):Ge=t[147];let $e;t[148]!==e?($e=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[148]=e,t[149]=$e):$e=t[149];let Qe;t[150]!==e?(Qe=e("A durable log of admin state-changing operations."),t[150]=e,t[151]=Qe):Qe=t[151];let Ye;t[152]!==e?(Ye=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[152]=e,t[153]=Ye):Ye=t[153];let Je;t[154]!==e?(Je=e("Enabled plugins and session config (read-only)."),t[154]=e,t[155]=Je):Je=t[155];let Xe;t[156]!==e?(Xe=e("Browse and revoke active sessions across all users."),t[156]=e,t[157]=Xe):Xe=t[157];let et;t[158]!==e?(et=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[158]=e,t[159]=et):et=t[159];let tt;t[160]!==e?(tt=e("Chart widgets backed by saved read-only SQL queries."),t[160]=e,t[161]=tt):tt=t[161];let ot;t[162]!==e?(ot=e("Browse and edit rows across your shard and global tables."),t[162]=e,t[163]=ot):ot=t[163];let rt;t[164]!==e?(rt=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[164]=e,t[165]=rt):rt=t[165];let nt;t[166]!==e?(nt=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[166]=e,t[167]=nt):nt=t[167];let st;t[168]!==e?(st=e("Export a shard to NDJSON, or import rows from it."),t[168]=e,t[169]=st):st=t[169];let at;t[170]!==e?(at=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[170]=e,t[171]=at):at=t[171];let it;t[172]!==e?(it=e("Browse objects in your R2 storage buckets."),t[172]=e,t[173]=it):it=t[173];let lt;t[174]!==e?(lt=e("Inspect feature flags and their live evaluation under a targeting context."),t[174]=e,t[175]=lt):lt=t[175];let ct;t[176]!==e?(ct=e("Run registered queries, mutations, and actions."),t[176]=e,t[177]=ct):ct=t[177];let dt;t[178]!==e?(dt=e("At-a-glance connection, error, and shard signals."),t[178]=e,t[179]=dt):dt=t[179];let pt;t[180]!==e?(pt=e("Connection, health, and advisor summary for your deployment."),t[180]=e,t[181]=pt):pt=t[181];let ut;t[182]!==e?(ut=e("Surface slow functions, error spikes, and cache problems."),t[182]=e,t[183]=ut):ut=t[183];let mt;t[184]!==e?(mt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[184]=e,t[185]=mt):mt=t[185];let ft;t[186]!==e?(ft=e("A live stream of recent function logs."),t[186]=e,t[187]=ft):ft=t[187];let gt;t[188]!==e?(gt=e("Per-shard health and aggregate metrics."),t[188]=e,t[189]=gt):gt=t[189];let ht;t[190]!==e?(ht=e("Review migration status and run them."),t[190]=e,t[191]=ht):ht=t[191];let vt;t[192]!==e?(vt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[192]=e,t[193]=vt):vt=t[193];let xt;t[194]!==e?(xt=e("Browse and manage organizations, members, and invitations."),t[194]=e,t[195]=xt):xt=t[195];let bt;t[196]!==e?(bt=e("Restore a shard to a point in the last 30 days."),t[196]=e,t[197]=bt):bt=t[197];let yt;t[198]!==e?(yt=e("Email your app sent, captured in dev."),t[198]=e,t[199]=yt):yt=t[199];let Pt;t[200]!==e?(Pt=e("Synced customers, subscriptions, and webhook events."),t[200]=e,t[201]=Pt):Pt=t[201];let Ct;t[202]!==e?(Ct=e("Inspect access policies per table, and probe a function as any identity."),t[202]=e,t[203]=Ct):Ct=t[203];let Rt;t[204]!==e?(Rt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[204]=e,t[205]=Rt):Rt=t[205];let St;t[206]!==e?(St=e("Active WebSocket subscriptions on this shard."),t[206]=e,t[207]=St):St=t[207];let Nt;t[208]!==e?(Nt=e("Inspect row-level-security policies and roles, per table."),t[208]=e,t[209]=Nt):Nt=t[209];let Tt;t[210]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[210]=e,t[211]=Tt):Tt=t[211];let Et;t[212]!==e?(Et=e("Inspect each table and its columns."),t[212]=e,t[213]=Et):Et=t[213];let wt;t[214]!==e?(wt=e("Review admin gates, credentials, and log redaction."),t[214]=e,t[215]=wt):wt=t[215];let Ot;t[216]!==e?(Ot=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[216]=e,t[217]=Ot):Ot=t[217];let kt;t[218]!==e?(kt=e("Run read-only SQL against a shard."),t[218]=e,t[219]=kt):kt=t[219];let Mt;t[220]!==e?(Mt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[220]=e,t[221]=Mt):Mt=t[221];let Dt;t[222]!==e?(Dt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[222]=e,t[223]=Dt):Dt=t[223];let It;t[224]!==e?(It=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[224]=e,t[225]=It):It=t[225];let _t;t[226]!==e?(_t=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[226]=e,t[227]=_t):_t=t[227];let At;t[228]!==e?(At=e("Browse Vectorize indexes and run similarity searches."),t[228]=e,t[229]=At):At=t[229];let Vt;t[230]!==e?(Vt=e("Inspect declared Cloudflare Workflows and their bindings."),t[230]=e,t[231]=Vt):Vt=t[231];let wo;t[232]!==qe||t[233]!==Ge||t[234]!==$e||t[235]!==Qe||t[236]!==Ye||t[237]!==Je||t[238]!==Xe||t[239]!==et||t[240]!==tt||t[241]!==ot||t[242]!==rt||t[243]!==nt||t[244]!==st||t[245]!==at||t[246]!==it||t[247]!==lt||t[248]!==ct||t[249]!==dt||t[250]!==pt||t[251]!==ut||t[252]!==mt||t[253]!==ft||t[254]!==gt||t[255]!==ht||t[256]!==vt||t[257]!==xt||t[258]!==bt||t[259]!==yt||t[260]!==Pt||t[261]!==Ct||t[262]!==Rt||t[263]!==St||t[264]!==Nt||t[265]!==Tt||t[266]!==Et||t[267]!==wt||t[268]!==Ot||t[269]!==kt||t[270]!==Mt||t[271]!==Dt||t[272]!==It||t[273]!==_t||t[274]!==At||t[275]!==Vt?(wo={agents:qe,analytics:Ge,api:$e,audit:Qe,authAudit:Ye,authConfig:Je,authSessions:Xe,containers:et,dashboards:tt,data:ot,deploymentHealth:rt,drains:nt,export:st,fanout:at,files:it,flags:lt,functions:ct,health:dt,home:pt,insights:ut,issues:mt,logs:ft,metrics:gt,migrations:ht,notifications:vt,organizations:xt,pitr:bt,mail:yt,payments:Pt,permissions:Ct,queues:Rt,realtime:St,rls:Nt,schedule:Tt,schema:Et,security:wt,settings:Ot,sql:kt,kv:Mt,storageRules:Dt,traces:It,users:_t,vectors:At,workflows:Vt},t[232]=qe,t[233]=Ge,t[234]=$e,t[235]=Qe,t[236]=Ye,t[237]=Je,t[238]=Xe,t[239]=et,t[240]=tt,t[241]=ot,t[242]=rt,t[243]=nt,t[244]=st,t[245]=at,t[246]=it,t[247]=lt,t[248]=ct,t[249]=dt,t[250]=pt,t[251]=ut,t[252]=mt,t[253]=ft,t[254]=gt,t[255]=ht,t[256]=vt,t[257]=xt,t[258]=bt,t[259]=yt,t[260]=Pt,t[261]=Ct,t[262]=Rt,t[263]=St,t[264]=Nt,t[265]=Tt,t[266]=Et,t[267]=wt,t[268]=Ot,t[269]=kt,t[270]=Mt,t[271]=Dt,t[272]=It,t[273]=_t,t[274]=At,t[275]=Vt,t[276]=wo):wo=t[276];let oi=wo,Oo;t[277]!==o?(Oo=i(Ce=>{po(o({to:`/${Ce.currentTarget.dataset.tab??""}`}))},"Nt"),t[277]=o,t[278]=Oo):Oo=t[278];let ri=Oo,ko,Mo;t[279]!==a||t[280]!==Pe?(ko=i(()=>{typeof document<"u"&&(document.title=`${Pe[a]} \xB7 lunora`)},"Mt"),Mo=[a,Pe],t[279]=a,t[280]=Pe,t[281]=ko,t[282]=Mo):(ko=t[281],Mo=t[282]),(0,F.useEffect)(ko,Mo);let ni=u.find(Ce=>Ce.tabs.includes(a))??ja[0],Mr=u.flatMap(Ce=>Ce.tabs.map(Fo=>({group:kr[Ce.key],label:Pe[Fo],to:`/${Fo}`}))),Lt=(0,F.use)(Xa),si=Lt!==null&&Lt.token!=="",Do;t[283]!==Mr?(Do=(0,s.jsx)(La,{items:Mr}),t[283]=Mr,t[284]=Do):Do=t[284];let Io;t[285]===Symbol.for("react.memo_cache_sentinel")?(Io=(0,s.jsx)(dl,{className:"-ms-1"}),t[285]=Io):Io=t[285];let Bt;t[286]!==e?(Bt=e("Breadcrumb"),t[286]=e,t[287]=Bt):Bt=t[287];let Dr=kr[ni.key],Ht;t[288]!==Dr?(Ht=(0,s.jsx)("span",{className:"text-muted-foreground",children:Dr}),t[288]=Dr,t[289]=Ht):Ht=t[289];let _o;t[290]===Symbol.for("react.memo_cache_sentinel")?(_o=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),t[290]=_o):_o=t[290];let Ir=Pe[a],Ft;t[291]!==Ir?(Ft=(0,s.jsx)("span",{className:"font-medium text-foreground",children:Ir}),t[291]=Ir,t[292]=Ft):Ft=t[292];let jt;t[293]!==Bt||t[294]!==Ht||t[295]!==Ft?(jt=(0,s.jsxs)("nav",{"aria-label":Bt,className:"flex items-center gap-1.5 text-[13px]",children:[Ht,_o,Ft]}),t[293]=Bt,t[294]=Ht,t[295]=Ft,t[296]=jt):jt=t[296];let Ao;t[297]===Symbol.for("react.memo_cache_sentinel")?(Ao=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),t[297]=Ao):Ao=t[297];let zt;t[298]!==e?(zt=e("Search\u2026"),t[298]=e,t[299]=zt):zt=t[299];let Vo;t[300]===Symbol.for("react.memo_cache_sentinel")?(Vo=(0,s.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),t[300]=Vo):Vo=t[300];let Ut;t[301]!==zt?(Ut=(0,s.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:Va,type:"button",children:[Ao,zt,Vo]}),t[301]=zt,t[302]=Ut):Ut=t[302];let Lo;t[303]===Symbol.for("react.memo_cache_sentinel")?(Lo=(0,s.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,s.jsx)(qi,{})}),t[303]=Lo):Lo=t[303];let Kt;t[304]!==jt||t[305]!==Ut?(Kt=(0,s.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[Io,jt,Ut,Lo]}),t[304]=jt,t[305]=Ut,t[306]=Kt):Kt=t[306];let Zt;t[307]!==Lt?.rulesInstalled?(Zt=Lt?.rulesInstalled===!1&&(0,s.jsx)(ji,{}),t[307]=Lt?.rulesInstalled,t[308]=Zt):Zt=t[308];let _r=`dash-tab-${a}`,Ar=d?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",Vr=Pe[a],Wt;t[309]!==e||t[310]!==Vr?(Wt=e("{title} failed",{title:Vr}),t[309]=e,t[310]=Vr,t[311]=Wt):Wt=t[311];let Lr=Pe[a],qt;t[312]!==e?(qt=e("Try again"),t[312]=e,t[313]=qt):qt=t[313];let Bo;t[314]===Symbol.for("react.memo_cache_sentinel")?(Bo=(0,s.jsx)(F.Suspense,{fallback:(0,s.jsx)(ti,{}),children:(0,s.jsx)(xn,{})}),t[314]=Bo):Bo=t[314];let Gt;t[315]!==a||t[316]!==Wt||t[317]!==Lr||t[318]!==qt?(Gt=(0,s.jsx)(pr,{fallbackTitle:Wt,label:Lr,retryLabel:qt,children:Bo},a),t[315]=a,t[316]=Wt,t[317]=Lr,t[318]=qt,t[319]=Gt):Gt=t[319];let $t;t[320]!==Ar||t[321]!==Gt?($t=(0,s.jsx)("div",{className:Ar,children:Gt}),t[320]=Ar,t[321]=Gt,t[322]=$t):$t=t[322];let Qt;t[323]!==_r||t[324]!==$t?(Qt=(0,s.jsx)("div",{"aria-labelledby":_r,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:$t}),t[323]=_r,t[324]=$t,t[325]=Qt):Qt=t[325];let Ho;return t[326]!==Kt||t[327]!==Zt||t[328]!==Qt?(Ho=(0,s.jsxs)(pl,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[Kt,Zt,Qt]}),t[326]=Kt,t[327]=Zt,t[328]=Qt,t[329]=Ho):Ho=t[329],(0,s.jsxs)(ll,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[Do,(0,s.jsx)(xc,{chrome:Lt,connected:si,current:a,groupLabel:kr,groups:u,selectTab:ri,tabDescription:oi,tabLabel:Pe}),Ho]})},"Dr"),yc=i(t=>{let e=(0,D.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let a=hn(n),{table:c}=a,d=typeof c=="string"?c:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,s.jsx)(oc,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"qr"),Pc=i(()=>{let t=(0,D.c)(3),e=xo(),o,r;return t[0]!==e?(o=i(()=>{po(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,F.useEffect)(o,r),null},"Wr"),Cc=i(({basePath:t,dataEditable:e=!1,functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a,runAsIdentity:c=!1,schemaEditable:d=!1,scheduledCancel:p,scheduledCron:l,scheduledLoad:u})=>{let h=vn({component:bc}),f={agents:(0,s.jsx)(Cl,{initialShardKey:r}),analytics:(0,s.jsx)(Rl,{}),api:(0,s.jsx)(Sl,{functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a}),audit:(0,s.jsx)(Fl,{initialShardKey:r}),authAudit:(0,s.jsx)(Nl,{}),authConfig:(0,s.jsx)(Tl,{}),authSessions:(0,s.jsx)(El,{}),containers:(0,s.jsx)(kl,{}),dashboards:(0,s.jsx)(Jl,{initialShardKey:r}),data:(0,s.jsx)(Dl,{editable:e,initialShardKey:r}),deploymentHealth:(0,s.jsx)(Ml,{}),drains:(0,s.jsx)(jl,{}),export:(0,s.jsx)(Il,{initialShardKey:r}),fanout:(0,s.jsx)(Xl,{initialShardKey:r}),files:(0,s.jsx)(sc,{}),kv:(0,s.jsx)(ql,{}),flags:(0,s.jsx)(Vl,{initialShardKey:r}),functions:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Bl,{functions:o,initialShardKey:r}),(0,s.jsx)(Ll,{functions:o,runAsIdentity:c})]}),health:(0,s.jsx)(ec,{initialShardKey:r}),home:(0,s.jsx)(is,{initialShardKey:r}),insights:(0,s.jsx)(bl,{initialShardKey:r}),issues:(0,s.jsx)(Hl,{initialShardKey:r}),logs:(0,s.jsx)(zl,{initialShardKey:r}),traces:(0,s.jsx)(ic,{initialShardKey:r}),metrics:(0,s.jsx)(tc,{initialShardKey:r}),migrations:(0,s.jsx)(_l,{initialShardKey:r}),notifications:(0,s.jsx)(Gl,{}),organizations:(0,s.jsx)(wl,{}),permissions:(0,s.jsx)(Ql,{functions:o,runAsIdentity:c,schemaEditable:d}),pitr:(0,s.jsx)(Al,{initialShardKey:r}),mail:(0,s.jsx)(Ul,{}),payments:(0,s.jsx)($l,{}),queues:(0,s.jsx)(Yl,{}),realtime:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Zl,{initialShardKey:r}),(0,s.jsx)(Wl,{})]}),rls:(0,s.jsx)(yl,{}),schedule:(0,s.jsx)(Kl,{loadCronJobs:l,scheduledCancel:p,scheduledLoad:u}),schema:(0,s.jsx)(yc,{initialShardKey:r,schemaEditable:d}),security:(0,s.jsx)(Pl,{}),settings:(0,s.jsx)(rc,{initialShardKey:r}),sql:(0,s.jsx)(nc,{initialShardKey:r}),storageRules:(0,s.jsx)(ac,{}),users:(0,s.jsx)(Ol,{}),vectors:(0,s.jsx)(lc,{}),workflows:(0,s.jsx)(cc,{})},v=jo({component:i(()=>f.home,"component"),getParentRoute:i(()=>h,"getParentRoute"),path:"/"}),m=ei.map(b=>b==="data"?jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`,validateSearch:ls}):jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`})),g=h.addChildren([v,...m]),x="window"in globalThis?fn():gn({initialEntries:["/home"]});return bn({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:Pc,defaultPendingComponent:ti,defaultPendingMinMs:0,defaultPendingMs:0,history:x,routeTree:g})},"jr"),Rc=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}=t,m;e[0]!==o||e[1]!==n||e[2]!==a||e[3]!==c||e[4]!==d||e[5]!==p||e[6]!==l||e[7]!==h||e[8]!==f||e[9]!==v||e[10]!==u?(m=Cc({basePath:o,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}),e[0]=o,e[1]=n,e[2]=a,e[3]=c,e[4]=d,e[5]=p,e[6]=l,e[7]=h,e[8]=f,e[9]=v,e[10]=u,e[11]=m):m=e[11];let g=m,x=r??null,b;e[12]!==g?(b=(0,s.jsx)(yn,{router:g}),e[12]=g,e[13]=b):b=e[13];let P;return e[14]!==x||e[15]!==b?(P=(0,s.jsx)(Xa,{value:x,children:b}),e[14]=x,e[15]=b,e[16]=P):P=e[16],P},"Fr"),Yg=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,i18n:c,initialShardKey:d,locale:p,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,schemaEditable:f,scheduledCancel:v,scheduledCron:m,scheduledLoad:g}=t,x;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==d||e[5]!==l||e[6]!==u||e[7]!==h||e[8]!==v||e[9]!==m||e[10]!==g||e[11]!==f?(x=(0,s.jsx)(Ii,{children:(0,s.jsx)(Rc,{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:d,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,scheduledCancel:v,scheduledCron:m,scheduledLoad:g,schemaEditable:f})}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=d,e[5]=l,e[6]=u,e[7]=h,e[8]=v,e[9]=m,e[10]=g,e[11]=f,e[12]=x):x=e[12];let b=x;if(c===void 0&&p===void 0)return b;let P;return e[13]!==c||e[14]!==p||e[15]!==b?(P=(0,s.jsx)(Aa,{i18n:c,locale:p,children:b}),e[13]=c,e[14]=p,e[15]=b,e[16]=P):P=e[16],P},"Mn");function Sc(t){return t.location.pathname}i(Sc,"Ur");function Nc(t){return t.tabs.length>0}i(Nc,"Qr");export{pr as a,Aa as b,Di as c,_i as d,Qg as e,Bi as f,$i as g,Ji as h,Xi as i,el as j,Yg as k};
|
|
1
|
+
import{a as as,b as is}from"./chunk-F6GOKFMU.js";import{a as ls}from"./chunk-M536Y2KX.js";import{a as ao,b as io,c as lo,d as es,e as cr}from"./chunk-KYF2E5CJ.js";import{$ as Yn,A as Jt,C as Zn,D as B,E as Wn,F as qn,I as Xt,L as Ie,M as Go,N as eo,P as $o,Q as Gn,R as $n,S as Qo,T as to,U as oo,V as ro,W as no,X as Yo,Y as so,_ as Qn,aa as Jo,b as Mn,ba as Xo,ea as er,fa as ge,ga as Jn,ha as co,i as Vn,ia as Xn,j as Ln,ja as se,k as Bn,ka as tr,l as zr,m as Uo,ma as or,na as rr,o as Ko,oa as nr,p as Hn,pa as sr,q as Zo,qa as ar,ra as ir,s as Fn,sa as ts,ta as os,u as jn,ua as lr,v as zn,va as rs,w as Un,x as Wo,y as qo,z as Kn}from"./chunk-7YEFOSPH.js";import{f as Nn}from"./chunk-ILNELDFC.js";import{a as fn,b as gn,d as hn,e as xo,f as jo,g as vn,h as xn,i as bn,j as yn,k as Pn}from"./chunk-SMIESS7P.js";import{a as dr}from"./chunk-HPFLBYRI.js";import{c as ns,h as ss,k as Ur}from"./chunk-QBWRC5YX.js";import{B as Dn,C as In,I as pe,J as _n,K as Yt,O,P as q,R as An,e as le,p as bo,q as kn}from"./chunk-CFPZYHPY.js";import{a as mn}from"./chunk-7QIFDWQV.js";import{b as _e,c as Kr}from"./chunk-FXCBF4XT.js";import{a as De,c as wn,h as zo,i as On}from"./chunk-2OUPA2WJ.js";import{a as jr,b as En}from"./chunk-THIXMMZD.js";import{a as Se,c as W,i as Ue,j as _}from"./chunk-6ST5ECQA.js";import{a as Tn}from"./chunk-XBDKZZ67.js";import{a as Cn,b as Rn,c as Sn,d as Re,m as po}from"./chunk-4CGALXS3.js";import{b as Hr}from"./chunk-LE56LPNH.js";import{a as i,d as Br,e as C,f as E,g as Fr,h as oe,j as z}from"./chunk-3XIESWL4.js";var D=C(Fr(),1);var we=C(E(),1),F=C(E(),1);var s=C(oe(),1);var cs=C(E(),1),Ne=C(oe(),1);var ai={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},ii={overflow:"auto",whiteSpace:"pre-wrap"},pr=class extends cs.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:a}=this.state;if(a===null)return(0,Ne.jsx)(Ne.Fragment,{children:e});let c=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Ne.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:ai,children:[(0,Ne.jsx)("strong",{children:c}),(0,Ne.jsx)("pre",{"data-testid":"dash-error-message",style:ii,children:a.message}),(0,Ne.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Be={};Br(Be,{Arrow:()=>Ns,Backdrop:()=>Es,Close:()=>Is,Description:()=>Ms,Handle:()=>Po,Popup:()=>Rs,Portal:()=>hs,Positioner:()=>vs,Root:()=>us,Title:()=>Os,Trigger:()=>ms,Viewport:()=>Vs,createHandle:()=>Ls});var Te=C(E(),1);var ur=C(E(),1);var Zr=ur.createContext(void 0);function Q(t){let e=ur.useContext(Zr);if(e===void 0&&!t)throw new Error(W(47));return e}i(Q,"usePopoverRootContext");var Ae=C(E(),1),ds=C(mn(),1);function li(){return{...ao(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}i(li,"createInitialState");var ci={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),openMethod:B(t=>t.openMethod),openChangeReason:B(t=>t.openChangeReason),modal:B(t=>t.modal),focusManagerModal:B(t=>t.focusManagerModal),stickIfOpen:B(t=>t.stickIfOpen),titleElementId:B(t=>t.titleElementId),descriptionElementId:B(t=>t.descriptionElementId),openOnHover:B(t=>t.openOnHover),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},uo=class t extends Xt{static{i(this,"PopoverStore")}constructor(e,o,r=!1){let n={...li(),...e},a=new so;n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=io(a,o,r),super(n,{popupRef:Ae.createRef(),backdropRef:Ae.createRef(),internalBackdropRef:Ae.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ae.createRef(),beforeContentFocusGuardRef:Ae.createRef(),stickIfOpenTimeout:new Dn,triggerElements:a},ci)}setOpen=i((e,o)=>{let r=o.reason===O.triggerHover,n=o.reason===O.triggerPress&&o.event.detail===0,a=!e&&(o.reason===O.escapeKey||o.reason==null),c=Gn(o),d=this.select("activeTriggerId");if(!e&&o.reason===O.closePress&&o.trigger==null&&d!=null&&(o.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let l={open:e,openChangeReason:o.reason};$o(l,e,o.trigger,c()),this.update(l)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),ds.flushSync(p)):p(),n||a?this.set("instantType",n?"click":"dismiss"):o.reason===O.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)},"setOpen");static useStore(e,o){let{store:r,internalStore:n}=eo(e,(a,c)=>new t(o,a,c));return Ae.useEffect(()=>n?.disposeEffect(),[n]),r}disposeEffect=i(()=>this.context.stickIfOpenTimeout.disposeEffect(),"disposeEffect")};var Ke=C(oe(),1);function ps({props:t}){let{children:e,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:a,modal:c=!1,handle:d,triggerId:p,defaultTriggerId:l=null}=t,u=uo.useStore(d?.store,{modal:c,open:r,openProp:o,activeTriggerId:l,triggerIdProp:p});Qo(u,o,r,l),u.useControlledProp("openProp",o),u.useControlledProp("triggerIdProp",p);let h=u.useState("open"),f=u.useState("mounted"),v=u.useState("payload"),m=Fn()!=null;u.useContextCallback("onOpenChange",n),u.useContextCallback("onOpenChangeComplete",a),Yo(u,h),oo(u);let{forceUnmount:g}=ro(h,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:c,nested:m}),Te.useEffect(()=>{h||u.context.stickIfOpenTimeout.clear()},[u,h]);let x=Te.useCallback(()=>{u.setOpen(!1,q(O.imperativeAction))},[u]);Te.useImperativeHandle(t.actionsRef,()=>({unmount:g,close:x}),[g,x]);let b=h||f,P=Te.useMemo(()=>({store:u}),[u]);return(0,Ke.jsxs)(Zr.Provider,{value:P,children:[b&&(0,Ke.jsx)(di,{store:u,modal:c}),typeof e=="function"?e({payload:v}):e]})}i(ps,"PopoverRootComponent");function us(t){return Q(!0)?(0,Ke.jsx)(ps,{props:t}):(0,Ke.jsx)(Un,{children:(0,Ke.jsx)(ps,{props:t})})}i(us,"PopoverRoot");function di({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Jt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference??Ue,a=r.trigger??Ue,c=Te.useMemo(()=>Se(Ie,r.floating),[r.floating]);return no(t,{activeTriggerProps:n,inactiveTriggerProps:a,popupProps:c}),null}i(di,"PopoverInteractions");var Ve=C(E(),1);var Ze=C(oe(),1);var ms=Ve.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,handle:p,payload:l,openOnHover:u=!1,delay:h=300,closeDelay:f=0,id:v,...m}=e,g=Q(!0),x=p?.store??g?.store;if(!x)throw new Error(W(74));let b=le(v),P=x.useState("isTriggerActive",b),y=x.useState("floatingRootContext"),S=x.useState("isOpenedByTrigger",b),R=x.useState("triggerPopupId",b),N=Ve.useRef(null),{registerTrigger:T,isMountedByThisTrigger:k}=to(b,N,x,{payload:l,disabled:c,openOnHover:u,closeDelay:f}),w=x.useState("openChangeReason"),M=x.useState("stickIfOpen"),H=x.useState("openMethod"),G=x.useState("focusManagerModal"),V=Xo(y,{enabled:!c&&y!=null&&u&&(H!=="touch"||w!==O.triggerPress),mouseOnly:!0,move:!1,handleClose:er(),restMs:h,delay:{close:f},triggerElementRef:N,isActiveTrigger:P,isClosing:i(()=>x.select("transitionStatus")==="ending","isClosing")}),K=qo(y,{enabled:y!=null,stickIfOpen:M}),U=tr(()=>x.select("open"),ne=>{x.set("openMethod",ne)}),$=x.useState("triggerProps",k),{getButtonProps:Y,buttonRef:A}=_e({disabled:c,native:d}),I={open(ne){return ne&&w===O.triggerPress?Xn.open(ne):co.open(ne)}},{preFocusGuardRef:Z,handlePreFocusGuardFocus:ie,handleFocusTargetFocus:ce}=es(x,N),ee=_("button",e,{state:{disabled:c,open:S},ref:[A,o,T,N],props:[K.reference,V,$,U,{[Uo]:"",id:b,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":R},m,Y],stateAttributesMapping:I});return k&&!G?(0,Ze.jsxs)(Ve.Fragment,{children:[(0,Ze.jsx)(zr,{ref:Z,onFocus:ie}),(0,Ze.jsx)(Ve.Fragment,{children:ee},b),(0,Ze.jsx)(zr,{ref:x.context.triggerFocusTargetRef,onFocus:ce})]}):(0,Ze.jsx)(Ve.Fragment,{children:ee},b)},"PopoverTrigger"));var gs=C(E(),1);var mr=C(E(),1);var Wr=mr.createContext(void 0);function fs(){let t=mr.useContext(Wr);if(t===void 0)throw new Error(W(45));return t}i(fs,"usePopoverPortalContext");var qr=C(oe(),1);var hs=gs.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=Q();return a.useState("mounted")||r?(0,qr.jsx)(Wr.Provider,{value:r,children:(0,qr.jsx)(Zo,{ref:o,...n})}):null},"PopoverPortal"));var fo=C(E(),1);var fr=C(E(),1);var Gr=fr.createContext(void 0);function mo(){let t=fr.useContext(Gr);if(!t)throw new Error(W(46));return t}i(mo,"usePopoverPositionerContext");var yo=C(oe(),1);var vs=fo.forwardRef(i(function(e,o){let{render:r,className:n,style:a,anchor:c,positionMethod:d="absolute",side:p="bottom",align:l="center",sideOffset:u=0,alignOffset:h=0,collisionBoundary:f="clipping-ancestors",collisionPadding:v=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:x=!1,collisionAvoidance:b=Ko,...P}=e,{store:y}=Q(),S=fs(),R=jn(),N=y.useState("floatingRootContext"),T=y.useState("mounted"),k=y.useState("open"),w=y.useState("openChangeReason"),M=y.useState("activeTriggerElement"),H=y.useState("modal"),G=y.useState("openMethod"),V=y.useState("positionerElement"),K=y.useState("instantType"),U=y.useState("transitionStatus"),$=y.useState("hasViewport"),Y=fo.useRef(null),A=_n(V,!1,!1),I=nr({anchor:c,floatingRootContext:N,positionMethod:d,mounted:T,side:p,sideOffset:u,align:l,alignOffset:h,arrowPadding:m,collisionBoundary:f,collisionPadding:v,sticky:g,disableAnchorTracking:x,keepMounted:S,nodeId:R,collisionAvoidance:b,adaptiveOrigin:$?rr:void 0}),Z=N.useState("domReferenceElement");De(()=>{let ee=Z,ne=Y.current;if(ee&&(Y.current=ee),ne&&ee&&ee!==ne){y.set("instantType",void 0);let me=new AbortController;return A(()=>{y.set("instantType","trigger-change")},me.signal),()=>{me.abort()}}},[Z,A,y]),os(k&&H===!0&&w!==O.triggerHover,G==="touch",V,M);let ie=fo.useCallback(ee=>{y.set("positionerElement",ee)},[y]),ce={open:k,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:K},de=ir(e,ce,{styles:I.positionerStyles,transitionStatus:U,props:P,refs:[o,ie],hidden:!T,inert:!k});return(0,yo.jsxs)(Gr.Provider,{value:I,children:[T&&H===!0&&w!==O.triggerHover&&(0,yo.jsx)(sr,{ref:y.context.internalBackdropRef,inert:or(!k),cutout:M}),(0,yo.jsx)(zn,{id:R,children:de})]})},"PopoverPositioner"));var gr=C(E(),1);var Le=C(E(),1);var xs=C(oe(),1);var bs=Le.createContext(void 0);function ys(){let[t,e]=Le.useState(0),o=wn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:Le.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(ys,"useClosePartCount");function Ps(t){let{value:e,children:o}=t;return(0,xs.jsx)(bs.Provider,{value:e,children:o})}i(Ps,"ClosePartProvider");function Cs(){let t=Le.useContext(bs);De(()=>t?.register(),[t])}i(Cs,"useClosePartRegistration");var $r=C(oe(),1);var pi={...se,...pe},Rs=gr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,initialFocus:c,finalFocus:d,...p}=e,{store:l}=Q(),u=mo(),h=rs(!0)!=null,{context:f,hasClosePart:v}=ys(),m=l.useState("open"),g=l.useState("openMethod"),x=l.useState("instantType"),b=l.useState("transitionStatus"),P=l.useState("popupProps"),y=l.useState("titleElementId"),S=l.useState("descriptionElementId"),R=l.useState("modal"),N=l.useState("mounted"),T=l.useState("openChangeReason"),k=l.useState("activeTriggerElement"),w=l.useState("floatingRootContext"),M=w.useState("floatingId"),H=l.useState("disabled"),G=l.useState("openOnHover"),V=l.useState("closeDelay"),K=p.id??M;Yt({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),Jo(w,{enabled:G&&!H,closeDelay:V});let U=c===void 0?Go(l.context.popupRef):c,$=R!==!1&&v;l.useSyncedValue("focusManagerModal",$);let Y=gr.useCallback(Z=>{l.set("popupElement",Z)},[l]),A={open:m,side:u.side,align:u.align,instant:x,transitionStatus:b},I=_("div",e,{state:A,ref:[o,l.context.popupRef,Y],props:[P,{id:K,role:"dialog",...Ie,"aria-labelledby":y,"aria-describedby":S,onKeyDown(Z){h&&lr.has(Z.key)&&Z.stopPropagation()}},ar(b),p],stateAttributesMapping:pi});return(0,$r.jsx)(Wo,{context:w,openInteractionType:g,modal:$,disabled:!N||T===O.triggerHover,initialFocus:U,returnFocus:d,restoreFocus:"popup",previousFocusableElement:On(k)?k:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,$r.jsx)(Ps,{value:f,children:I})})},"PopoverPopup"));var Ss=C(E(),1);var Ns=Ss.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),{arrowRef:l,side:u,align:h,arrowUncentered:f,arrowStyles:v}=mo();return _("div",e,{state:{open:p,side:u,align:h,uncentered:f},ref:[o,l],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:se})},"PopoverArrow"));var Ts=C(E(),1);var ui={...se,...pe},Es=Ts.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),l=d.useState("mounted"),u=d.useState("transitionStatus"),h=d.useState("openChangeReason");return _("div",e,{state:{open:p,transitionStatus:u},ref:[d.context.backdropRef,o],props:[{role:"presentation",hidden:!l,style:{pointerEvents:h===O.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},c],stateAttributesMapping:ui})},"PopoverBackdrop"));var ws=C(E(),1);var Os=ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("titleElementId",p),_("h2",e,{ref:o,props:[{id:p},c]})},"PopoverTitle"));var ks=C(E(),1);var Ms=ks.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),_("p",e,{ref:o,props:[{id:p},c]})},"PopoverDescription"));var Ds=C(E(),1);var Is=Ds.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{buttonRef:l,getButtonProps:u}=_e({disabled:c,focusableWhenDisabled:!1,native:d}),{store:h}=Q();return Cs(),_("button",e,{ref:[o,l],props:[{onClick(v){h.setOpen(!1,q(O.closePress,v.nativeEvent))}},p,u]})},"PopoverClose"));var As=C(E(),1);var _s=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var mi={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Vs=As.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,{store:p}=Q(),{side:l}=mo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l,cssVars:_s,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:mi})},"PopoverViewport"));var Po=class{static{i(this,"PopoverHandle")}constructor(){this.store=new uo}open(e){let o=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!o)throw new Error(W(80,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ls(){return new Po}i(Ls,"createPopoverHandle");var ae={};Br(ae,{Backdrop:()=>Hs,Close:()=>js,Description:()=>Us,Handle:()=>No,Popup:()=>Gs,Portal:()=>Qs,Root:()=>oa,Title:()=>aa,Trigger:()=>ia,Viewport:()=>na,createHandle:()=>la});var Bs=C(E(),1);var Co=C(E(),1);var hr=Co.createContext(!1),Qr=Co.createContext(void 0);function re(t){let e=Co.useContext(Qr);if(t===!1&&e===void 0)throw new Error(W(27));return e}i(re,"useDialogRootContext");var fi={...se,...pe},Hs=Bs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,forceRender:c=!1,...d}=e,{store:p}=re(),l=p.useState("open"),u=p.useState("nested"),h=p.useState("mounted"),f=p.useState("transitionStatus");return _("div",e,{state:{open:l,transitionStatus:f},ref:[p.context.backdropRef,o],stateAttributesMapping:fi,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:c||!u})},"DialogBackdrop"));var Fs=C(E(),1);var js=Fs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{store:l}=re(),u=l.useState("open"),{getButtonProps:h,buttonRef:f}=_e({disabled:c,native:d}),v={disabled:c};function m(g){u&&l.setOpen(!1,q(O.closePress,g.nativeEvent))}return i(m,"handleClick"),_("button",e,{state:v,ref:[o,f],props:[{onClick:m},p,h]})},"DialogClose"));var zs=C(E(),1);var Us=zs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("descriptionElementId",l),_("p",e,{ref:o,props:[{id:l},d]})},"DialogDescription"));var Ws=C(E(),1);var Ks=(function(t){return t.nestedDialogs="--nested-dialogs",t})({});var Zs=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var vr=C(E(),1);var Yr=vr.createContext(void 0);function xr(){let t=vr.useContext(Yr);if(t===void 0)throw new Error(W(26));return t}i(xr,"useDialogPortalContext");var qs=C(oe(),1);var gi={...se,...pe,nestedDialogOpen(t){return t?{[Zs.nestedDialogOpen]:""}:null}},Gs=Ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,finalFocus:c,initialFocus:d,...p}=e,{store:l}=re(),u=l.useState("descriptionElementId"),h=l.useState("disablePointerDismissal"),f=l.useState("floatingRootContext"),v=l.useState("popupProps"),m=l.useState("modal"),g=l.useState("mounted"),x=l.useState("nested"),b=l.useState("nestedOpenDialogCount"),P=l.useState("open"),y=l.useState("openMethod"),S=l.useState("titleElementId"),R=l.useState("transitionStatus"),N=l.useState("role"),T=f.useState("floatingId"),k=p.id??T;xr(),Yt({open:P,ref:l.context.popupRef,onComplete(){P&&l.context.onOpenChangeComplete?.(!0)}});let w=d===void 0?Go(l.context.popupRef):d,M=b>0,H=l.useStateSetter("popupElement"),V=_("div",e,{state:{open:P,nested:x,transitionStatus:R,nestedDialogOpen:M},props:[v,{id:k,"aria-labelledby":S??void 0,"aria-describedby":u??void 0,role:N,...Ie,hidden:!g,onKeyDown(K){lr.has(K.key)&&K.stopPropagation()},style:{[Ks.nestedDialogs]:b}},p],ref:[o,l.context.popupRef,H],stateAttributesMapping:gi});return(0,qs.jsx)(Wo,{context:f,openInteractionType:y,disabled:!g,closeOnFocusOut:!h,initialFocus:w,returnFocus:c,modal:m!==!1,restoreFocus:"popup",children:V})},"DialogPopup"));var $s=C(E(),1);var Ro=C(oe(),1);var Qs=$s.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=re(),c=a.useState("mounted"),d=a.useState("modal"),p=a.useState("open");return c||r?(0,Ro.jsx)(Yr.Provider,{value:r,children:(0,Ro.jsxs)(Zo,{ref:o,...n,children:[c&&d===!0&&(0,Ro.jsx)(sr,{ref:a.context.internalBackdropRef,inert:or(!p)}),e.children]})}):null},"DialogPortal"));var ta=C(E(),1);var Xs=C(E(),1);var Ee=C(E(),1);function Ys(t){let{store:e,actionsRef:o}=t,r=e.useState("open");Yo(e,r),oo(e);let{forceUnmount:n}=ro(r,e),a=Ee.useCallback(()=>{e.setOpen(!1,q(O.imperativeAction))},[e]);Ee.useImperativeHandle(o,()=>({unmount:n,close:a}),[n,a])}i(Ys,"useDialogRoot");function Js({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),a=t.useState("modal"),c=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,l]=Ee.useState(0),[u,h]=Ee.useState(0),f=p===0,v=Jt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:a==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(b){if(!t.context.outsidePressEnabledRef.current||"button"in b&&b.button!==0||"touches"in b&&b.touches.length!==1)return!1;let P=kn(b);return f&&!n?a&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===P||t.context.backdropRef.current===P||bo(P,c)&&!P?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:f});ts(r&&a===!0,c),t.useContextCallback("onNestedDialogOpen",(b,P)=>{l(b),h(P)}),t.useContextCallback("onNestedDialogClose",()=>{l(0),h(0)}),Ee.useEffect(()=>(e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(p+1,u+(o?1:0)),e?.onNestedDialogClose&&!r&&e.onNestedDialogClose(),()=>{e?.onNestedDialogClose&&r&&e.onNestedDialogClose()}),[o,r,p,u,e]);let m=v.reference??Ue,g=v.trigger??Ue,x=v.floating??Ue;return no(t,{activeTriggerProps:m,inactiveTriggerProps:g,popupProps:x,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Js,"DialogInteractions");var br=C(E(),1);var hi={...lo,modal:B(t=>t.modal),nested:B(t=>t.nested),nestedOpenDialogCount:B(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:B(t=>t.nestedOpenDrawerCount),disablePointerDismissal:B(t=>t.disablePointerDismissal),openMethod:B(t=>t.openMethod),descriptionElementId:B(t=>t.descriptionElementId),titleElementId:B(t=>t.titleElementId),viewportElement:B(t=>t.viewportElement),role:B(t=>t.role)},go=class t extends Xt{static{i(this,"DialogStore")}constructor(e,o,r=!1){let n=new so,a=vi(e);a.floatingRootContext=io(n,o,r),super(a,{popupRef:br.createRef(),backdropRef:br.createRef(),internalBackdropRef:br.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},hi)}setOpen=i((e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let r={open:e};$o(r,e,o.trigger),this.update(r)},"setOpen");static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a),!0).store}};function vi(t={}){return{...ao(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(vi,"createInitialState");var So=C(oe(),1);function ea(t,e="dialog"){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:a,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:l,handle:u,triggerId:h,defaultTriggerId:f=null}=t,v=e==="drawer",m=e==="alert-dialog",g=m?!0:p,x=m||d,b=m?"alertdialog":"dialog",P=re(!0),S={modal:g,disablePointerDismissal:x,nested:!!P,role:b},R=go.useStore(u?.store,{open:n,openProp:r,activeTriggerId:f,triggerIdProp:h,...S});Zn(()=>{let H=r===void 0&&R.state.open===!1&&n===!0?{open:!0,activeTriggerId:f}:null;m?R.update(H?{...S,...H}:S):H&&R.update(H)}),R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",h),R.useSyncedValues(S),R.useContextCallback("onOpenChange",a),R.useContextCallback("onOpenChangeComplete",c);let N=R.useState("open"),T=R.useState("mounted"),k=R.useState("payload");Ys({store:R,actionsRef:l});let w=N||T,M=Xs.useMemo(()=>({store:R}),[R]);return(0,So.jsx)(hr.Provider,{value:!1,children:(0,So.jsxs)(Qr.Provider,{value:M,children:[w&&(0,So.jsx)(Js,{store:R,parentContext:P?.store.context,isDrawer:v}),typeof o=="function"?o({payload:k}):o]})})}i(ea,"useRenderDialogRoot");function oa(t){let e=ta.useContext(hr)?"drawer":"dialog";return ea(t,e)}i(oa,"DialogRoot");var ra=C(E(),1);var Jr=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var xi={...se,...pe,nested(t){return t?{[Jr.nested]:""}:null},nestedDialogOpen(t){return t?{[Jr.nestedDialogOpen]:""}:null}},na=ra.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=xr(),{store:l}=re(),u=l.useState("open"),h=l.useState("nested"),f=l.useState("transitionStatus"),v=l.useState("nestedOpenDialogCount"),m=l.useState("mounted"),g=l.useStateSetter("viewportElement"),x=v>0;return _("div",e,{enabled:p||m,state:{open:u,nested:h,transitionStatus:f,nestedDialogOpen:x},ref:[o,g],stateAttributesMapping:xi,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:c},d]})},"DialogViewport"));var sa=C(E(),1);var aa=sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("titleElementId",l),_("h2",e,{ref:o,props:[{id:l},d]})},"DialogTitle"));var yr=C(E(),1);var ia=yr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,id:p,payload:l,handle:u,...h}=e,f=re(!0),v=u?.store??f?.store;if(!v)throw new Error(W(79));let m=le(p),g=v.useState("floatingRootContext"),x=v.useState("isOpenedByTrigger",m),b=v.useState("triggerPopupId",m),P=yr.useRef(null),{registerTrigger:y,isMountedByThisTrigger:S}=to(m,P,v,{payload:l}),{getButtonProps:R,buttonRef:N}=_e({disabled:c,native:d}),T=qo(g,{enabled:g!=null}),k=tr(()=>v.select("open"),H=>{v.set("openMethod",H)}),w={disabled:c,open:x},M=v.useState("triggerProps",S);return _("button",e,{state:w,ref:[N,o,y,P],props:[T.reference,M,k,{[Uo]:"",id:m,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":b},h,R],stateAttributesMapping:co})},"DialogTrigger"));var No=class{static{i(this,"DialogHandle")}constructor(e){this.store=e??new go}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,q(O.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function la(){return new No}i(la,"createDialogHandle");var ve={};Br(ve,{Arrow:()=>Ea,Handle:()=>To,Popup:()=>Na,Portal:()=>Pa,Positioner:()=>Ra,Provider:()=>wa,Root:()=>da,Trigger:()=>ga,Viewport:()=>Ma,createHandle:()=>Da});var he=C(E(),1);var Pr=C(E(),1);var Xr=Pr.createContext(void 0);function ue(t){let e=Pr.useContext(Xr);if(e===void 0&&!t)throw new Error(W(72));return e}i(ue,"useTooltipRootContext");var ca=C(E(),1);var bi={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),isInstantPhase:B(t=>t.isInstantPhase),trackCursorAxis:B(t=>t.trackCursorAxis),disableHoverablePopup:B(t=>t.disableHoverablePopup),lastOpenChangeReason:B(t=>t.openChangeReason),closeOnClick:B(t=>t.closeOnClick),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},ho=class t extends Xt{static{i(this,"TooltipStore")}constructor(e,o,r=!1){let n=new so,a={...yi(),...e};a.floatingRootContext=io(n,o,r),super(a,{popupRef:ca.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},bi)}setOpen=i((e,o)=>{$n(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,q(O.triggerPress,e))}static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a)).store}};function yi(){return{...ao(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}i(yi,"createInitialState");var Cr=C(oe(),1);var da=Wn(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:a=!1,trackCursorAxis:c="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:l,handle:u,triggerId:h,defaultTriggerId:f=null,children:v}=e,m=ho.useStore(u?.store,{open:r,openProp:n,activeTriggerId:f,triggerIdProp:h});Qo(m,n,r,f),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",h),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",l);let g=m.useState("open"),x=!o&&g,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:a}),m.useSyncedValue("disabled",o),oo(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:R}=ro(x,m),N=m.useState("isInstantPhase"),T=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),w=he.useRef(null);De(()=>{g&&o&&m.setOpen(!1,q(O.disabled))},[g,o,m]),De(()=>{R==="ending"&&k===O.none||R!=="ending"&&N?(T!=="delay"&&(w.current=T),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[R,N,k,T,m]),De(()=>{x&&b==null&&m.set("payload",void 0)},[m,b,x]);let M=he.useCallback(()=>{m.setOpen(!1,q(O.imperativeAction))},[m]);he.useImperativeHandle(d,()=>({unmount:S,close:M}),[S,M]);let H=x||P||!o&&c!=="none";return(0,Cr.jsxs)(Xr.Provider,{value:m,children:[H&&(0,Cr.jsx)(Pi,{store:m,disabled:o,trackCursorAxis:c}),typeof v=="function"?v({payload:y}):v]})},"TooltipRoot"));function Pi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Jt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),a=Kn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),c=he.useMemo(()=>Se(a.reference,n.reference),[a.reference,n.reference]),d=he.useMemo(()=>Se(a.trigger,n.trigger),[a.trigger,n.trigger]),p=he.useMemo(()=>Se(Ie,a.floating,n.floating),[a.floating,n.floating]);return no(t,{activeTriggerProps:c,inactiveTriggerProps:d,popupProps:p}),null}i(Pi,"TooltipInteractions");var Sr=C(E(),1);var Rr=C(E(),1);var en=Rr.createContext(void 0);function pa(){return Rr.useContext(en)}i(pa,"useTooltipProviderContext");var ua=(function(t){return t[t.popupOpen=Jn.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});var fa="data-base-ui-tooltip-trigger";function ma(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(zo(n))return n}}let e=t.target;return zo(e)?e:null}i(ma,"getTargetElement");function Ci(t){let e=t;for(;e;){if(e.hasAttribute(fa))return e;let o=e.parentElement;if(o){e=o;continue}let r=e.getRootNode();e="host"in r&&zo(r.host)?r.host:null}return null}i(Ci,"closestEnabledTooltipTrigger");var ga=qn(i(function(e,o){let{render:r,className:n,style:a,handle:c,payload:d,disabled:p,delay:l,closeOnClick:u=!0,closeDelay:h,id:f,...v}=e,m=ue(!0),g=c?.store??m;if(!g)throw new Error(W(82));let x=le(f),b=g.useState("isTriggerActive",x),P=g.useState("isOpenedByTrigger",x),y=g.useState("floatingRootContext"),S=Sr.useRef(null),R=l??600,N=h??0,{registerTrigger:T,isMountedByThisTrigger:k}=to(x,S,g,{payload:d,closeOnClick:u,closeDelay:N}),w=pa(),{delayRef:M,isInstantPhase:H,hasProvider:G}=Ln(y,{open:P}),V=Yn(y);g.useSyncedValue("isInstantPhase",H);let K=g.useState("disabled"),U=p??K,$=Bn(U),Y=g.useState("trackCursorAxis"),A=g.useState("disableHoverablePopup"),I=Sr.useRef(!1),Z=In(),ie=Sr.useRef(void 0);function ce(){let j=w?.delay,J=typeof M.current=="object"?M.current.open:void 0,te=R;return G&&(J!==0?te=l??j??R:te=0),te}i(ce,"getOpenDelay");function de(j){let J=S.current;if(!J||!j)return!1;let te=Ci(j);return te!==null&&te!==J&&bo(J,te)}i(de,"isEnabledNestedTriggerTarget");function ee(j){let J=de(j);return I.current=J,J&&(V.openChangeTimeout.clear(),V.restTimeout.clear(),V.restTimeoutPending=!1,Z.clear()),J}i(ee,"detectNestedTriggerHover");let ne=Xo(y,{enabled:!U,mouseOnly:!0,move:!1,handleClose:!A&&Y!=="both"?er():null,restMs:ce,delay(){let j=typeof M.current=="object"?M.current.close:void 0,J=N;return h==null&&G&&(J=j),{close:J}},triggerElementRef:S,isActiveTrigger:b,isClosing:i(()=>g.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!I.current}}),me=Qn(y,{enabled:!U}).reference,Oe=i(j=>{let J=I.current,te=ma(j),xe=ee(te),fe=S.current,Me=fe&&te&&bo(fe,te);if(xe&&g.select("open")&&g.select("lastOpenChangeReason")===O.triggerHover){g.setOpen(!1,q(O.triggerHover,j));return}if(J&&!xe&&Me&&!$.current&&!g.select("open")&&fe&&Mn(ie.current)){let be=i(()=>{!I.current&&!$.current&&!g.select("open")&&g.setOpen(!0,q(O.triggerHover,j,fe))},"open"),ye=ce();ye===0?(Z.clear(),be()):Z.start(ye,be)}},"handleNestedTriggerHover"),ke=g.useState("triggerProps",k);return _("button",e,{state:{open:P},ref:[o,T,S],props:[ne,me,k||Y!=="none"?ke:void 0,{onMouseOver(j){Oe(j.nativeEvent)},onFocus(j){de(ma(j.nativeEvent))&&j.preventBaseUIHandler()},onMouseLeave(){I.current=!1,Z.clear(),ie.current=void 0},onPointerEnter(j){ie.current=j.pointerType},onPointerDown(j){ie.current=j.pointerType,g.set("closeOnClick",u),u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},onClick(j){u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},id:x,[ua.triggerDisabled]:U?"":void 0,[fa]:U?void 0:""},v],stateAttributesMapping:co})},"TooltipTrigger"));var ya=C(E(),1);var Nr=C(E(),1);var tn=Nr.createContext(void 0);function ha(){let t=Nr.useContext(tn);if(t===void 0)throw new Error(W(70));return t}i(ha,"useTooltipPortalContext");var Tr=C(E(),1),va=C(mn(),1);var xa=C(oe(),1);var ba=Tr.forwardRef(i(function(e,o){let{children:r,container:n,className:a,render:c,style:d,...p}=e,{portalNode:l,portalSubtree:u}=Hn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!l?null:(0,xa.jsxs)(Tr.Fragment,{children:[u,l&&va.createPortal(r,l)]})},"FloatingPortalLite"));var on=C(oe(),1);var Pa=ya.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e;return ue().useState("mounted")||r?(0,on.jsx)(tn.Provider,{value:r,children:(0,on.jsx)(ba,{ref:o,...n})}):null},"TooltipPortal"));var wr=C(E(),1);var Er=C(E(),1);var rn=Er.createContext(void 0);function vo(){let t=Er.useContext(rn);if(t===void 0)throw new Error(W(71));return t}i(vo,"useTooltipPositionerContext");var Ca=C(oe(),1);var Ra=wr.forwardRef(i(function(e,o){let{render:r,className:n,anchor:a,positionMethod:c="absolute",side:d="top",align:p="center",sideOffset:l=0,alignOffset:u=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:v=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:x=Ko,style:b,...P}=e,y=ue(),S=ha(),R=y.useState("open"),N=y.useState("mounted"),T=y.useState("trackCursorAxis"),k=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),M=y.useState("instantType"),H=y.useState("transitionStatus"),G=y.useState("hasViewport"),V=nr({anchor:a,positionMethod:c,floatingRootContext:w,mounted:N,side:d,sideOffset:l,align:p,alignOffset:u,collisionBoundary:h,collisionPadding:f,sticky:m,arrowPadding:v,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:x,adaptiveOrigin:G?rr:void 0}),K=wr.useMemo(()=>({open:R,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:T!=="none"?"tracking-cursor":M}),[R,V.side,V.align,V.anchorHidden,T,M]),U=ir(e,K,{styles:V.positionerStyles,transitionStatus:H,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!N,inert:!R||T==="both"||k});return(0,Ca.jsx)(rn.Provider,{value:V,children:U})},"TooltipPositioner"));var Sa=C(E(),1);var Ri={...se,...pe},Na=Sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{side:p,align:l}=vo(),u=d.useState("open"),h=d.useState("instantType"),f=d.useState("transitionStatus"),v=d.useState("popupProps"),m=d.useState("floatingRootContext"),g=d.useState("disabled"),x=d.useState("closeDelay");Yt({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Jo(m,{enabled:!g,closeDelay:x});let b=d.useStateSetter("popupElement");return _("div",e,{state:{open:u,side:p,align:l,instant:h,transitionStatus:f},ref:[o,d.context.popupRef,b],props:[v,ar(f),c],stateAttributesMapping:Ri})},"TooltipPopup"));var Ta=C(E(),1);var Ea=Ta.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{arrowRef:p,side:l,align:u,arrowUncentered:h,arrowStyles:f}=vo(),v=d.useState("open"),m=d.useState("instantType");return _("div",e,{state:{open:v,side:l,align:u,uncentered:h,instant:m},ref:[o,p],props:[{style:f,"aria-hidden":!0},c],stateAttributesMapping:se})},"TooltipArrow"));var nn=C(E(),1);var sn=C(oe(),1);var wa=i(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,a=nn.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),c=nn.useMemo(()=>({open:o,close:r}),[o,r]);return(0,sn.jsx)(en.Provider,{value:a,children:(0,sn.jsx)(Vn,{delay:c,timeoutMs:n,children:e.children})})},"TooltipProvider");var ka=C(E(),1);var Oa=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Si={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Ma=ka.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=ue(),l=vo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l.side,cssVars:Oa,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:Si})},"TooltipViewport"));var To=class{static{i(this,"TooltipHandle")}constructor(){this.store=new ho}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!o)throw new Error(W(81,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Da(){return new To}i(Da,"createTooltipHandle");var Ia=C(Fr(),1);var _a=C(oe(),1);var Ni=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?Rn:Cn(e,o),"p"),Aa=i(t=>{let e=(0,Ia.c)(7),{catalogs:o,children:r,i18n:n,locale:a}=t,c;e[0]!==o||e[1]!==n||e[2]!==a?(c=Ni(n,a,o),e[0]=o,e[1]=n,e[2]=a,e[3]=c):c=e[3];let d=c,p;return e[4]!==r||e[5]!==d?(p=(0,_a.jsx)(Sn,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var ln=C(Fr(),1);var He=C(E(),1);var X=C(oe(),1);var an="lunora:command-palette",Va=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(an))},"ne"),Ti=i(t=>{let e=(0,ln.c)(18),{active:o,index:r,item:n,onActivate:a,onSelect:c}=t,d;e[0]!==n||e[1]!==c?(d=i(()=>{c(n)},"c"),e[0]=n,e[1]=c,e[2]=d):d=e[2];let p=d,l;e[3]!==r||e[4]!==a?(l=i(()=>{a(r)},"i"),e[3]=r,e[4]=a,e[5]=l):l=e[5];let u=l,h=o?"bg-accent text-accent-foreground":"text-foreground",f;e[6]!==h?(f=z("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",h),e[6]=h,e[7]=f):f=e[7];let v;e[8]!==n.label?(v=(0,X.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=v):v=e[9];let m;e[10]!==n.group?(m=(0,X.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let g;return e[12]!==p||e[13]!==u||e[14]!==f||e[15]!==v||e[16]!==m?(g=(0,X.jsx)("li",{children:(0,X.jsxs)("button",{className:f,onClick:p,onMouseEnter:u,type:"button",children:[v,m]})}),e[12]=p,e[13]=u,e[14]=f,e[15]=v,e[16]=m,e[17]=g):g=e[17],g},"G"),La=i(t=>{let e=(0,ln.c)(39),{items:o}=t,r=Re(),n=xo(),[a,c]=(0,He.useState)(!1),[d,p]=(0,He.useState)(""),[l,u]=(0,He.useState)(0),h=(0,He.useRef)(null),f,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=i(()=>{let A=i(Z=>{(Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="k"&&(Z.preventDefault(),c(!0))},"t"),I=i(()=>{c(!0)},"a");return globalThis.addEventListener("keydown",A),globalThis.addEventListener(an,I),()=>{globalThis.removeEventListener("keydown",A),globalThis.removeEventListener(an,I)}},"d"),v=[],e[0]=f,e[1]=v):(f=e[0],v=e[1]),(0,He.useEffect)(f,v);let m;if(e[2]!==o||e[3]!==d){e:{let A=d.trim().toLowerCase();if(A===""){m=o;break e}m=o.filter(I=>I.label.toLowerCase().includes(A)||I.group.toLowerCase().includes(A))}e[2]=o,e[3]=d,e[4]=m}else m=e[4];let g=m,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=i(A=>{c(A),A||(p(""),u(0))},"S"),e[5]=x):x=e[5];let b=x,P;e[6]!==n?(P=i(A=>{b(!1),po(n({to:A.to}))},"T"),e[6]=n,e[7]=P):P=e[7];let y=P,S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i(A=>{p(A.target.value),u(0)},"D"),e[8]=S):S=e[8];let R=S,N;e[9]!==l||e[10]!==g||e[11]!==y?(N=i(A=>{e:switch(A.key){case"ArrowDown":{A.preventDefault(),u(I=>g.length===0?0:(I+1)%g.length);break e}case"ArrowUp":{A.preventDefault(),u(I=>g.length===0?0:(I-1+g.length)%g.length);break e}case"Enter":{A.preventDefault();let I=g[l];I!==void 0&&y(I);break e}}},"A"),e[9]=l,e[10]=g,e[11]=y,e[12]=N):N=e[12];let T=N,k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=(0,X.jsx)(ae.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[13]=k):k=e[13];let w;e[14]!==r?(w=r("Command palette"),e[14]=r,e[15]=w):w=e[15];let M;e[16]!==w?(M=(0,X.jsx)(ae.Title,{className:"sr-only",children:w}),e[16]=w,e[17]=M):M=e[17];let H;e[18]===Symbol.for("react.memo_cache_sentinel")?(H=(0,X.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,X.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,X.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[18]=H):H=e[18];let G;e[19]!==r?(G=r("Search\u2026"),e[19]=r,e[20]=G):G=e[20];let V;e[21]!==T||e[22]!==d||e[23]!==G?(V=(0,X.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[H,(0,X.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:R,onKeyDown:T,placeholder:G,ref:h,type:"text",value:d})]}),e[21]=T,e[22]=d,e[23]=G,e[24]=V):V=e[24];let K;e[25]!==l||e[26]!==g||e[27]!==y||e[28]!==r?(K=g.length===0?(0,X.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):g.map((A,I)=>(0,X.jsx)(Ti,{active:I===l,index:I,item:A,onActivate:u,onSelect:y},A.to)),e[25]=l,e[26]=g,e[27]=y,e[28]=r,e[29]=K):K=e[29];let U;e[30]!==K?(U=(0,X.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:K}),e[30]=K,e[31]=U):U=e[31];let $;e[32]!==M||e[33]!==V||e[34]!==U?($=(0,X.jsxs)(ae.Portal,{children:[k,(0,X.jsxs)(ae.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[M,V,U]})]}),e[32]=M,e[33]=V,e[34]=U,e[35]=$):$=e[35];let Y;return e[36]!==a||e[37]!==$?(Y=(0,X.jsx)(ae.Root,{onOpenChange:b,open:a,children:$}),e[36]=a,e[37]=$,e[38]=Y):Y=e[38],Y},"re");var Ua="(prefers-color-scheme: dark)",Ka=i(()=>{try{return globalThis.localStorage}catch{return}},"ma"),Ei=i(t=>t==="system"||t==="light"||t==="dark","Ja"),Za=i(()=>globalThis.matchMedia,"pa"),Wa="lunora-studio-theme",cn=["system","light","dark"],wi=i((t="system")=>{try{let e=Ka()?.getItem(Wa);return Ei(e)?e:t}catch{return t}},"Xa"),Ba=i(t=>{let e=Ka();if(e!==void 0)try{e.setItem(Wa,t)}catch{}},"Yt"),Oi=i(()=>{try{return Za()?.(Ua).matches?"dark":"light"}catch{return"light"}},"Ya"),ki=i((t,e)=>t==="system"?e:t,"es"),Mi=i(t=>{let e;try{e=Za()?.(Ua)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"ts"),un=(0,F.createContext)(null),Di=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,F.useState)(()=>wi(e)),[n,a]=(0,F.useState)(()=>Oi());(0,F.useEffect)(()=>Mi(a),[]);let c=i(p=>{Ba(p),r(p)},"o"),d={cycleTheme:i(()=>{r(p=>{let l=cn[(cn.indexOf(p)+1)%cn.length]??p;return Ba(l),l})},"cycleTheme"),resolvedTheme:ki(o,n),setTheme:c,systemTheme:n,theme:o};return(0,s.jsx)(un,{value:d,children:t})},"as"),Ii=i(t=>{let e=(0,D.c)(3),{children:o}=t,r=(0,F.use)(un),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,s.jsx)(Di,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"ss"),_i=i(()=>{let t=(0,F.use)(un);if(t===null)throw new Hr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"rs");function Qg({delay:t=0,...e}){return(0,s.jsx)(ve.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Qg,"Nn");function Ai(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ai,"ns");function Vi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Vi,"is");function Li({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:a,...c}){return(0,s.jsx)(ve.Portal,{children:(0,s.jsx)(ve.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,s.jsxs)(ve.Popup,{"data-slot":"tooltip-content",className:z("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...c,children:[a,(0,s.jsx)(ve.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(Li,"os");var Bi=i(t=>{let e=(0,D.c)(5),{className:o}=t,r;e[0]!==o?(r=z("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let a;return e[3]!==r?(a=(0,s.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=a):a=e[4],a},"ls"),qa="lunora.studio.rulesBannerDismissed",Hi=i(()=>{try{return globalThis.localStorage.getItem(qa)==="1"}catch{return!1}},"ds"),Fi=i(()=>{try{globalThis.localStorage.setItem(qa,"1")}catch{}},"cs"),ji=i(()=>{let t=(0,D.c)(18),e=Re(),[o,r]=(0,F.useState)(zi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>{r(!0),Fi()},"n"),t[0]=n):n=t[0];let a=n;if(o)return null;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=c):c=t[1];let d;t[2]!==e?(d=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let l;t[5]!==e?(l=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=l):l=t[6];let u;t[7]!==d||t[8]!==l?(u=(0,s.jsxs)("span",{children:[d," ",p," ",l]}),t[7]=d,t[8]=l,t[9]=u):u=t[9];let h;t[10]!==e?(h=e("Dismiss"),t[10]=e,t[11]=h):h=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=f):f=t[12];let v;t[13]!==h?(v=(0,s.jsx)("button",{"aria-label":h,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:a,type:"button",children:f}),t[13]=h,t[14]=v):v=t[14];let m;return t[15]!==u||t[16]!==v?(m=(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[c,u,v]}),t[15]=u,t[16]=v,t[17]=m):m=t[17],m},"us");function zi(){return Hi()}i(zi,"hs");var Ui=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,s.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"ms"),Ki=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,s.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"ps"),Zi=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"gs"),Wi=[{Icon:Ui,value:"system"},{Icon:Ki,value:"light"},{Icon:Zi,value:"dark"}],qi=i(()=>{let t=(0,D.c)(19),{theme:e,setTheme:o}=_i(),r=Re(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let a;t[2]!==r?(a=r("Light theme"),t[2]=r,t[3]=a):a=t[3];let c;t[4]!==r?(c=r("System theme"),t[4]=r,t[5]=c):c=t[5];let d;t[6]!==n||t[7]!==a||t[8]!==c?(d={dark:n,light:a,system:c},t[6]=n,t[7]=a,t[8]=c,t[9]=d):d=t[9];let p=d,l;t[10]!==r?(l=r("Theme"),t[10]=r,t[11]=l):l=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Wi.map(f=>{let{Icon:v,value:m}=f,g=e===m;return(0,s.jsxs)("button",{"aria-checked":g,"aria-label":p[m],className:z("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",g?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[g&&(0,s.jsx)(Nn.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,s.jsx)("span",{className:"relative",children:(0,s.jsx)(v,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let h;return t[16]!==l||t[17]!==u?(h=(0,s.jsx)("div",{"aria-label":l,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=l,t[17]=u,t[18]=h):h=t[18],h},"bs");function Ga(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ga,"ba");function $a(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i($a,"va");function Qa({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:a=6,...c}){return(0,s.jsx)(Be.Portal,{keepMounted:r,children:(0,s.jsx)(Be.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:a,children:(0,s.jsx)(Be.Popup,{className:z("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...c})})})}i(Qa,"ya");var dn=768;function Gi(){let t=(0,D.c)(2),[e,o]=(0,F.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let a=globalThis.matchMedia(`(max-width: ${dn-1}px)`),c=i(()=>{o(globalThis.innerWidth<dn)},"o");return a.addEventListener("change",c),o(globalThis.innerWidth<dn),()=>{a.removeEventListener("change",c)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,F.useEffect)(r,n),!!e}i(Gi,"vs");function $i(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i($i,"ys");function Qi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Qi,"xs");function Yi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Yi,"ws");function Ji({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,s.jsxs)(Qi,{children:[(0,s.jsx)(Yi,{}),(0,s.jsxs)(ae.Popup,{"data-slot":"sheet-content","data-side":o,className:z("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,s.jsxs)(ae.Close,{"data-slot":"sheet-close",render:(0,s.jsx)(Kr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,s.jsx)(Ur,{icon:ns,strokeWidth:2}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(Ji,"ks");function Xi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Xi,"Ns");function el(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(el,"Ms");function tl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(tl,"Ss");var ol="sidebar_state",rl=3600*24*7,nl="16rem",sl="18rem",al="3rem",il="b",Ya=we.createContext(null);function Or(){let t=we.useContext(Ya);if(!t)throw new Hr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(Or,"Vt");function ll({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:a,...c}){let d=Gi(),[p,l]=we.useState(!1),[u,h]=we.useState(t),f=e??u,v=i(x=>{let b=typeof x=="function"?x(f):x;o?o(b):h(b),document.cookie=`${ol}=${b}; path=/; max-age=${rl}`},"b"),m=i(()=>d?l(x=>!x):v(x=>!x),"p");we.useEffect(()=>{let x=i(b=>{b.key===il&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),m())},"f");return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[m]);let g={state:f?"expanded":"collapsed",open:f,setOpen:v,isMobile:d,openMobile:p,setOpenMobile:l,toggleSidebar:m};return(0,s.jsx)(Ya.Provider,{value:g,children:(0,s.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nl,"--sidebar-width-icon":al,...n},className:z("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...c,children:a})})}i(ll,"zs");function cl({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:a,...c}){let{isMobile:d,state:p,openMobile:l,setOpenMobile:u}=Or();return o==="none"?(0,s.jsx)("div",{"data-slot":"sidebar",className:z("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...c,children:n}):d?(0,s.jsx)($i,{open:l,onOpenChange:u,...c,children:(0,s.jsxs)(Ji,{dir:a,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":sl},side:t,children:[(0,s.jsxs)(Xi,{className:"sr-only",children:[(0,s.jsx)(el,{children:"Sidebar"}),(0,s.jsx)(tl,{children:"Displays the mobile sidebar."})]}),(0,s.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,s.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,s.jsx)("div",{"data-slot":"sidebar-gap",className:z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,s.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...c,children:(0,s.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}i(cl,"$s");function dl(t){let e=(0,D.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:a}=Or(),c;e[4]!==o?(c=z(o),e[4]=o,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a?(d=i(h=>{r?.(h),a()},"d"),e[6]=r,e[7]=a,e[8]=d):d=e[8];let p,l;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Ur,{icon:ss,strokeWidth:2,className:"rtl:rotate-180"}),l=(0,s.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=l):(p=e[9],l=e[10]);let u;return e[11]!==n||e[12]!==c||e[13]!==d?(u=(0,s.jsxs)(Kr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:c,onClick:d,...n,children:[p,l]}),e[11]=n,e[12]=c,e[13]=d,e[14]=u):u=e[14],u}i(dl,"Rs");function pl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(pl,"Is");function ul(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ul,"Vs");function ml(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ml,"Zs");function fl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(fl,"Ks");function gl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(gl,"Es");function hl(t){let e=(0,D.c)(10),o,r,n,a;if(e[0]!==t){let{className:p,render:l,...u}=t;o=l,a=jr,r="div",n=Se({className:z("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=a}else o=e[1],r=e[2],n=e[3],a=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=c):c=e[5];let d;return e[6]!==o||e[7]!==r||e[8]!==n?(d={defaultTagName:r,props:n,render:o,state:c},e[6]=o,e[7]=r,e[8]=n,e[9]=d):d=e[9],a(d)}i(hl,"Hs");function vl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(vl,"Os");function Ha(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Ha,"ea");function Fa(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Fa,"ta");var xl=Tn("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ja({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:a,...c}){let{isMobile:d,state:p}=Or(),l=jr({defaultTagName:"button",props:Se({className:z(xl({variant:o,size:r}),a)},c),render:n?(0,s.jsx)(Vi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,s.jsxs)(Ai,{children:[l,(0,s.jsx)(Li,{side:"right",align:"center",hidden:p!=="collapsed"||d,...n})]})):l}i(Ja,"wa");var L=i((t,e)=>(0,F.lazy)(()=>t().then(o=>({default:o[e]}))),"w"),bl=L(()=>import("./chunk-KMLEIUJH.js"),"InsightsPanel"),yl=(0,F.lazy)(()=>import("./chunk-ZNNAGR6N.js")),Pl=(0,F.lazy)(()=>import("./chunk-XEDU5FO4.js")),Cl=L(()=>import("./chunk-GSPTEMYN.js"),"AgentsPanel"),Rl=L(()=>import("./chunk-BEH5N5ZA.js"),"AnalyticsPanel"),Sl=(0,F.lazy)(()=>import("./chunk-5OWIOACV.js")),Nl=L(()=>import("./chunk-HP2UCWND.js"),"AuthAuditPanel"),Tl=L(()=>import("./chunk-7J5N6DGQ.js"),"AuthConfigPanel"),El=L(()=>import("./chunk-FGTK44LR.js"),"AuthSessionsPanel"),wl=L(()=>import("./chunk-B43FTQJ7.js"),"OrganizationsPanel"),Ol=L(()=>import("./chunk-YI3WYUXK.js"),"UsersPanel"),kl=L(()=>import("./chunk-OHKRN65U.js"),"ContainersPanel"),Ml=L(()=>import("./chunk-IDNNI63H.js"),"DeploymentHealthPanel"),Dl=L(()=>import("./chunk-T2JIUFOD.js"),"TableEditor"),Il=L(()=>import("./chunk-BNUJ7QMG.js"),"ExportImportPanel"),_l=L(()=>import("./chunk-4WLYA3XE.js"),"MigrationsPanel"),Al=L(()=>import("./chunk-L7N7F3DA.js"),"PitrPanel"),Vl=L(()=>import("./chunk-TLHJRWNK.js"),"FlagsPanel"),Ll=L(()=>import("./chunk-2F7G7IWQ.js"),"FunctionRunner"),Bl=L(()=>import("./chunk-5U2THBI7.js"),"FunctionStatsPanel"),Hl=L(()=>import("./chunk-PWWHP76O.js"),"IssuesPanel"),Fl=L(()=>import("./chunk-XQBTNJUQ.js"),"AuditPanel"),jl=L(()=>import("./chunk-2Y36BVVM.js"),"LogDrainsPanel"),zl=(0,F.lazy)(()=>import("./chunk-C43X4M5U.js").then(t=>({default:t.LogsPanel}))),Ul=L(()=>import("./chunk-EXFBIISG.js"),"MailPanel"),Kl=L(()=>import("./chunk-DVOBKIUX.js"),"SchedulePanel"),Zl=(0,F.lazy)(()=>import("./chunk-RAA2RGG6.js")),Wl=(0,F.lazy)(()=>import("./chunk-F5QWLENA.js")),ql=L(()=>import("./chunk-W3YWXG4O.js"),"KvBrowser"),Gl=L(()=>import("./chunk-KDOC2DP5.js"),"NotificationsPanel"),$l=L(()=>import("./chunk-34UVAASH.js"),"PaymentsPanel"),Ql=L(()=>import("./chunk-QVEHPYA5.js"),"PermissionsPanel"),Yl=(0,F.lazy)(()=>import("./chunk-65OTWFS3.js")),Jl=(0,F.lazy)(()=>import("./chunk-EVN46TVV.js")),Xl=(0,F.lazy)(()=>import("./chunk-YD5NF6UT.js")),ec=L(()=>import("./chunk-EKRN4ZQM.js"),"HealthPanel"),tc=L(()=>import("./chunk-6DWCIIHE.js"),"MetricsPanel"),oc=L(()=>import("./chunk-UIS34ZPB.js"),"SchemaViewer"),rc=L(()=>import("./chunk-QGKAJTQQ.js"),"SettingsPanel"),nc=L(()=>import("./chunk-VPAXCQ2Y.js"),"SqlEditorPanel"),sc=L(()=>import("./chunk-P24JBHEZ.js"),"FileBrowser"),ac=L(()=>import("./chunk-SA3MDZC3.js"),"StorageRulesPanel"),ic=L(()=>import("./chunk-3FUFEZ65.js"),"TracesPanel"),lc=L(()=>import("./chunk-LJDP7NRB.js"),"VectorBrowser"),cc=(0,F.lazy)(()=>import("./chunk-D7XXWV4E.js")),Xa=(0,F.createContext)(null),dc={analytics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,s.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,s.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,s.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,s.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,s.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,s.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,s.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,s.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,s.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,s.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),health:(0,s.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,s.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,s.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,s.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,s.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,s.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,s.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,s.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,s.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,s.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,s.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),realtime:(0,s.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,s.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),security:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,s.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,s.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,s.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,s.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},ja=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","audit","realtime","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],pc={analytics:"analytics",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},za=i((t,e)=>{let o=pc[t];return o===void 0||e[o]},"sa"),pn=i(t=>{let e=(0,D.c)(2),{tab:o}=t,r=dc[o],n;return e[0]!==r?(n=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"Gt"),uc=i(t=>t,"Vr"),ei=uc(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","security","rls","permissions","insights","issues","logs","traces","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),mc=new Set(["api","data","sql"]),fc=i(t=>{let e=t.split("/").findLast(Boolean)??"";return ei.includes(e)?e:"home"},"Kr"),gc=i(t=>{let e=(0,D.c)(19),{chrome:o,connected:r}=t,n=Re(),a;e[0]!==n?(a=n("admin token"),e[0]=n,e[1]=a):a=e[1];let c;e[2]!==a?(c=(0,s.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:a}),e[2]=a,e[3]=c):c=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,s.jsx)(An,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,s.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let l;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(l=r&&(0,s.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=l):l=e[13];let u;return e[14]!==c||e[15]!==d||e[16]!==p||e[17]!==l?(u=(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[c,d,p,l]}),e[14]=c,e[15]=d,e[16]=p,e[17]=l,e[18]=u):u=e[18],u},"Er"),hc=i(t=>{let e=(0,D.c)(25),{current:o,group:r,groupLabel:n,selectTab:a,tabDescription:c,tabLabel:d}=t,p=r.tabs.includes(o)?"page":void 0,l=n[r.key],u=r.tabs[0],h;e[0]!==u?(h=(0,s.jsx)(pn,{tab:u}),e[0]=u,e[1]=h):h=e[1];let f;e[2]!==p||e[3]!==l||e[4]!==h?(f=(0,s.jsx)($a,{"aria-current":p,"aria-label":l,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=p,e[3]=l,e[4]=h,e[5]=f):f=e[5];let v=n[r.key],m;e[6]!==v?(m=(0,s.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:v}),e[6]=v,e[7]=m):m=e[7];let g;if(e[8]!==o||e[9]!==r.tabs||e[10]!==a||e[11]!==c||e[12]!==d){let P;e[14]!==o||e[15]!==a||e[16]!==c||e[17]!==d?(P=i(y=>(0,s.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:a,title:c[y],type:"button",children:[(0,s.jsx)(pn,{tab:y}),(0,s.jsx)("span",{children:d[y]})]},y),"k"),e[14]=o,e[15]=a,e[16]=c,e[17]=d,e[18]=P):P=e[18],g=r.tabs.map(P),e[8]=o,e[9]=r.tabs,e[10]=a,e[11]=c,e[12]=d,e[13]=g}else g=e[13];let x;e[19]!==m||e[20]!==g?(x=(0,s.jsxs)(Qa,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,g]}),e[19]=m,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==f||e[23]!==x?(b=(0,s.jsxs)(Ga,{children:[f,x]}),e[22]=f,e[23]=x,e[24]=b):b=e[24],b},"Hr"),vc=i(t=>{let e=(0,D.c)(45),{chrome:o,collapsed:r,connected:n}=t,a=Re();if(o===null){let y;e[0]!==a?(y=a("Admin"),e[0]=a,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let R;e[3]!==a?(R=a("Admin"),e[3]=a,e[4]=R):R=e[4];let N;e[5]!==R?(N=(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:R}),e[5]=R,e[6]=N):N=e[6];let T;e[7]!==a?(T=a("Studio"),e[7]=a,e[8]=T):T=e[8];let k;e[9]!==T?(k=(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:T}),e[9]=T,e[10]=k):k=e[10];let w;e[11]!==N||e[12]!==k?(w=(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[N,k]}),e[11]=N,e[12]=k,e[13]=w):w=e[13];let M;return e[14]!==y||e[15]!==w?(M=(0,s.jsxs)(Ja,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,w]}),e[14]=y,e[15]=w,e[16]=M):M=e[16],M}let c=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==c?(d=z("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",c),e[17]=c,e[18]=d):d=e[18];let p;e[19]!==n||e[20]!==a?(p=a(n?"Connected":"Not connected"),e[19]=n,e[20]=a,e[21]=p):p=e[21];let l=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==l?(u=z("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",l),e[22]=l,e[23]=u):u=e[23];let h;e[24]!==u?(h=(0,s.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,s.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=h):h=e[25];let f;e[26]!==r||e[27]!==n||e[28]!==a?(f=!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:a("Admin")}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:a(n?"Connected":"Not connected")})]}),(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=a,e[29]=f):f=e[29];let v;e[30]!==d||e[31]!==p||e[32]!==h||e[33]!==f?(v=(0,s.jsxs)($a,{className:d,"data-testid":"dash-app-connect",title:p,children:[h,f]}),e[30]=d,e[31]=p,e[32]=h,e[33]=f,e[34]=v):v=e[34];let m=r?"end":"start",g=r?"right":"top",x;e[35]!==o||e[36]!==n?(x=(0,s.jsx)(gc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=x):x=e[37];let b;e[38]!==g||e[39]!==x||e[40]!==m?(b=(0,s.jsx)(Qa,{align:m,keepMounted:!0,side:g,children:x}),e[38]=g,e[39]=x,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==v?(P=(0,s.jsxs)(Ga,{children:[v,b]}),e[42]=b,e[43]=v,e[44]=P):P=e[44],P},"Or"),xc=i(t=>{let e=(0,D.c)(28),{chrome:o,connected:r,current:n,groupLabel:a,groups:c,selectTab:d,tabDescription:p,tabLabel:l}=t,u=Re(),{state:h}=Or(),f=h==="collapsed",v=f&&"justify-center px-0",m;e[0]!==v?(m=z("flex items-center gap-2.5 px-1.5 py-1",v),e[0]=v,e[1]=m):m=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(Bi,{className:"size-9 shrink-0 text-foreground"}),e[2]=g):g=e[2];let x;e[3]!==f||e[4]!==r||e[5]!==u?(x=!f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,s.jsx)(En,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=f,e[4]=r,e[5]=u,e[6]=x):x=e[6];let b;e[7]!==m||e[8]!==x?(b=(0,s.jsx)(ul,{children:(0,s.jsxs)("div",{className:m,children:[g,x]})}),e[7]=m,e[8]=x,e[9]=b):b=e[9];let P;e[10]!==f||e[11]!==n||e[12]!==a||e[13]!==c||e[14]!==d||e[15]!==p||e[16]!==l?(P=f?c.map(N=>(0,s.jsx)(hc,{current:n,group:N,groupLabel:a,selectTab:d,tabDescription:p,tabLabel:l},N.key)):c.map(N=>(0,s.jsxs)(gl,{children:[(0,s.jsx)(hl,{className:"text-[11px] font-medium tracking-wider uppercase",children:a[N.key]}),(0,s.jsx)(vl,{children:(0,s.jsx)(Ha,{children:N.tabs.map(T=>(0,s.jsx)(Fa,{children:(0,s.jsxs)(Ja,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":T,"data-testid":`dash-tab-${T}`,isActive:n===T,onClick:d,title:p[T],tooltip:p[T],children:[(0,s.jsx)(pn,{tab:T}),(0,s.jsx)("span",{children:l[T]})]})},T))})})]},N.key)),e[10]=f,e[11]=n,e[12]=a,e[13]=c,e[14]=d,e[15]=p,e[16]=l,e[17]=P):P=e[17];let y;e[18]!==P?(y=(0,s.jsx)(fl,{children:P}),e[18]=P,e[19]=y):y=e[19];let S;e[20]!==o||e[21]!==f||e[22]!==r?(S=(0,s.jsx)(ml,{children:(0,s.jsx)(Ha,{children:(0,s.jsx)(Fa,{children:(0,s.jsx)(vc,{chrome:o,collapsed:f,connected:r})})})}),e[20]=o,e[21]=f,e[22]=r,e[23]=S):S=e[23];let R;return e[24]!==b||e[25]!==y||e[26]!==S?(R=(0,s.jsxs)(cl,{collapsible:"icon",variant:"inset",children:[b,y,S]}),e[24]=b,e[25]=y,e[26]=S,e[27]=R):R=e[27],R},"Br"),ti=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(dr,{className:"h-8 w-40"}),(0,s.jsx)(dr,{className:"h-8 w-24"})]}),(0,s.jsx)(dr,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Ma"),bc=i(()=>{let t=(0,D.c)(330),e=Re(),o=xo(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Sc},t[0]=r):r=t[0];let n=Pn(r),a,c;t[1]!==n?(a=fc(n),c=mc.has(a),t[1]=n,t[2]=a,t[3]=c):(a=t[2],c=t[3]);let d=c,p=as(),l;t[4]!==p?(l=i(Ce=>({...Ce,tabs:Ce.tabs.filter(Fo=>za(Fo,p))}),"c"),t[4]=p,t[5]=l):l=t[5];let u=ja.map(l).filter(Nc),h,f;t[6]!==a||t[7]!==p||t[8]!==o?(h=i(()=>{za(a,p)||po(o({replace:!0,to:"/home"}))},"g"),f=[a,p,o],t[6]=a,t[7]=p,t[8]=o,t[9]=h,t[10]=f):(h=t[9],f=t[10]),(0,F.useEffect)(h,f);let v;t[11]!==e?(v=e("Agents"),t[11]=e,t[12]=v):v=t[12];let m;t[13]!==e?(m=e("Analytics"),t[13]=e,t[14]=m):m=t[14];let g;t[15]!==e?(g=e("API"),t[15]=e,t[16]=g):g=t[16];let x;t[17]!==e?(x=e("Audit"),t[17]=e,t[18]=x):x=t[18];let b;t[19]!==e?(b=e("Auth audit"),t[19]=e,t[20]=b):b=t[20];let P;t[21]!==e?(P=e("Configuration"),t[21]=e,t[22]=P):P=t[22];let y;t[23]!==e?(y=e("Sessions"),t[23]=e,t[24]=y):y=t[24];let S;t[25]!==e?(S=e("Containers"),t[25]=e,t[26]=S):S=t[26];let R;t[27]!==e?(R=e("Dashboards"),t[27]=e,t[28]=R):R=t[28];let N;t[29]!==e?(N=e("Data"),t[29]=e,t[30]=N):N=t[30];let T;t[31]!==e?(T=e("Deployment health"),t[31]=e,t[32]=T):T=t[32];let k;t[33]!==e?(k=e("Log drains"),t[33]=e,t[34]=k):k=t[34];let w;t[35]!==e?(w=e("Export / Import"),t[35]=e,t[36]=w):w=t[36];let M;t[37]!==e?(M=e("Fan-out"),t[37]=e,t[38]=M):M=t[38];let H;t[39]!==e?(H=e("Files"),t[39]=e,t[40]=H):H=t[40];let G;t[41]!==e?(G=e("Flags"),t[41]=e,t[42]=G):G=t[42];let V;t[43]!==e?(V=e("Functions"),t[43]=e,t[44]=V):V=t[44];let K;t[45]!==e?(K=e("Health"),t[45]=e,t[46]=K):K=t[46];let U;t[47]!==e?(U=e("Home"),t[47]=e,t[48]=U):U=t[48];let $;t[49]!==e?($=e("Performance"),t[49]=e,t[50]=$):$=t[50];let Y;t[51]!==e?(Y=e("Issues"),t[51]=e,t[52]=Y):Y=t[52];let A;t[53]!==e?(A=e("KV"),t[53]=e,t[54]=A):A=t[54];let I;t[55]!==e?(I=e("Logs"),t[55]=e,t[56]=I):I=t[56];let Z;t[57]!==e?(Z=e("Metrics"),t[57]=e,t[58]=Z):Z=t[58];let ie;t[59]!==e?(ie=e("Migrations"),t[59]=e,t[60]=ie):ie=t[60];let ce;t[61]!==e?(ce=e("Notifications"),t[61]=e,t[62]=ce):ce=t[62];let de;t[63]!==e?(de=e("Organizations"),t[63]=e,t[64]=de):de=t[64];let ee;t[65]!==e?(ee=e("Time Travel"),t[65]=e,t[66]=ee):ee=t[66];let ne;t[67]!==e?(ne=e("Mail"),t[67]=e,t[68]=ne):ne=t[68];let me;t[69]!==e?(me=e("Payments"),t[69]=e,t[70]=me):me=t[70];let Oe;t[71]!==e?(Oe=e("Permissions"),t[71]=e,t[72]=Oe):Oe=t[72];let ke;t[73]!==e?(ke=e("Queues"),t[73]=e,t[74]=ke):ke=t[74];let Fe;t[75]!==e?(Fe=e("Realtime"),t[75]=e,t[76]=Fe):Fe=t[76];let je;t[77]!==e?(je=e("RLS Policies"),t[77]=e,t[78]=je):je=t[78];let ze;t[79]!==e?(ze=e("Scheduled"),t[79]=e,t[80]=ze):ze=t[80];let j;t[81]!==e?(j=e("Schema"),t[81]=e,t[82]=j):j=t[82];let J;t[83]!==e?(J=e("Security"),t[83]=e,t[84]=J):J=t[84];let te;t[85]!==e?(te=e("Settings"),t[85]=e,t[86]=te):te=t[86];let xe;t[87]!==e?(xe=e("SQL editor"),t[87]=e,t[88]=xe):xe=t[88];let fe;t[89]!==e?(fe=e("Traces"),t[89]=e,t[90]=fe):fe=t[90];let Me;t[91]!==e?(Me=e("Access Rules"),t[91]=e,t[92]=Me):Me=t[92];let be;t[93]!==e?(be=e("Users"),t[93]=e,t[94]=be):be=t[94];let ye;t[95]!==e?(ye=e("Vectors"),t[95]=e,t[96]=ye):ye=t[96];let We;t[97]!==e?(We=e("Workflows"),t[97]=e,t[98]=We):We=t[98];let Eo;t[99]!==P||t[100]!==y||t[101]!==S||t[102]!==R||t[103]!==N||t[104]!==T||t[105]!==k||t[106]!==w||t[107]!==M||t[108]!==H||t[109]!==G||t[110]!==V||t[111]!==K||t[112]!==U||t[113]!==$||t[114]!==Y||t[115]!==A||t[116]!==I||t[117]!==Z||t[118]!==ie||t[119]!==ce||t[120]!==de||t[121]!==ee||t[122]!==ne||t[123]!==me||t[124]!==Oe||t[125]!==ke||t[126]!==Fe||t[127]!==je||t[128]!==ze||t[129]!==j||t[130]!==J||t[131]!==te||t[132]!==xe||t[133]!==fe||t[134]!==Me||t[135]!==be||t[136]!==ye||t[137]!==We||t[138]!==v||t[139]!==m||t[140]!==g||t[141]!==x||t[142]!==b?(Eo={agents:v,analytics:m,api:g,audit:x,authAudit:b,authConfig:P,authSessions:y,containers:S,dashboards:R,data:N,deploymentHealth:T,drains:k,export:w,fanout:M,files:H,flags:G,functions:V,health:K,home:U,insights:$,issues:Y,kv:A,logs:I,metrics:Z,migrations:ie,notifications:ce,organizations:de,pitr:ee,mail:ne,payments:me,permissions:Oe,queues:ke,realtime:Fe,rls:je,schedule:ze,schema:j,security:J,settings:te,sql:xe,traces:fe,storageRules:Me,users:be,vectors:ye,workflows:We},t[99]=P,t[100]=y,t[101]=S,t[102]=R,t[103]=N,t[104]=T,t[105]=k,t[106]=w,t[107]=M,t[108]=H,t[109]=G,t[110]=V,t[111]=K,t[112]=U,t[113]=$,t[114]=Y,t[115]=A,t[116]=I,t[117]=Z,t[118]=ie,t[119]=ce,t[120]=de,t[121]=ee,t[122]=ne,t[123]=me,t[124]=Oe,t[125]=ke,t[126]=Fe,t[127]=je,t[128]=ze,t[129]=j,t[130]=J,t[131]=te,t[132]=xe,t[133]=fe,t[134]=Me,t[135]=be,t[136]=ye,t[137]=We,t[138]=v,t[139]=m,t[140]=g,t[141]=x,t[142]=b,t[143]=Eo):Eo=t[143];let Pe=Eo,kr={advisors:e("Advisors"),auth:e("Auth"),database:e("Database"),functions:e("Functions"),observability:e("Observability"),operations:e("Operations"),overview:e("Overview"),settings:e("Settings"),storage:e("Storage")},qe;t[144]!==e?(qe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[144]=e,t[145]=qe):qe=t[145];let Ge;t[146]!==e?(Ge=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[146]=e,t[147]=Ge):Ge=t[147];let $e;t[148]!==e?($e=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[148]=e,t[149]=$e):$e=t[149];let Qe;t[150]!==e?(Qe=e("A durable log of admin state-changing operations."),t[150]=e,t[151]=Qe):Qe=t[151];let Ye;t[152]!==e?(Ye=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[152]=e,t[153]=Ye):Ye=t[153];let Je;t[154]!==e?(Je=e("Enabled plugins and session config (read-only)."),t[154]=e,t[155]=Je):Je=t[155];let Xe;t[156]!==e?(Xe=e("Browse and revoke active sessions across all users."),t[156]=e,t[157]=Xe):Xe=t[157];let et;t[158]!==e?(et=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[158]=e,t[159]=et):et=t[159];let tt;t[160]!==e?(tt=e("Chart widgets backed by saved read-only SQL queries."),t[160]=e,t[161]=tt):tt=t[161];let ot;t[162]!==e?(ot=e("Browse and edit rows across your shard and global tables."),t[162]=e,t[163]=ot):ot=t[163];let rt;t[164]!==e?(rt=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[164]=e,t[165]=rt):rt=t[165];let nt;t[166]!==e?(nt=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[166]=e,t[167]=nt):nt=t[167];let st;t[168]!==e?(st=e("Export a shard to NDJSON, or import rows from it."),t[168]=e,t[169]=st):st=t[169];let at;t[170]!==e?(at=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[170]=e,t[171]=at):at=t[171];let it;t[172]!==e?(it=e("Browse objects in your R2 storage buckets."),t[172]=e,t[173]=it):it=t[173];let lt;t[174]!==e?(lt=e("Inspect feature flags and their live evaluation under a targeting context."),t[174]=e,t[175]=lt):lt=t[175];let ct;t[176]!==e?(ct=e("Run registered queries, mutations, and actions."),t[176]=e,t[177]=ct):ct=t[177];let dt;t[178]!==e?(dt=e("At-a-glance connection, error, and shard signals."),t[178]=e,t[179]=dt):dt=t[179];let pt;t[180]!==e?(pt=e("Connection, health, and advisor summary for your deployment."),t[180]=e,t[181]=pt):pt=t[181];let ut;t[182]!==e?(ut=e("Surface slow functions, error spikes, and cache problems."),t[182]=e,t[183]=ut):ut=t[183];let mt;t[184]!==e?(mt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[184]=e,t[185]=mt):mt=t[185];let ft;t[186]!==e?(ft=e("A live stream of recent function logs."),t[186]=e,t[187]=ft):ft=t[187];let gt;t[188]!==e?(gt=e("Per-shard health and aggregate metrics."),t[188]=e,t[189]=gt):gt=t[189];let ht;t[190]!==e?(ht=e("Review migration status and run them."),t[190]=e,t[191]=ht):ht=t[191];let vt;t[192]!==e?(vt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[192]=e,t[193]=vt):vt=t[193];let xt;t[194]!==e?(xt=e("Browse and manage organizations, members, and invitations."),t[194]=e,t[195]=xt):xt=t[195];let bt;t[196]!==e?(bt=e("Restore a shard to a point in the last 30 days."),t[196]=e,t[197]=bt):bt=t[197];let yt;t[198]!==e?(yt=e("Email your app sent, captured in dev."),t[198]=e,t[199]=yt):yt=t[199];let Pt;t[200]!==e?(Pt=e("Synced customers, subscriptions, and webhook events."),t[200]=e,t[201]=Pt):Pt=t[201];let Ct;t[202]!==e?(Ct=e("Inspect access policies per table, and probe a function as any identity."),t[202]=e,t[203]=Ct):Ct=t[203];let Rt;t[204]!==e?(Rt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[204]=e,t[205]=Rt):Rt=t[205];let St;t[206]!==e?(St=e("Active WebSocket subscriptions on this shard."),t[206]=e,t[207]=St):St=t[207];let Nt;t[208]!==e?(Nt=e("Inspect row-level-security policies and roles, per table."),t[208]=e,t[209]=Nt):Nt=t[209];let Tt;t[210]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[210]=e,t[211]=Tt):Tt=t[211];let Et;t[212]!==e?(Et=e("Inspect each table and its columns."),t[212]=e,t[213]=Et):Et=t[213];let wt;t[214]!==e?(wt=e("Review admin gates, credentials, and log redaction."),t[214]=e,t[215]=wt):wt=t[215];let Ot;t[216]!==e?(Ot=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[216]=e,t[217]=Ot):Ot=t[217];let kt;t[218]!==e?(kt=e("Run read-only SQL against a shard."),t[218]=e,t[219]=kt):kt=t[219];let Mt;t[220]!==e?(Mt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[220]=e,t[221]=Mt):Mt=t[221];let Dt;t[222]!==e?(Dt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[222]=e,t[223]=Dt):Dt=t[223];let It;t[224]!==e?(It=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[224]=e,t[225]=It):It=t[225];let _t;t[226]!==e?(_t=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[226]=e,t[227]=_t):_t=t[227];let At;t[228]!==e?(At=e("Browse Vectorize indexes and run similarity searches."),t[228]=e,t[229]=At):At=t[229];let Vt;t[230]!==e?(Vt=e("Inspect declared Cloudflare Workflows and their bindings."),t[230]=e,t[231]=Vt):Vt=t[231];let wo;t[232]!==qe||t[233]!==Ge||t[234]!==$e||t[235]!==Qe||t[236]!==Ye||t[237]!==Je||t[238]!==Xe||t[239]!==et||t[240]!==tt||t[241]!==ot||t[242]!==rt||t[243]!==nt||t[244]!==st||t[245]!==at||t[246]!==it||t[247]!==lt||t[248]!==ct||t[249]!==dt||t[250]!==pt||t[251]!==ut||t[252]!==mt||t[253]!==ft||t[254]!==gt||t[255]!==ht||t[256]!==vt||t[257]!==xt||t[258]!==bt||t[259]!==yt||t[260]!==Pt||t[261]!==Ct||t[262]!==Rt||t[263]!==St||t[264]!==Nt||t[265]!==Tt||t[266]!==Et||t[267]!==wt||t[268]!==Ot||t[269]!==kt||t[270]!==Mt||t[271]!==Dt||t[272]!==It||t[273]!==_t||t[274]!==At||t[275]!==Vt?(wo={agents:qe,analytics:Ge,api:$e,audit:Qe,authAudit:Ye,authConfig:Je,authSessions:Xe,containers:et,dashboards:tt,data:ot,deploymentHealth:rt,drains:nt,export:st,fanout:at,files:it,flags:lt,functions:ct,health:dt,home:pt,insights:ut,issues:mt,logs:ft,metrics:gt,migrations:ht,notifications:vt,organizations:xt,pitr:bt,mail:yt,payments:Pt,permissions:Ct,queues:Rt,realtime:St,rls:Nt,schedule:Tt,schema:Et,security:wt,settings:Ot,sql:kt,kv:Mt,storageRules:Dt,traces:It,users:_t,vectors:At,workflows:Vt},t[232]=qe,t[233]=Ge,t[234]=$e,t[235]=Qe,t[236]=Ye,t[237]=Je,t[238]=Xe,t[239]=et,t[240]=tt,t[241]=ot,t[242]=rt,t[243]=nt,t[244]=st,t[245]=at,t[246]=it,t[247]=lt,t[248]=ct,t[249]=dt,t[250]=pt,t[251]=ut,t[252]=mt,t[253]=ft,t[254]=gt,t[255]=ht,t[256]=vt,t[257]=xt,t[258]=bt,t[259]=yt,t[260]=Pt,t[261]=Ct,t[262]=Rt,t[263]=St,t[264]=Nt,t[265]=Tt,t[266]=Et,t[267]=wt,t[268]=Ot,t[269]=kt,t[270]=Mt,t[271]=Dt,t[272]=It,t[273]=_t,t[274]=At,t[275]=Vt,t[276]=wo):wo=t[276];let oi=wo,Oo;t[277]!==o?(Oo=i(Ce=>{po(o({to:`/${Ce.currentTarget.dataset.tab??""}`}))},"Nt"),t[277]=o,t[278]=Oo):Oo=t[278];let ri=Oo,ko,Mo;t[279]!==a||t[280]!==Pe?(ko=i(()=>{typeof document<"u"&&(document.title=`${Pe[a]} \xB7 lunora`)},"Mt"),Mo=[a,Pe],t[279]=a,t[280]=Pe,t[281]=ko,t[282]=Mo):(ko=t[281],Mo=t[282]),(0,F.useEffect)(ko,Mo);let ni=u.find(Ce=>Ce.tabs.includes(a))??ja[0],Mr=u.flatMap(Ce=>Ce.tabs.map(Fo=>({group:kr[Ce.key],label:Pe[Fo],to:`/${Fo}`}))),Lt=(0,F.use)(Xa),si=Lt!==null&&Lt.token!=="",Do;t[283]!==Mr?(Do=(0,s.jsx)(La,{items:Mr}),t[283]=Mr,t[284]=Do):Do=t[284];let Io;t[285]===Symbol.for("react.memo_cache_sentinel")?(Io=(0,s.jsx)(dl,{className:"-ms-1"}),t[285]=Io):Io=t[285];let Bt;t[286]!==e?(Bt=e("Breadcrumb"),t[286]=e,t[287]=Bt):Bt=t[287];let Dr=kr[ni.key],Ht;t[288]!==Dr?(Ht=(0,s.jsx)("span",{className:"text-muted-foreground",children:Dr}),t[288]=Dr,t[289]=Ht):Ht=t[289];let _o;t[290]===Symbol.for("react.memo_cache_sentinel")?(_o=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),t[290]=_o):_o=t[290];let Ir=Pe[a],Ft;t[291]!==Ir?(Ft=(0,s.jsx)("span",{className:"font-medium text-foreground",children:Ir}),t[291]=Ir,t[292]=Ft):Ft=t[292];let jt;t[293]!==Bt||t[294]!==Ht||t[295]!==Ft?(jt=(0,s.jsxs)("nav",{"aria-label":Bt,className:"flex items-center gap-1.5 text-[13px]",children:[Ht,_o,Ft]}),t[293]=Bt,t[294]=Ht,t[295]=Ft,t[296]=jt):jt=t[296];let Ao;t[297]===Symbol.for("react.memo_cache_sentinel")?(Ao=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),t[297]=Ao):Ao=t[297];let zt;t[298]!==e?(zt=e("Search\u2026"),t[298]=e,t[299]=zt):zt=t[299];let Vo;t[300]===Symbol.for("react.memo_cache_sentinel")?(Vo=(0,s.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),t[300]=Vo):Vo=t[300];let Ut;t[301]!==zt?(Ut=(0,s.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:Va,type:"button",children:[Ao,zt,Vo]}),t[301]=zt,t[302]=Ut):Ut=t[302];let Lo;t[303]===Symbol.for("react.memo_cache_sentinel")?(Lo=(0,s.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,s.jsx)(qi,{})}),t[303]=Lo):Lo=t[303];let Kt;t[304]!==jt||t[305]!==Ut?(Kt=(0,s.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[Io,jt,Ut,Lo]}),t[304]=jt,t[305]=Ut,t[306]=Kt):Kt=t[306];let Zt;t[307]!==Lt?.rulesInstalled?(Zt=Lt?.rulesInstalled===!1&&(0,s.jsx)(ji,{}),t[307]=Lt?.rulesInstalled,t[308]=Zt):Zt=t[308];let _r=`dash-tab-${a}`,Ar=d?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",Vr=Pe[a],Wt;t[309]!==e||t[310]!==Vr?(Wt=e("{title} failed",{title:Vr}),t[309]=e,t[310]=Vr,t[311]=Wt):Wt=t[311];let Lr=Pe[a],qt;t[312]!==e?(qt=e("Try again"),t[312]=e,t[313]=qt):qt=t[313];let Bo;t[314]===Symbol.for("react.memo_cache_sentinel")?(Bo=(0,s.jsx)(F.Suspense,{fallback:(0,s.jsx)(ti,{}),children:(0,s.jsx)(xn,{})}),t[314]=Bo):Bo=t[314];let Gt;t[315]!==a||t[316]!==Wt||t[317]!==Lr||t[318]!==qt?(Gt=(0,s.jsx)(pr,{fallbackTitle:Wt,label:Lr,retryLabel:qt,children:Bo},a),t[315]=a,t[316]=Wt,t[317]=Lr,t[318]=qt,t[319]=Gt):Gt=t[319];let $t;t[320]!==Ar||t[321]!==Gt?($t=(0,s.jsx)("div",{className:Ar,children:Gt}),t[320]=Ar,t[321]=Gt,t[322]=$t):$t=t[322];let Qt;t[323]!==_r||t[324]!==$t?(Qt=(0,s.jsx)("div",{"aria-labelledby":_r,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:$t}),t[323]=_r,t[324]=$t,t[325]=Qt):Qt=t[325];let Ho;return t[326]!==Kt||t[327]!==Zt||t[328]!==Qt?(Ho=(0,s.jsxs)(pl,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[Kt,Zt,Qt]}),t[326]=Kt,t[327]=Zt,t[328]=Qt,t[329]=Ho):Ho=t[329],(0,s.jsxs)(ll,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[Do,(0,s.jsx)(xc,{chrome:Lt,connected:si,current:a,groupLabel:kr,groups:u,selectTab:ri,tabDescription:oi,tabLabel:Pe}),Ho]})},"Dr"),yc=i(t=>{let e=(0,D.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let a=hn(n),{table:c}=a,d=typeof c=="string"?c:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,s.jsx)(oc,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"qr"),Pc=i(()=>{let t=(0,D.c)(3),e=xo(),o,r;return t[0]!==e?(o=i(()=>{po(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,F.useEffect)(o,r),null},"Wr"),Cc=i(({basePath:t,dataEditable:e=!1,functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a,runAsIdentity:c=!1,schemaEditable:d=!1,scheduledCancel:p,scheduledCron:l,scheduledLoad:u})=>{let h=vn({component:bc}),f={agents:(0,s.jsx)(Cl,{initialShardKey:r}),analytics:(0,s.jsx)(Rl,{}),api:(0,s.jsx)(Sl,{functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a}),audit:(0,s.jsx)(Fl,{initialShardKey:r}),authAudit:(0,s.jsx)(Nl,{}),authConfig:(0,s.jsx)(Tl,{}),authSessions:(0,s.jsx)(El,{}),containers:(0,s.jsx)(kl,{}),dashboards:(0,s.jsx)(Jl,{initialShardKey:r}),data:(0,s.jsx)(Dl,{editable:e,initialShardKey:r}),deploymentHealth:(0,s.jsx)(Ml,{}),drains:(0,s.jsx)(jl,{}),export:(0,s.jsx)(Il,{initialShardKey:r}),fanout:(0,s.jsx)(Xl,{initialShardKey:r}),files:(0,s.jsx)(sc,{}),kv:(0,s.jsx)(ql,{}),flags:(0,s.jsx)(Vl,{initialShardKey:r}),functions:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Bl,{functions:o,initialShardKey:r}),(0,s.jsx)(Ll,{functions:o,runAsIdentity:c})]}),health:(0,s.jsx)(ec,{initialShardKey:r}),home:(0,s.jsx)(is,{initialShardKey:r}),insights:(0,s.jsx)(bl,{initialShardKey:r}),issues:(0,s.jsx)(Hl,{initialShardKey:r}),logs:(0,s.jsx)(zl,{initialShardKey:r}),traces:(0,s.jsx)(ic,{initialShardKey:r}),metrics:(0,s.jsx)(tc,{initialShardKey:r}),migrations:(0,s.jsx)(_l,{initialShardKey:r}),notifications:(0,s.jsx)(Gl,{}),organizations:(0,s.jsx)(wl,{}),permissions:(0,s.jsx)(Ql,{functions:o,runAsIdentity:c,schemaEditable:d}),pitr:(0,s.jsx)(Al,{initialShardKey:r}),mail:(0,s.jsx)(Ul,{}),payments:(0,s.jsx)($l,{}),queues:(0,s.jsx)(Yl,{}),realtime:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Zl,{initialShardKey:r}),(0,s.jsx)(Wl,{})]}),rls:(0,s.jsx)(yl,{}),schedule:(0,s.jsx)(Kl,{loadCronJobs:l,scheduledCancel:p,scheduledLoad:u}),schema:(0,s.jsx)(yc,{initialShardKey:r,schemaEditable:d}),security:(0,s.jsx)(Pl,{}),settings:(0,s.jsx)(rc,{initialShardKey:r}),sql:(0,s.jsx)(nc,{initialShardKey:r}),storageRules:(0,s.jsx)(ac,{}),users:(0,s.jsx)(Ol,{}),vectors:(0,s.jsx)(lc,{}),workflows:(0,s.jsx)(cc,{})},v=jo({component:i(()=>f.home,"component"),getParentRoute:i(()=>h,"getParentRoute"),path:"/"}),m=ei.map(b=>b==="data"?jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`,validateSearch:ls}):jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`})),g=h.addChildren([v,...m]),x="window"in globalThis?fn():gn({initialEntries:["/home"]});return bn({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:Pc,defaultPendingComponent:ti,defaultPendingMinMs:0,defaultPendingMs:0,history:x,routeTree:g})},"jr"),Rc=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}=t,m;e[0]!==o||e[1]!==n||e[2]!==a||e[3]!==c||e[4]!==d||e[5]!==p||e[6]!==l||e[7]!==h||e[8]!==f||e[9]!==v||e[10]!==u?(m=Cc({basePath:o,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}),e[0]=o,e[1]=n,e[2]=a,e[3]=c,e[4]=d,e[5]=p,e[6]=l,e[7]=h,e[8]=f,e[9]=v,e[10]=u,e[11]=m):m=e[11];let g=m,x=r??null,b;e[12]!==g?(b=(0,s.jsx)(yn,{router:g}),e[12]=g,e[13]=b):b=e[13];let P;return e[14]!==x||e[15]!==b?(P=(0,s.jsx)(Xa,{value:x,children:b}),e[14]=x,e[15]=b,e[16]=P):P=e[16],P},"Fr"),Yg=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,i18n:c,initialShardKey:d,locale:p,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,schemaEditable:f,scheduledCancel:v,scheduledCron:m,scheduledLoad:g}=t,x;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==d||e[5]!==l||e[6]!==u||e[7]!==h||e[8]!==v||e[9]!==m||e[10]!==g||e[11]!==f?(x=(0,s.jsx)(Ii,{children:(0,s.jsx)(Rc,{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:d,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,scheduledCancel:v,scheduledCron:m,scheduledLoad:g,schemaEditable:f})}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=d,e[5]=l,e[6]=u,e[7]=h,e[8]=v,e[9]=m,e[10]=g,e[11]=f,e[12]=x):x=e[12];let b=x;if(c===void 0&&p===void 0)return b;let P;return e[13]!==c||e[14]!==p||e[15]!==b?(P=(0,s.jsx)(Aa,{i18n:c,locale:p,children:b}),e[13]=c,e[14]=p,e[15]=b,e[16]=P):P=e[16],P},"Mn");function Sc(t){return t.location.pathname}i(Sc,"Ur");function Nc(t){return t.tabs.length>0}i(Nc,"Qr");export{pr as a,Aa as b,Di as c,_i as d,Qg as e,Bi as f,$i as g,Ji as h,Xi as i,el as j,Yg as k};
|