@lunora/studio 1.0.0-alpha.245 → 1.0.0-alpha.247
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/mount.mjs +1 -1
- package/dist/packem_chunks/ApiTab.mjs +1 -1
- package/dist/packem_chunks/SchemaViewer.mjs +1 -1
- package/dist/packem_chunks/architecture-panel.mjs +1 -0
- package/dist/packem_chunks/kv-browser.mjs +1 -1
- package/dist/packem_chunks/migrations-route.mjs +1 -1
- package/dist/packem_chunks/queues-panel.mjs +1 -1
- package/dist/packem_shared/ApiReferencePanel-nAf8tNRr.mjs +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-BxEr49D9.mjs +1 -0
- package/dist/packem_shared/{Studio-qyqfHiQ3.mjs → Studio-BboteWG5.mjs} +1 -1
- package/dist/packem_shared/{StudioApp-BwOFVJBy.mjs → StudioApp-DkjIpaM2.mjs} +1 -1
- package/dist/packem_shared/diagram-export-panel-D5CVNJkp.mjs +2 -0
- package/dist/packem_shared/reference-view-CIHyURU6.mjs +13 -0
- package/dist/packem_shared/schema-diagram-C5oilX7l.mjs +2 -0
- package/dist/packem_shared/studio-CrypdTyE.mjs +2 -0
- package/dist/packem_shared/use-admin-spec-Bir7V68L.mjs +1 -0
- package/dist/standalone/{chunk-VTMPJ7GE.js → chunk-2BHVS5B6.js} +1 -1
- package/dist/standalone/chunk-2T4EFQNZ.js +1 -0
- package/dist/standalone/{chunk-BKGZMIF3.js → chunk-2TRJ53XJ.js} +1 -1
- package/dist/standalone/{chunk-PQWCYQGZ.js → chunk-2ZNM4ZPA.js} +1 -1
- package/dist/standalone/{chunk-DKTDJOYC.js → chunk-3G24A35Q.js} +1 -1
- package/dist/standalone/chunk-3QXSLIE4.js +1 -0
- package/dist/standalone/{chunk-SI6U7NIE.js → chunk-3UA5CP3H.js} +1 -1
- package/dist/standalone/chunk-4IU3JCV6.js +1 -0
- package/dist/standalone/{chunk-2M6HDLZL.js → chunk-4KSBB2YH.js} +1 -1
- package/dist/standalone/{chunk-AVRH4ZBT.js → chunk-5CFKIQLP.js} +1 -1
- package/dist/standalone/{chunk-435IWCIW.js → chunk-5YKKSHIB.js} +1 -1
- package/dist/standalone/chunk-6QA34EWC.js +3 -0
- package/dist/standalone/{chunk-WB5OMGYR.js → chunk-AHNZKXCL.js} +1 -1
- package/dist/standalone/chunk-AQR5KUL6.js +1 -0
- package/dist/standalone/chunk-ARPIW4IJ.js +1 -0
- package/dist/standalone/chunk-ATGO7XFL.js +1 -0
- package/dist/standalone/{chunk-GZT3A3DF.js → chunk-BBM53HFU.js} +1 -1
- package/dist/standalone/{chunk-KQQVI6ZS.js → chunk-BKARD4NH.js} +1 -1
- package/dist/standalone/chunk-BRIYEPXI.js +1 -0
- package/dist/standalone/{chunk-TESQ5ZIA.js → chunk-CZXBYHCA.js} +1 -1
- package/dist/standalone/{chunk-XNRRHFOY.js → chunk-EDCFVXZF.js} +1 -1
- package/dist/standalone/chunk-EEEEYLT7.js +1 -0
- package/dist/standalone/{chunk-CAHTJYC5.js → chunk-EOXUWPOY.js} +1 -1
- package/dist/standalone/{chunk-QROMT56V.js → chunk-F6SM55KU.js} +1 -1
- package/dist/standalone/chunk-FW6WOY3S.js +1 -0
- package/dist/standalone/chunk-GPFBLWA7.js +1 -0
- package/dist/standalone/chunk-GX2YM7MB.js +1 -0
- package/dist/standalone/chunk-H44HW3WV.js +1 -0
- package/dist/standalone/chunk-H6LZ3QM4.js +1 -0
- package/dist/standalone/chunk-HKWL6IY3.js +2 -0
- package/dist/standalone/chunk-HLTKKVDQ.js +1 -0
- package/dist/standalone/{chunk-2URQKGWU.js → chunk-HPFN7S7N.js} +1 -1
- package/dist/standalone/{chunk-GMS77BZD.js → chunk-IFJOYAEZ.js} +1 -1
- package/dist/standalone/chunk-JDAWPJ7U.js +1 -0
- package/dist/standalone/{chunk-OGFQ4LUG.js → chunk-JJB2KGI2.js} +1 -1
- package/dist/standalone/{chunk-OSOMPF2M.js → chunk-JUSVEJIQ.js} +1 -1
- package/dist/standalone/chunk-KTHHXUCF.js +1 -0
- package/dist/standalone/chunk-KZAW64TR.js +1 -0
- package/dist/standalone/chunk-L4DT5US3.js +1 -0
- package/dist/standalone/{chunk-N3DFLRGG.js → chunk-LDEGPYES.js} +1 -1
- package/dist/standalone/{chunk-EJSI4PMU.js → chunk-LIOUCOP2.js} +1 -1
- package/dist/standalone/{chunk-FBPF5WYL.js → chunk-LNDCZ3M2.js} +1 -1
- package/dist/standalone/{chunk-ZIE7D6ZS.js → chunk-M45TEYKZ.js} +1 -1
- package/dist/standalone/chunk-MDUETXVR.js +1 -0
- package/dist/standalone/{chunk-RFNGDE33.js → chunk-NESDGS7F.js} +1 -1
- package/dist/standalone/{chunk-DEDFT62S.js → chunk-NPRI4BCN.js} +1 -1
- package/dist/standalone/{chunk-WZI2ZAPQ.js → chunk-OCUJO2PM.js} +1 -1
- package/dist/standalone/{chunk-GUD3ZG3Z.js → chunk-PRHWNGXX.js} +2 -2
- package/dist/standalone/{chunk-ZDPY27UY.js → chunk-Q7GZKFBT.js} +1 -1
- package/dist/standalone/{chunk-AAXLEHDI.js → chunk-QA6CZASY.js} +1 -1
- package/dist/standalone/chunk-R65X5YQK.js +1 -0
- package/dist/standalone/chunk-RG6VUBGP.js +1 -0
- package/dist/standalone/chunk-RJJ5J24X.js +1 -0
- package/dist/standalone/{chunk-AANB526D.js → chunk-T6JDEFHN.js} +1 -1
- package/dist/standalone/chunk-TDXV3OT5.js +1 -0
- package/dist/standalone/{chunk-GMHY2XTC.js → chunk-TYT4DBMD.js} +1 -1
- package/dist/standalone/chunk-U4EW2BWO.js +1 -0
- package/dist/standalone/chunk-U7WLCN6P.js +1 -0
- package/dist/standalone/{chunk-MEV2FUUD.js → chunk-V5EINW4G.js} +1 -1
- package/dist/standalone/chunk-VIFOIB6M.js +1 -0
- package/dist/standalone/chunk-VMXD6LRC.js +14 -0
- package/dist/standalone/chunk-WA3ZZ65C.js +1 -0
- package/dist/standalone/chunk-WIIQAPHM.js +1 -0
- package/dist/standalone/chunk-WX4HPONC.js +1 -0
- package/dist/standalone/{chunk-KVSSLKGK.js → chunk-XB6LUZP2.js} +1 -1
- package/dist/standalone/chunk-XLAJX4GC.js +1 -0
- package/dist/standalone/chunk-XXTB46YA.js +1 -0
- package/dist/standalone/{chunk-V3CZW3JB.js → chunk-XXVOKVXV.js} +1 -1
- package/dist/standalone/{chunk-IVKVGV4Y.js → chunk-Y4N7CB4T.js} +1 -1
- package/dist/standalone/{chunk-NPT4MKTL.js → chunk-YSVZF4HX.js} +1 -1
- package/dist/standalone/chunk-YZ2QZG3W.js +1 -0
- package/dist/standalone/chunk-ZEYT2NT5.js +1 -0
- package/dist/standalone/chunk-ZMF7QLKI.js +8 -0
- package/dist/standalone/{chunk-5AAHUEQD.js → chunk-ZSM5GPHG.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
- package/dist/packem_shared/ApiReferencePanel-CHoHM5ME.mjs +0 -1
- package/dist/packem_shared/OpenRpcReferencePanel-C8ctFJVm.mjs +0 -1
- package/dist/packem_shared/reference-view-DSeKRrUU.mjs +0 -13
- package/dist/packem_shared/schema-diagram-CQ4vn0CN.mjs +0 -2
- package/dist/packem_shared/studio-CwC7cOyC.mjs +0 -2
- package/dist/standalone/chunk-3FBLWUXD.js +0 -1
- package/dist/standalone/chunk-4E6W2IDP.js +0 -14
- package/dist/standalone/chunk-5MGCPNPF.js +0 -1
- package/dist/standalone/chunk-5XPSGVCH.js +0 -1
- package/dist/standalone/chunk-6QPTJCQA.js +0 -1
- package/dist/standalone/chunk-6XKPY5RJ.js +0 -1
- package/dist/standalone/chunk-ATOGOQKD.js +0 -1
- package/dist/standalone/chunk-B5NQHH5M.js +0 -1
- package/dist/standalone/chunk-BLAZ5733.js +0 -1
- package/dist/standalone/chunk-C3M6CCOV.js +0 -1
- package/dist/standalone/chunk-EUEWGG46.js +0 -1
- package/dist/standalone/chunk-HHUH2AEG.js +0 -1
- package/dist/standalone/chunk-HQFXXC33.js +0 -1
- package/dist/standalone/chunk-HW33JZQP.js +0 -2
- package/dist/standalone/chunk-IHMGCHAA.js +0 -1
- package/dist/standalone/chunk-IVQFP5JU.js +0 -1
- package/dist/standalone/chunk-JNAZOBTV.js +0 -1
- package/dist/standalone/chunk-JSPFPDQ6.js +0 -1
- package/dist/standalone/chunk-KMLJSWTP.js +0 -1
- package/dist/standalone/chunk-KZ7UVPF6.js +0 -1
- package/dist/standalone/chunk-LB4Y3C7N.js +0 -1
- package/dist/standalone/chunk-MLFPYQNL.js +0 -1
- package/dist/standalone/chunk-NSCZ3RJ3.js +0 -1
- package/dist/standalone/chunk-OD7E3QLZ.js +0 -1
- package/dist/standalone/chunk-PLHA3OWK.js +0 -3
- package/dist/standalone/chunk-Q2G3FQMR.js +0 -1
- package/dist/standalone/chunk-TDD2TZCN.js +0 -1
- package/dist/standalone/chunk-WMD6QHHD.js +0 -8
- package/dist/standalone/chunk-XIL7BLJ5.js +0 -1
- package/dist/standalone/chunk-Y5KK6IM3.js +0 -1
- package/dist/standalone/chunk-YPRQLCKF.js +0 -1
- package/dist/standalone/chunk-ZZ24NI6P.js +0 -1
- package/dist/standalone/chunk-ZZJE2GV3.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Uo}from"./chunk-Q4CAKBWN.js";import{a as jn,b as zn}from"./chunk-WB5OMGYR.js";import{a as Kn,d as Un}from"./chunk-6DAD3RFX.js";import{a as Bt,b as $t,c as Gt,d as Qt,e as Yt,f as Mn,g as jo,h as zo}from"./chunk-YPRQLCKF.js";import{$ as Mo,A as Nn,B as No,C as wo,D as wn,E as Ht,G as Ft,J as jt,K as Eo,L as zt,M as Kt,O as ko,P as En,Q as kn,R as Ut,S as Zt,T as Wt,U as qt,V as Oo,W as Te,Y as On,Z as Dn,_ as Do,b as gn,ca as Io,da as _o,fa as Ao,j as Vt,k as Lt,l as xn,la as Vo,m as yn,ma as Lo,n as Pn,na as Ho,o as Cn,oa as Bo,p as Pr,pa as In,q as So,qa as _n,ra as Fo,s as Ro,sa as An,t as Sn,u as To,y as Rn,z as Tn}from"./chunk-GMS77BZD.js";import{c as Vn,h as Ln,k as Cr}from"./chunk-V3VJAA4D.js";import{a as Ko}from"./chunk-5WJXVZMZ.js";import{b as Fn}from"./chunk-EVTM6Q43.js";import{a as qr,b as $r,d as Gr,e as ro,f as br,g as Qr,h as Yr,i as Jr,j as Xr,k as en}from"./chunk-6D6Z2KXU.js";import{I as hn,J as vn,O as bn,P as At,U as K,V as re,W as yr,e as me,j as so,k as pn,q as un,r as io,t as It,u as mn,v as _t,w as Ee,x as fn}from"./chunk-PLHA3OWK.js";import{a as Wr}from"./chunk-4L4WTGN5.js";import{a as Sr}from"./chunk-55754F6H.js";import{c as ke}from"./chunk-IS6LVJ6L.js";import{a as ye,c as cn,h as Co,i as dn}from"./chunk-AAVLPU5Q.js";import{a as xr,b as Mt}from"./chunk-FEWMAPNI.js";import{a as no,c as Q,g as ao,i as sn,j as B}from"./chunk-225VJ77I.js";import{a as tn,b as on}from"./chunk-35DM4JJG.js";import{a as lo}from"./chunk-ZDPY27UY.js";import{a as ln}from"./chunk-FSRSK4LY.js";import{d as hr}from"./chunk-PUGHZTBL.js";import{a as Hn}from"./chunk-FKVZRPV5.js";import{a as rn,b as nn,c as an,d as fe,p as Jt,s as Bn}from"./chunk-PTZD7RUZ.js";import{a as s,c as gr,d as T,e as A,f as vr,g as se,i as U}from"./chunk-YKXDMIHQ.js";var I=T(vr(),1);var xe=T(A(),1),O=T(A(),1);var a=T(se(),1);var Zn=T(A(),1),Ne=T(se(),1);var Ws={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},qs={overflow:"auto",whiteSpace:"pre-wrap"},Zo=class extends Zn.Component{static{s(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=s(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:i}=this.state;if(i===null)return(0,Ne.jsx)(Ne.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Ne.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:Ws,children:[(0,Ne.jsx)("strong",{children:l}),(0,Ne.jsx)("pre",{"data-testid":"dash-error-message",style:qs,children:i.message}),(0,Ne.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Me={};gr(Me,{Arrow:()=>ca,Backdrop:()=>pa,Close:()=>va,Description:()=>ga,Handle:()=>mo,Popup:()=>ia,Portal:()=>oa,Positioner:()=>ra,Root:()=>Jn,Title:()=>ma,Trigger:()=>Xn,Viewport:()=>xa,createHandle:()=>ya});var co=T(A(),1);var Wo=T(A(),1);var Rr=Wo.createContext(void 0);function Y(t){let e=Wo.useContext(Rr);if(e===void 0&&!t)throw new Error(Q(47));return e}s(Y,"usePopoverRootContext");var qo=T(A(),1),Wn=T(Wr(),1);var qn={...Gt,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),openMethod:s(t=>t.openMethod,"openMethod"),openChangeReason:s(t=>t.openChangeReason,"openChangeReason"),modal:s(t=>t.modal,"modal"),focusManagerModal:s(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:s(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:s(t=>t.titleElementId,"titleElementId"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:s(t=>t.openOnHover,"openOnHover"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},$o=class extends Ft{static{s(this,"PopoverStore")}constructor(e,o,r){let n=new Te;super(Gn(e,n,o,r),Qn(n),qn)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,n=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=En(o),c=this.select("activeTriggerId");if(!e&&o.reason===K.closePress&&o.trigger==null&&c!=null&&(o.trigger=this.context.triggerElements.getById(c)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=s(()=>{let u=ko(this.state,e,o.trigger,l());u.openChangeReason=o.reason,this.update(u)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),Wn.flushSync(p)):p();let d;n?d="click":i?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function $n(){let t=new Te,e=new Yt(Object.freeze(Gn(void 0,t)),Object.freeze(Qn(t)),qn);return Object.assign(e,{setOpen:ao})}s($n,"createNullPopoverStore");function Gn(t,e,o,r=!1){let n={...$t(e,o,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return n.open&&t?.mounted===void 0&&(n.mounted=!0),n}s(Gn,"createInitialState");function Qn(t){return{popupRef:qo.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:qo.createRef(),beforeContentFocusGuardRef:qo.createRef(),stickIfOpenTimeout:new hn,triggerElements:t}}s(Qn,"createInitialContext");var Oe=T(se(),1);var Yn=Vt(s(function({props:e}){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=$s(p,{modal:c,open:n,openProp:r,activeTriggerId:u,triggerIdProp:d});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",d);let h=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",i),f.useContextCallback("onOpenChangeComplete",l),Oo(f,h),Zt(f);let{forceUnmount:x}=Wt(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),co.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),co.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,Oe.jsxs)(Rr.Provider,{value:f,children:[p&&(0,Oe.jsx)(Kt,{handle:p,store:f}),v&&(0,Oe.jsx)(Gs,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function Jn(t){return Y(!0)?(0,Oe.jsx)(Yn,{props:t}):(0,Oe.jsx)(Nn,{children:(0,Oe.jsx)(Yn,{props:t})})}s(Jn,"PopoverRoot");function $s(t,e){let o=zt((r,n)=>new $o(e,r,n));return co.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s($s,"usePopoverRootStore");function Gs({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Ht(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference,i=r.floating;return qt(t,{activeTriggerProps:n,inactiveTriggerProps:n,popupProps:i}),null}s(Gs,"PopoverInteractions");var po=T(A(),1);var Xt=T(se(),1);var Xn=Lt(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=Y(!0),b=Qt(p)??x;if(!b)throw new Error(Q(74));let P=me(g),y=b.useState("isTriggerActive",P),S=b.useState("floatingRootContext"),C=b.useState("isOpenedByTrigger",P),w=b.useState("triggerPopupId",P),R=po.useRef(null),{registerTrigger:N,isMountedByThisTrigger:E}=Ut(P,R,b,{payload:d,disabled:l,openOnHover:u,closeDelay:h}),k=b.useState("openChangeReason"),M=b.useState("stickIfOpen"),L=b.useState("openMethod"),_=b.useState("focusManagerModal"),j=Mo(S,{enabled:!l&&u&&(L!=="touch"||k!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Io(),restMs:f,delay:{close:h},triggerElementRef:R,isActiveTrigger:y,isClosing:s(()=>b.select("transitionStatus")==="ending","isClosing")}),z=wo(S,{stickIfOpen:M}),H=_o(()=>b.select("open"),$=>{b.set("openMethod",$)}),F=b.useState("triggerProps",E),{getButtonProps:Z,buttonRef:D}=ke({disabled:l,native:c}),V={open($){return $&&k===K.triggerPress?mn.open($):It.open($)}},{preFocusGuardRef:q,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ee}=Mn(b,R),te=B("button",e,{state:{disabled:l,open:C},ref:[D,o,N,R],props:[z.reference,j,F,H,{[So]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":w},m,Z],stateAttributesMapping:V}),X=(0,Xt.jsx)(po.Fragment,{children:te},P);return E&&!_?(0,Xt.jsxs)(po.Fragment,{children:[(0,Xt.jsx)(Pr,{ref:q,onFocus:G}),X,(0,Xt.jsx)(Pr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):X},"PopoverTrigger"));var ta=T(A(),1);var Go=T(A(),1);var Tr=Go.createContext(void 0);function ea(){let t=Go.useContext(Tr);if(t===void 0)throw new Error(Q(45));return t}s(ea,"usePopoverPortalContext");var Nr=T(se(),1);var oa=ta.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return Y().useState("mounted")||r?(0,Nr.jsx)(Tr.Provider,{value:r,children:(0,Nr.jsx)(To,{ref:o,...n})}):null},"PopoverPortal"));var Yo=T(A(),1);var Qo=T(A(),1);var wr=Qo.createContext(void 0);function eo(){let t=Qo.useContext(wr);if(!t)throw new Error(Q(46));return t}s(eo,"usePopoverPositionerContext");var uo=T(se(),1);var ra=Yo.forwardRef(s(function(e,o){let{render:r,className:n,style:i,anchor:l,positionMethod:c,side:p,align:d,sideOffset:u,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:b=Ro,...P}=e,y=Y(),S=ea(),C=Rn(),w=y.useState("floatingRootContext"),R=y.useState("mounted"),N=y.useState("open"),E=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),M=y.useState("modal"),L=y.useState("openMethod"),_=y.useState("positionerElement"),j=y.useState("instantType"),z=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),F=Yo.useRef(null),Z=bn(_),D=Vo({anchor:l,floatingRootContext:w,positionMethod:c,mounted:R,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:S,nodeId:C,collisionAvoidance:b,adaptiveOrigin:H}),V=w.useState("domReferenceElement");ye(()=>{let te=V,X=F.current;if(te&&(F.current=te),X&&te&&te!==X){y.set("instantType",void 0);let $=new AbortController;return Z(()=>{y.set("instantType","trigger-change")},$.signal),()=>{$.abort()}}},[V,Z,y]);let q=M===!0&&E!==K.triggerHover;_n(N&&q,L==="touch",_,k);let G=y.useStateSetter("positionerElement"),ee={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ae=Bo(e,ee,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!R,inert:!N});return(0,uo.jsxs)(wr.Provider,{value:D,children:[R&&q&&(0,uo.jsx)(Lo,{inert:Ao(!N),cutout:k}),(0,uo.jsx)(Tn,{id:C,children:ae})]})},"PopoverPositioner"));var sa=T(A(),1);var De=T(A(),1);var Er=De.createContext(void 0);function na(){let[t,e]=De.useState(0),o=cn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:De.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(na,"useClosePartCount");function aa(){let t=De.useContext(Er);ye(()=>t?.register(),[t])}s(aa,"useClosePartRegistration");var kr=T(se(),1);var ia=sa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,initialFocus:l,finalFocus:c,...p}=e,d=Y(),u=eo(),f=An(!0)!=null,{context:h,hasClosePart:g}=na(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),S=d.useState("descriptionElementId"),C=d.useState("modal"),w=d.useState("mounted"),R=d.useState("openChangeReason"),N=d.useState("activeTriggerElement"),E=d.useState("floatingRootContext"),k=E.useState("floatingId"),M=d.useState("disabled"),L=d.useState("openOnHover"),_=d.useState("closeDelay");At({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Do(E,{enabled:L&&!M,closeDelay:_});let j=l===void 0?Eo(d.context.popupRef):l,z=C!==!1&&g;d.useSyncedValue("focusManagerModal",z);let H=d.useStateSetter("popupElement"),F={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},Z=B("div",e,{state:F,ref:[o,d.context.popupRef,H],props:[P,{id:k,role:"dialog",...jt,"aria-labelledby":y,"aria-describedby":S,onKeyDown(D){f&&Fo.has(D.key)&&D.stopPropagation()}},Ho(b),p],stateAttributesMapping:Ee});return(0,kr.jsx)(No,{context:E,openInteractionType:x,modal:z,disabled:!w||R===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:dn(N)?N:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,kr.jsx)(Er.Provider,{value:h,children:Z})})},"PopoverPopup"));var la=T(A(),1);var ca=la.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,p=Y().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=eo();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:_t})},"PopoverArrow"));var da=T(A(),1);var pa=da.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),p=c.useState("open"),d=c.useState("mounted"),u=c.useState("transitionStatus"),f=c.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Ee})},"PopoverBackdrop"));var ua=T(A(),1);var ma=ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),p=me(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var fa=T(A(),1);var ga=fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),p=me(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var ha=T(A(),1);var va=ha.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=ke({disabled:l,focusableWhenDisabled:!1,native:c}),f=Y();return aa(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var ba=T(A(),1);var xa=ba.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=Y(),{side:d}=eo(),u=p.useState("instantType"),{children:f,state:h}=zo({store:p,side:d,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:jo})},"PopoverViewport"));var mo=class extends Bt{static{s(this,"PopoverHandle")}constructor(){super($n(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function ya(){return new mo}s(ya,"createPopoverHandle");var ie={};gr(ie,{Backdrop:()=>Ca,Close:()=>Ra,Description:()=>Na,Handle:()=>ho,Popup:()=>Da,Portal:()=>Ia,Root:()=>ja,Title:()=>Za,Trigger:()=>qa,Viewport:()=>Ka,createHandle:()=>$a});var Pa=T(A(),1);var Jo=T(A(),1);var Or=Jo.createContext(void 0);function ne(t){let e=Jo.useContext(Or);if(!t&&e===void 0)throw new Error(Q(27));return e}s(ne,"useDialogRootContext");var Ca=Pa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,forceRender:l=!1,...c}=e,p=ne(),d=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),h=p.useState("transitionStatus");return B("div",e,{state:{open:d,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:Ee,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!u})},"DialogBackdrop"));var Sa=T(A(),1);var Ra=Sa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ne(),u=d.useState("open"),{getButtonProps:f,buttonRef:h}=ke({disabled:l,native:c}),g={disabled:l};function m(x){u&&d.setOpen(!1,re(K.closePress,x.nativeEvent))}return s(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var Ta=T(A(),1);var Na=Ta.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=me(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var ka=T(A(),1);var Xo=T(A(),1);var Dr=Xo.createContext(void 0);function er(){let t=Xo.useContext(Dr);if(t===void 0)throw new Error(Q(26));return t}s(er,"useDialogPortalContext");var wa="--nested-dialogs";var Su=io.open,Ru=io.closed,Tu=io.startingStyle,Nu=io.endingStyle;var Ea="data-nested-dialog-open";var tr={..._t,...un,nestedDialogOpen(t){return t?{[Ea]:""}:null}};var Oa=T(se(),1);var Da=ka.forwardRef(s(function(e,o){let{render:r,className:n,style:i,finalFocus:l,initialFocus:c,...p}=e,d=ne(),u=d.useState("descriptionElementId"),f=d.useState("disablePointerDismissal"),h=d.useState("floatingRootContext"),g=d.useState("popupProps"),m=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),P=d.useState("open"),y=d.useState("openMethod"),S=d.useState("titleElementId"),C=d.useState("transitionStatus"),w=d.useState("role"),R=h.useState("floatingId");er(),At({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let N=c===void 0?Eo(d.context.popupRef):c,E=b>0,k=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:C,nestedDialogOpen:E},props:[g,{id:R,"aria-labelledby":S,"aria-describedby":u,role:w,...jt,hidden:!x,onKeyDown(_){Fo.has(_.key)&&_.stopPropagation()},style:{[wa]:b}},p],ref:[o,d.context.popupRef,k],stateAttributesMapping:tr});return(0,Oa.jsx)(No,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var Ma=T(A(),1);var fo=T(se(),1);var Ia=Ma.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e,i=ne(),l=i.useState("mounted"),c=i.useState("modal"),p=i.useState("open");return l||r?(0,fo.jsx)(Dr.Provider,{value:r,children:(0,fo.jsxs)(To,{ref:o,...n,children:[l&&c===!0&&(0,fo.jsx)(Lo,{ref:i.context.internalBackdropRef,inert:Ao(!p)}),e.children]})}):null},"DialogPortal"));var Ba=T(A(),1);var Mr=T(A(),1);function _a({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=Mr.useState(0),[u,f]=Mr.useState(0),h=p===0,g=Ht(c,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!t.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}let x=pn(m);if(h&&!n){if(i){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||so(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return In(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),ye(()=>(e?.onNestedDialogOpen&&(r?e.onNestedDialogOpen(p+1,u+(o?1:0)):e.onNestedDialogOpen(0,0)),()=>{e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(0,0)}),[o,r,p,u,e]),qt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(_a,"DialogInteractions");var or=T(A(),1);var Aa={...Gt,modal:s(t=>t.modal,"modal"),nested:s(t=>t.nested,"nested"),nestedOpenDialogCount:s(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:s(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:s(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:s(t=>t.openMethod,"openMethod"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:s(t=>t.titleElementId,"titleElementId"),viewportElement:s(t=>t.viewportElement,"viewportElement"),role:s(t=>t.role,"role")},rr=class extends Ft{static{s(this,"DialogStore")}constructor(e,o,r){let n=new Te,i=La(e,n,o,r);super(i,Ha(n),Aa)}setOpen=s((e,o)=>{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&&(this.state.floatingRootContext.dispatchOpenChange(e,o),this.update(ko(this.state,e,o.trigger)))},"setOpen")};function Va(){let t=new Te;return new Yt(Object.freeze(La(void 0,t)),Object.freeze(Ha(t)),Aa)}s(Va,"createNullDialogStore");function La(t,e,o,r=!1){return{...$t(e,o,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}s(La,"createInitialState");function Ha(t){return{popupRef:or.createRef(),backdropRef:or.createRef(),internalBackdropRef:or.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(Ha,"createInitialContext");var go=T(se(),1);function Fa(t,e){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:d,handle:u,triggerId:f,defaultTriggerId:h=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,v=m||c,b=m?"alertdialog":"dialog",P=ne(!0),y=P!=null,S={modal:x,disablePointerDismissal:v,nested:y,role:b},C=zt((M,L)=>new rr({open:n,openProp:r,activeTriggerId:h,triggerIdProp:f,...S},M,L),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(S),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let w=C.useState("open"),R=C.useState("mounted"),N=C.useState("payload");Oo(C,w),Zt(C);let{forceUnmount:E}=Wt(w,C);Ba.useImperativeHandle(d,()=>({unmount:E,close:s(()=>C.setOpen(!1,re(K.imperativeAction)),"close")}),[E,C]);let k=w||R;return(0,go.jsxs)(Or.Provider,{value:C,children:[u&&(0,go.jsx)(Kt,{handle:u,store:C}),k&&(0,go.jsx)(_a,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}s(Fa,"useRenderDialogRoot");var ja=Vt(s(function(e){return Fa("dialog",e)},"DialogRoot"));var za=T(A(),1);var Ka=za.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=er(),d=ne(),u=d.useState("open"),f=d.useState("nested"),h=d.useState("transitionStatus"),g=d.useState("nestedOpenDialogCount"),m=d.useState("mounted"),x=d.useStateSetter("viewportElement"),v=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:h,nestedDialogOpen:v},ref:[o,x],stateAttributesMapping:tr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var Ua=T(A(),1);var Za=Ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=me(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var Wa=T(A(),1);var qa=Lt(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ne(!0),m=Qt(u)??h;if(!m)throw new Error(Q(79));let x=me(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=Wa.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Ut(x,y,m,{payload:d}),{getButtonProps:w,buttonRef:R}=ke({disabled:l,native:c}),N=wo(v),E=_o(()=>m.select("open"),L=>{m.set("openMethod",L)}),k={disabled:l,open:b},M=m.useState("triggerProps",C);return B("button",e,{state:k,ref:[R,o,S,y],props:[N.reference,M,E,{[So]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,w],stateAttributesMapping:It})},"DialogTrigger"));var ho=class extends Bt{static{s(this,"DialogHandle")}constructor(){super(Va(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,re(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function $a(){return new ho}s($a,"createDialogHandle");var Pe={};gr(Pe,{Arrow:()=>hs,Handle:()=>bo,Popup:()=>fs,Portal:()=>ds,Positioner:()=>us,Provider:()=>bs,Root:()=>es,Trigger:()=>ns,Viewport:()=>ys,createHandle:()=>Ps});var to=T(A(),1);var nr=T(A(),1);var Ir=nr.createContext(void 0);function he(t){let e=nr.useContext(Ir);if(e===void 0&&!t)throw new Error(Q(72));return e}s(he,"useTooltipRootContext");var Ga=T(A(),1);var Qa={...Gt,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),isInstantPhase:s(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:s(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:s(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:s(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:s(t=>t.closeOnClick,"closeOnClick"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},ar=class extends Ft{static{s(this,"TooltipStore")}constructor(e,o,r){let n=new Te;super(Ja(e,n,o,r),Xa(n),Qa)}setOpen=s((e,o)=>{kn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function Ya(){let t=new Te,e=new Yt(Object.freeze(Ja(void 0,t)),Object.freeze(Xa(t)),Qa);return Object.assign(e,{setOpen:ao,cancelPendingOpen:ao})}s(Ya,"createNullTooltipStore");function Ja(t,e,o,r=!1){return{...$t(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}s(Ja,"createInitialState");function Xa(t){return{popupRef:Ga.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(Xa,"createInitialContext");var vo=T(se(),1);var es=Vt(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=zt((M,L)=>new ar({open:r,openProp:n,activeTriggerId:h,triggerIdProp:f},M,L));m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",d);let x=m.useState("open"),v=!o&&x,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:i,disabled:o}),Zt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:C}=Wt(v,m),w=m.useState("isInstantPhase"),R=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),E=to.useRef(null);ye(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),ye(()=>{C==="ending"&&N===K.none||C!=="ending"&&w?(R!=="delay"&&(E.current=R),m.set("instantType","delay")):E.current!==null&&(m.set("instantType",E.current),E.current=null)},[C,w,N,R,m]),ye(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),to.useImperativeHandle(c,()=>({unmount:S,close:s(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[S,m]);let k=v||P||!o&&l!=="none";return(0,vo.jsxs)(Ir.Provider,{value:m,children:[u&&(0,vo.jsx)(Kt,{handle:u,store:m}),k&&(0,vo.jsx)(Js,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function Js({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Ht(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=wn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=to.useMemo(()=>no(i.reference,n.reference),[i.reference,n.reference]);return qt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:n.floating??sn}),null}s(Js,"TooltipInteractions");var ir=T(A(),1);var sr=T(A(),1);var _r=sr.createContext(void 0);function ts(){return sr.useContext(_r)}s(ts,"useTooltipProviderContext");var rs="data-base-ui-tooltip-trigger";function os(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(Co(n))return n}}let e=t.target;return Co(e)?e:null}s(os,"getTargetElement");function Xs(t){let e=t;for(;e;){let o=e.closest(`[${rs}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&Co(r.host)?r.host:null}return null}s(Xs,"closestEnabledTooltipTrigger");var ns=Lt(s(function(e,o){let{render:r,className:n,style:i,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=he(!0),v=Qt(l)??m;if(!v)throw new Error(Q(82));let b=me(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),S=v.useState("floatingRootContext"),C=ir.useRef(null),w=f??0,{registerTrigger:R,isMountedByThisTrigger:N}=Ut(b,C,v,{payload:c,closeOnClick:u,closeDelay:w}),E=ts(),{activeIdRef:k,delayRef:M,isInstantPhase:L,hasProvider:_}=Pn(S,{open:y}),j=Dn(S);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=Cn(H),Z=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=ir.useRef(!1),q=vn(),G=ir.useRef(void 0);function ee(){return _&&k.current!=null?0:d??E??600}s(ee,"getOpenDelay");function ae(W){let ue=C.current;if(!ue||!W)return!1;let ve=Xs(W);return ve!==null&&ve!==ue&&so(ue,ve)}s(ae,"isEnabledNestedTriggerTarget");function te(W){let ue=ae(W);return V.current=ue,ue&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,q.clear()),ue}s(te,"detectNestedTriggerHover");let X=Mo(S,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&Z!=="both"?Io():null,restMs:ee,delay(){return f==null&&_?{close:xn(M.current,"close")}:{close:w}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=On(S,{enabled:!H}).reference,le=s(W=>{let ue=V.current,ve=os(W),Ce=te(ve),be=C.current,we=be&&ve&&so(be,ve);if(Ce&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,W));return}if(ue&&!Ce&&we&&!F.current&&!v.select("open")&&be&&gn(G.current)){let Se=s(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,W,be))},"open"),Re=ee();Re===0?(q.clear(),Se()):q.start(Re,Se)}},"handleNestedTriggerHover"),ce=v.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,R,C],props:[X,$,N||Z!=="none"?ce:void 0,{onMouseOver(W){le(W.nativeEvent)},onFocus(W){ae(os(W.nativeEvent))&&W.preventBaseUIHandler()},onMouseLeave(){V.current=!1,q.clear(),G.current=void 0},onPointerEnter(W){G.current=W.pointerType},onPointerDown(W){G.current=W.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(W.nativeEvent)},onClick(W){u&&!v.select("open")&&v.cancelPendingOpen(W.nativeEvent)},id:b,[fn]:H?"":void 0,[rs]:H?void 0:""},g],stateAttributesMapping:It})},"TooltipTrigger"));var cs=T(A(),1);var lr=T(A(),1);var Ar=lr.createContext(void 0);function as(){let t=lr.useContext(Ar);if(t===void 0)throw new Error(Q(70));return t}s(as,"useTooltipPortalContext");var cr=T(A(),1),ss=T(Wr(),1);var is=T(se(),1);var ls=cr.forwardRef(s(function(e,o){let{children:r,container:n,className:i,render:l,style:c,...p}=e,{node:d,subtree:u}=Sn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,is.jsxs)(cr.Fragment,{children:[u,d&&ss.createPortal(r,d)]})},"FloatingPortalLite"));var Vr=T(se(),1);var ds=cs.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return he().useState("mounted")||r?(0,Vr.jsx)(Ar.Provider,{value:r,children:(0,Vr.jsx)(ls,{ref:o,...n})}):null},"TooltipPortal"));var pr=T(A(),1);var dr=T(A(),1);var Lr=dr.createContext(void 0);function oo(){let t=dr.useContext(Lr);if(t===void 0)throw new Error(Q(71));return t}s(oo,"useTooltipPositionerContext");var ps=T(se(),1);var us=pr.forwardRef(s(function(e,o){let{render:r,className:n,anchor:i,positionMethod:l="absolute",side:c="top",align:p="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:h=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:v=Ro,style:b,...P}=e,y=he(),S=as(),C=y.useState("open"),w=y.useState("mounted"),R=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),k=y.useState("instantType"),M=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),_=Vo({anchor:i,positionMethod:l,floatingRootContext:E,mounted:w,side:c,sideOffset:d,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:h,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:S,collisionAvoidance:v,adaptiveOrigin:L}),j=pr.useMemo(()=>({open:C,side:_.side,align:_.align,anchorHidden:_.anchorHidden,instant:R!=="none"?"tracking-cursor":k}),[C,_.side,_.align,_.anchorHidden,R,k]),z=Bo(e,j,{styles:_.positionerStyles,transitionStatus:M,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!C||R==="both"||N});return(0,ps.jsx)(Lr.Provider,{value:_,children:z})},"TooltipPositioner"));var ms=T(A(),1);var fs=ms.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=he(),{side:p,align:d}=oo(),u=c.useState("open"),f=c.useState("instantType"),h=c.useState("transitionStatus"),g=c.useState("popupProps"),m=c.useState("floatingRootContext"),x=c.useState("disabled"),v=c.useState("closeDelay");At({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Do(m,{enabled:!x,closeDelay:v});let b=c.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:d,instant:f,transitionStatus:h},ref:[o,c.context.popupRef,b],props:[jt,g,Ho(h),l],stateAttributesMapping:Ee})},"TooltipPopup"));var gs=T(A(),1);var hs=gs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=he(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=oo(),g=c.useState("open"),m=c.useState("instantType");return B("div",e,{state:{open:g,side:d,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:_t})},"TooltipArrow"));var vs=T(A(),1);var Hr=T(se(),1);var bs=s(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,i=vs.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Hr.jsx)(_r.Provider,{value:o,children:(0,Hr.jsx)(yn,{delay:i,timeoutMs:n,children:e.children})})},"TooltipProvider");var xs=T(A(),1);var ys=xs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=he(),d=oo(),u=p.useState("instantType"),{children:f,state:h}=zo({store:p,side:d.side,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:jo})},"TooltipViewport"));var bo=class extends Bt{static{s(this,"TooltipHandle")}constructor(){super(Ya(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ps(){return new bo}s(Ps,"createTooltipHandle");var Cs=T(vr(),1);var Ss=T(se(),1);var ei=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?nn:rn(e,o),"I"),Rs=s(t=>{let e=(0,Cs.c)(7),{catalogs:o,children:r,i18n:n,locale:i}=t,l;e[0]!==o||e[1]!==n||e[2]!==i?(l=ei(n,i,o),e[0]=o,e[1]=n,e[2]=i,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,Ss.jsx)(an,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var Fr=T(vr(),1);var Ie=T(A(),1);var oe=T(se(),1);var Br="lunora:command-palette",Ts=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(Br))},"ce"),ti=s(t=>{let e=(0,Fr.c)(18),{active:o,index:r,item:n,onActivate:i,onSelect:l}=t,c;e[0]!==n||e[1]!==l?(c=s(()=>{l(n)},"g"),e[0]=n,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==i?(d=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,e[5]=d):d=e[5];let u=d,f=o?"bg-accent text-accent-foreground":"text-foreground",h;e[6]!==f?(h=U("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",f),e[6]=f,e[7]=h):h=e[7];let g;e[8]!==n.label?(g=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=g):g=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==h||e[15]!==g||e[16]!==m?(x=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:h,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=h,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),oi=s((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Ns=s(t=>{let e=(0,Fr.c)(40),{items:o}=t,r=fe(),n=ro(),{palette:i}=Uo(),[l,c]=(0,Ie.useState)(!1),[p,d]=(0,Ie.useState)(""),[u,f]=(0,Ie.useState)(0),h=(0,Ie.useRef)(null),g,m;e[0]!==i?(g=s(()=>{let D=s(q=>{if(!(q.metaKey||q.ctrlKey)||q.key.toLowerCase()!==i)return;let{target:G}=q;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(q.preventDefault(),c(!0))},"t"),V=s(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(Br,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(Br,V)}},"s"),m=[i],e[0]=i,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,Ie.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=oi(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let v=x,b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=s(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==n?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&Jt(n({to:D.to}))},"K"),e[7]=n,e[8]=y):y=e[8];let S=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{d(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let w=C,R;e[10]!==u||e[11]!==v||e[12]!==S?(R=s(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(V=>v.length===0?0:(V+1)%v.length);break e}case"ArrowUp":{D.preventDefault(),f(V=>v.length===0?0:(V-1+v.length)%v.length);break e}case"Enter":{D.preventDefault();let V=v[u];V!==void 0&&S(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=S,e[13]=R):R=e[13];let N=R,E;e[14]===Symbol.for("react.memo_cache_sentinel")?(E=(0,oe.jsx)(ie.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[14]=E):E=e[14];let k;e[15]!==r?(k=r("Command palette"),e[15]=r,e[16]=k):k=e[16];let M;e[17]!==k?(M=(0,oe.jsx)(ie.Title,{className:"sr-only",children:k}),e[17]=k,e[18]=M):M=e[18];let L;e[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,oe.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,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=L):L=e[19];let _;e[20]!==r?(_=r("Search\u2026"),e[20]=r,e[21]=_):_=e[21];let j;e[22]!==N||e[23]!==p||e[24]!==_?(j=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[L,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:w,onKeyDown:N,placeholder:_,ref:h,type:"text",value:p})]}),e[22]=N,e[23]=p,e[24]=_,e[25]=j):j=e[25];let z;e[26]!==u||e[27]!==v||e[28]!==S||e[29]!==r?(z=v.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):v.map((D,V)=>(0,oe.jsx)(ti,{active:V===u,index:V,item:D,onActivate:f,onSelect:S},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=S,e[29]=r,e[30]=z):z=e[30];let H;e[31]!==z?(H=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:z}),e[31]=z,e[32]=H):H=e[32];let F;e[33]!==M||e[34]!==j||e[35]!==H?(F=(0,oe.jsxs)(ie.Portal,{children:[E,(0,oe.jsxs)(ie.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,j,H]})]}),e[33]=M,e[34]=j,e[35]=H,e[36]=F):F=e[36];let Z;return e[37]!==l||e[38]!==F?(Z=(0,oe.jsx)(ie.Root,{onOpenChange:P,open:l,children:F}),e[37]=l,e[38]=F,e[39]=Z):Z=e[39],Z},"de");var Ms="(prefers-color-scheme: dark)",Is=s(()=>{try{return globalThis.localStorage}catch{return}},"Ut"),ri=s(t=>t==="system"||t==="light"||t==="dark","Is"),_s=s(()=>globalThis.matchMedia,"jt"),As="lunora-studio-theme",jr=["system","light","dark"],ni=s((t="system")=>{try{let e=Is()?.getItem(As);return ri(e)?e:t}catch{return t}},"Rs"),ws=s(t=>{let e=Is();if(e!==void 0)try{e.setItem(As,t)}catch{}},"At"),ai=s(()=>{try{return _s()?.(Ms).matches?"dark":"light"}catch{return"light"}},"Es"),si=s((t,e)=>t==="system"?e:t,"$s"),ii=s(t=>{let e;try{e=_s()?.(Ms)}catch{e=void 0}if(e===void 0)return()=>{};let o=s(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Hs"),Ur=(0,O.createContext)(null),li=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,O.useState)(()=>ni(e)),[n,i]=(0,O.useState)(()=>ai());(0,O.useEffect)(()=>ii(i),[]);let l=s(p=>{ws(p),r(p)},"i"),c={cycleTheme:s(()=>{r(p=>{let d=jr[(jr.indexOf(p)+1)%jr.length]??p;return ws(d),d})},"cycleTheme"),resolvedTheme:si(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(Ur,{value:c,children:t})},"Bs"),ci=s(t=>{let e=(0,I.c)(3),{children:o}=t,r=(0,O.use)(Ur),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(li,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Vs"),di=s(()=>{let t=(0,O.use)(Ur);if(t===null)throw new hr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"zs");function Ug({delay:t=0,...e}){return(0,a.jsx)(Pe.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(Ug,"Ln");function pi(t){let e=(0,I.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,a.jsx)(Pe.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(pi,"Ds");function ui(t){let e=(0,I.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,a.jsx)(Pe.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(ui,"Os");function mi({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:i,...l}){return(0,a.jsx)(Pe.Portal,{children:(0,a.jsx)(Pe.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Pe.Popup,{"data-slot":"tooltip-content",className:U("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),...l,children:[i,(0,a.jsx)(Pe.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"})]})})})}s(mi,"Zs");var fi=s(t=>{let e=(0,I.c)(5),{className:o}=t,r;e[0]!==o?(r=U("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,a.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 i;return e[3]!==r?(i=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=i):i=e[4],i},"Fs"),Vs="lunora.studio.rulesBannerDismissed",gi=s(()=>{try{return globalThis.localStorage.getItem(Vs)==="1"}catch{return!1}},"qs"),hi=s(()=>{try{globalThis.localStorage.setItem(Vs,"1")}catch{}},"Ws"),vi=s(()=>{let t=(0,I.c)(18),e=fe(),[o,r]=(0,O.useState)(bi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s(()=>{r(!0),hi()},"o"),t[0]=n):n=t[0];let i=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let c;t[2]!==e?(c=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=c):c=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.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 d;t[5]!==e?(d=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=d):d=t[6];let u;t[7]!==c||t[8]!==d?(u=(0,a.jsxs)("span",{children:[c," ",p," ",d]}),t[7]=c,t[8]=d,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.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,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,a.jsx)("button",{"aria-label":f,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:i,type:"button",children:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,a.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:[l,u,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"Us");function bi(){return gi()}s(bi,"js");function Ls(t){let e=(0,I.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,a.jsx)(Me.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ls,"Qt");function Hs(t){let e=(0,I.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,a.jsx)(Me.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Hs,"Yt");function Bs({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:i=6,...l}){return(0,a.jsx)(Me.Portal,{keepMounted:r,children:(0,a.jsx)(Me.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:i,children:(0,a.jsx)(Me.Popup,{className:U("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",...l})})})}s(Bs,"Jt");var zr=768;function xi(){let t=(0,I.c)(2),[e,o]=(0,O.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${zr-1}px)`),l=s(()=>{o(globalThis.innerWidth<zr)},"i");return i.addEventListener("change",l),o(globalThis.innerWidth<zr),()=>{i.removeEventListener("change",l)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,O.useEffect)(r,n),!!e}s(xi,"Gs");function yi(t){let e=(0,I.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,a.jsx)(ie.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(yi,"Ks");function Pi(t){let e=(0,I.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,a.jsx)(ie.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Pi,"Qs");function Ci(t){let e=(0,I.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=U("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 i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(ie.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ci,"Ys");function Si({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(Pi,{children:[(0,a.jsx)(Ci,{}),(0,a.jsxs)(ie.Popup,{"data-slot":"sheet-content","data-side":o,className:U("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,a.jsxs)(ie.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(Sr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(Cr,{icon:Vn,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(Si,"Js");function Ri(t){let e=(0,I.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=U("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ri,"Xs");function Ti(t){let e=(0,I.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=U("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(ie.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ti,"ea");function Ni(t){let e=(0,I.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=U("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(ie.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ni,"ta");var wi="sidebar_state",Ei=3600*24*7,ki="16rem",Oi="18rem",Di="3rem",Mi="b",Fs=xe.createContext(null);function ur(){let t=xe.useContext(Fs);if(!t)throw new hr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(ur,"vt");function Ii({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:i,...l}){let c=xi(),[p,d]=xe.useState(!1),[u,f]=xe.useState(t),h=e??u,g=s(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${wi}=${P}; path=/; max-age=${Ei}`},"f"),m=s(()=>c?d(b=>!b):g(b=>!b),"g"),x=xe.useEffectEvent(()=>{m()});xe.useEffect(()=>{let b=s(P=>{P.key===Mi&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"p");return globalThis.addEventListener("keydown",b),()=>globalThis.removeEventListener("keydown",b)},[]);let v={state:h?"expanded":"collapsed",open:h,setOpen:g,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:m};return(0,a.jsx)(Fs.Provider,{value:v,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ki,"--sidebar-width-icon":Di,...n},className:U("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Ii,"la");function _i({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:i,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=ur();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:U("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):c?(0,a.jsx)(yi,{open:d,onOpenChange:u,...l,children:(0,a.jsxs)(Si,{dir:i,"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":Oi},side:t,children:[(0,a.jsxs)(Ri,{className:"sr-only",children:[(0,a.jsx)(Ti,{children:"Sidebar"}),(0,a.jsx)(Ni,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.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,a.jsx)("div",{"data-slot":"sidebar-gap",className:U("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,a.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:U("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),...l,children:(0,a.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})})]})}s(_i,"da");function Ai(t){let e=(0,I.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:i}=ur(),l;e[4]!==o?(l=U(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==i?(c=s(f=>{r?.(f),i()},"l"),e[6]=r,e[7]=i,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Cr,{icon:Ln,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=d):(p=e[9],d=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==c?(u=(0,a.jsxs)(Sr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...n,children:[p,d]}),e[11]=n,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}s(Ai,"ca");function Vi(t){let e=(0,I.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=U("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 i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Vi,"ua");function Li(t){let e=(0,I.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=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Li,"fa");function Hi(t){let e=(0,I.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=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Hi,"ma");function Bi(t){let e=(0,I.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=U("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 i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Bi,"ha");function Fi(t){let e=(0,I.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=U("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Fi,"pa");function ji(t){let e=(0,I.c)(10),o,r,n,i;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,i=xr,r="div",n=no({className:U("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]=i}else o=e[1],r=e[2],n=e[3],i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=l):l=e[5];let c;return e[6]!==o||e[7]!==r||e[8]!==n?(c={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=c):c=e[9],i(c)}s(ji,"ga");function zi(t){let e=(0,I.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=U("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(zi,"ba");function Es(t){let e=(0,I.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=U("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Es,"It");function ks(t){let e=(0,I.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=U("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(ks,"Rt");var Ki=ln("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 js({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:i,...l}){let{isMobile:c,state:p}=ur(),d=xr({defaultTagName:"button",props:no({className:U(Ki({variant:o,size:r}),i)},l),render:n?(0,a.jsx)(ui,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(pi,{children:[d,(0,a.jsx)(mi,{side:"right",align:"center",hidden:p!=="collapsed"||c,...n})]})):d}s(js,"es");var Ui=s(t=>t.replace("__lunora_admin__:",""),"xa"),Zi=s(()=>(0,O.useSyncExternalStore)(lo.subscribe,lo.getSnapshot,lo.getSnapshot),"ya"),Wi=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","wa"),qi=s(t=>{let e=(0,I.c)(56),{entry:o,focused:r}=t,n=fe(),i;e[0]!==r?(i=s(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"r"),e[0]=r,e[1]=i):i=e[1];let l=i,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=s(()=>{Bn(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"l"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=c):c=e[5];let p=c,d=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==d?(u=U("border-b border-border/60 last:border-b-0",d),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=Wi(o.status),e[8]=o.status,e[9]=f):f=e[9];let h=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==h?(g=(0,a.jsx)(Mt,{className:"mt-px shrink-0",variant:f,children:h}),e[10]=f,e[11]=h,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=Ui(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,a.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let v;e[17]!==o.kind||e[18]!==n?(v=o.kind==="subscription"&&(0,a.jsx)(Mt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,a.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=b):b=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,a.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=P):P=e[23];let y;e[24]!==o.resultCount||e[25]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let S;e[27]!==o.pushes||e[28]!==n?(S=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=S):S=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let w;e[32]!==n?(w=n("Copy"),e[32]=n,e[33]=w):w=e[33];let R;e[34]!==p||e[35]!==w?(R=(0,a.jsx)("button",{"aria-label":w,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=w,e[36]=R):R=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==S||e[40]!==C||e[41]!==R?(N=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,S,C,R]}),e[37]=P,e[38]=y,e[39]=S,e[40]=C,e[41]=R,e[42]=N):N=e[42];let E;e[43]!==v||e[44]!==b||e[45]!==N||e[46]!==g||e[47]!==x?(E=(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,v,b,N]}),e[43]=v,e[44]=b,e[45]=N,e[46]=g,e[47]=x,e[48]=E):E=e[48];let k;e[49]!==o.error?(k=o.error!==void 0&&(0,a.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=k):k=e[50];let M;return e[51]!==l||e[52]!==E||e[53]!==k||e[54]!==u?(M=(0,a.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[E,k]}),e[51]=l,e[52]=E,e[53]=k,e[54]=u,e[55]=M):M=e[55],M},"ka"),$i=s(t=>{let e=(0,I.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:i}=t,l=fe(),c=Zi(),[p,d]=(0,O.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(i==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Gi),e[8]=c,e[9]=g):g=e[9];let m=g.length,x;e[10]!==l?(x=l("Operation console"),e[10]=l,e[11]=x):x=e[11];let v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let b;e[14]!==v?(b=(0,a.jsx)("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=b):b=e[15];let P;e[16]!==c.length||e[17]!==l?(P=l("{count} calls",{count:c.length}),e[16]=c.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,a.jsx)(Mt,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let S;e[21]!==m||e[22]!==l?(S=m>0&&(0,a.jsx)(Mt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=S):S=e[23];let C=i==="errors",w=i==="errors"&&"bg-accent",R;e[24]!==w?(R=U("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=R):R=e[25];let N;e[26]!==n||e[27]!==i?(N=s(()=>{n(i==="errors"?"all":"errors")},"N"),e[26]=n,e[27]=i,e[28]=N):N=e[28];let E;e[29]!==l?(E=l("Errors"),e[29]=l,e[30]=E):E=e[30];let k;e[31]!==R||e[32]!==N||e[33]!==E||e[34]!==C?(k=(0,a.jsx)("button",{"aria-pressed":C,className:R,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:E}),e[31]=R,e[32]=N,e[33]=E,e[34]=C,e[35]=k):k=e[35];let M;e[36]!==l?(M=l("Filter"),e[36]=l,e[37]=M):M=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s(V=>{d(V.target.value)},"O"),e[38]=L):L=e[38];let _;e[39]!==l?(_=l("Filter"),e[39]=l,e[40]=_):_=e[40];let j;e[41]!==p||e[42]!==M||e[43]!==_?(j=(0,a.jsx)(yr,{"aria-label":M,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:L,placeholder:_,value:p}),e[41]=p,e[42]=M,e[43]=_,e[44]=j):j=e[44];let z;e[45]!==l?(z=l("Clear"),e[45]=l,e[46]=z):z=e[46];let H;e[47]!==z?(H=(0,a.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:Qi,type:"button",children:z}),e[47]=z,e[48]=H):H=e[48];let F;e[49]!==l?(F=l("Hide"),e[49]=l,e[50]=F):F=e[50];let Z;e[51]!==r||e[52]!==F?(Z=(0,a.jsx)("button",{"aria-label":F,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:r,type:"button",children:"\u2715"}),e[51]=r,e[52]=F,e[53]=Z):Z=e[53];let D;e[54]!==k||e[55]!==j||e[56]!==H||e[57]!==Z||e[58]!==b||e[59]!==y||e[60]!==S?(D=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,S,k,j,H,Z]}),e[54]=k,e[55]=j,e[56]=H,e[57]=Z,e[58]=b,e[59]=y,e[60]=S,e[61]=D):D=e[61],u=(0,a.jsxs)("section",{"aria-label":x,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[D,h.length===0?(0,a.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,a.jsx)(qi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"Ma");function Gi(t){return t.status==="error"}s(Gi,"Na");function Qi(){lo.clear()}s(Qi,"Sa");var Yi=s(()=>{let t=(0,I.c)(322),e=fe(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let i;t[6]!==e?(i=e("AI usage"),t[6]=e,t[7]=i):i=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==e?(c=e("API"),t[10]=e,t[11]=c):c=t[11];let p;t[12]!==e?(p=e("Audit"),t[12]=e,t[13]=p):p=t[13];let d;t[14]!==e?(d=e("Auth audit"),t[14]=e,t[15]=d):d=t[15];let u;t[16]!==e?(u=e("Configuration"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Sessions"),t[18]=e,t[19]=f):f=t[19];let h;t[20]!==e?(h=e("Containers"),t[20]=e,t[21]=h):h=t[21];let g;t[22]!==e?(g=e("Dashboards"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Data"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Deployment health"),t[26]=e,t[27]=x):x=t[27];let v;t[28]!==e?(v=e("Log drains"),t[28]=e,t[29]=v):v=t[29];let b;t[30]!==e?(b=e("Export / Import"),t[30]=e,t[31]=b):b=t[31];let P;t[32]!==e?(P=e("Fan-out"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Files"),t[34]=e,t[35]=y):y=t[35];let S;t[36]!==e?(S=e("Flags"),t[36]=e,t[37]=S):S=t[37];let C;t[38]!==e?(C=e("Functions"),t[38]=e,t[39]=C):C=t[39];let w;t[40]!==e?(w=e("Health"),t[40]=e,t[41]=w):w=t[41];let R;t[42]!==e?(R=e("Home"),t[42]=e,t[43]=R):R=t[43];let N;t[44]!==e?(N=e("Performance"),t[44]=e,t[45]=N):N=t[45];let E;t[46]!==e?(E=e("Issues"),t[46]=e,t[47]=E):E=t[47];let k;t[48]!==e?(k=e("KV"),t[48]=e,t[49]=k):k=t[49];let M;t[50]!==e?(M=e("Logs"),t[50]=e,t[51]=M):M=t[51];let L;t[52]!==e?(L=e("Metrics"),t[52]=e,t[53]=L):L=t[53];let _;t[54]!==e?(_=e("Migrations"),t[54]=e,t[55]=_):_=t[55];let j;t[56]!==e?(j=e("Notifications"),t[56]=e,t[57]=j):j=t[57];let z;t[58]!==e?(z=e("Organizations"),t[58]=e,t[59]=z):z=t[59];let H;t[60]!==e?(H=e("Time Travel"),t[60]=e,t[61]=H):H=t[61];let F;t[62]!==e?(F=e("Mail"),t[62]=e,t[63]=F):F=t[63];let Z;t[64]!==e?(Z=e("Payments"),t[64]=e,t[65]=Z):Z=t[65];let D;t[66]!==e?(D=e("Permissions"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Queues"),t[68]=e,t[69]=V):V=t[69];let q;t[70]!==e?(q=e("Reactors"),t[70]=e,t[71]=q):q=t[71];let G;t[72]!==e?(G=e("Realtime"),t[72]=e,t[73]=G):G=t[73];let ee;t[74]!==e?(ee=e("RLS Policies"),t[74]=e,t[75]=ee):ee=t[75];let ae;t[76]!==e?(ae=e("Scheduled"),t[76]=e,t[77]=ae):ae=t[77];let te;t[78]!==e?(te=e("Schema"),t[78]=e,t[79]=te):te=t[79];let X;t[80]!==e?(X=e("Security"),t[80]=e,t[81]=X):X=t[81];let $;t[82]!==e?($=e("Settings"),t[82]=e,t[83]=$):$=t[83];let le;t[84]!==e?(le=e("SQL editor"),t[84]=e,t[85]=le):le=t[85];let ce;t[86]!==e?(ce=e("Traces"),t[86]=e,t[87]=ce):ce=t[87];let de;t[88]!==e?(de=e("Access Rules"),t[88]=e,t[89]=de):de=t[89];let ge;t[90]!==e?(ge=e("Users"),t[90]=e,t[91]=ge):ge=t[91];let pe;t[92]!==e?(pe=e("Vectors"),t[92]=e,t[93]=pe):pe=t[93];let W;t[94]!==e?(W=e("Workflows"),t[94]=e,t[95]=W):W=t[95];let ue;t[96]!==o||t[97]!==r||t[98]!==h||t[99]!==g||t[100]!==m||t[101]!==x||t[102]!==v||t[103]!==b||t[104]!==P||t[105]!==y||t[106]!==S||t[107]!==C||t[108]!==n||t[109]!==w||t[110]!==R||t[111]!==N||t[112]!==E||t[113]!==k||t[114]!==M||t[115]!==L||t[116]!==_||t[117]!==j||t[118]!==z||t[119]!==i||t[120]!==H||t[121]!==F||t[122]!==Z||t[123]!==D||t[124]!==V||t[125]!==q||t[126]!==G||t[127]!==ee||t[128]!==ae||t[129]!==te||t[130]!==l||t[131]!==X||t[132]!==$||t[133]!==le||t[134]!==ce||t[135]!==de||t[136]!==ge||t[137]!==pe||t[138]!==W||t[139]!==c||t[140]!==p||t[141]!==d||t[142]!==u||t[143]!==f?(ue={advisorHealth:o,agents:r,evals:n,aiUsage:i,analytics:l,api:c,audit:p,authAudit:d,authConfig:u,authSessions:f,containers:h,dashboards:g,data:m,deploymentHealth:x,drains:v,export:b,fanout:P,files:y,flags:S,functions:C,health:w,home:R,insights:N,issues:E,kv:k,logs:M,metrics:L,migrations:_,notifications:j,organizations:z,pitr:H,mail:F,payments:Z,permissions:D,queues:V,reactors:q,realtime:G,rls:ee,schedule:ae,schema:te,security:X,settings:$,sql:le,traces:ce,storageRules:de,users:ge,vectors:pe,workflows:W},t[96]=o,t[97]=r,t[98]=h,t[99]=g,t[100]=m,t[101]=x,t[102]=v,t[103]=b,t[104]=P,t[105]=y,t[106]=S,t[107]=C,t[108]=n,t[109]=w,t[110]=R,t[111]=N,t[112]=E,t[113]=k,t[114]=M,t[115]=L,t[116]=_,t[117]=j,t[118]=z,t[119]=i,t[120]=H,t[121]=F,t[122]=Z,t[123]=D,t[124]=V,t[125]=q,t[126]=G,t[127]=ee,t[128]=ae,t[129]=te,t[130]=l,t[131]=X,t[132]=$,t[133]=le,t[134]=ce,t[135]=de,t[136]=ge,t[137]=pe,t[138]=W,t[139]=c,t[140]=p,t[141]=d,t[142]=u,t[143]=f,t[144]=ue):ue=t[144];let ve=ue,Ce;t[145]!==e?(Ce=e("Advisors"),t[145]=e,t[146]=Ce):Ce=t[146];let be;t[147]!==e?(be=e("Auth"),t[147]=e,t[148]=be):be=t[148];let we;t[149]!==e?(we=e("Database"),t[149]=e,t[150]=we):we=t[150];let Se;t[151]!==e?(Se=e("Functions"),t[151]=e,t[152]=Se):Se=t[152];let Re;t[153]!==e?(Re=e("Observability"),t[153]=e,t[154]=Re):Re=t[154];let _e;t[155]!==e?(_e=e("Operations"),t[155]=e,t[156]=_e):_e=t[156];let Ae;t[157]!==e?(Ae=e("Overview"),t[157]=e,t[158]=Ae):Ae=t[158];let Ve;t[159]!==e?(Ve=e("Settings"),t[159]=e,t[160]=Ve):Ve=t[160];let Le;t[161]!==e?(Le=e("Storage"),t[161]=e,t[162]=Le):Le=t[162];let xo;t[163]!==Ce||t[164]!==be||t[165]!==we||t[166]!==Se||t[167]!==Re||t[168]!==_e||t[169]!==Ae||t[170]!==Ve||t[171]!==Le?(xo={advisors:Ce,auth:be,database:we,functions:Se,observability:Re,operations:_e,overview:Ae,settings:Ve,storage:Le},t[163]=Ce,t[164]=be,t[165]=we,t[166]=Se,t[167]=Re,t[168]=_e,t[169]=Ae,t[170]=Ve,t[171]=Le,t[172]=xo):xo=t[172];let mr=xo,He;t[173]!==e?(He=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[173]=e,t[174]=He):He=t[174];let Be;t[175]!==e?(Be=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[175]=e,t[176]=Be):Be=t[176];let Fe;t[177]!==e?(Fe=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[177]=e,t[178]=Fe):Fe=t[178];let je;t[179]!==e?(je=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[179]=e,t[180]=je):je=t[180];let ze;t[181]!==e?(ze=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[181]=e,t[182]=ze):ze=t[182];let Ke;t[183]!==e?(Ke=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[183]=e,t[184]=Ke):Ke=t[184];let Ue;t[185]!==e?(Ue=e("A durable log of admin state-changing operations."),t[185]=e,t[186]=Ue):Ue=t[186];let Ze;t[187]!==e?(Ze=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[187]=e,t[188]=Ze):Ze=t[188];let We;t[189]!==e?(We=e("Enabled plugins and session config (read-only)."),t[189]=e,t[190]=We):We=t[190];let qe;t[191]!==e?(qe=e("Browse and revoke active sessions across all users."),t[191]=e,t[192]=qe):qe=t[192];let $e;t[193]!==e?($e=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[193]=e,t[194]=$e):$e=t[194];let Ge;t[195]!==e?(Ge=e("Chart widgets backed by saved read-only SQL queries."),t[195]=e,t[196]=Ge):Ge=t[196];let Qe;t[197]!==e?(Qe=e("Browse and edit rows across your shard and global tables."),t[197]=e,t[198]=Qe):Qe=t[198];let Ye;t[199]!==e?(Ye=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[199]=e,t[200]=Ye):Ye=t[200];let Je;t[201]!==e?(Je=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[201]=e,t[202]=Je):Je=t[202];let Xe;t[203]!==e?(Xe=e("Export a shard to NDJSON, or import rows from it."),t[203]=e,t[204]=Xe):Xe=t[204];let et;t[205]!==e?(et=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[205]=e,t[206]=et):et=t[206];let tt;t[207]!==e?(tt=e("Browse objects in your R2 storage buckets."),t[207]=e,t[208]=tt):tt=t[208];let ot;t[209]!==e?(ot=e("Inspect feature flags and their live evaluation under a targeting context."),t[209]=e,t[210]=ot):ot=t[210];let rt;t[211]!==e?(rt=e("Run registered queries, mutations, and actions."),t[211]=e,t[212]=rt):rt=t[212];let nt;t[213]!==e?(nt=e("At-a-glance connection, error, and shard signals."),t[213]=e,t[214]=nt):nt=t[214];let at;t[215]!==e?(at=e("Connection, health, and advisor summary for your deployment."),t[215]=e,t[216]=at):at=t[216];let st;t[217]!==e?(st=e("Surface slow functions, error spikes, and cache problems."),t[217]=e,t[218]=st):st=t[218];let it;t[219]!==e?(it=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[219]=e,t[220]=it):it=t[220];let lt;t[221]!==e?(lt=e("A live stream of recent function logs."),t[221]=e,t[222]=lt):lt=t[222];let ct;t[223]!==e?(ct=e("Per-shard health and aggregate metrics."),t[223]=e,t[224]=ct):ct=t[224];let dt;t[225]!==e?(dt=e("Review migration status and run them."),t[225]=e,t[226]=dt):dt=t[226];let pt;t[227]!==e?(pt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[227]=e,t[228]=pt):pt=t[228];let ut;t[229]!==e?(ut=e("Browse and manage organizations, members, and invitations."),t[229]=e,t[230]=ut):ut=t[230];let mt;t[231]!==e?(mt=e("Restore a shard to a point in the last 30 days."),t[231]=e,t[232]=mt):mt=t[232];let ft;t[233]!==e?(ft=e("Email your app sent, captured in dev."),t[233]=e,t[234]=ft):ft=t[234];let gt;t[235]!==e?(gt=e("Synced customers, subscriptions, and webhook events."),t[235]=e,t[236]=gt):gt=t[236];let ht;t[237]!==e?(ht=e("Inspect access policies per table, and probe a function as any identity."),t[237]=e,t[238]=ht):ht=t[238];let vt;t[239]!==e?(vt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[239]=e,t[240]=vt):vt=t[240];let bt;t[241]!==e?(bt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[241]=e,t[242]=bt):bt=t[242];let xt;t[243]!==e?(xt=e("Active WebSocket subscriptions on this shard."),t[243]=e,t[244]=xt):xt=t[244];let yt;t[245]!==e?(yt=e("Inspect row-level-security policies and roles, per table."),t[245]=e,t[246]=yt):yt=t[246];let Pt;t[247]!==e?(Pt=e("Inspect and cancel scheduled jobs."),t[247]=e,t[248]=Pt):Pt=t[248];let Ct;t[249]!==e?(Ct=e("Inspect each table and its columns."),t[249]=e,t[250]=Ct):Ct=t[250];let St;t[251]!==e?(St=e("Review admin gates, credentials, and log redaction."),t[251]=e,t[252]=St):St=t[252];let Rt;t[253]!==e?(Rt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[253]=e,t[254]=Rt):Rt=t[254];let Tt;t[255]!==e?(Tt=e("Run read-only SQL against a shard."),t[255]=e,t[256]=Tt):Tt=t[256];let Nt;t[257]!==e?(Nt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[257]=e,t[258]=Nt):Nt=t[258];let wt;t[259]!==e?(wt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[259]=e,t[260]=wt):wt=t[260];let Et;t[261]!==e?(Et=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[261]=e,t[262]=Et):Et=t[262];let kt;t[263]!==e?(kt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[263]=e,t[264]=kt):kt=t[264];let Ot;t[265]!==e?(Ot=e("Browse Vectorize indexes and run similarity searches."),t[265]=e,t[266]=Ot):Ot=t[266];let Dt;t[267]!==e?(Dt=e("Inspect declared Cloudflare Workflows and their bindings."),t[267]=e,t[268]=Dt):Dt=t[268];let yo;t[269]!==Tt||t[270]!==Nt||t[271]!==wt||t[272]!==Et||t[273]!==kt||t[274]!==Ot||t[275]!==Dt||t[276]!==He||t[277]!==Be||t[278]!==Fe||t[279]!==je||t[280]!==ze||t[281]!==Ke||t[282]!==Ue||t[283]!==Ze||t[284]!==We||t[285]!==qe||t[286]!==$e||t[287]!==Ge||t[288]!==Qe||t[289]!==Ye||t[290]!==Je||t[291]!==Xe||t[292]!==et||t[293]!==tt||t[294]!==ot||t[295]!==rt||t[296]!==nt||t[297]!==at||t[298]!==st||t[299]!==it||t[300]!==lt||t[301]!==ct||t[302]!==dt||t[303]!==pt||t[304]!==ut||t[305]!==mt||t[306]!==ft||t[307]!==gt||t[308]!==ht||t[309]!==vt||t[310]!==bt||t[311]!==xt||t[312]!==yt||t[313]!==Pt||t[314]!==Ct||t[315]!==St||t[316]!==Rt?(yo={advisorHealth:He,agents:Be,evals:Fe,aiUsage:je,analytics:ze,api:Ke,audit:Ue,authAudit:Ze,authConfig:We,authSessions:qe,containers:$e,dashboards:Ge,data:Qe,deploymentHealth:Ye,drains:Je,export:Xe,fanout:et,files:tt,flags:ot,functions:rt,health:nt,home:at,insights:st,issues:it,logs:lt,metrics:ct,migrations:dt,notifications:pt,organizations:ut,pitr:mt,mail:ft,payments:gt,permissions:ht,queues:vt,reactors:bt,realtime:xt,rls:yt,schedule:Pt,schema:Ct,security:St,settings:Rt,sql:Tt,kv:Nt,storageRules:wt,traces:Et,users:kt,vectors:Ot,workflows:Dt},t[269]=Tt,t[270]=Nt,t[271]=wt,t[272]=Et,t[273]=kt,t[274]=Ot,t[275]=Dt,t[276]=He,t[277]=Be,t[278]=Fe,t[279]=je,t[280]=ze,t[281]=Ke,t[282]=Ue,t[283]=Ze,t[284]=We,t[285]=qe,t[286]=$e,t[287]=Ge,t[288]=Qe,t[289]=Ye,t[290]=Je,t[291]=Xe,t[292]=et,t[293]=tt,t[294]=ot,t[295]=rt,t[296]=nt,t[297]=at,t[298]=st,t[299]=it,t[300]=lt,t[301]=ct,t[302]=dt,t[303]=pt,t[304]=ut,t[305]=mt,t[306]=ft,t[307]=gt,t[308]=ht,t[309]=vt,t[310]=bt,t[311]=xt,t[312]=yt,t[313]=Pt,t[314]=Ct,t[315]=St,t[316]=Rt,t[317]=yo):yo=t[317];let fr=yo,Po;return t[318]!==mr||t[319]!==fr||t[320]!==ve?(Po={groupLabel:mr,tabDescription:fr,tabLabel:ve},t[318]=mr,t[319]=fr,t[320]=ve,t[321]=Po):Po=t[321],Po},"Ca"),Ji=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"Pa"),Xi=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.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},"_a"),el=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.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},"Ta"),tl=[{Icon:Ji,value:"system"},{Icon:Xi,value:"light"},{Icon:el,value:"dark"}],ol=s(()=>{let t=(0,I.c)(19),{theme:e,setTheme:o}=di(),r=fe(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let i;t[2]!==r?(i=r("Light theme"),t[2]=r,t[3]=i):i=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==n||t[7]!==i||t[8]!==l?(c={dark:n,light:i,system:l},t[6]=n,t[7]=i,t[8]=l,t[9]=c):c=t[9];let p=c,d;t[10]!==r?(d=r("Theme"),t[10]=r,t[11]=d):d=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=tl.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,a.jsxs)("button",{"aria-checked":x,"aria-label":p[m],className:U("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",x?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:s(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,a.jsx)(Fn.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,a.jsx)("span",{className:"relative",children:(0,a.jsx)(g,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let f;return t[16]!==d||t[17]!==u?(f=(0,a.jsx)("div",{"aria-label":d,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]=d,t[17]=u,t[18]=f):f=t[18],f},"Aa"),rl=s(t=>{let e=(0,I.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,i=fe(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Ai,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("Breadcrumb"),e[1]=i,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,a.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.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,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,a.jsxs)("nav",{"aria-label":c,className:"flex items-center gap-1.5 text-[13px]",children:[p,d,u]}),e[8]=c,e[9]=p,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=e[12];let g;e[13]!==i?(g=i("Search\u2026"),e[13]=i,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let x;e[16]!==r||e[17]!==g?(x=(0,a.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:r,type:"button",children:[h,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(ol,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,a.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,f,x,v]}),e[20]=x,e[21]=f,e[22]=b):b=e[22],b},"Ia"),nl={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},al={agents:"Durable agents",analytics:"Analytics",containers:"Containers",crossShardFanout:"Cross-shard fan-out",keyValueStore:"Key-value storage",mail:"Mail delivery",objectStorage:"Object storage",pointInTimeRecovery:"Point-in-time recovery",queues:"Queues",scheduler:"Scheduling",serverReactors:"Server reactors",vectorStore:"Vector search",workflows:"Workflows"},sl={kind:"hidden"},Os={kind:"ok"},il={kind:"pending"},zs=s((t,e,o)=>{let r=nl[t];return r?.feature!==void 0&&!e[r.feature]?sl:r?.capability===void 0?Os:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(al[r.capability]),platform:e.platform.name})}:Os:il},"ts"),ll=s((t,e,o)=>{let r={},n=[];for(let i of t){let l=[];for(let c of i.tabs){let p=zs(c,e,o);p.kind!=="hidden"&&l.push(c),p.kind==="unavailable"&&(r[c]=p.reason)}l.length>0&&n.push({...i,tabs:l})}return{unavailable:r,visibleGroups:n}},"Ba"),cl=s(t=>{let e=(0,I.c)(3),{reason:o,title:r}=t,n;return e[0]!==o||e[1]!==r?(n=(0,a.jsx)(Hn,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Va"),dl=s(t=>{let e=(0,I.c)(4),{console:o}=Uo(),r,n;e[0]!==o||e[1]!==t?(r=s(()=>{if(t===void 0)return;let i=s(l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==o)return;let{target:c}=l;c instanceof HTMLElement&&(c.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(c.tagName))||(l.preventDefault(),t())},"r");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),n=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=n):(r=e[2],n=e[3]),(0,O.useEffect)(r,n)},"za"),J=s((t,e)=>(0,O.lazy)(()=>t().then(o=>({default:o[e]}))),"R"),pl=J(()=>import("./chunk-JSPFPDQ6.js"),"InsightsPanel"),ul=(0,O.lazy)(()=>import("./chunk-DEDFT62S.js")),ml=(0,O.lazy)(()=>import("./chunk-QROMT56V.js")),fl=(0,O.lazy)(()=>import("./chunk-XNRRHFOY.js")),gl=(0,O.lazy)(()=>import("./chunk-5AAHUEQD.js")),hl=J(()=>import("./chunk-DGBGXHZJ.js"),"AnalyticsPanel"),vl=(0,O.lazy)(()=>import("./chunk-4E6W2IDP.js")),bl=(0,O.lazy)(()=>import("./chunk-JNAZOBTV.js")),xl=(0,O.lazy)(()=>import("./chunk-IVKVGV4Y.js")),yl=(0,O.lazy)(()=>import("./chunk-KVSSLKGK.js")),Pl=(0,O.lazy)(()=>import("./chunk-MLFPYQNL.js")),Cl=J(()=>import("./chunk-EUEWGG46.js"),"UsersPanel"),Sl=(0,O.lazy)(()=>import("./chunk-PQWCYQGZ.js")),Rl=J(()=>import("./chunk-SI6U7NIE.js"),"DeploymentHealthPanel"),Tl=J(()=>import("./chunk-435IWCIW.js"),"TableEditor"),Nl=J(()=>import("./chunk-AAXLEHDI.js"),"ExportImportPanel"),wl=(0,O.lazy)(()=>import("./chunk-ATOGOQKD.js")),El={data:Kn,migrations:Un},kl=J(()=>import("./chunk-B5NQHH5M.js"),"PitrPanel"),Ol=(0,O.lazy)(()=>import("./chunk-MEV2FUUD.js")),Dl=(0,O.lazy)(()=>import("./chunk-OGFQ4LUG.js")),Ml=J(()=>import("./chunk-HHUH2AEG.js"),"FunctionRunner"),Il=J(()=>import("./chunk-KZ7UVPF6.js"),"FunctionStatsPanel"),_l=(0,O.lazy)(()=>import("./chunk-C3M6CCOV.js")),Al=J(()=>import("./chunk-NSCZ3RJ3.js"),"AuditPanel"),Vl=(0,O.lazy)(()=>import("./chunk-WZI2ZAPQ.js")),Ll=(0,O.lazy)(()=>import("./chunk-KMLJSWTP.js").then(t=>({default:t.LogsPanel}))),Hl=J(()=>import("./chunk-HW33JZQP.js"),"MailPanel"),Bl=J(()=>import("./chunk-CAHTJYC5.js"),"SchedulePanel"),Fl=(0,O.lazy)(()=>import("./chunk-OD7E3QLZ.js")),jl=(0,O.lazy)(()=>import("./chunk-GZT3A3DF.js")),zl=J(()=>import("./chunk-BLAZ5733.js"),"KvBrowser"),Kl=(0,O.lazy)(()=>import("./chunk-ZZJE2GV3.js")),Ul=J(()=>import("./chunk-OSOMPF2M.js"),"PaymentsPanel"),Zl=J(()=>import("./chunk-6XKPY5RJ.js"),"PermissionsPanel"),Wl=(0,O.lazy)(()=>import("./chunk-HQFXXC33.js")),ql=(0,O.lazy)(()=>import("./chunk-KQQVI6ZS.js")),$l=(0,O.lazy)(()=>import("./chunk-Y5KK6IM3.js")),Gl=J(()=>import("./chunk-2M6HDLZL.js"),"HealthPanel"),Ql=J(()=>import("./chunk-IVQFP5JU.js"),"MetricsPanel"),Yl=J(()=>import("./chunk-LB4Y3C7N.js"),"SchemaViewer"),Jl=J(()=>import("./chunk-N3DFLRGG.js"),"SettingsPanel"),Xl=J(()=>import("./chunk-NPT4MKTL.js"),"SqlEditorPanel"),ec=J(()=>import("./chunk-BKGZMIF3.js"),"FileBrowser"),tc=(0,O.lazy)(()=>import("./chunk-TESQ5ZIA.js")),oc=(0,O.lazy)(()=>import("./chunk-5MGCPNPF.js")),rc=(0,O.lazy)(()=>import("./chunk-6QPTJCQA.js")),nc=(0,O.lazy)(()=>import("./chunk-XIL7BLJ5.js")),ac=J(()=>import("./chunk-ZZ24NI6P.js"),"VectorBrowser"),sc=(0,O.lazy)(()=>import("./chunk-TDD2TZCN.js")),Ks=(0,O.createContext)(null),ic={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.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,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.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,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,a.jsx)("path",{d:"M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1M3 12h3m12 0h3M5.6 18.4l2.1-2.1m8.6-8.6 2.1-2.1M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}),health:(0,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.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,a.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,a.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,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.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,a.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,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,a.jsx)("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:(0,a.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,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.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"}),advisorHealth:(0,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.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,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.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,a.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,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ds=[{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","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],Kr=s(t=>{let e=(0,I.c)(2),{tab:o}=t,r=ic[o],n;return e[0]!==r?(n=(0,a.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},"Ct"),lc=s(t=>t,"Vo"),Us=lc(["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","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),cc=new Set(["api","data","migrations","sql"]),dc=s(t=>{let e=t.split("/").findLast(Boolean)??"";return Us.includes(e)?e:"home"},"Do"),pc=s(t=>{let e=(0,I.c)(19),{chrome:o,connected:r}=t,n=fe(),i;e[0]!==n?(i=n("admin token"),e[0]=n,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:i}),e[2]=i,e[3]=l):l=e[3];let c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,a.jsx)(yr,{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]=c):c=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.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 d;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(d=r&&(0,a.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]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[l,c,p,d]}),e[14]=l,e[15]=c,e[16]=p,e[17]=d,e[18]=u):u=e[18],u},"Oo"),Zs="opacity-50",uc=s(t=>{let e=(0,I.c)(27),{current:o,group:r,groupLabel:n,selectTab:i,tabDescription:l,tabLabel:c,unavailable:p}=t,d=r.tabs.includes(o)?"page":void 0,u=n[r.key],f=r.tabs[0],h;e[0]!==f?(h=(0,a.jsx)(Kr,{tab:f}),e[0]=f,e[1]=h):h=e[1];let g;e[2]!==d||e[3]!==u||e[4]!==h?(g=(0,a.jsx)(Hs,{"aria-current":d,"aria-label":u,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]=d,e[3]=u,e[4]=h,e[5]=g):g=e[5];let m=n[r.key],x;e[6]!==m?(x=(0,a.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=x):x=e[7];let v;if(e[8]!==o||e[9]!==r.tabs||e[10]!==i||e[11]!==l||e[12]!==c||e[13]!==p){let y;e[15]!==o||e[16]!==i||e[17]!==l||e[18]!==c||e[19]!==p?(y=s(S=>(0,a.jsxs)("button",{"aria-current":o===S?"page":void 0,className:U("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",p[S]!==void 0&&Zs),"data-tab":S,"data-testid":`dash-tab-${S}`,"data-unsupported":p[S]===void 0?void 0:"true",onClick:i,title:l[S],type:"button",children:[(0,a.jsx)(Kr,{tab:S}),(0,a.jsx)("span",{children:c[S]})]},S),"x"),e[15]=o,e[16]=i,e[17]=l,e[18]=c,e[19]=p,e[20]=y):y=e[20],v=r.tabs.map(y),e[8]=o,e[9]=r.tabs,e[10]=i,e[11]=l,e[12]=c,e[13]=p,e[14]=v}else v=e[14];let b;e[21]!==x||e[22]!==v?(b=(0,a.jsxs)(Bs,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[x,v]}),e[21]=x,e[22]=v,e[23]=b):b=e[23];let P;return e[24]!==g||e[25]!==b?(P=(0,a.jsxs)(Ls,{children:[g,b]}),e[24]=g,e[25]=b,e[26]=P):P=e[26],P},"Zo"),mc=s(t=>{let e=(0,I.c)(45),{chrome:o,collapsed:r,connected:n}=t,i=fe();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.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 C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let w;e[5]!==C?(w=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=w):w=e[6];let R;e[7]!==i?(R=i("Studio"),e[7]=i,e[8]=R):R=e[8];let N;e[9]!==R?(N=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:R}),e[9]=R,e[10]=N):N=e[10];let E;e[11]!==w||e[12]!==N?(E=(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[w,N]}),e[11]=w,e[12]=N,e[13]=E):E=e[13];let k;return e[14]!==y||e[15]!==E?(k=(0,a.jsxs)(js,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,E]}),e[14]=y,e[15]=E,e[16]=k):k=e[16],k}let l=r?"mx-auto size-8 justify-center":"w-full p-2",c;e[17]!==l?(c=U("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",l),e[17]=l,e[18]=c):c=e[18];let p;e[19]!==n||e[20]!==i?(p=i(n?"Connected":"Not connected"),e[19]=n,e[20]=i,e[21]=p):p=e[21];let d=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==d?(u=U("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",d),e[22]=d,e[23]=u):u=e[23];let f;e[24]!==u?(f=(0,a.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,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==n||e[28]!==i?(h=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(n?"Connected":"Not connected")})]}),(0,a.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,a.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]=i,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,a.jsxs)(Hs,{className:c,"data-testid":"dash-app-connect",title:p,children:[f,h]}),e[30]=c,e[31]=p,e[32]=f,e[33]=h,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",v;e[35]!==o||e[36]!==n?(v=(0,a.jsx)(pc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,a.jsx)(Bs,{align:m,keepMounted:!0,side:x,children:v}),e[38]=x,e[39]=v,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==g?(P=(0,a.jsxs)(Ls,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Fo"),fc=s(t=>{let e=(0,I.c)(29),{chrome:o,connected:r,current:n,groupLabel:i,groups:l,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u}=t,f=fe(),{state:h}=ur(),g=h==="collapsed",m=g&&"justify-center px-0",x;e[0]!==m?(x=U("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=x):x=e[1];let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(fi,{className:"size-9 shrink-0 text-foreground"}),e[2]=v):v=e[2];let b;e[3]!==g||e[4]!==r||e[5]!==f?(b=!g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,a.jsx)(Mt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(r?"Live":"Local")})]}),e[3]=g,e[4]=r,e[5]=f,e[6]=b):b=e[6];let P;e[7]!==x||e[8]!==b?(P=(0,a.jsx)(Li,{children:(0,a.jsxs)("div",{className:x,children:[v,b]})}),e[7]=x,e[8]=b,e[9]=P):P=e[9];let y;e[10]!==g||e[11]!==n||e[12]!==i||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d||e[17]!==u?(y=g?l.map(R=>(0,a.jsx)(uc,{current:n,group:R,groupLabel:i,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u},R.key)):l.map(R=>(0,a.jsxs)(Fi,{children:[(0,a.jsx)(ji,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[R.key]}),(0,a.jsx)(zi,{children:(0,a.jsx)(Es,{children:R.tabs.map(N=>(0,a.jsx)(ks,{children:(0,a.jsxs)(js,{className:U("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[N]!==void 0&&Zs),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:n===N,onClick:c,title:p[N],tooltip:p[N],children:[(0,a.jsx)(Kr,{tab:N}),(0,a.jsx)("span",{children:d[N]})]})},N))})})]},R.key)),e[10]=g,e[11]=n,e[12]=i,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=u,e[18]=y):y=e[18];let S;e[19]!==y?(S=(0,a.jsx)(Bi,{children:y}),e[19]=y,e[20]=S):S=e[20];let C;e[21]!==o||e[22]!==g||e[23]!==r?(C=(0,a.jsx)(Hi,{children:(0,a.jsx)(Es,{children:(0,a.jsx)(ks,{children:(0,a.jsx)(mc,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=C):C=e[24];let w;return e[25]!==P||e[26]!==S||e[27]!==C?(w=(0,a.jsxs)(_i,{collapsible:"icon",variant:"inset",children:[P,S,C]}),e[25]=P,e[26]=S,e[27]=C,e[28]=w):w=e[28],w},"qo"),Zr=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Ko,{className:"h-8 w-40"}),(0,a.jsx)(Ko,{className:"h-8 w-24"})]}),(0,a.jsx)(Ko,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Tt"),gc=s(t=>{let e=(0,I.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(Zr,{}),e[0]=i):i=e[0],i}if(r.kind==="unavailable"){let i;return e[1]!==o||e[2]!==r.reason?(i=(0,a.jsx)(cl,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=i):i=e[3],i}let n;return e[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(Yr,{}),e[4]=n):n=e[4],n},"Wo"),hc=s(()=>{let t=(0,I.c)(46),e=fe(),o=ro(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Cc},t[0]=r):r=t[0];let n=en(r),i=dc(n),l=cc.has(i),c=on(),p=c?.toggle;dl(p);let d=jn(),{groupLabel:u,tabDescription:f,tabLabel:h}=Yi(),{unavailable:g,visibleGroups:m}=ll(Ds,d,e),x={...f,...g},v=zs(i,d,e),b=v.kind==="hidden",P,y;t[1]!==b||t[2]!==o?(P=s(()=>{b&&Jt(o({replace:!0,to:"/home"}))},"p"),y=[b,o],t[1]=b,t[2]=o,t[3]=P,t[4]=y):(P=t[3],y=t[4]),(0,O.useEffect)(P,y);let S;t[5]!==o?(S=s(pe=>{Jt(o({to:`/${pe.currentTarget.dataset.tab??""}`}))},"k"),t[5]=o,t[6]=S):S=t[6];let C=S,w,R;t[7]!==i||t[8]!==h?(w=s(()=>{typeof document<"u"&&(document.title=`${h[i]} \xB7 lunora`)},"C"),R=[i,h],t[7]=i,t[8]=h,t[9]=w,t[10]=R):(w=t[9],R=t[10]),(0,O.useEffect)(w,R);let N=m.find(pe=>pe.tabs.includes(i))??Ds[0],E=m.flatMap(pe=>pe.tabs.filter(W=>g[W]===void 0).map(W=>({group:u[pe.key],label:h[W],to:`/${W}`}))),k=p===void 0?E:[...E,{group:e("Operations"),label:e("Toggle operation console"),run:p}],M=(0,O.use)(Ks),L=M!==null&&M.token!=="",_;t[11]!==k?(_=(0,a.jsx)(Ns,{items:k}),t[11]=k,t[12]=_):_=t[12];let j=u[N.key],z=h[i],H;t[13]!==j||t[14]!==z?(H=(0,a.jsx)(rl,{domain:j,onOpenCommandPalette:Ts,page:z}),t[13]=j,t[14]=z,t[15]=H):H=t[15];let F;t[16]!==M?.rulesInstalled?(F=M?.rulesInstalled===!1&&(0,a.jsx)(vi,{}),t[16]=M?.rulesInstalled,t[17]=F):F=t[17];let Z=`dash-tab-${i}`,D=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=h[i],q;t[18]!==e||t[19]!==V?(q=e("{title} failed",{title:V}),t[18]=e,t[19]=V,t[20]=q):q=t[20];let G=h[i],ee;t[21]!==e?(ee=e("Try again"),t[21]=e,t[22]=ee):ee=t[22];let ae;t[23]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,a.jsx)(Zr,{}),t[23]=ae):ae=t[23];let te=h[i],X;t[24]!==te||t[25]!==v?(X=(0,a.jsx)(O.Suspense,{fallback:ae,children:(0,a.jsx)(gc,{title:te,verdict:v})}),t[24]=te,t[25]=v,t[26]=X):X=t[26];let $;t[27]!==i||t[28]!==q||t[29]!==G||t[30]!==ee||t[31]!==X?($=(0,a.jsx)(Zo,{fallbackTitle:q,label:G,retryLabel:ee,children:X},i),t[27]=i,t[28]=q,t[29]=G,t[30]=ee,t[31]=X,t[32]=$):$=t[32];let le;t[33]!==D||t[34]!==$?(le=(0,a.jsx)("div",{className:D,children:$}),t[33]=D,t[34]=$,t[35]=le):le=t[35];let ce;t[36]!==c?(ce=c?.open===!0&&(0,a.jsx)($i,{focusSeq:c.focusSeq,onClose:c.close,onShownChange:c.setShown,shown:c.shown}),t[36]=c,t[37]=ce):ce=t[37];let de;t[38]!==Z||t[39]!==le||t[40]!==ce?(de=(0,a.jsxs)("div",{"aria-labelledby":Z,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[le,ce]}),t[38]=Z,t[39]=le,t[40]=ce,t[41]=de):de=t[41];let ge;return t[42]!==F||t[43]!==de||t[44]!==H?(ge=(0,a.jsxs)(Vi,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[H,F,de]}),t[42]=F,t[43]=de,t[44]=H,t[45]=ge):ge=t[45],(0,a.jsxs)(Ii,{className:"min-h-0 flex-1","data-platform":d.platform?.id,"data-testid":"lunora-studio",children:[_,(0,a.jsx)(fc,{chrome:M,connected:L,current:i,groupLabel:u,groups:m,selectTab:C,tabDescription:x,tabLabel:h,unavailable:g}),ge]})},"Uo"),vc=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(tn,{children:(0,a.jsx)(hc,{})}),t[0]=e):e=t[0],e},"jo"),bc=s(t=>{let e=(0,I.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 i=Gr(n),{table:l}=i,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,a.jsx)(Yl,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"Go"),xc=s(()=>{let t=(0,I.c)(3),e=ro(),o,r;return t[0]!==e?(o=s(()=>{Jt(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,O.useEffect)(o,r),null},"Ko"),yc=s(({analyticsQuery:t,basePath:e,dataEditable:o=!1,functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l,runAsIdentity:c=!1,schemaEditable:p=!1,scheduledCancel:d,scheduledCron:u,scheduledLoad:f})=>{let h=Qr({component:vc}),g={agents:(0,a.jsx)(gl,{initialShardKey:n}),analytics:(0,a.jsx)(hl,{runQuery:t}),api:(0,a.jsx)(vl,{functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l}),audit:(0,a.jsx)(Al,{initialShardKey:n}),authAudit:(0,a.jsx)(bl,{}),authConfig:(0,a.jsx)(xl,{}),authSessions:(0,a.jsx)(yl,{}),containers:(0,a.jsx)(Sl,{}),dashboards:(0,a.jsx)(ql,{initialShardKey:n}),data:(0,a.jsx)(Tl,{canGenerateRows:o&&p,editable:o,initialShardKey:n}),deploymentHealth:(0,a.jsx)(Rl,{}),drains:(0,a.jsx)(Vl,{}),export:(0,a.jsx)(Nl,{initialShardKey:n}),fanout:(0,a.jsx)($l,{initialShardKey:n}),files:(0,a.jsx)(ec,{}),kv:(0,a.jsx)(zl,{}),flags:(0,a.jsx)(Ol,{initialShardKey:n}),reactors:(0,a.jsx)(Dl,{initialShardKey:n}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Il,{functions:r,initialShardKey:n}),(0,a.jsx)(Ml,{functions:r,runAsIdentity:c})]}),health:(0,a.jsx)(Gl,{initialShardKey:n}),home:(0,a.jsx)(zn,{initialShardKey:n}),insights:(0,a.jsx)(pl,{initialShardKey:n}),issues:(0,a.jsx)(_l,{initialShardKey:n}),logs:(0,a.jsx)(Ll,{initialShardKey:n}),traces:(0,a.jsx)(oc,{initialShardKey:n}),evals:(0,a.jsx)(rc,{initialShardKey:n}),aiUsage:(0,a.jsx)(nc,{initialShardKey:n}),metrics:(0,a.jsx)(Ql,{initialShardKey:n}),migrations:(0,a.jsx)(wl,{initialShardKey:n}),notifications:(0,a.jsx)(Kl,{}),organizations:(0,a.jsx)(Pl,{}),permissions:(0,a.jsx)(Zl,{functions:r,runAsIdentity:c,schemaEditable:p}),pitr:(0,a.jsx)(kl,{initialShardKey:n}),mail:(0,a.jsx)(Hl,{}),payments:(0,a.jsx)(Ul,{}),queues:(0,a.jsx)(Wl,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Fl,{initialShardKey:n}),(0,a.jsx)(jl,{})]}),rls:(0,a.jsx)(ul,{}),schedule:(0,a.jsx)(Bl,{loadCronJobs:u,scheduledCancel:d,scheduledLoad:f}),schema:(0,a.jsx)(bc,{initialShardKey:n,schemaEditable:p}),advisorHealth:(0,a.jsx)(ml,{}),security:(0,a.jsx)(fl,{}),settings:(0,a.jsx)(Jl,{initialShardKey:n}),sql:(0,a.jsx)(Xl,{initialShardKey:n}),storageRules:(0,a.jsx)(tc,{}),users:(0,a.jsx)(Cl,{}),vectors:(0,a.jsx)(ac,{}),workflows:(0,a.jsx)(sc,{})},m=br({component:s(()=>g.home,"component"),getParentRoute:s(()=>h,"getParentRoute"),path:"/"}),x=Us.map(P=>br({component:s(()=>g[P],"component"),getParentRoute:s(()=>h,"getParentRoute"),path:`/${P}`,validateSearch:El[P]})),v=h.addChildren([m,...x]),b="window"in globalThis?qr():$r({initialEntries:["/home"]});return Jr({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:xc,defaultPendingComponent:Zr,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:v})},"Qo"),Pc=s(t=>{let e=(0,I.c)(18),{analyticsQuery:o,basePath:r,chrome:n,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}=t,x;e[0]!==o||e[1]!==r||e[2]!==i||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==h||e[9]!==g||e[10]!==m||e[11]!==f?(x=yc({analyticsQuery:o,basePath:r,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}),e[0]=o,e[1]=r,e[2]=i,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=h,e[9]=g,e[10]=m,e[11]=f,e[12]=x):x=e[12];let v=x,b=n??null,P;e[13]!==v?(P=(0,a.jsx)(Xr,{router:v}),e[13]=v,e[14]=P):P=e[14];let y;return e[15]!==b||e[16]!==P?(y=(0,a.jsx)(Ks,{value:b,children:P}),e[15]=b,e[16]=P,e[17]=y):y=e[17],y},"Yo"),Zg=s(t=>{let e=(0,I.c)(10),o,r,n;e[0]!==t?({i18n:o,locale: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 i;e[4]!==n?(i=(0,a.jsx)(ci,{children:(0,a.jsx)(Pc,{...n})}),e[4]=n,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,a.jsx)(Rs,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"An");function Cc(t){return t.location.pathname}s(Cc,"Jo");export{Zo as a,Rs as b,li as c,di as d,Ug as e,fi as f,yi as g,Si as h,Ri as i,Ti as j,Zg as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as se}from"./chunk-EA2JKR5D.js";import{W as ae}from"./chunk-PLHA3OWK.js";import"./chunk-4L4WTGN5.js";import{a as W}from"./chunk-55754F6H.js";import"./chunk-IS6LVJ6L.js";import"./chunk-AAVLPU5Q.js";import"./chunk-225VJ77I.js";import{a as G}from"./chunk-4ZEL6BYL.js";import{c as ne}from"./chunk-ZDPY27UY.js";import{f as V}from"./chunk-GUD3ZG3Z.js";import"./chunk-FSRSK4LY.js";import"./chunk-PUGHZTBL.js";import{a as B}from"./chunk-FKVZRPV5.js";import{a as j,b as D,c as F,d as x,e as i,f as d}from"./chunk-HEAQVSNS.js";import{a as R,e as _}from"./chunk-N6NMLJ6R.js";import{d as X,f as Y,g as Z,h as $,m as ee,p as A}from"./chunk-PTZD7RUZ.js";import{a as s,d as re,e as oe,g as le}from"./chunk-YKXDMIHQ.js";var l=re(oe(),1);var e=re(le(),1);var ie=["queued","running","paused","waiting","complete","errored","terminated"],de=["pause","resume","terminate"],ce="WORKFLOWS_NOT_CONFIGURED",ue=s(o=>typeof o=="object"&&o!==null&&o.code===ce,"ce"),me=s(o=>{let a=o.error??o.output;if(a===void 0)return"\u2014";try{return JSON.stringify(a,ee)}catch{return"(unserializable)"}},"ue"),fe=s(({loadDetail:o,loadInstances:a,readOnly:g,runAction:J,workflowName:k})=>{let T=V(),n=X(),[N,v]=(0,l.useState)(null),[C,I]=(0,l.useState)(null),[b,z]=(0,l.useState)(""),[y,p]=(0,l.useState)(null),[L,O]=(0,l.useState)(!1),[P,U]=(0,l.useState)(null),f=(0,l.useRef)(0),h=(0,l.useRef)(0),w=(0,l.useRef)(0),q=o??(r=>T.getWorkflowInstance(r)),E=g?void 0:J??(a===void 0?r=>T.setWorkflowInstanceStatus(r):void 0),K=s(async()=>{h.current+=1;let r=h.current;p(null),O(!1);let c=b===""?void 0:b;try{if(a===void 0){let u=await T.listWorkflowInstances({name:k,status:c});if(r!==h.current)return;if(u.configured===!1){v(null),O(!0);return}v(u.instances);return}let t=await a({name:k,status:c});r===h.current&&v(t)}catch(t){if(r!==h.current)return;v(null),ue(t)?O(!0):p($(t))}},"P");(0,l.useEffect)(()=>{f.current+=1,w.current+=1,I(null),A(K())},[k,b]);let M=s(async r=>{w.current+=1;let c=w.current;p(null);try{let t=await q({id:r,name:k});c===w.current&&I(t)}catch(t){c===w.current&&p($(t))}},"J"),H=s(()=>{w.current+=1,I(null)},"B"),Q=s(async(r,c)=>{if(E===void 0)return;let t=f.current;U(r),p(null);try{await E({action:c,id:r,name:k}),t===f.current&&await K()}catch(u){p($(u))}U(null)},"K");return(0,e.jsxs)("div",{className:"flex flex-col gap-3","data-testid":"lunora-workflow-instances",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsx)("h3",{className:"text-sm font-medium",children:n("Instance history")}),(0,e.jsxs)("select",{"aria-label":n("Filter by status"),className:"h-8 rounded-md border border-input bg-transparent px-2.5 py-1 text-xs outline-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50","data-testid":"workflow-instances-filter",onChange:s(r=>{z(r.target.value)},"onChange"),value:b,children:[(0,e.jsx)("option",{value:"",children:n("All statuses")}),ie.map(r=>(0,e.jsx)("option",{value:r,children:r},r))]})]}),y!==null&&(0,e.jsx)("p",{className:"text-sm text-destructive","data-testid":"workflow-instances-error",role:"alert",children:y}),L&&(0,e.jsx)(B,{description:n("Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in your .dev.vars to enable workflow instance history."),testId:"workflow-instances-unconfigured",title:n("Workflow inspection not configured")}),!L&&N!==null&&N.length===0&&(0,e.jsx)(B,{description:n("No instances match this filter for the selected workflow."),testId:"workflow-instances-empty",title:n("No instances")}),N!==null&&N.length>0&&(0,e.jsx)(R,{className:"overflow-hidden py-0",children:(0,e.jsx)(_,{className:"px-0",children:(0,e.jsxs)(j,{"data-testid":"workflow-instances-table",children:[(0,e.jsx)(D,{children:(0,e.jsxs)(x,{children:[(0,e.jsx)(i,{children:n("Instance id")}),(0,e.jsx)(i,{children:n("Status")}),(0,e.jsx)(i,{children:n("Created")}),(0,e.jsx)(i,{children:n("Ended")}),(0,e.jsx)(i,{"aria-label":n("Actions")})]})}),(0,e.jsx)(F,{children:N.map(r=>(0,e.jsxs)(x,{"data-testid":`workflow-instance-${r.id}`,children:[(0,e.jsx)(d,{className:"font-mono text-xs",children:r.id}),(0,e.jsx)(d,{className:"font-mono text-xs",children:r.status}),(0,e.jsx)(d,{className:"text-muted-foreground tabular-nums",children:r.createdOn??"\u2014"}),(0,e.jsx)(d,{className:"text-muted-foreground tabular-nums",children:r.endedOn??"\u2014"}),(0,e.jsx)(d,{className:"text-right",children:(0,e.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,e.jsx)(W,{"data-testid":`workflow-instance-steps-${r.id}`,onClick:s(()=>{A(M(r.id))},"onClick"),size:"sm",type:"button",variant:"outline",children:n("Steps")}),E!==void 0&&de.map(c=>(0,e.jsx)(W,{"data-testid":`workflow-instance-${c}-${r.id}`,disabled:P===r.id,onClick:s(()=>{A(Q(r.id,c))},"onClick"),size:"sm",type:"button",variant:"ghost",children:n(c)},c))]})})]},r.id))})]})})}),C!==null&&(0,e.jsx)(R,{className:"overflow-hidden py-0","data-testid":"workflow-instance-detail",children:(0,e.jsxs)(_,{className:"flex flex-col gap-2 px-4 py-3",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("span",{className:"font-mono text-xs",children:[n("Steps")," \xB7 ",C.id]}),(0,e.jsx)(W,{"data-testid":"workflow-instance-detail-close",onClick:H,size:"xs",type:"button",variant:"ghost",children:n("Close")})]}),C.steps.length===0?(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:n("This instance has no recorded steps yet.")}):(0,e.jsxs)(j,{"data-testid":"workflow-instance-steps",children:[(0,e.jsx)(D,{children:(0,e.jsxs)(x,{children:[(0,e.jsx)(i,{children:n("Step")}),(0,e.jsx)(i,{children:n("Type")}),(0,e.jsx)(i,{children:n("Attempts")}),(0,e.jsx)(i,{children:n("Started")}),(0,e.jsx)(i,{children:n("Output")})]})}),(0,e.jsx)(F,{children:C.steps.map((r,c)=>(0,e.jsxs)(x,{"data-testid":`workflow-step-${String(c)}`,children:[(0,e.jsx)(d,{className:"font-mono text-xs",children:r.name}),(0,e.jsx)(d,{className:"text-xs text-muted-foreground",children:r.type??"\u2014"}),(0,e.jsx)(d,{className:"tabular-nums",children:r.attempts??"\u2014"}),(0,e.jsx)(d,{className:"text-muted-foreground tabular-nums",children:r.start??"\u2014"}),(0,e.jsx)(d,{className:"font-mono text-xs text-muted-foreground",children:me(r)})]},`${r.name}:${String(c)}`))})]})]})})]})},"me"),he=Y(G.createWorkflowInstance),pe=Y(G.getWorkflowInstanceStatus),we=s(o=>{if(o.error)return`${o.error.name}: ${o.error.message}`;if(o.output===void 0)return"\u2014";try{return JSON.stringify(o.output,ee)}catch{return"(unserializable)"}},"pe"),xe=s((o,a)=>o.some(g=>g.exportName===a)?a:o[0]?.exportName??"","xe"),$e=s(()=>{let o=V(),a=X(),{data:g,error:J}=ne(G.listWorkflows,{}),[k,T]=(0,l.useState)(""),[n,N]=(0,l.useState)(""),[v,C]=(0,l.useState)(""),[I,b]=(0,l.useState)(!1),[z,y]=(0,l.useState)(null),[p,L]=(0,l.useState)([]),[O,P]=(0,l.useState)(null),U=g!==void 0,f=Array.isArray(g?.workflows)?[...g.workflows].toSorted((t,u)=>t.exportName.localeCompare(u.exportName)):[],h=xe(f,k),w=f.find(t=>t.exportName===h),q=s(t=>{L(u=>{let m=u.filter(S=>!(S.exportName===t.exportName&&S.id===t.id));return[t,...m]})},"D"),E=s(async()=>{let t=h;if(t==="")return;let u,m=v.trim();if(m!=="")try{u=JSON.parse(m)}catch{y(a("Params must be valid JSON"));return}b(!0),y(null);try{let S=n.trim(),te=await o.query(he,{exportName:t,id:S===""?void 0:S,params:u},Z(""));q({exportName:t,id:te.id,status:te.status}),N("")}catch(S){y($(S))}b(!1)},"Q"),K=s(()=>{A(E())},"V"),M=s(async(t,u)=>{P(u);try{let m=await o.query(pe,{exportName:t,id:u},Z(""));q({error:m.error,exportName:t,id:m.id,output:m.output,status:m.status})}catch(m){y($(m))}P(null)},"O"),H=s(t=>{T(t.target.value)},"P"),Q=s(t=>{N(t.target.value)},"J"),r=s(t=>{C(t.target.value)},"B"),c=s(t=>{let{export:u,id:m}=t.currentTarget.dataset;u!==void 0&&m!==void 0&&A(M(u,m))},"K");return(0,e.jsxs)("div",{className:"flex flex-col gap-6","data-testid":"lunora-workflows-panel",children:[J!==null&&(0,e.jsx)("p",{className:"text-sm text-destructive","data-testid":"workflows-error",role:"alert",children:J}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:a("Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. Start an instance and observe its status below.")}),U&&f.length===0?(0,e.jsx)(B,{description:a("No defineWorkflow is declared in lunora/workflows.ts in this deployment. Add one to run a durable, multi-step workflow."),testId:"workflows-empty",title:a("No workflows defined")}):(0,e.jsx)(R,{className:"overflow-hidden py-0",children:(0,e.jsx)(_,{className:"px-0",children:(0,e.jsxs)(j,{"data-testid":"workflows-table",children:[(0,e.jsx)(D,{children:(0,e.jsxs)(x,{children:[(0,e.jsx)(i,{children:a("Export")}),(0,e.jsx)(i,{children:a("Name")}),(0,e.jsx)(i,{children:a("Class")})]})}),(0,e.jsx)(F,{children:f.map(t=>(0,e.jsxs)(x,{"data-testid":`workflows-row-${t.exportName}`,children:[(0,e.jsx)(d,{className:"font-mono text-xs",children:t.exportName}),(0,e.jsx)(d,{className:"font-mono text-xs text-muted-foreground",children:t.name}),(0,e.jsx)(d,{className:"font-mono text-xs text-muted-foreground",children:t.className})]},t.exportName))})]})})}),f.length>0&&(0,e.jsxs)("div",{className:"flex flex-col gap-3","data-testid":"workflows-start",children:[(0,e.jsx)("h3",{className:"text-sm font-medium",children:a("Start instance")}),z!==null&&(0,e.jsx)("p",{className:"text-sm text-destructive","data-testid":"workflows-start-error",role:"alert",children:z}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("select",{"aria-label":a("Workflow"),className:"h-8 rounded-md border border-input bg-transparent px-2.5 py-1 text-xs outline-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50","data-testid":"workflows-start-select",onChange:H,value:h,children:f.map(t=>(0,e.jsx)("option",{value:t.exportName,children:t.exportName},t.exportName))}),(0,e.jsx)(ae,{"aria-label":a("Instance id (optional)"),className:"max-w-48","data-testid":"workflows-start-id",onChange:Q,placeholder:a("Instance id (optional)"),value:n}),(0,e.jsx)(W,{"data-testid":"workflows-start-button",disabled:I||h==="",onClick:K,children:a(I?"Starting\u2026":"Start instance")})]}),(0,e.jsx)(se,{"aria-label":a("Params (JSON)"),className:"font-mono","data-testid":"workflows-start-params",onChange:r,placeholder:a("Params (JSON, optional)"),value:v})]}),p.length>0&&(0,e.jsxs)("div",{className:"flex flex-col gap-3","data-testid":"workflows-instances",children:[(0,e.jsx)("h3",{className:"text-sm font-medium",children:a("Instances")}),(0,e.jsx)(R,{className:"overflow-hidden py-0",children:(0,e.jsx)(_,{className:"px-0",children:(0,e.jsxs)(j,{"data-testid":"workflows-instances-table",children:[(0,e.jsx)(D,{children:(0,e.jsxs)(x,{children:[(0,e.jsx)(i,{children:a("Workflow")}),(0,e.jsx)(i,{children:a("Instance id")}),(0,e.jsx)(i,{children:a("Status")}),(0,e.jsx)(i,{children:a("Output")}),(0,e.jsx)(i,{})]})}),(0,e.jsx)(F,{children:p.map(t=>(0,e.jsxs)(x,{"data-testid":`workflows-instance-${t.id}`,children:[(0,e.jsx)(d,{className:"font-mono text-xs",children:t.exportName}),(0,e.jsx)(d,{className:"font-mono text-xs text-muted-foreground",children:t.id}),(0,e.jsx)(d,{className:"font-mono text-xs",children:t.status}),(0,e.jsx)(d,{className:"font-mono text-xs text-muted-foreground",children:we(t)}),(0,e.jsx)(d,{children:(0,e.jsx)(W,{"data-export":t.exportName,"data-id":t.id,"data-testid":`workflows-instance-refresh-${t.id}`,disabled:O===t.id,onClick:c,size:"xs",variant:"outline",children:O===t.id?a("Refreshing\u2026"):a("Refresh")})})]},`${t.exportName}:${t.id}`))})]})})})]}),w!==void 0&&(0,e.jsx)(fe,{workflowName:w.name})]})},"We");export{$e as default};
|