@lunora/studio 1.0.0-alpha.55 → 1.0.0-alpha.56
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.ts +5 -1
- package/dist/index.js +6 -6
- package/dist/mount.js +1 -1
- package/dist/packem_chunks/ApiTab.js +1 -1
- package/dist/packem_chunks/AuditPanel.js +1 -1
- package/dist/packem_chunks/ExportImportPanel.js +1 -1
- package/dist/packem_chunks/FileBrowser.js +1 -1
- package/dist/packem_chunks/FunctionRunner.js +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -1
- package/dist/packem_chunks/HealthPanel.js +1 -1
- package/dist/packem_chunks/InsightsPanel.js +1 -1
- package/dist/packem_chunks/LogsPanel.js +1 -1
- package/dist/packem_chunks/MailPanel.js +1 -1
- package/dist/packem_chunks/MetricsPanel.js +2 -2
- package/dist/packem_chunks/MigrationsPanel.js +1 -1
- package/dist/packem_chunks/PitrPanel.js +1 -1
- package/dist/packem_chunks/SchemaViewer.js +1 -1
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -1
- package/dist/packem_chunks/SettingsPanel.js +1 -1
- package/dist/packem_chunks/SqlEditorPanel.js +1 -1
- package/dist/packem_chunks/TableEditor.js +1 -1
- package/dist/packem_chunks/agents-panel.js +1 -1
- package/dist/packem_chunks/containers-panel.js +1 -1
- package/dist/packem_chunks/dashboards-panel.js +1 -1
- package/dist/packem_chunks/fanout-panel.js +1 -1
- package/dist/packem_chunks/flags-panel.js +1 -1
- package/dist/packem_chunks/issues-panel.js +320 -81
- package/dist/packem_chunks/kv-browser.js +2 -2
- package/dist/packem_chunks/payments-panel.js +1 -1
- package/dist/packem_chunks/permissions-panel.js +1 -1
- package/dist/packem_chunks/queues-panel.js +1 -1
- package/dist/packem_chunks/rls-panel.js +1 -1
- package/dist/packem_chunks/storage-rules-panel.js +1 -1
- package/dist/packem_chunks/subscriptions-panel.js +1 -1
- package/dist/packem_chunks/traces-panel.js +1 -1
- package/dist/packem_chunks/workflows-panel.js +1 -1
- package/dist/packem_shared/{ADMIN_FUNCTIONS-C6TEeUiJ.js → ADMIN_FUNCTIONS-C1LXrovV.js} +4 -0
- package/dist/packem_shared/{ApiDocsPanel-CcC6ucbp.js → ApiDocsPanel-cYkYKjK3.js} +1 -1
- package/dist/packem_shared/{DataBrowser-BuFEPTiv.js → DataBrowser-CowupumK.js} +1 -1
- package/dist/packem_shared/{HomePanel-2I1YZm0A.js → HomePanel-B12QgvIn.js} +2 -2
- package/dist/packem_shared/{Studio-CCJBI2wP.js → Studio-DV1PhCIl.js} +2 -2
- package/dist/packem_shared/{StudioApp-Daeqxw2h.js → StudioApp-BF2rK77z.js} +1 -1
- package/dist/packem_shared/{home-panel-DHHUtnKU.js → home-panel-DDo_fi19.js} +1 -1
- package/dist/packem_shared/{select-UkNYCT3s.js → select-D9OwHEch.js} +1 -1
- package/dist/packem_shared/{studio-0479nrrm.js → studio-CuNuEnSJ.js} +1 -1
- package/dist/standalone/{chunk-G5CMK5GY.js → chunk-25CDYYNE.js} +1 -1
- package/dist/standalone/{chunk-AE3AKGOW.js → chunk-2DCA6LV7.js} +1 -1
- package/dist/standalone/{chunk-EOE5NDMK.js → chunk-2TJVFKD2.js} +1 -1
- package/dist/standalone/{chunk-RG4HLPM2.js → chunk-2U3KE6IP.js} +1 -1
- package/dist/standalone/{chunk-DVBY6YQK.js → chunk-2XJ3WRKW.js} +1 -1
- package/dist/standalone/{chunk-4AZYW2PI.js → chunk-3BYY75EO.js} +1 -1
- package/dist/standalone/chunk-3HGNPZBN.js +1 -0
- package/dist/standalone/{chunk-VQ3YOUZB.js → chunk-4A7VE2UO.js} +1 -1
- package/dist/standalone/{chunk-TTEEPVCN.js → chunk-5SXQWGTH.js} +1 -1
- package/dist/standalone/{chunk-OVSBLTAA.js → chunk-6LQ3FXP2.js} +1 -1
- package/dist/standalone/{chunk-FPKTXKPE.js → chunk-6RW37KKD.js} +1 -1
- package/dist/standalone/{chunk-W7ND56KZ.js → chunk-6ZGXWDSY.js} +1 -1
- package/dist/standalone/{chunk-XG4TZSP4.js → chunk-AL5UKM6M.js} +1 -1
- package/dist/standalone/{chunk-N5FMEYSL.js → chunk-BZ5BHTVF.js} +1 -1
- package/dist/standalone/{chunk-RDA4VTHI.js → chunk-D54HL2MW.js} +1 -1
- package/dist/standalone/chunk-DBCP55V6.js +1 -0
- package/dist/standalone/{chunk-PIB7VUVM.js → chunk-DGWFJ3GW.js} +1 -1
- package/dist/standalone/{chunk-FBGC3RSU.js → chunk-DOLG4V3A.js} +1 -1
- package/dist/standalone/{chunk-MWH5LBNF.js → chunk-E5Z2TAAR.js} +1 -1
- package/dist/standalone/{chunk-CW7LZ4SR.js → chunk-EGANQQLW.js} +1 -1
- package/dist/standalone/{chunk-JHR3HKT5.js → chunk-ILGPO3PK.js} +2 -2
- package/dist/standalone/{chunk-JQPHZL2A.js → chunk-JWCCDDLY.js} +1 -1
- package/dist/standalone/{chunk-S5NTGHCG.js → chunk-JZLGLG4T.js} +1 -1
- package/dist/standalone/{chunk-ZUTFDG76.js → chunk-LJ3KEIPO.js} +1 -1
- package/dist/standalone/{chunk-Q3X7IMLF.js → chunk-LYAWJGSH.js} +1 -1
- package/dist/standalone/chunk-MHGJUKCZ.js +1 -0
- package/dist/standalone/{chunk-YNSFQKMM.js → chunk-N3V74RBP.js} +1 -1
- package/dist/standalone/{chunk-IKVZUVHJ.js → chunk-OBFYFJYZ.js} +1 -1
- package/dist/standalone/{chunk-YRE6TGXH.js → chunk-OEIBZ5AI.js} +1 -1
- package/dist/standalone/{chunk-FXNS5NBY.js → chunk-OOLK6C5I.js} +1 -1
- package/dist/standalone/{chunk-SP7GSPKX.js → chunk-RVVADT2N.js} +1 -1
- package/dist/standalone/{chunk-NAFKYFBZ.js → chunk-S7BCXJWD.js} +1 -1
- package/dist/standalone/{chunk-6LLFTVEI.js → chunk-ULOBAURC.js} +1 -1
- package/dist/standalone/{chunk-LTCX3QOE.js → chunk-VDOUWYIZ.js} +1 -1
- package/dist/standalone/{chunk-EIZG4GOM.js → chunk-VJABWVPW.js} +1 -1
- package/dist/standalone/{chunk-EPDC422O.js → chunk-WQC5IIF7.js} +1 -1
- package/dist/standalone/{chunk-WA3DGSC2.js → chunk-XFINDIAB.js} +1 -1
- package/dist/standalone/{chunk-JGCRBFFO.js → chunk-XTOCLVRS.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/standalone/chunk-DWDILV2E.js +0 -1
- package/dist/standalone/chunk-EBTLTGG3.js +0 -1
- package/dist/standalone/chunk-G5RC7USY.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as q}from"./chunk-
|
|
1
|
+
import{a as q}from"./chunk-2TJVFKD2.js";import"./chunk-3HGNPZBN.js";import{a as T}from"./chunk-QAFAJBAW.js";import{a as H}from"./chunk-J6J54MBP.js";import"./chunk-5OIBXYZM.js";import{a as D}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as B}from"./chunk-4F72YCTU.js";import{R as F}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import{b as P}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as p}from"./chunk-MHGJUKCZ.js";import{f as j}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as O}from"./chunk-TAD43CG5.js";import{d as $,f as g,g as N,h as w,l as y,n as R,p as C}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as o,e as M,f as oe,h as se,j as z}from"./chunk-RRCPZMC2.js";var d=M(oe(),1);var e=M(se(),1);function de({className:r,orientation:m="horizontal",...a}){return(0,e.jsxDEV)(T,{"data-slot":"separator",orientation:m,className:z("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",r),...a},void 0,!1)}o(de,"Separator");var le=g(p.clearCapturedMail),ne=g(p.sendTestMail),ce=/https?:\/\/[^\s"'<>)]+/i,_=o(r=>r===void 0?void 0:ce.exec(r)?.[0],"firstLink"),me=o(r=>{if(r!==void 0)return _(r.html)??_(r.text)},"selectedLink"),ue=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; font-src data:">`,fe=o(r=>`${ue}${r}`,"withPreviewCsp"),v=o(r=>r===void 0?"":Array.isArray(r)?r.join(", "):r,"recipientText"),Ie=o(({limit:r=100})=>{let m=j(),a=$(),{data:S,error:k,errorSource:U,isLoading:V,refetch:x}=B(p.getCapturedMail,{limit:r}),[E,h]=(0,d.useState)(null),[A,L]=(0,d.useState)(null),[u,W]=(0,d.useState)("html"),[b,K]=(0,d.useState)(""),l=(0,d.useMemo)(()=>S?.entries??[],[S]),I=k??E,Q=k===null?E:U,G=o(async()=>{h(null);try{await m.query(le,{},N("")),L(null),x()}catch(t){h(w(t))}},"clearInbox"),J=o(async()=>{h(null);try{await m.query(ne,{},N("")),x()}catch(t){h(w(t))}},"sendTest");H(()=>{x()},!0);let X=o(()=>{y(G())},"onClear"),Y=o(()=>{y(J())},"onSendTest"),Z=o(t=>{K(t.currentTarget.value)},"onFilterChange"),ee=o(t=>{let{id:s}=t.currentTarget.dataset;s!==void 0&&L(s)},"onSelectMessage"),te=o(t=>{let s=t.currentTarget.dataset.tab;(s==="headers"||s==="html"||s==="text")&&W(s)},"onSelectTab"),ae=o(t=>a(t==="html"?"HTML":t==="text"?"Plain text":"Headers"),"tabTitle"),f=(0,d.useMemo)(()=>{let t=b.trim().toLowerCase();return t===""?l:l.filter(s=>`${s.subject} ${v(s.to)}`.toLowerCase().includes(t))},[l,b]),i=(0,d.useMemo)(()=>{if(f.length!==0)return f.find(t=>t.id===A)??f[0]},[f,A]),n=me(i),re=o(()=>{n!==void 0&&R(n)},"onCopyLink"),ie=o(()=>{n!==void 0&&"window"in globalThis&&globalThis.window.open(n,"_blank","noopener")},"onOpenLink");return(0,e.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"mail-panel",children:[(0,e.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxDEV)(c,{"data-testid":"mail-send-test",onClick:Y,size:"sm",type:"button",variant:"outline",children:a("Send test")},void 0,!1),(0,e.jsxDEV)(c,{"data-testid":"mail-clear",disabled:l.length===0,onClick:X,size:"sm",type:"button",variant:"outline",children:a("Clear inbox")},void 0,!1),l.length>0&&(0,e.jsxDEV)(P,{className:"ml-auto","data-testid":"mail-count",variant:"secondary",children:a("{count} messages",{count:l.length})},void 0,!1)]},void 0,!0),I!==null&&(0,e.jsxDEV)(D,{error:Q,testId:"mail-error"},void 0,!1),I===null&&!V&&l.length===0&&(0,e.jsxDEV)(O,{description:a("Email your app sends in dev is captured here \u2014 nothing is delivered."),icon:(0,e.jsxDEV)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:[(0,e.jsxDEV)("path",{d:"M4 5h16v14H4z"},void 0,!1),(0,e.jsxDEV)("path",{d:"m4 6 8 6 8-6"},void 0,!1)]},void 0,!0),testId:"mail-empty",title:a("No captured email.")},void 0,!1),l.length>0&&(0,e.jsxDEV)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-[minmax(0,22rem)_1fr]","data-testid":"mail-reader",children:[(0,e.jsxDEV)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxDEV)(F,{"aria-label":a("Search messages"),"data-testid":"mail-search",onChange:Z,placeholder:a("Filter messages"),type:"search",value:b},void 0,!1),(0,e.jsxDEV)(q,{className:"max-h-[32rem] rounded-xl border border-border bg-card shadow-xs","data-testid":"mail-list",children:(0,e.jsxDEV)("ul",{className:"divide-y",children:f.map(t=>{let s=t.id===i?.id;return(0,e.jsxDEV)("li",{children:(0,e.jsxDEV)("button",{className:`flex w-full flex-col items-start gap-0.5 px-3 py-2 text-left text-sm hover:bg-muted/60 ${s?"bg-muted":""}`,"data-active":s,"data-id":t.id,"data-testid":"mail-list-item",onClick:ee,type:"button",children:[(0,e.jsxDEV)("span",{className:"w-full truncate font-medium",children:t.subject||a("(no subject)")},void 0,!1),(0,e.jsxDEV)("span",{className:"w-full truncate text-xs text-muted-foreground",children:v(t.to)},void 0,!1),(0,e.jsxDEV)("span",{className:"text-xs text-muted-foreground tabular-nums",children:C(t.capturedAt,"\u2014")},void 0,!1)]},void 0,!0)},t.id,!1)})},void 0,!1)},void 0,!1)]},void 0,!0),i!==void 0&&(0,e.jsxDEV)("div",{className:"flex min-w-0 flex-col gap-3 rounded-xl border border-border bg-card p-4 shadow-xs","data-testid":"mail-detail",children:[(0,e.jsxDEV)("div",{className:"flex flex-col gap-1",children:[(0,e.jsxDEV)("h2",{className:"truncate text-base font-semibold","data-testid":"mail-subject",children:i.subject||a("(no subject)")},void 0,!1),(0,e.jsxDEV)("dl",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-xs text-muted-foreground",children:[(0,e.jsxDEV)("dt",{children:a("From")},void 0,!1),(0,e.jsxDEV)("dd",{className:"truncate font-mono",children:i.from??"\u2014"},void 0,!1),(0,e.jsxDEV)("dt",{children:a("To")},void 0,!1),(0,e.jsxDEV)("dd",{className:"truncate font-mono",children:v(i.to)},void 0,!1),i.cc!==void 0&&i.cc.length>0&&(0,e.jsxDEV)(e.Fragment,{children:[(0,e.jsxDEV)("dt",{children:a("Cc")},void 0,!1),(0,e.jsxDEV)("dd",{className:"truncate font-mono",children:v(i.cc)},void 0,!1)]},void 0,!0),(0,e.jsxDEV)("dt",{children:a("Sent")},void 0,!1),(0,e.jsxDEV)("dd",{className:"tabular-nums",children:C(i.capturedAt,"\u2014")},void 0,!1)]},void 0,!0)]},void 0,!0),(0,e.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2","data-testid":"mail-actions",children:[(0,e.jsxDEV)(c,{"data-testid":"mail-copy-link",disabled:n===void 0,onClick:re,size:"sm",type:"button",variant:"outline",children:a("Copy link")},void 0,!1),(0,e.jsxDEV)(c,{"data-testid":"mail-open-link",disabled:n===void 0,onClick:ie,size:"sm",type:"button",variant:"outline",children:a("Open in new tab")},void 0,!1)]},void 0,!0),(0,e.jsxDEV)(de,{},void 0,!1),(0,e.jsxDEV)("div",{className:"flex items-center gap-1","data-testid":"mail-tabs",role:"tablist",children:["html","text","headers"].map(t=>(0,e.jsxDEV)(c,{"aria-selected":u===t,"data-tab":t,"data-testid":`mail-tab-${t}`,onClick:te,role:"tab",size:"sm",type:"button",variant:u===t?"secondary":"ghost",children:ae(t)},t,!1))},void 0,!1),(0,e.jsxDEV)("div",{className:"min-h-[12rem]",children:[u==="html"&&(i.html===void 0?(0,e.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:a("No HTML body.")},void 0,!1):(0,e.jsxDEV)("iframe",{className:"h-[24rem] w-full rounded-md border bg-white","data-testid":"mail-preview-html",sandbox:"",srcDoc:fe(i.html),title:a("Email preview")},void 0,!1)),u==="text"&&(i.text===void 0?(0,e.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:a("No text body.")},void 0,!1):(0,e.jsxDEV)("pre",{className:"overflow-auto whitespace-pre-wrap rounded-md border bg-muted/30 p-3 text-xs","data-testid":"mail-preview-text",children:i.text},void 0,!1)),u==="headers"&&(i.headers===void 0||Object.keys(i.headers).length===0?(0,e.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:a("No headers.")},void 0,!1):(0,e.jsxDEV)("pre",{className:"overflow-auto whitespace-pre-wrap rounded-md border bg-muted/30 p-3 text-xs","data-testid":"mail-preview-headers",children:Object.entries(i.headers).map(([t,s])=>`${t}: ${s}`).join(`
|
|
2
2
|
`)},void 0,!1))]},void 0,!0)]},void 0,!0)]},void 0,!0)]},void 0,!0)},"MailPanel");export{Ie as MailPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as le}from"./chunk-N7SVJOHN.js";import{a as oe}from"./chunk-FQUNSQLG.js";import{a as se}from"./chunk-2K47A3P6.js";import{a as ae}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as Z}from"./chunk-4F72YCTU.js";import{a as re}from"./chunk-FDWXYXOM.js";import{b as te}from"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import{R as J}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import"./chunk-O3NAGRTR.js";import{b as G}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as ee}from"./chunk-EBTLTGG3.js";import"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as X}from"./chunk-TAD43CG5.js";import{d as Q,p as Y}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as S,e as q,f as de,g as ce,h as fe,j as z}from"./chunk-RRCPZMC2.js";var V=q(ce(),1),K=q(de(),1);var s=q(fe(),1);var me=.5,ne=S(o=>Math.min(100,Math.max(0,o)),"clampPercent"),ue=S((o,e)=>{if(!Number.isFinite(e)||e<=0)return{leftPercent:0,widthPercent:100};let r=ne(o.offsetMs/e*100),a=o.durationMs/e*100,t=Math.max(me,Math.min(ne(a),100-r));return{leftPercent:r,widthPercent:t}},"spanBar"),he=S((o,e)=>{let r=e.trim().toLowerCase();return r===""?[...o]:o.filter(a=>a.rootName.toLowerCase().includes(r)||a.functionPath.toLowerCase().includes(r))},"filterTraces"),U=S(o=>Number.isFinite(o)?o>0&&o<1?`${o.toFixed(2)}ms`:`${String(Math.round(o))}ms`:"\u2014","formatSpanDuration"),pe=14,ge=S(o=>Array.isArray(o?.traces)?o.traces:[],"tracesOf"),ve=S(o=>{let e=(0,V.c)(50),{span:r,traceDurationMs:a}=o,t=Q(),f;e[0]!==r||e[1]!==a?(f=ue(r,a),e[0]=r,e[1]=a,e[2]=f):f=e[2];let{leftPercent:u,widthPercent:_}=f,k;e[3]!==r.attributes?(k=le(r.attributes),e[3]=r.attributes,e[4]=k):k=e[4];let T=k,M=r.depth*pe,h;e[5]!==M?(h={paddingLeft:M},e[5]=M,e[6]=h):h=e[6];let x=h,b=`${String(u)}%`,n=`${String(_)}%`,l;e[7]!==b||e[8]!==n?(l={left:b,width:n},e[7]=b,e[8]=n,e[9]=l):l=e[9];let p=l,I=r.depth,i;e[10]!==r.ok||e[11]!==t?(i=r.ok?null:(0,s.jsxDEV)("span",{"aria-label":t("Errored span"),className:"mr-1 text-destructive","data-testid":"tr-span-error",role:"img",children:"\u25CF"},void 0,!1),e[10]=r.ok,e[11]=t,e[12]=i):i=e[12];let w;e[13]!==x||e[14]!==r.name||e[15]!==i?(w=(0,s.jsxDEV)("span",{className:"w-56 shrink-0 truncate",role:"gridcell",style:x,title:r.name,children:[i,r.name]},void 0,!0),e[13]=x,e[14]=r.name,e[15]=i,e[16]=w):w=e[16];let d;e[17]!==r.durationMs||e[18]!==r.offsetMs||e[19]!==t?(d=t("starts {offset} in, runs {duration}",{duration:U(r.durationMs),offset:U(r.offsetMs)}),e[17]=r.durationMs,e[18]=r.offsetMs,e[19]=t,e[20]=d):d=e[20];let N=r.ok?"bg-primary/70":"bg-destructive",c;e[21]!==N?(c=z("absolute inset-y-0 rounded-sm",N),e[21]=N,e[22]=c):c=e[22];let g;e[23]!==p||e[24]!==u||e[25]!==c||e[26]!==_?(g=(0,s.jsxDEV)("span",{className:c,"data-left":u,"data-testid":"tr-span-bar","data-width":_,style:p},void 0,!1),e[23]=p,e[24]=u,e[25]=c,e[26]=_,e[27]=g):g=e[27];let y;e[28]!==d||e[29]!==g?(y=(0,s.jsxDEV)("span",{"aria-label":d,className:"relative h-3 flex-1 overflow-hidden rounded-sm bg-muted",role:"gridcell",children:g},void 0,!1),e[28]=d,e[29]=g,e[30]=y):y=e[30];let m;e[31]!==r.durationMs?(m=U(r.durationMs),e[31]=r.durationMs,e[32]=m):m=e[32];let v;e[33]!==m?(v=(0,s.jsxDEV)("span",{className:"w-16 shrink-0 text-right tabular-nums text-muted-foreground",role:"gridcell",children:m},void 0,!1),e[33]=m,e[34]=v):v=e[34];let E;e[35]!==r.error?(E=r.error===void 0?null:(0,s.jsxDEV)("span",{className:"text-destructive","data-testid":"tr-span-error-message",title:r.error.message,children:`${r.error.type}: ${r.error.message}`},void 0,!1),e[35]=r.error,e[36]=E):E=e[36];let P;e[37]!==E?(P=(0,s.jsxDEV)("span",{className:"w-64 shrink-0 truncate text-muted-foreground",role:"gridcell",children:E},void 0,!1),e[37]=E,e[38]=P):P=e[38];let A;e[39]!==T?(A=T===""?null:(0,s.jsxDEV)("span",{"data-testid":"tr-span-attributes",title:T,children:T},void 0,!1),e[39]=T,e[40]=A):A=e[40];let C;e[41]!==A?(C=(0,s.jsxDEV)("span",{className:"w-64 shrink-0 truncate text-muted-foreground",role:"gridcell",children:A},void 0,!1),e[41]=A,e[42]=C):C=e[42];let $;return e[43]!==r.depth||e[44]!==w||e[45]!==y||e[46]!==v||e[47]!==P||e[48]!==C?($=(0,s.jsxDEV)("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5 font-mono text-xs last:border-b-0 hover:bg-muted/50","data-depth":I,"data-testid":"tr-span-row",role:"row",children:[w,y,v,P,C]},void 0,!0),e[43]=r.depth,e[44]=w,e[45]=y,e[46]=v,e[47]=P,e[48]=C,e[49]=$):$=e[49],$},"SpanRow"),xe=S(o=>{let e=(0,V.c)(50),{expanded:r,onToggle:a,trace:t}=o,f=Q(),u;e[0]!==a||e[1]!==t.traceId?(u=S(()=>{a(t.traceId)},"t1"),e[0]=a,e[1]=t.traceId,e[2]=u):u=e[2];let _=u,k=`tr-row-${t.traceId}`,T=`tr-waterfall-${t.traceId}`,M=`tr-toggle-${t.traceId}`,h=r?"\u25BE":"\u25B8",x;e[3]!==h?(x=(0,s.jsxDEV)("span",{"aria-hidden":"true",className:"w-3 shrink-0 text-xs text-muted-foreground",children:h},void 0,!1),e[3]=h,e[4]=x):x=e[4];let b;e[5]!==t.rootName?(b=(0,s.jsxDEV)("span",{className:"w-56 shrink-0 truncate text-sm font-medium",title:t.rootName,children:t.rootName},void 0,!1),e[5]=t.rootName,e[6]=b):b=e[6];let n;e[7]!==t.functionPath?(n=(0,s.jsxDEV)("span",{className:"w-48 shrink-0 truncate font-mono text-xs text-muted-foreground",title:t.functionPath,children:t.functionPath},void 0,!1),e[7]=t.functionPath,e[8]=n):n=e[8];let l;e[9]!==t.durationMs?(l=U(t.durationMs),e[9]=t.durationMs,e[10]=l):l=e[10];let p;e[11]!==l?(p=(0,s.jsxDEV)("span",{className:"w-20 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground",children:l},void 0,!1),e[11]=l,e[12]=p):p=e[12];let I;e[13]!==f||e[14]!==t.spans.length?(I=f("{count} spans",{count:t.spans.length}),e[13]=f,e[14]=t.spans.length,e[15]=I):I=e[15];let i;e[16]!==I?(i=(0,s.jsxDEV)("span",{className:"w-20 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground",children:I},void 0,!1),e[16]=I,e[17]=i):i=e[17];let w=t.ok?"secondary":"destructive",d;e[18]!==f||e[19]!==t.ok?(d=t.ok?f("ok"):f("error"),e[18]=f,e[19]=t.ok,e[20]=d):d=e[20];let N;e[21]!==w||e[22]!==d?(N=(0,s.jsxDEV)("span",{className:"shrink-0",children:(0,s.jsxDEV)(G,{variant:w,children:d},void 0,!1)},void 0,!1),e[21]=w,e[22]=d,e[23]=N):N=e[23];let c;e[24]!==t.startTs?(c=Y(t.startTs),e[24]=t.startTs,e[25]=c):c=e[25];let g;e[26]!==c?(g=(0,s.jsxDEV)("span",{className:"flex-1 truncate text-right font-mono text-xs tabular-nums text-muted-foreground",children:c},void 0,!1),e[26]=c,e[27]=g):g=e[27];let y;e[28]!==r||e[29]!==_||e[30]!==p||e[31]!==i||e[32]!==N||e[33]!==g||e[34]!==T||e[35]!==M||e[36]!==x||e[37]!==b||e[38]!==n?(y=(0,s.jsxDEV)("button",{"aria-controls":T,"aria-expanded":r,className:"flex w-full items-center gap-3 px-3 py-2 text-left hover:bg-muted/50","data-testid":M,onClick:_,type:"button",children:[x,b,n,p,i,N,g]},void 0,!0),e[28]=r,e[29]=_,e[30]=p,e[31]=i,e[32]=N,e[33]=g,e[34]=T,e[35]=M,e[36]=x,e[37]=b,e[38]=n,e[39]=y):y=e[39];let m;e[40]!==r||e[41]!==f||e[42]!==t.durationMs||e[43]!==t.spans||e[44]!==t.traceId?(m=r&&(0,s.jsxDEV)("div",{"aria-label":f("Trace waterfall"),className:"bg-muted/20","data-testid":`tr-waterfall-${t.traceId}`,id:`tr-waterfall-${t.traceId}`,role:"grid",children:t.spans.map(E=>(0,s.jsxDEV)(ve,{span:E,traceDurationMs:t.durationMs},E.spanId,!1))},void 0,!1),e[40]=r,e[41]=f,e[42]=t.durationMs,e[43]=t.spans,e[44]=t.traceId,e[45]=m):m=e[45];let v;return e[46]!==y||e[47]!==m||e[48]!==k?(v=(0,s.jsxDEV)("div",{className:"border-b border-border last:border-b-0","data-testid":k,children:[y,m]},void 0,!0),e[46]=y,e[47]=m,e[48]=k,e[49]=v):v=e[49],v},"TraceRow"),Ae=S(o=>{let e=(0,V.c)(43),{initialShardKey:r}=o,a=Q(),[t,f]=(0,K.useState)(r??""),[u,_]=(0,K.useState)(""),[k,T]=(0,K.useState)(be),M;e[0]!==t?(M=t.trim(),e[0]=t,e[1]=M):M=e[1];let h=se(M,400),x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x={},e[2]=x):x=e[2];let b;e[3]!==h?(b={live:!0,shardKey:h},e[3]=h,e[4]=b):b=e[4];let{data:n,error:l,errorSource:p,isLoading:I,liveError:i}=Z(ee.getTraces,x,b),w,d;e[5]!==n||e[6]!==h?(w=S(()=>{n!==void 0&&te(h)},"t4"),d=[n,h],e[5]=n,e[6]=h,e[7]=w,e[8]=d):(w=e[7],d=e[8]),(0,K.useEffect)(w,d);let N;if(e[9]!==n||e[10]!==l||e[11]!==p||e[12]!==k||e[13]!==I||e[14]!==i||e[15]!==u||e[16]!==t||e[17]!==a){let c=ge(n),g=n?.total??c.length,y=g>c.length,m=he(c,u),v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=S(L=>{_(L.target.value)},"t7"),e[19]=v):v=e[19];let E=v,P;e[20]===Symbol.for("react.memo_cache_sentinel")?(P=S(L=>{T(ie=>{let H=new Set(ie);return H.has(L)?H.delete(L):H.add(L),H})},"t8"),e[20]=P):P=e[20];let A=P,C=l===null&&m.length===0&&!I,$;e[21]!==t?($=(0,s.jsxDEV)(re,{onChange:f,testId:"tr-shard-input",value:t},void 0,!1),e[21]=t,e[22]=$):$=e[22];let R;e[23]!==a?(R=a("Search traces"),e[23]=a,e[24]=R):R=e[24];let B;e[25]!==a?(B=a("search trace or function"),e[25]=a,e[26]=B):B=e[26];let D;e[27]!==u||e[28]!==R||e[29]!==B?(D=(0,s.jsxDEV)(J,{"aria-label":R,className:"h-8 w-56","data-testid":"tr-search",onChange:E,placeholder:B,value:u},void 0,!1),e[27]=u,e[28]=R,e[29]=B,e[30]=D):D=e[30];let F;e[31]!==i?(F=(0,s.jsxDEV)(oe,{message:i,prefix:"tr"},void 0,!1),e[31]=i,e[32]=F):F=e[32];let j;e[33]!==D||e[34]!==F||e[35]!==$?(j=(0,s.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[$,D,F]},void 0,!0),e[33]=D,e[34]=F,e[35]=$,e[36]=j):j=e[36];let O;e[37]!==l||e[38]!==p?(O=l!==null&&(0,s.jsxDEV)(ae,{error:p,testId:"tr-error"},void 0,!1),e[37]=l,e[38]=p,e[39]=O):O=e[39];let W;e[40]!==C||e[41]!==a?(W=C&&(0,s.jsxDEV)(X,{description:a("Traces recorded with ctx.trace show up here as your app handles traffic. The span buffer resets when the shard hibernates."),icon:(0,s.jsxDEV)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,s.jsxDEV)("path",{d:"M4 6h10M7 12h13M10 18h7"},void 0,!1)},void 0,!1),testId:"tr-empty",title:a("No traces")},void 0,!1),e[40]=C,e[41]=a,e[42]=W):W=e[42],N=(0,s.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-traces-panel",children:[j,O,W,l===null&&y&&(0,s.jsxDEV)("p",{className:"text-xs text-muted-foreground","data-testid":"tr-truncated",children:a("Showing the {shown} most recent of {total} traces in the buffer.",{shown:c.length,total:g})},void 0,!1),l===null&&m.length>0&&(0,s.jsxDEV)("div",{"aria-label":a("Recent traces"),className:"overflow-hidden rounded-xl border border-border shadow-xs","data-testid":"tr-list",children:m.map(L=>(0,s.jsxDEV)(xe,{expanded:k.has(L.traceId),onToggle:A,trace:L},L.traceId,!1))},void 0,!1)]},void 0,!0),e[9]=n,e[10]=l,e[11]=p,e[12]=k,e[13]=I,e[14]=i,e[15]=u,e[16]=t,e[17]=a,e[18]=N}else N=e[18];return N},"TracesPanel");function be(){return new Set}S(be,"_temp");export{Ae as TracesPanel};
|
|
1
|
+
import{a as le}from"./chunk-N7SVJOHN.js";import{a as oe}from"./chunk-FQUNSQLG.js";import{a as se}from"./chunk-2K47A3P6.js";import{a as ae}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as Z}from"./chunk-4F72YCTU.js";import{a as re}from"./chunk-FDWXYXOM.js";import{b as te}from"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import{R as J}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import"./chunk-O3NAGRTR.js";import{b as G}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as ee}from"./chunk-MHGJUKCZ.js";import"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as X}from"./chunk-TAD43CG5.js";import{d as Q,p as Y}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as S,e as q,f as de,g as ce,h as fe,j as z}from"./chunk-RRCPZMC2.js";var V=q(ce(),1),K=q(de(),1);var s=q(fe(),1);var me=.5,ne=S(o=>Math.min(100,Math.max(0,o)),"clampPercent"),ue=S((o,e)=>{if(!Number.isFinite(e)||e<=0)return{leftPercent:0,widthPercent:100};let r=ne(o.offsetMs/e*100),a=o.durationMs/e*100,t=Math.max(me,Math.min(ne(a),100-r));return{leftPercent:r,widthPercent:t}},"spanBar"),he=S((o,e)=>{let r=e.trim().toLowerCase();return r===""?[...o]:o.filter(a=>a.rootName.toLowerCase().includes(r)||a.functionPath.toLowerCase().includes(r))},"filterTraces"),U=S(o=>Number.isFinite(o)?o>0&&o<1?`${o.toFixed(2)}ms`:`${String(Math.round(o))}ms`:"\u2014","formatSpanDuration"),pe=14,ge=S(o=>Array.isArray(o?.traces)?o.traces:[],"tracesOf"),ve=S(o=>{let e=(0,V.c)(50),{span:r,traceDurationMs:a}=o,t=Q(),f;e[0]!==r||e[1]!==a?(f=ue(r,a),e[0]=r,e[1]=a,e[2]=f):f=e[2];let{leftPercent:u,widthPercent:_}=f,k;e[3]!==r.attributes?(k=le(r.attributes),e[3]=r.attributes,e[4]=k):k=e[4];let T=k,M=r.depth*pe,h;e[5]!==M?(h={paddingLeft:M},e[5]=M,e[6]=h):h=e[6];let x=h,b=`${String(u)}%`,n=`${String(_)}%`,l;e[7]!==b||e[8]!==n?(l={left:b,width:n},e[7]=b,e[8]=n,e[9]=l):l=e[9];let p=l,I=r.depth,i;e[10]!==r.ok||e[11]!==t?(i=r.ok?null:(0,s.jsxDEV)("span",{"aria-label":t("Errored span"),className:"mr-1 text-destructive","data-testid":"tr-span-error",role:"img",children:"\u25CF"},void 0,!1),e[10]=r.ok,e[11]=t,e[12]=i):i=e[12];let w;e[13]!==x||e[14]!==r.name||e[15]!==i?(w=(0,s.jsxDEV)("span",{className:"w-56 shrink-0 truncate",role:"gridcell",style:x,title:r.name,children:[i,r.name]},void 0,!0),e[13]=x,e[14]=r.name,e[15]=i,e[16]=w):w=e[16];let d;e[17]!==r.durationMs||e[18]!==r.offsetMs||e[19]!==t?(d=t("starts {offset} in, runs {duration}",{duration:U(r.durationMs),offset:U(r.offsetMs)}),e[17]=r.durationMs,e[18]=r.offsetMs,e[19]=t,e[20]=d):d=e[20];let N=r.ok?"bg-primary/70":"bg-destructive",c;e[21]!==N?(c=z("absolute inset-y-0 rounded-sm",N),e[21]=N,e[22]=c):c=e[22];let g;e[23]!==p||e[24]!==u||e[25]!==c||e[26]!==_?(g=(0,s.jsxDEV)("span",{className:c,"data-left":u,"data-testid":"tr-span-bar","data-width":_,style:p},void 0,!1),e[23]=p,e[24]=u,e[25]=c,e[26]=_,e[27]=g):g=e[27];let y;e[28]!==d||e[29]!==g?(y=(0,s.jsxDEV)("span",{"aria-label":d,className:"relative h-3 flex-1 overflow-hidden rounded-sm bg-muted",role:"gridcell",children:g},void 0,!1),e[28]=d,e[29]=g,e[30]=y):y=e[30];let m;e[31]!==r.durationMs?(m=U(r.durationMs),e[31]=r.durationMs,e[32]=m):m=e[32];let v;e[33]!==m?(v=(0,s.jsxDEV)("span",{className:"w-16 shrink-0 text-right tabular-nums text-muted-foreground",role:"gridcell",children:m},void 0,!1),e[33]=m,e[34]=v):v=e[34];let E;e[35]!==r.error?(E=r.error===void 0?null:(0,s.jsxDEV)("span",{className:"text-destructive","data-testid":"tr-span-error-message",title:r.error.message,children:`${r.error.type}: ${r.error.message}`},void 0,!1),e[35]=r.error,e[36]=E):E=e[36];let P;e[37]!==E?(P=(0,s.jsxDEV)("span",{className:"w-64 shrink-0 truncate text-muted-foreground",role:"gridcell",children:E},void 0,!1),e[37]=E,e[38]=P):P=e[38];let A;e[39]!==T?(A=T===""?null:(0,s.jsxDEV)("span",{"data-testid":"tr-span-attributes",title:T,children:T},void 0,!1),e[39]=T,e[40]=A):A=e[40];let C;e[41]!==A?(C=(0,s.jsxDEV)("span",{className:"w-64 shrink-0 truncate text-muted-foreground",role:"gridcell",children:A},void 0,!1),e[41]=A,e[42]=C):C=e[42];let $;return e[43]!==r.depth||e[44]!==w||e[45]!==y||e[46]!==v||e[47]!==P||e[48]!==C?($=(0,s.jsxDEV)("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5 font-mono text-xs last:border-b-0 hover:bg-muted/50","data-depth":I,"data-testid":"tr-span-row",role:"row",children:[w,y,v,P,C]},void 0,!0),e[43]=r.depth,e[44]=w,e[45]=y,e[46]=v,e[47]=P,e[48]=C,e[49]=$):$=e[49],$},"SpanRow"),xe=S(o=>{let e=(0,V.c)(50),{expanded:r,onToggle:a,trace:t}=o,f=Q(),u;e[0]!==a||e[1]!==t.traceId?(u=S(()=>{a(t.traceId)},"t1"),e[0]=a,e[1]=t.traceId,e[2]=u):u=e[2];let _=u,k=`tr-row-${t.traceId}`,T=`tr-waterfall-${t.traceId}`,M=`tr-toggle-${t.traceId}`,h=r?"\u25BE":"\u25B8",x;e[3]!==h?(x=(0,s.jsxDEV)("span",{"aria-hidden":"true",className:"w-3 shrink-0 text-xs text-muted-foreground",children:h},void 0,!1),e[3]=h,e[4]=x):x=e[4];let b;e[5]!==t.rootName?(b=(0,s.jsxDEV)("span",{className:"w-56 shrink-0 truncate text-sm font-medium",title:t.rootName,children:t.rootName},void 0,!1),e[5]=t.rootName,e[6]=b):b=e[6];let n;e[7]!==t.functionPath?(n=(0,s.jsxDEV)("span",{className:"w-48 shrink-0 truncate font-mono text-xs text-muted-foreground",title:t.functionPath,children:t.functionPath},void 0,!1),e[7]=t.functionPath,e[8]=n):n=e[8];let l;e[9]!==t.durationMs?(l=U(t.durationMs),e[9]=t.durationMs,e[10]=l):l=e[10];let p;e[11]!==l?(p=(0,s.jsxDEV)("span",{className:"w-20 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground",children:l},void 0,!1),e[11]=l,e[12]=p):p=e[12];let I;e[13]!==f||e[14]!==t.spans.length?(I=f("{count} spans",{count:t.spans.length}),e[13]=f,e[14]=t.spans.length,e[15]=I):I=e[15];let i;e[16]!==I?(i=(0,s.jsxDEV)("span",{className:"w-20 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground",children:I},void 0,!1),e[16]=I,e[17]=i):i=e[17];let w=t.ok?"secondary":"destructive",d;e[18]!==f||e[19]!==t.ok?(d=t.ok?f("ok"):f("error"),e[18]=f,e[19]=t.ok,e[20]=d):d=e[20];let N;e[21]!==w||e[22]!==d?(N=(0,s.jsxDEV)("span",{className:"shrink-0",children:(0,s.jsxDEV)(G,{variant:w,children:d},void 0,!1)},void 0,!1),e[21]=w,e[22]=d,e[23]=N):N=e[23];let c;e[24]!==t.startTs?(c=Y(t.startTs),e[24]=t.startTs,e[25]=c):c=e[25];let g;e[26]!==c?(g=(0,s.jsxDEV)("span",{className:"flex-1 truncate text-right font-mono text-xs tabular-nums text-muted-foreground",children:c},void 0,!1),e[26]=c,e[27]=g):g=e[27];let y;e[28]!==r||e[29]!==_||e[30]!==p||e[31]!==i||e[32]!==N||e[33]!==g||e[34]!==T||e[35]!==M||e[36]!==x||e[37]!==b||e[38]!==n?(y=(0,s.jsxDEV)("button",{"aria-controls":T,"aria-expanded":r,className:"flex w-full items-center gap-3 px-3 py-2 text-left hover:bg-muted/50","data-testid":M,onClick:_,type:"button",children:[x,b,n,p,i,N,g]},void 0,!0),e[28]=r,e[29]=_,e[30]=p,e[31]=i,e[32]=N,e[33]=g,e[34]=T,e[35]=M,e[36]=x,e[37]=b,e[38]=n,e[39]=y):y=e[39];let m;e[40]!==r||e[41]!==f||e[42]!==t.durationMs||e[43]!==t.spans||e[44]!==t.traceId?(m=r&&(0,s.jsxDEV)("div",{"aria-label":f("Trace waterfall"),className:"bg-muted/20","data-testid":`tr-waterfall-${t.traceId}`,id:`tr-waterfall-${t.traceId}`,role:"grid",children:t.spans.map(E=>(0,s.jsxDEV)(ve,{span:E,traceDurationMs:t.durationMs},E.spanId,!1))},void 0,!1),e[40]=r,e[41]=f,e[42]=t.durationMs,e[43]=t.spans,e[44]=t.traceId,e[45]=m):m=e[45];let v;return e[46]!==y||e[47]!==m||e[48]!==k?(v=(0,s.jsxDEV)("div",{className:"border-b border-border last:border-b-0","data-testid":k,children:[y,m]},void 0,!0),e[46]=y,e[47]=m,e[48]=k,e[49]=v):v=e[49],v},"TraceRow"),Ae=S(o=>{let e=(0,V.c)(43),{initialShardKey:r}=o,a=Q(),[t,f]=(0,K.useState)(r??""),[u,_]=(0,K.useState)(""),[k,T]=(0,K.useState)(be),M;e[0]!==t?(M=t.trim(),e[0]=t,e[1]=M):M=e[1];let h=se(M,400),x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x={},e[2]=x):x=e[2];let b;e[3]!==h?(b={live:!0,shardKey:h},e[3]=h,e[4]=b):b=e[4];let{data:n,error:l,errorSource:p,isLoading:I,liveError:i}=Z(ee.getTraces,x,b),w,d;e[5]!==n||e[6]!==h?(w=S(()=>{n!==void 0&&te(h)},"t4"),d=[n,h],e[5]=n,e[6]=h,e[7]=w,e[8]=d):(w=e[7],d=e[8]),(0,K.useEffect)(w,d);let N;if(e[9]!==n||e[10]!==l||e[11]!==p||e[12]!==k||e[13]!==I||e[14]!==i||e[15]!==u||e[16]!==t||e[17]!==a){let c=ge(n),g=n?.total??c.length,y=g>c.length,m=he(c,u),v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=S(L=>{_(L.target.value)},"t7"),e[19]=v):v=e[19];let E=v,P;e[20]===Symbol.for("react.memo_cache_sentinel")?(P=S(L=>{T(ie=>{let H=new Set(ie);return H.has(L)?H.delete(L):H.add(L),H})},"t8"),e[20]=P):P=e[20];let A=P,C=l===null&&m.length===0&&!I,$;e[21]!==t?($=(0,s.jsxDEV)(re,{onChange:f,testId:"tr-shard-input",value:t},void 0,!1),e[21]=t,e[22]=$):$=e[22];let R;e[23]!==a?(R=a("Search traces"),e[23]=a,e[24]=R):R=e[24];let B;e[25]!==a?(B=a("search trace or function"),e[25]=a,e[26]=B):B=e[26];let D;e[27]!==u||e[28]!==R||e[29]!==B?(D=(0,s.jsxDEV)(J,{"aria-label":R,className:"h-8 w-56","data-testid":"tr-search",onChange:E,placeholder:B,value:u},void 0,!1),e[27]=u,e[28]=R,e[29]=B,e[30]=D):D=e[30];let F;e[31]!==i?(F=(0,s.jsxDEV)(oe,{message:i,prefix:"tr"},void 0,!1),e[31]=i,e[32]=F):F=e[32];let j;e[33]!==D||e[34]!==F||e[35]!==$?(j=(0,s.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[$,D,F]},void 0,!0),e[33]=D,e[34]=F,e[35]=$,e[36]=j):j=e[36];let O;e[37]!==l||e[38]!==p?(O=l!==null&&(0,s.jsxDEV)(ae,{error:p,testId:"tr-error"},void 0,!1),e[37]=l,e[38]=p,e[39]=O):O=e[39];let W;e[40]!==C||e[41]!==a?(W=C&&(0,s.jsxDEV)(X,{description:a("Traces recorded with ctx.trace show up here as your app handles traffic. The span buffer resets when the shard hibernates."),icon:(0,s.jsxDEV)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,s.jsxDEV)("path",{d:"M4 6h10M7 12h13M10 18h7"},void 0,!1)},void 0,!1),testId:"tr-empty",title:a("No traces")},void 0,!1),e[40]=C,e[41]=a,e[42]=W):W=e[42],N=(0,s.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-traces-panel",children:[j,O,W,l===null&&y&&(0,s.jsxDEV)("p",{className:"text-xs text-muted-foreground","data-testid":"tr-truncated",children:a("Showing the {shown} most recent of {total} traces in the buffer.",{shown:c.length,total:g})},void 0,!1),l===null&&m.length>0&&(0,s.jsxDEV)("div",{"aria-label":a("Recent traces"),className:"overflow-hidden rounded-xl border border-border shadow-xs","data-testid":"tr-list",children:m.map(L=>(0,s.jsxDEV)(xe,{expanded:k.has(L.traceId),onToggle:A,trace:L},L.traceId,!1))},void 0,!1)]},void 0,!0),e[9]=n,e[10]=l,e[11]=p,e[12]=k,e[13]=I,e[14]=i,e[15]=u,e[16]=t,e[17]=a,e[18]=N}else N=e[18];return N},"TracesPanel");function be(){return new Set}S(be,"_temp");export{Ae as TracesPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as w}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as k}from"./chunk-4F72YCTU.js";import{a as C,b as $,c as A,d as v,e as n,f as c}from"./chunk-GTM65MVX.js";import{a as N,e as R}from"./chunk-Y572GMZE.js";import{b as y}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as S}from"./chunk-
|
|
1
|
+
import{a as w}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as k}from"./chunk-4F72YCTU.js";import{a as C,b as $,c as A,d as v,e as n,f as c}from"./chunk-GTM65MVX.js";import{a as N,e as R}from"./chunk-Y572GMZE.js";import{b as y}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as S}from"./chunk-MHGJUKCZ.js";import"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as T}from"./chunk-TAD43CG5.js";import{d as b}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as p,e as x,g as O,h as B}from"./chunk-RRCPZMC2.js";var I=x(O(),1);var t=x(B(),1);var D=p((e,r)=>({delete:e("Delete"),list:e("List"),read:e("Read"),write:e("Write")})[r],"operationLabel"),E={delete:2,list:3,read:0,write:1},_=p(e=>[...e].toSorted((r,a)=>r.bucket.localeCompare(a.bucket)||E[r.on]-E[a.on]||(r.prefix??"").localeCompare(a.prefix??"")),"sortRules"),Q=p(()=>{let e=(0,I.c)(14),r=b(),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={},e[0]=a):a=e[0];let{data:l,error:d,errorSource:i}=k(S.storageRules,a),h=l!==void 0,f;if(e[1]!==l||e[2]!==d||e[3]!==i||e[4]!==h||e[5]!==r){let g=_(Array.isArray(l?.rules)?l.rules:[]),m;e[7]!==d||e[8]!==i?(m=d!==null&&(0,t.jsxDEV)(w,{error:i,testId:"storage-rules-error"},void 0,!1),e[7]=d,e[8]=i,e[9]=m):m=e[9];let s;e[10]!==r?(s=r("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only."),e[10]=r,e[11]=s):s=e[11];let u;e[12]!==s?(u=(0,t.jsxDEV)("p",{className:"text-sm text-muted-foreground","data-testid":"storage-rules-note",children:s},void 0,!1),e[12]=s,e[13]=u):u=e[13],f=(0,t.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-storage-rules-panel",children:[m,u,h&&g.length===0?(0,t.jsxDEV)(T,{description:r("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),testId:"storage-rules-empty",title:r("No storage rules defined")},void 0,!1):(0,t.jsxDEV)(N,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(R,{className:"px-0",children:(0,t.jsxDEV)(C,{"data-testid":"storage-rules-table",children:[(0,t.jsxDEV)($,{children:(0,t.jsxDEV)(v,{children:[(0,t.jsxDEV)(n,{children:r("Bucket")},void 0,!1),(0,t.jsxDEV)(n,{children:r("Operation")},void 0,!1),(0,t.jsxDEV)(n,{children:r("Key prefix")},void 0,!1),(0,t.jsxDEV)(n,{children:r("Guarded by")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(A,{children:g.map(o=>(0,t.jsxDEV)(v,{"data-testid":`storage-rule-${o.bucket}-${o.on}-${o.prefix??""}`,children:[(0,t.jsxDEV)(c,{className:"font-mono text-xs",children:o.bucket},void 0,!1),(0,t.jsxDEV)(c,{children:(0,t.jsxDEV)(y,{variant:"secondary",children:D(r,o.on)},void 0,!1)},void 0,!1),(0,t.jsxDEV)(c,{className:"font-mono text-xs",children:o.prefix??(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:r("(whole bucket)")},void 0,!1)},void 0,!1),(0,t.jsxDEV)(c,{className:"font-mono text-xs text-muted-foreground",children:o.procedure},void 0,!1)]},`${o.bucket}:${o.on}:${o.prefix??""}:${o.procedure}`,!0))},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1)]},void 0,!0),e[1]=l,e[2]=d,e[3]=i,e[4]=h,e[5]=r,e[6]=f}else f=e[6];return f},"StorageRulesPanel");export{Q as StorageRulesPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V}from"./chunk-J6J54MBP.js";import{a as L}from"./chunk-2K47A3P6.js";import{a as W}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as _}from"./chunk-4F72YCTU.js";import{a as O,b as Q,c as U,d as K,e as R,f as D}from"./chunk-GTM65MVX.js";import{a as E}from"./chunk-Y572GMZE.js";import{a as j}from"./chunk-FDWXYXOM.js";import"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import"./chunk-O3NAGRTR.js";import{b as w}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as H}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-J6J54MBP.js";import{a as L}from"./chunk-2K47A3P6.js";import{a as W}from"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as _}from"./chunk-4F72YCTU.js";import{a as O,b as Q,c as U,d as K,e as R,f as D}from"./chunk-GTM65MVX.js";import{a as E}from"./chunk-Y572GMZE.js";import{a as j}from"./chunk-FDWXYXOM.js";import"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import"./chunk-O3NAGRTR.js";import{b as w}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as H}from"./chunk-MHGJUKCZ.js";import"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as B}from"./chunk-TAD43CG5.js";import{d as A}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as C,e as F,f as J,g as X,h as Y}from"./chunk-RRCPZMC2.js";var P=F(X(),1),G=F(J(),1);var t=F(Y(),1);var q=C(r=>`${r.toString()} ms`,"formatMs"),Z=C(r=>r.totalConnections===0&&r.shapePoke.passes===0&&r.whisper.passes===0,"isFanoutIdle"),$=C(r=>{let e=(0,P.c)(8),{label:o,testId:s,value:i}=r,l;e[0]!==o?(l=(0,t.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:o},void 0,!1),e[0]=o,e[1]=l):l=e[1];let d;e[2]!==s||e[3]!==i?(d=(0,t.jsxDEV)("span",{className:"truncate text-2xl font-semibold tabular-nums text-foreground","data-testid":s,children:i},void 0,!1),e[2]=s,e[3]=i,e[4]=d):d=e[4];let v;return e[5]!==l||e[6]!==d?(v=(0,t.jsxDEV)(E,{className:"gap-0 py-0",children:(0,t.jsxDEV)("div",{className:"flex flex-col gap-2.5 p-4",children:[l,d]},void 0,!0)},void 0,!1),e[5]=l,e[6]=d,e[7]=v):v=e[7],v},"StatCard"),z=C(r=>{let e=(0,P.c)(48),{counters:o,includeTiming:s,prefix:i,t:l,title:d}=r,v=`${i}-section`,h;e[0]!==d?(h=(0,t.jsxDEV)("h3",{className:"text-sm font-medium text-foreground",children:d},void 0,!1),e[0]=d,e[1]=h):h=e[1];let k=`${i}-stats`,a;e[2]!==l?(a=l("Passes"),e[2]=l,e[3]=a):a=e[3];let n=`${i}-passes`,g;e[4]!==o.passes||e[5]!==a||e[6]!==n?(g=(0,t.jsxDEV)($,{label:a,testId:n,value:o.passes},void 0,!1),e[4]=o.passes,e[5]=a,e[6]=n,e[7]=g):g=e[7];let N;e[8]!==l?(N=l("Sockets iterated"),e[8]=l,e[9]=N):N=e[9];let I=`${i}-iterated`,c;e[10]!==o.socketsIterated||e[11]!==N||e[12]!==I?(c=(0,t.jsxDEV)($,{label:N,testId:I,value:o.socketsIterated},void 0,!1),e[10]=o.socketsIterated,e[11]=N,e[12]=I,e[13]=c):c=e[13];let f;e[14]!==l?(f=l("Delivered"),e[14]=l,e[15]=f):f=e[15];let y=`${i}-delivered`,u;e[16]!==o.socketsDelivered||e[17]!==f||e[18]!==y?(u=(0,t.jsxDEV)($,{label:f,testId:y,value:o.socketsDelivered},void 0,!1),e[16]=o.socketsDelivered,e[17]=f,e[18]=y,e[19]=u):u=e[19];let m;e[20]!==l?(m=l("Peak width"),e[20]=l,e[21]=m):m=e[21];let b=`${i}-peak`,p;e[22]!==o.peakSocketsIterated||e[23]!==m||e[24]!==b?(p=(0,t.jsxDEV)($,{label:m,testId:b,value:o.peakSocketsIterated},void 0,!1),e[22]=o.peakSocketsIterated,e[23]=m,e[24]=b,e[25]=p):p=e[25];let x;e[26]!==o.totalMs||e[27]!==s||e[28]!==i||e[29]!==l?(x=s&&(0,t.jsxDEV)($,{label:l("Total time"),testId:`${i}-total-ms`,value:q(o.totalMs)},void 0,!1),e[26]=o.totalMs,e[27]=s,e[28]=i,e[29]=l,e[30]=x):x=e[30];let S;e[31]!==o.maxMs||e[32]!==s||e[33]!==i||e[34]!==l?(S=s&&(0,t.jsxDEV)($,{label:l("Max time"),testId:`${i}-max-ms`,value:q(o.maxMs)},void 0,!1),e[31]=o.maxMs,e[32]=s,e[33]=i,e[34]=l,e[35]=S):S=e[35];let T;e[36]!==u||e[37]!==p||e[38]!==x||e[39]!==S||e[40]!==k||e[41]!==g||e[42]!==c?(T=(0,t.jsxDEV)("dl",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3","data-testid":k,children:[g,c,u,p,x,S]},void 0,!0),e[36]=u,e[37]=p,e[38]=x,e[39]=S,e[40]=k,e[41]=g,e[42]=c,e[43]=T):T=e[43];let M;return e[44]!==v||e[45]!==T||e[46]!==h?(M=(0,t.jsxDEV)("section",{className:"flex flex-col gap-2","data-testid":v,children:[h,T]},void 0,!0),e[44]=v,e[45]=T,e[46]=h,e[47]=M):M=e[47],M},"PathCounters"),ue=C(r=>{let e=(0,P.c)(32),{initialShardKey:o}=r,s=A(),[i,l]=(0,G.useState)(o??""),d;e[0]!==i?(d=i.trim(),e[0]=i,e[1]=d):d=e[1];let v=L(d,400),h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];let k;e[3]!==v?(k={keepPreviousData:!0,shardKey:v},e[3]=v,e[4]=k):k=e[4];let{data:a,error:n,errorSource:g,refetch:N}=_(H.getFanoutMetrics,h,k);V(N,!0);let I;e[5]!==a?(I=a!==void 0&&Z(a),e[5]=a,e[6]=I):I=e[6];let c=I,f;e[7]!==i?(f=(0,t.jsxDEV)(j,{onChange:l,testId:"fanout-shard-input",value:i},void 0,!1),e[7]=i,e[8]=f):f=e[8];let y;e[9]!==a||e[10]!==s?(y=a!==void 0&&(0,t.jsxDEV)("div",{className:"ml-auto flex items-center gap-2 text-sm text-muted-foreground","data-testid":"fanout-count",children:[a.promoted&&(0,t.jsxDEV)(w,{"data-testid":"fanout-promoted",variant:a.relayCount>=a.maxRelays?"destructive":"default",children:a.relayCount>=a.maxRelays?s("auto-scaled: {relayCount}/{maxRelays} relays (at ceiling)",{maxRelays:a.maxRelays,relayCount:a.relayCount}):s("auto-scaled: {relayCount}/{maxRelays} relays",{maxRelays:a.maxRelays,relayCount:a.relayCount})},void 0,!1),(0,t.jsxDEV)(w,{variant:"secondary",children:s("{count} connections",{count:a.totalConnections})},void 0,!1),(0,t.jsxDEV)(w,{variant:"secondary",children:s("peak {count} subscribers",{count:a.peakSubscribers})},void 0,!1)]},void 0,!0),e[9]=a,e[10]=s,e[11]=y):y=e[11];let u;e[12]!==f||e[13]!==y?(u=(0,t.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[f,y]},void 0,!0),e[12]=f,e[13]=y,e[14]=u):u=e[14];let m;e[15]!==n||e[16]!==g?(m=n!==null&&(0,t.jsxDEV)(W,{error:g,testId:"fanout-error"},void 0,!1),e[15]=n,e[16]=g,e[17]=m):m=e[17];let b;e[18]!==n||e[19]!==c||e[20]!==s?(b=n===null&&c&&(0,t.jsxDEV)(B,{description:s("Realtime fan-out cost and per-topic subscriber counts for this shard."),icon:(0,t.jsxDEV)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,t.jsxDEV)("path",{d:"M4 12h4l3 7 4-14 3 7h2"},void 0,!1)},void 0,!1),testId:"fanout-empty",title:s("No fan-out activity yet.")},void 0,!1),e[18]=n,e[19]=c,e[20]=s,e[21]=b):b=e[21];let p;e[22]!==n||e[23]!==c||e[24]!==a||e[25]!==s?(p=n===null&&a!==void 0&&!c&&(0,t.jsxDEV)(t.Fragment,{children:[a.topics.length>0&&(0,t.jsxDEV)("section",{className:"flex flex-col gap-2","data-testid":"fanout-topics-section",children:[(0,t.jsxDEV)("h3",{className:"text-sm font-medium text-foreground",children:s("Hot topics")},void 0,!1),(0,t.jsxDEV)(E,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(O,{"data-testid":"fanout-topics-table",children:[(0,t.jsxDEV)(Q,{children:(0,t.jsxDEV)(K,{children:[(0,t.jsxDEV)(R,{children:s("Topic")},void 0,!1),(0,t.jsxDEV)(R,{children:s("Kind")},void 0,!1),(0,t.jsxDEV)(R,{className:"text-right",children:s("Subscribers")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(U,{children:a.topics.map(ee)},void 0,!1)]},void 0,!0)},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("section",{className:"flex flex-col gap-3","data-testid":"fanout-cost",children:[(0,t.jsxDEV)("h2",{className:"text-sm font-medium text-muted-foreground",children:s("Fan-out cost since this instance woke")},void 0,!1),(0,t.jsxDEV)(z,{counters:a.shapePoke,includeTiming:!0,prefix:"fanout-poke",t:s,title:s("Shape pokes")},void 0,!1),(0,t.jsxDEV)(z,{counters:a.whisper,includeTiming:!1,prefix:"fanout-whisper",t:s,title:s("Whisper broadcasts")},void 0,!1)]},void 0,!0)]},void 0,!0),e[22]=n,e[23]=c,e[24]=a,e[25]=s,e[26]=p):p=e[26];let x;return e[27]!==p||e[28]!==u||e[29]!==m||e[30]!==b?(x=(0,t.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"fanout-panel",children:[u,m,b,p]},void 0,!0),e[27]=p,e[28]=u,e[29]=m,e[30]=b,e[31]=x):x=e[31],x},"FanoutPanel");function ee(r){return(0,t.jsxDEV)(K,{"data-testid":"fanout-topic-row",children:[(0,t.jsxDEV)(D,{className:"font-mono text-xs",children:r.topic},void 0,!1),(0,t.jsxDEV)(D,{children:(0,t.jsxDEV)(w,{variant:"outline",children:r.kind},void 0,!1)},void 0,!1),(0,t.jsxDEV)(D,{className:"text-right font-medium tabular-nums",children:r.subscribers},void 0,!1)]},`${r.kind}:${r.topic}`,!0)}C(ee,"_temp");export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f}from"./chunk-HNIDN3RX.js";import"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as p}from"./chunk-4F72YCTU.js";import"./chunk-GTM65MVX.js";import"./chunk-Y572GMZE.js";import{a as R}from"./chunk-
|
|
1
|
+
import{b as f}from"./chunk-HNIDN3RX.js";import"./chunk-D73WYMRU.js";import"./chunk-XNJNSCLM.js";import{b as p}from"./chunk-4F72YCTU.js";import"./chunk-GTM65MVX.js";import"./chunk-Y572GMZE.js";import{a as R}from"./chunk-MHGJUKCZ.js";import"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{d as h}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as i,e as m,g as S,h as A}from"./chunk-RRCPZMC2.js";var g=m(S(),1);var k=m(A(),1);var _=i((e,s)=>({"admin-token-weak":e("Weak admin token"),"auth-secret-weak":e("Weak auth secret"),"cookies-insecure":e("Session cookies are not Secure"),"cors-wildcard-credentials":e("Wildcard CORS with credentials"),"csrf-disabled":e("CSRF/origin guard is off"),"dev-args-unredacted":e("Request log keeps un-redacted args"),"security-headers-disabled":e("Security headers are off"),"ws-gate-open":e("Live admin subscriptions are ungated")})[s.kind],"findingTitle"),E=i(e=>Array.isArray(e.findings)?e.findings:[],"toFindings"),w=i(e=>({"admin-token-weak":"LUNORA_ADMIN_TOKEN","auth-secret-weak":"AUTH_SECRET","cookies-insecure":"BETTER_AUTH_URL","cors-wildcard-credentials":"LUNORA_ALLOWED_ORIGINS","csrf-disabled":"LUNORA_SECURITY_CSRF","dev-args-unredacted":"request log","security-headers-disabled":"LUNORA_SECURITY_HEADERS","ws-gate-open":"LUNORA_WS_BEARER"})[e.kind],"findingEntity"),T=i((e,s)=>({"admin-token-weak":e("Your admin token is {length} characters \u2014 use at least {min} for a brute-force-resistant secret.",{length:s.detail?.length,min:s.detail?.min}),"auth-secret-weak":e("Your auth secret is {length} characters \u2014 use at least {min} (e.g. `openssl rand -hex 32`) to sign sessions safely.",{length:s.detail?.length,min:s.detail?.min}),"cookies-insecure":e("BETTER_AUTH_URL is a plaintext http:// origin, so session cookies cannot be Secure and ride in cleartext. Serve auth over https:// in production."),"cors-wildcard-credentials":e("LUNORA_ALLOWED_ORIGINS includes a wildcard while credentials are allowed \u2014 browsers reject this and it defeats the allowlist. Name explicit origins instead of *."),"csrf-disabled":e("LUNORA_SECURITY_CSRF is off, so cross-origin state-changing cookie requests are not blocked. Re-enable it in production to keep mutations un-forgeable."),"dev-args-unredacted":e("This worker reports a development environment, so the request log stores raw args and identity. Confirm it isn't a mislabeled production deploy."),"security-headers-disabled":e("LUNORA_SECURITY_HEADERS is off, so HSTS, CSP, nosniff, and frame-options are not applied. Re-enable the baseline headers in production."),"ws-gate-open":e("LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.")})[s.kind],"findingDetail"),v=i(()=>{let e=(0,g.c)(8),s=h(),r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];let{data:a,error:d,errorSource:c}=p(R.getSecurityAudit,r),o;if(e[1]!==a||e[2]!==s){let u=a===void 0?null:E(a);o=u===null?null:u.map(t=>({description:T(s,t),entity:w(t),issueType:_(s,t),key:t.kind,level:t.level})),e[1]=a,e[2]=s,e[3]=o}else o=e[3];let l=o,n;return e[4]!==d||e[5]!==c||e[6]!==l?(n=(0,k.jsxDEV)(f,{error:d,errorSource:c,rows:l,testId:"lunora-security-advisor"},void 0,!1),e[4]=d,e[5]=c,e[6]=l,e[7]=n):n=e[7],n},"SecurityAdvisorPanel");export{v as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-JHR3HKT5.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-OXHHSUXO.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-4F72YCTU.js";import"./chunk-Y572GMZE.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-EBTLTGG3.js";import{a as rS,e as hS}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,m as vS}from"./chunk-5XO36X4C.js";import{b as sS}from"./chunk-ZXLEXF4X.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
1
|
+
import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-ILGPO3PK.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-OXHHSUXO.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-4F72YCTU.js";import"./chunk-Y572GMZE.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-MHGJUKCZ.js";import{a as rS,e as hS}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,m as vS}from"./chunk-5XO36X4C.js";import{b as sS}from"./chunk-ZXLEXF4X.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
2
2
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
3
3
|
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
4
4
|
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}o(Sn,"formatOwnerStack");function it(e){if(Vd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vd=t&&t[1]||"",Ug=-1<n.stack.indexOf(`
|