sparkecoder 0.1.115 → 0.1.116
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/agent/index.js +42 -0
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +331 -102
- package/dist/cli.js.map +1 -1
- package/dist/index.js +293 -64
- package/dist/index.js.map +1 -1
- package/dist/server/index.js +293 -64
- package/dist/server/index.js.map +1 -1
- package/dist/skills/default/computer-use.md +7 -0
- package/dist/skills/default/recording.md +5 -0
- package/package.json +1 -1
- package/src/skills/default/computer-use.md +7 -0
- package/src/skills/default/recording.md +5 -0
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/web/.next/server/app/(main)/agents/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/settings/page.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.html +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_lucide-react_dist_esm_icons_7340c8b3._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__f3e6443f._.js +15 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_41927ef5._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_app_(main)_settings_page_tsx_eb320e07._.js +1 -1
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/web/.next/static/chunks/2c3c1d478808e4e4.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/3b0501ec3249235f.js +7 -0
- package/web/.next/standalone/web/.next/static/chunks/44c575e006ddb992.js +13 -0
- package/web/.next/standalone/web/.next/static/chunks/9a3afb48c245fb2a.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/b3bc7244f3477729.css +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/2c3c1d478808e4e4.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/3b0501ec3249235f.js +7 -0
- package/web/.next/standalone/web/.next/static/static/chunks/44c575e006ddb992.js +13 -0
- package/web/.next/standalone/web/.next/static/static/chunks/9a3afb48c245fb2a.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/b3bc7244f3477729.css +1 -0
- package/web/.next/standalone/web/src/app/(main)/settings/page.tsx +255 -3
- package/web/.next/static/chunks/2c3c1d478808e4e4.js +1 -0
- package/web/.next/static/chunks/3b0501ec3249235f.js +7 -0
- package/web/.next/static/chunks/44c575e006ddb992.js +13 -0
- package/web/.next/static/chunks/9a3afb48c245fb2a.js +1 -0
- package/web/.next/static/chunks/b3bc7244f3477729.css +1 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_lucide-react_dist_esm_icons_50c2f239._.js +0 -3
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__6097da17._.js +0 -15
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_3b9a2423._.js +0 -3
- package/web/.next/standalone/web/.next/static/chunks/60359bdd369c0c72.js +0 -1
- package/web/.next/standalone/web/.next/static/chunks/a189cacf6d83cf0b.js +0 -13
- package/web/.next/standalone/web/.next/static/chunks/bef6931fdd8428c8.js +0 -1
- package/web/.next/standalone/web/.next/static/chunks/c1f73b3fa4353c31.css +0 -1
- package/web/.next/standalone/web/.next/static/chunks/fbdcbd65f9a38f4b.js +0 -7
- package/web/.next/standalone/web/.next/static/static/chunks/60359bdd369c0c72.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/a189cacf6d83cf0b.js +0 -13
- package/web/.next/standalone/web/.next/static/static/chunks/bef6931fdd8428c8.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/c1f73b3fa4353c31.css +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/fbdcbd65f9a38f4b.js +0 -7
- package/web/.next/static/chunks/60359bdd369c0c72.js +0 -1
- package/web/.next/static/chunks/a189cacf6d83cf0b.js +0 -13
- package/web/.next/static/chunks/bef6931fdd8428c8.js +0 -1
- package/web/.next/static/chunks/c1f73b3fa4353c31.css +0 -1
- package/web/.next/static/chunks/fbdcbd65f9a38f4b.js +0 -7
- /package/web/.next/standalone/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_ssgManifest.js +0 -0
- /package/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_buildManifest.js +0 -0
- /package/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{pSGgtxBjN5_o0YHZgQzXm → 7tYFi20tEUZNGXmy2DJ1K}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,412490,e=>{"use strict";var s=e.i(414294),t=e.i(430878),a=e.i(461957),n=e.i(292511);let r=(0,n.default)("slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]),l=(0,n.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),i=(0,n.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),o=(0,n.default)("webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);var d=e.i(367887);let c=(0,n.default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var x=e.i(904781),m=e.i(996720),u=e.i(719583),h=e.i(991234),p=e.i(775377),j=e.i(266514);let g=(0,n.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var f=e.i(846193),b=e.i(978964),b=b,v=e.i(707387);let N=(0,n.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),y=(0,n.default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);var k=e.i(114507),k=k,w=e.i(263845),w=w,S=e.i(501253),S=S,C=e.i(482306),z=e.i(210162),z=z,L=e.i(666904),T=e.i(77982),M=e.i(634066),A=e.i(739963),B=e.i(555552);let E=e=>`${(0,A.getApiUrl)()}${e}`;async function O(e,s){return(await fetch(E(e),{...s,headers:{"Content-Type":"application/json",...s?.headers||{}}})).json()}let P=[{id:"general",label:"General",icon:j.Bot},{id:"integrations",label:"Integrations",icon:r},{id:"mcp",label:"MCP",icon:y},{id:"schedules",label:"Schedules",icon:i},{id:"webhooks",label:"Webhooks",icon:o},{id:"audit",label:"Audit log",icon:k.default},{id:"models",label:"Models",icon:g},{id:"apikeys",label:"API Keys",icon:f.Key}];function D(){let[e,a]=(0,t.useState)("general"),[n,r]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{let s,t=await fetch(E("/health"));if(!t.ok)return;let a=await t.json();try{let e=a&&a.config?.remoteServer?.url;if(e){let t=await fetch(`${e.replace(/\/$/,"")}/health`);t.ok&&(s=(await t.json()).version)}}catch{}e||r({version:a?.version,remoteVersion:s})}catch{}})(),()=>{e=!0}},[]),(0,s.jsxs)("div",{className:"h-full flex bg-background",children:[(0,s.jsxs)("nav",{className:"w-56 shrink-0 border-r border-border/60 p-3 overflow-y-auto",children:[(0,s.jsxs)("div",{className:"px-2 py-2 mb-2",children:[(0,s.jsx)("h1",{className:"text-base font-semibold",children:"Settings"}),(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:"Configure your orchestrator and channels."}),n?.version&&(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground/70 mt-1 font-mono",children:["sparkecoder v",n.version,n.remoteVersion&&(0,s.jsxs)(s.Fragment,{children:[" · remote v",n.remoteVersion]})]})]}),(0,s.jsx)("ul",{className:"space-y-0.5",children:P.map(t=>{let n=t.icon,r=e===t.id;return(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>a(t.id),className:(0,B.cn)("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-sm transition-colors",r?"bg-accent text-foreground":"hover:bg-accent/60 text-foreground/80"),children:[(0,s.jsx)(n,{className:(0,B.cn)("size-4 shrink-0",r?"text-primary":"text-muted-foreground")}),(0,s.jsx)("span",{children:t.label})]})},t.id)})})]}),(0,s.jsx)("div",{className:"flex-1 min-w-0 overflow-y-auto",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto p-6",children:["general"===e&&(0,s.jsx)(_,{}),"integrations"===e&&(0,s.jsx)(U,{}),"mcp"===e&&(0,s.jsx)(es,{}),"schedules"===e&&(0,s.jsx)(q,{}),"webhooks"===e&&(0,s.jsx)(G,{}),"audit"===e&&(0,s.jsx)(el,{}),"models"===e&&(0,s.jsx)(X,{}),"apikeys"===e&&(0,s.jsx)(Q,{})]})})]})}function I({title:e,description:t}){return(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:e}),t&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t})]})}function _(){let[e,n]=(0,t.useState)(null),[r,l]=(0,t.useState)(""),[i,o]=(0,t.useState)(""),[d,c]=(0,t.useState)(!1),[x,m]=(0,t.useState)(!1),u=(0,t.useCallback)(async()=>{let e=await O("/api/orchestrator");n(e),l(e.name||""),o(e.personality||"")},[]);(0,t.useEffect)(()=>{u()},[u]);let h=async()=>{c(!0),m(!1);try{await O("/api/orchestrator",{method:"PATCH",body:JSON.stringify({name:r||void 0,personality:i})}),m(!0),setTimeout(()=>m(!1),1500)}finally{c(!1)}};if(!e)return(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(a.Loader2,{className:"size-5 animate-spin text-muted-foreground"})});let p=r!==e.name||i!==(e.personality||"");return(0,s.jsxs)("section",{children:[(0,s.jsx)(I,{title:"Orchestrator",description:"Your supervisor agent's name and personality. The personality is appended to its system prompt."}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-sm font-medium",children:"Agent name"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mb-1.5",children:"Shown in the sidebar and chat header."}),(0,s.jsx)(T.Input,{value:r,onChange:e=>l(e.target.value),placeholder:"Orchestrator",className:"max-w-md"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-sm font-medium",children:"Personality / persona"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mb-1.5",children:["Optional. Free-form instructions appended to your orchestrator's system prompt every turn. Examples: ",(0,s.jsx)("em",{children:'"speak in haiku"'}),", ",(0,s.jsx)("em",{children:'"be terse and professional"'}),", ",(0,s.jsx)("em",{children:'"respond in Korean"'}),",",(0,s.jsx)("em",{children:'"you are a senior engineer who values shipping over perfection"'}),"."]}),(0,s.jsx)("textarea",{value:i,onChange:e=>o(e.target.value),rows:6,placeholder:"(blank = default tone)",className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/40"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 pt-1",children:[(0,s.jsxs)(L.Button,{onClick:h,disabled:!p||d,children:[d?(0,s.jsx)(a.Loader2,{className:"size-4 animate-spin mr-2"}):null,"Save"]}),x&&(0,s.jsx)("span",{className:"text-xs text-emerald-500",children:"Saved ✓"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border/40 bg-muted/30 p-3 text-xs space-y-1",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Session id:"})," ",(0,s.jsx)("code",{children:e.id})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Model:"})," ",(0,s.jsx)("code",{children:e.model})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Working directory:"})," ",(0,s.jsx)("code",{className:"break-all",children:e.workingDirectory})]})]})]})]})}function U(){let[e,n]=(0,t.useState)(null),r=(0,t.useCallback)(async()=>{n(await O("/api/integrations"))},[]);return((0,t.useEffect)(()=>{r()},[r]),e)?(0,s.jsxs)("section",{className:"space-y-4",children:[(0,s.jsx)(I,{title:"Integrations",description:"External channels the orchestrator can send and receive messages on."}),(0,s.jsx)($,{data:e,onChange:r}),(0,s.jsx)(V,{data:e})]}):(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(a.Loader2,{className:"size-5 animate-spin text-muted-foreground"})})}function $({data:e,onChange:n}){var l;let i,[o,d]=(0,t.useState)(""),[c,x]=(0,t.useState)(""),[m,u]=(0,t.useState)(!1),[j,g]=(0,t.useState)(!1),[f,v]=(0,t.useState)(""),[y,k]=(0,t.useState)(null),[w,S]=(0,t.useState)(!1),C=async()=>{g(!0);try{await O("/api/integrations/slack",{method:"POST",body:JSON.stringify({botToken:o||void 0,signingSecret:c||void 0})}),d(""),x(""),n()}finally{g(!1)}},z=async()=>{confirm("Remove Slack credentials?")&&(await O("/api/integrations/slack",{method:"DELETE"}),n())},A=async()=>{if(!f)return;k("Sending…");let e=await O("/api/integrations/slack/test",{method:"POST",body:JSON.stringify({channel:f})});k(e.ok?"Sent.":`Failed: ${e.error}`)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(en,{children:[(0,s.jsx)(er,{icon:(0,s.jsx)(r,{className:"size-4 text-[#4A154B] dark:text-pink-300"}),title:"Slack",status:e.slack.configured?"Configured":"Not configured",statusTone:e.slack.configured?"text-emerald-500":"text-muted-foreground"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:"Lets the orchestrator receive @mentions and DMs in Slack and reply in-thread via the messenger tool."}),(0,s.jsx)("div",{className:"flex gap-2 mb-3",children:(0,s.jsxs)(L.Button,{size:"sm",variant:"outline",onClick:()=>S(!0),children:[(0,s.jsx)(b.default,{className:"size-3.5 mr-1.5"}),"Setup instructions"]})}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Bot token (xoxb-...)"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(T.Input,{type:m?"text":"password",value:o,onChange:e=>d(e.target.value),placeholder:e.slack.botTokenSet?"(set)":"xoxb-...",className:"text-xs"}),(0,s.jsx)(L.Button,{variant:"outline",size:"icon",onClick:()=>u(e=>!e),children:m?(0,s.jsx)(p.EyeOff,{className:"size-3.5"}):(0,s.jsx)(h.Eye,{className:"size-3.5"})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Signing secret"}),(0,s.jsx)(T.Input,{type:"password",value:c,onChange:e=>x(e.target.value),placeholder:e.slack.signingSecretSet?"(set)":"...",className:"text-xs"})]}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(L.Button,{size:"sm",onClick:C,disabled:j||!o&&!c,children:j?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Save"}),e.slack.configured&&(0,s.jsx)(L.Button,{size:"sm",variant:"outline",onClick:z,children:"Disconnect"})]})]}),(0,s.jsxs)("div",{className:"mt-3 rounded border border-border/40 bg-background/50 p-2 text-xs space-y-1",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Events URL"})," (paste into Slack → Event Subscriptions):"]}),(0,s.jsx)("code",{className:"block px-2 py-1 rounded bg-muted text-[11px] break-all",children:e.slack.eventsUrl}),(0,s.jsxs)("p",{className:"text-muted-foreground",children:["Subscribe to bot events: ",(0,s.jsx)("code",{children:"app_mention"}),", ",(0,s.jsx)("code",{children:"message.im"}),"."]})]}),e.slack.configured&&(0,s.jsxs)("div",{className:"mt-3 flex gap-2 items-end",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Test post (channel id or #channel)"}),(0,s.jsx)(T.Input,{value:f,onChange:e=>v(e.target.value),placeholder:"C0123 or #general",className:"text-xs"})]}),(0,s.jsx)(L.Button,{size:"sm",variant:"outline",onClick:A,disabled:!f,children:"Send test"}),y&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,s.jsxs)(en,{children:[(0,s.jsx)(er,{icon:(0,s.jsx)(N,{className:"size-4 text-amber-500"}),title:"Slack access control",status:(l=e.slack,i=[],l.allowedUsers.length>0&&i.push(`${l.allowedUsers.length} user(s)`),l.allowedChannels.length>0&&i.push(`${l.allowedChannels.length} channel(s)`),l.allowDmsFromAnyone||i.push("DMs locked"),0===i.length?"Open to anyone":i.join(" · ")),statusTone:"text-muted-foreground"}),(0,s.jsx)(R,{data:e,onChange:n})]}),w&&(0,s.jsx)(F,{eventsUrl:e.slack.eventsUrl,agentName:e.slack.defaultOrchestratorName||"orchestrator",onClose:()=>S(!1)})]})}function R({data:e,onChange:n}){let[r,l]=(0,t.useState)(e.slack.allowedUsers.join(", ")),[i,o]=(0,t.useState)(e.slack.allowedChannels.join(", ")),[d,c]=(0,t.useState)(e.slack.allowDmsFromAnyone),[x,m]=(0,t.useState)(e.slack.deniedReplyEnabled),[u,h]=(0,t.useState)(e.slack.deniedReplyTemplate),[p,j]=(0,t.useState)(!1),[g,f]=(0,t.useState)(!1),b=r.trim()!==e.slack.allowedUsers.join(", ").trim()||i.trim()!==e.slack.allowedChannels.join(", ").trim()||d!==e.slack.allowDmsFromAnyone||x!==e.slack.deniedReplyEnabled||u!==e.slack.deniedReplyTemplate,v=async()=>{j(!0),f(!1);try{let e=e=>e.split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);await O("/api/integrations/slack",{method:"POST",body:JSON.stringify({allowedUsers:e(r),allowedChannels:e(i),allowDmsFromAnyone:d,deniedReplyEnabled:x,deniedReplyTemplate:u})}),n(),f(!0),setTimeout(()=>f(!1),1500)}finally{j(!1)}};return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Empty lists = no allowlist (accept anyone Slack delivers an event for). When a list is set, only matching users / channels can talk to the orchestrator."}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Allowed users (Slack user IDs)"}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mb-1",children:["Comma or space separated. e.g. ",(0,s.jsx)("code",{children:"U01ABCD"}),", ",(0,s.jsx)("code",{children:"U09XYZ"}),". Leave blank to allow anyone."]}),(0,s.jsx)(T.Input,{value:r,onChange:e=>l(e.target.value),placeholder:"U01..., U02...",className:"text-xs font-mono"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Allowed channels (Slack channel IDs)"}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mb-1",children:["Channel IDs only (not ",(0,s.jsx)("code",{children:"#name"}),"). e.g. ",(0,s.jsx)("code",{children:"C012345"}),". Affects @mentions; DMs use the toggle below."]}),(0,s.jsx)(T.Input,{value:i,onChange:e=>o(e.target.value),placeholder:"C012345, C098765",className:"text-xs font-mono"})]}),(0,s.jsxs)("label",{className:"flex items-start gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:d,onChange:e=>c(e.target.checked),className:"mt-1"}),(0,s.jsxs)("div",{className:"text-xs",children:[(0,s.jsx)("span",{className:"font-medium",children:"Allow DMs from anyone"}),(0,s.jsx)("p",{className:"text-muted-foreground",children:"On: anyone who DMs your bot can talk to it. Off: only users in the allowlist above can DM."})]})]}),(0,s.jsxs)("div",{className:"border-t border-border/40 pt-3",children:[(0,s.jsxs)("label",{className:"flex items-start gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:x,onChange:e=>m(e.target.checked),className:"mt-1"}),(0,s.jsxs)("div",{className:"text-xs",children:[(0,s.jsx)("span",{className:"font-medium",children:"Auto-reply to denied users"}),(0,s.jsx)("p",{className:"text-muted-foreground",children:"When someone is blocked by the rules above, post a canned reply (no AI) so they know why nothing happened. Posted in-thread for @mentions; in the DM for DMs."})]})]}),(0,s.jsxs)("div",{className:"mt-2 pl-6",children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Reply template"}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mb-1",children:["Placeholders: ",(0,s.jsx)("code",{className:"px-1 rounded bg-muted",children:"{user}"})," → mentions the requester, ",(0,s.jsx)("code",{className:"px-1 rounded bg-muted",children:"{channel}"})," → mentions the channel."]}),(0,s.jsx)("textarea",{value:u,onChange:e=>h(e.target.value),rows:3,disabled:!x,className:"w-full rounded-md border border-input bg-background px-2 py-1.5 text-xs disabled:opacity-50"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,s.jsx)(L.Button,{size:"sm",onClick:v,disabled:!b||p,children:p?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Save"}),g&&(0,s.jsx)("span",{className:"text-xs text-emerald-500",children:"Saved ✓"})]})]})}function F({eventsUrl:e,agentName:a,onClose:n}){var l;let i,o,[d,c]=(0,t.useState)(null),x=(l=e,JSON.stringify({display_information:{name:o=(i=(a||"orchestrator").trim()||"orchestrator").slice(0,35),description:`${o} — your orchestrator agent. Spawns worker agents, posts updates, answers questions.`,background_color:"#1f1f24"},features:{bot_user:{display_name:i.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"orchestrator",always_online:!0},app_home:{home_tab_enabled:!1,messages_tab_enabled:!0,messages_tab_read_only_enabled:!1}},oauth_config:{scopes:{bot:["app_mentions:read","channels:history","chat:write","groups:history","im:history","im:read","im:write","users:read"]}},settings:{event_subscriptions:{request_url:l,bot_events:["app_mention","message.im","message.channels","message.groups"]},interactivity:{is_enabled:!1},org_deploy_enabled:!1,socket_mode_enabled:!1,token_rotation_enabled:!1}},null,2)),m=async(e,s)=>{await navigator.clipboard.writeText(s),c(e),setTimeout(()=>c(null),1500)};return(0,s.jsx)("div",{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-center justify-center p-4",onClick:n,children:(0,s.jsxs)("div",{className:"bg-card rounded-lg border border-border max-w-2xl w-full max-h-[85vh] overflow-y-auto shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border/60 sticky top-0 bg-card",children:[(0,s.jsxs)("h2",{className:"text-base font-semibold flex items-center gap-2",children:[(0,s.jsx)(r,{className:"size-4 text-[#4A154B] dark:text-pink-300"}),"Slack setup"]}),(0,s.jsx)(L.Button,{size:"icon",variant:"ghost",onClick:n,children:(0,s.jsx)(v.X,{className:"size-4"})})]}),(0,s.jsxs)("div",{className:"p-5 space-y-5 text-sm",children:[(0,s.jsxs)(J,{n:1,title:"Create a Slack app from manifest",children:[(0,s.jsxs)("p",{children:["Go to ",(0,s.jsx)("a",{href:"https://api.slack.com/apps?new_app=1",target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"api.slack.com/apps"}),", click ",(0,s.jsx)("strong",{children:"Create New App"})," → ",(0,s.jsx)("strong",{children:"From a manifest"}),", pick your workspace, paste the YAML below, then create."]}),(0,s.jsx)(H,{label:"Slack manifest",value:x,onCopy:()=>m("manifest",x),copied:"manifest"===d})]}),(0,s.jsxs)(J,{n:2,title:"Grab credentials",children:[(0,s.jsxs)("p",{children:["In your new app's ",(0,s.jsx)("strong",{children:"Basic Information"})," page, copy the ",(0,s.jsx)("strong",{children:"Signing Secret"}),". Then under ",(0,s.jsx)("strong",{children:"OAuth & Permissions"}),", install the app to your workspace and copy the ",(0,s.jsx)("strong",{children:"Bot User OAuth Token"})," (starts with ",(0,s.jsx)("code",{children:"xoxb-"}),")."]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Paste both into the Slack card above, then click Save."})]}),(0,s.jsxs)(J,{n:3,title:"Verify the Events URL",children:[(0,s.jsxs)("p",{children:["Slack will challenge the URL automatically when you create the app from the manifest (it's pre-filled with your URL below). If it shows ",(0,s.jsx)("strong",{children:"Verified"})," you're done."]}),(0,s.jsx)(H,{label:"Events URL (already in the manifest)",value:e,onCopy:()=>m("eventsUrl",e),copied:"eventsUrl"===d,mono:!0}),(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"If verification fails, your sparkecoder isn't reachable from the public internet. Set up a cloudflared tunnel — see the Cloudflared card."})]}),(0,s.jsx)(J,{n:4,title:"Invite the bot to channels",children:(0,s.jsxs)("p",{children:["In Slack: ",(0,s.jsx)("code",{children:"/invite @your-bot-name"})," in any channel you want it to respond in. (DMs work without an invite.)"]})}),(0,s.jsxs)(J,{n:5,title:"Lock it down (optional but recommended)",children:[(0,s.jsxs)("p",{children:["By default ",(0,s.jsx)("strong",{children:"anyone"})," in your workspace can DM the bot or mention it in any channel it's in. Use the ",(0,s.jsx)("strong",{children:"Slack access control"})," section to limit access to specific Slack user IDs and channel IDs."]}),(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Find a user ID: click their name in Slack → ⋮ → Copy member ID. Find a channel ID: click the channel name → About → bottom of the panel."})]})]})]})})}function J({n:e,title:t,children:a}){return(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("h3",{className:"font-medium flex items-center gap-2",children:[(0,s.jsx)("span",{className:"inline-flex items-center justify-center size-5 rounded-full bg-primary/15 text-primary text-[11px] font-semibold",children:e}),t]}),(0,s.jsx)("div",{className:"pl-7 space-y-2 text-sm text-foreground/90",children:a})]})}function H({label:e,value:t,onCopy:a,copied:n,mono:r}){return(0,s.jsxs)("div",{className:"rounded border border-border/60 bg-background/60 overflow-hidden",children:[(0,s.jsxs)("div",{className:"px-3 py-1.5 flex items-center justify-between border-b border-border/40 bg-muted/40",children:[(0,s.jsx)("span",{className:"text-[11px] text-muted-foreground",children:e}),(0,s.jsxs)(L.Button,{size:"sm",variant:"ghost",onClick:a,className:"h-6 text-[11px]",children:[n?(0,s.jsx)(u.Check,{className:"size-3 mr-1"}):(0,s.jsx)(d.Copy,{className:"size-3 mr-1"}),n?"Copied":"Copy"]})]}),(0,s.jsx)("pre",{className:(0,B.cn)("px-3 py-2 text-[11px] overflow-x-auto whitespace-pre-wrap break-all",r&&"font-mono"),children:t})]})}function V({data:e}){return(0,s.jsxs)(en,{children:[(0,s.jsx)(er,{icon:(0,s.jsx)(l,{className:"size-4 text-orange-500"}),title:"Cloudflared tunnel",status:e.cloudflared.publicBaseUrl?"Hostname set":"Local-only",statusTone:e.cloudflared.publicBaseUrl?"text-emerald-500":"text-muted-foreground"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mb-2",children:["Required to receive Slack events and webhook hits from the public internet. Run"," ",(0,s.jsx)("code",{className:"px-1 rounded bg-muted text-[11px]",children:"sparkecoder cloudflared-setup"})," for a copy-paste recipe."]}),e.cloudflared.publicBaseUrl&&(0,s.jsxs)("div",{className:"text-xs",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Public base: "}),(0,s.jsx)("code",{className:"px-1 rounded bg-muted",children:e.cloudflared.publicBaseUrl})]}),e.cfAccess.enabled&&(0,s.jsxs)("div",{className:"mt-2 text-xs",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"CF Access: "}),(0,s.jsx)("span",{className:"text-emerald-500",children:"enabled"}),e.cfAccess.allowedEmails.length>0&&(0,s.jsxs)("span",{className:"text-muted-foreground",children:[" · ",e.cfAccess.allowedEmails.length," allowed email(s)"]})]})]})}function q(){let[e,a]=(0,t.useState)([]),[n,r]=(0,t.useState)(!1),l=(0,t.useCallback)(async()=>{a((await O("/api/schedules")).schedules||[])},[]);return(0,t.useEffect)(()=>{l()},[l]),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)(I,{title:"Schedules",description:"Recurring prompts that wake the orchestrator on a cron."}),(0,s.jsxs)(L.Button,{size:"sm",variant:"outline",onClick:()=>r(e=>!e),children:[(0,s.jsx)(m.Plus,{className:"size-3.5 mr-1"}),"New"]})]}),n&&(0,s.jsx)(K,{onCancel:()=>r(!1),onSaved:()=>{r(!1),l()}}),0===e.length?(0,s.jsx)("p",{className:"text-xs text-muted-foreground italic px-1",children:"No schedules yet."}):(0,s.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,s.jsx)(W,{row:e,onChange:l},e.id))})]})}function K({initial:e,onCancel:n,onSaved:r}){let[l,i]=(0,t.useState)(e?.name||""),[o,d]=(0,t.useState)(e?.cron||"0 9 * * 1-5"),[c,x]=(0,t.useState)(e?.prompt||""),[m,u]=(0,t.useState)(e?.replyChannel||""),[h,p]=(0,t.useState)(!1),j=async()=>{if(l&&o&&c){p(!0);try{e?.id?await O(`/api/schedules/${e.id}`,{method:"PATCH",body:JSON.stringify({name:l,cron:o,prompt:c,replyChannel:m||void 0})}):await O("/api/schedules",{method:"POST",body:JSON.stringify({name:l,cron:o,prompt:c,replyChannel:m||void 0})}),r()}finally{p(!1)}}};return(0,s.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/40 p-3 mb-2 space-y-2",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Name"}),(0,s.jsx)(T.Input,{value:l,onChange:e=>i(e.target.value),placeholder:"standup-9am",className:"text-xs"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Cron (5 fields)"}),(0,s.jsx)(T.Input,{value:o,onChange:e=>d(e.target.value),placeholder:"0 9 * * 1-5",className:"text-xs font-mono"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Prompt"}),(0,s.jsx)(T.Input,{value:c,onChange:e=>x(e.target.value),placeholder:"Summarize yesterday's git activity",className:"text-xs"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Default reply channel (optional)"}),(0,s.jsx)(T.Input,{value:m,onChange:e=>u(e.target.value),placeholder:"slack:#standup",className:"text-xs"})]}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(L.Button,{size:"sm",onClick:j,disabled:h||!l||!o||!c,children:h?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Save"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:n,children:"Cancel"})]})]})}function W({row:e,onChange:t}){let a=async()=>{await O(`/api/schedules/${e.id}`,{method:"PATCH",body:JSON.stringify({enabled:!e.enabled})}),t()},n=async()=>{confirm(`Delete schedule "${e.name}"?`)&&(await O(`/api/schedules/${e.id}`,{method:"DELETE"}),t())};return(0,s.jsxs)("div",{className:"rounded-md border border-border/60 bg-background/50 p-3 flex items-start gap-3",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.name}),!e.enabled&&(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:"paused"})]}),(0,s.jsx)("code",{className:"text-[11px] text-muted-foreground font-mono",children:e.cron}),(0,s.jsx)("p",{className:"text-xs mt-1 line-clamp-2 text-foreground/80",children:e.prompt}),e.replyChannel&&(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:["replyChannel: ",e.replyChannel]}),e.lastFiredAt&&(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:["last fired ",new Date(e.lastFiredAt).toLocaleString()]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(L.Button,{size:"sm",variant:"outline",onClick:a,children:e.enabled?"Pause":"Resume"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:n,className:"text-rose-500 hover:text-rose-600",children:(0,s.jsx)(x.Trash2,{className:"size-3.5"})})]})]})}function G(){let[e,a]=(0,t.useState)([]),[n,r]=(0,t.useState)(!1),l=(0,t.useCallback)(async()=>{a((await O("/api/webhooks")).webhooks||[])},[]);return(0,t.useEffect)(()=>{l()},[l]),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)(I,{title:"Webhooks",description:"Custom token-protected URLs. POST any JSON to ping the orchestrator."}),(0,s.jsxs)(L.Button,{size:"sm",variant:"outline",onClick:()=>r(e=>!e),children:[(0,s.jsx)(m.Plus,{className:"size-3.5 mr-1"}),"New"]})]}),n&&(0,s.jsx)(Y,{onCancel:()=>r(!1),onSaved:()=>{r(!1),l()}}),0===e.length?(0,s.jsx)("p",{className:"text-xs text-muted-foreground italic px-1",children:"No webhooks yet."}):(0,s.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,s.jsx)(Z,{row:e,onChange:l},e.id))})]})}function Y({onCancel:e,onSaved:n}){let[r,l]=(0,t.useState)(""),[i,o]=(0,t.useState)("now"),[d,c]=(0,t.useState)(""),[x,m]=(0,t.useState)(!1),u=async()=>{if(r){m(!0);try{await O("/api/webhooks",{method:"POST",body:JSON.stringify({name:r,wake:i,template:d||void 0})}),n()}finally{m(!1)}}};return(0,s.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/40 p-3 mb-2 space-y-2",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Name"}),(0,s.jsx)(T.Input,{value:r,onChange:e=>l(e.target.value),placeholder:"github-prs",className:"text-xs"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Wake"}),(0,s.jsxs)("select",{value:i,onChange:e=>o(e.target.value),className:"w-full text-xs h-9 rounded-md border border-input bg-background px-2",children:[(0,s.jsx)("option",{value:"now",children:"now — ping orchestrator immediately"}),(0,s.jsx)("option",{value:"next",children:"next — add as context, fire later"})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Template (optional)"}),(0,s.jsx)(T.Input,{value:d,onChange:e=>c(e.target.value),placeholder:"PR {{pull_request.title}} by {{sender.login}}",className:"text-xs font-mono"})]}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(L.Button,{size:"sm",onClick:u,disabled:x||!r,children:x?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Create"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:e,children:"Cancel"})]})]})}function Z({row:e,onChange:a}){let[n,r]=(0,t.useState)(!1),l=async()=>{await navigator.clipboard.writeText(e.url),r(!0),setTimeout(()=>r(!1),1500)},i=async()=>{confirm("Rotate the token?")&&(await O(`/api/webhooks/${e.id}`,{method:"PATCH",body:JSON.stringify({rotateToken:!0})}),a())},o=async()=>{confirm(`Delete webhook "${e.name}"?`)&&(await O(`/api/webhooks/${e.id}`,{method:"DELETE"}),a())};return(0,s.jsxs)("div",{className:"rounded-md border border-border/60 bg-background/50 p-3 space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.name}),(0,s.jsxs)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:["wake=",e.wake]}),(0,s.jsxs)("span",{className:"ml-auto text-[11px] text-muted-foreground",children:[e.hitCount," hit",1===e.hitCount?"":"s"]})]}),(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)("code",{className:"flex-1 text-[11px] px-2 py-1 rounded bg-muted break-all",children:e.url}),(0,s.jsx)(L.Button,{size:"icon",variant:"outline",onClick:l,children:n?(0,s.jsx)(u.Check,{className:"size-3.5"}):(0,s.jsx)(d.Copy,{className:"size-3.5"})}),(0,s.jsx)(L.Button,{size:"icon",variant:"outline",onClick:i,title:"Rotate token",children:(0,s.jsx)(c,{className:"size-3.5"})}),(0,s.jsx)(L.Button,{size:"icon",variant:"ghost",onClick:o,className:"text-rose-500 hover:text-rose-600",children:(0,s.jsx)(x.Trash2,{className:"size-3.5"})})]}),e.template&&(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground font-mono",children:["template: ",e.template]}),e.lastHitAt&&(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:["last hit ",new Date(e.lastHitAt).toLocaleString()]})]})}function X(){let[e,n]=(0,t.useState)(null);if((0,t.useEffect)(()=>{(async()=>{n(await (0,A.getConfig)())})()},[]),!e)return(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(a.Loader2,{className:"size-5 animate-spin text-muted-foreground"})});let r=e.availableModels.find(s=>s.id===e.defaultModel);return(0,s.jsxs)("section",{children:[(0,s.jsx)(I,{title:"Models",description:"Default model used for new sessions (orchestrator + workers). You can override per-session from the chat header."}),(0,s.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/40 p-3 max-w-lg",children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Current default"}),(0,s.jsxs)("p",{className:"text-sm mt-1",children:[(0,s.jsx)("strong",{children:r?.name||e.defaultModel}),r?.provider&&(0,s.jsxs)("span",{className:"text-muted-foreground",children:[" — ",r.provider]})]}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-2",children:["To change the default, set ",(0,s.jsx)("code",{className:"px-1 rounded bg-muted",children:"defaultModel"})," in your"," ",(0,s.jsx)("code",{className:"px-1 rounded bg-muted",children:"sparkecoder.config.json"})," and restart the server."]})]}),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)(M.Label,{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Available models"}),(0,s.jsx)("div",{className:"mt-2 rounded-lg border border-border/60 divide-y divide-border/40",children:e.availableModels.map(t=>(0,s.jsxs)("div",{className:(0,B.cn)("flex items-center justify-between px-3 py-2 text-sm",t.id===e.defaultModel&&"bg-primary/5"),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-medium",children:t.name}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[" — ",t.provider]}),t.id===e.defaultModel&&(0,s.jsx)("span",{className:"ml-2 text-[10px] uppercase tracking-wide text-primary",children:"default"})]}),(0,s.jsx)("code",{className:"text-[10px] text-muted-foreground font-mono",children:t.id})]},t.id))})]})]})}function Q(){let[e,a]=(0,t.useState)([]),n=(0,t.useCallback)(async()=>{a((await O("/health/api-keys")).providers||[])},[]);return(0,t.useEffect)(()=>{n()},[n]),(0,s.jsxs)("section",{children:[(0,s.jsx)(I,{title:"API Keys",description:"Provider credentials used for AI inference (Vercel AI Gateway etc.). Keys are stored locally."}),(0,s.jsxs)("div",{className:"space-y-2",children:[e.map(e=>(0,s.jsx)(ee,{keyStatus:e,onChange:n},e.provider)),0===e.length&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground italic px-1",children:"No providers configured."})]})]})}function ee({keyStatus:e,onChange:n}){let[r,l]=(0,t.useState)(!1),[i,o]=(0,t.useState)(""),[d,c]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),j=async()=>{if(i.trim()){u(!0);try{await O("/health/api-keys",{method:"POST",body:JSON.stringify({provider:e.provider,apiKey:i.trim()})}),o(""),l(!1),n()}finally{u(!1)}}},g=async()=>{confirm(`Remove ${e.provider} API key?`)&&(await fetch(E(`/health/api-keys/${e.provider}`),{method:"DELETE"}),n())};return(0,s.jsxs)("div",{className:"rounded-md border border-border/60 bg-background/50 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium capitalize",children:e.provider}),e.configured&&(0,s.jsx)("span",{className:(0,B.cn)("text-[10px] px-1.5 py-0.5 rounded font-medium","env"===e.source?"bg-blue-500/20 text-blue-600 dark:text-blue-300":"bg-emerald-500/20 text-emerald-600 dark:text-emerald-300"),children:"env"===e.source?"from env":"saved"}),(0,s.jsx)("span",{className:"ml-auto text-[10px] text-muted-foreground font-mono",children:e.envVar})]}),r?(0,s.jsxs)("div",{className:"flex gap-2 mt-2",children:[(0,s.jsxs)("div",{className:"relative flex-1",children:[(0,s.jsx)(T.Input,{type:d?"text":"password",value:i,onChange:e=>o(e.target.value),placeholder:"Paste your API key…",className:"pr-8 text-xs font-mono",autoFocus:!0}),(0,s.jsx)(L.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-2 hover:bg-transparent",onClick:()=>c(e=>!e),children:d?(0,s.jsx)(p.EyeOff,{className:"size-3.5"}):(0,s.jsx)(h.Eye,{className:"size-3.5"})})]}),(0,s.jsx)(L.Button,{size:"sm",onClick:j,disabled:m||!i.trim(),children:m?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Save"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:()=>{l(!1),o("")},children:"Cancel"})]}):(0,s.jsxs)("div",{className:"flex items-center mt-1",children:[(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground font-mono flex-1",children:e.configured?e.maskedKey:"Not configured"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:()=>l(!0),className:"h-7 text-xs",children:e.configured?"Update":"Add"}),e.configured&&"storage"===e.source&&(0,s.jsx)(L.Button,{size:"icon",variant:"ghost",onClick:g,className:"text-rose-500 hover:text-rose-600",children:(0,s.jsx)(x.Trash2,{className:"size-3.5"})})]})]})}function es(){let[e,n]=(0,t.useState)([]),[r,l]=(0,t.useState)(!1),[i,o]=(0,t.useState)(!0),d=(0,t.useCallback)(async()=>{o(!0);try{let e=await O("/api/mcp");n(e.servers||[])}finally{o(!1)}},[]);return(0,t.useEffect)(()=>{d()},[d]),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)(I,{title:"MCP integrations",description:'Model Context Protocol servers. Each adds tools to every agent under "mcp_<name>_<tool>" on the next turn.'}),(0,s.jsxs)(L.Button,{size:"sm",variant:"outline",onClick:()=>l(e=>!e),children:[(0,s.jsx)(m.Plus,{className:"size-3.5 mr-1"}),"New"]})]}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mb-3 max-w-2xl",children:["For OAuth-protected MCP servers, paste the access token as a header here:",(0,s.jsx)("code",{className:"px-1 rounded bg-muted ml-1",children:"{ Authorization: 'Bearer <your-token>' }"}),". For unauthed servers, leave headers empty. Use ",(0,s.jsx)("strong",{children:"Test"})," to confirm the server is reachable."]}),r&&(0,s.jsx)(et,{onCancel:()=>l(!1),onSaved:()=>{l(!1),d()}}),i?(0,s.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,s.jsx)(a.Loader2,{className:"size-4 animate-spin text-muted-foreground"})}):0===e.length?(0,s.jsx)("p",{className:"text-xs text-muted-foreground italic px-1",children:"No MCP servers configured."}):(0,s.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,s.jsx)(ea,{row:e,onChange:d},e.id))})]})}function et({initial:e,onCancel:n,onSaved:r}){let[l,i]=(0,t.useState)(e?.name||""),[o,d]=(0,t.useState)(e?.transport||"http"),[c,x]=(0,t.useState)(e?.url||""),[m,u]=(0,t.useState)(e?.headers?JSON.stringify(e.headers,null,2):""),[h,p]=(0,t.useState)(e?.command||""),[j,g]=(0,t.useState)(e?.args?.join(" ")||""),[f,b]=(0,t.useState)(!1),[v,N]=(0,t.useState)(null),y=async()=>{let s;if(N(null),m.trim())try{let e=JSON.parse(m);e&&"object"==typeof e&&(s=e)}catch{N('Headers must be valid JSON, e.g. {"Authorization":"Bearer xxx"}');return}b(!0);try{let t={name:l,transport:o,enabled:!0};("http"===o||"sse"===o)&&(t.url=c,s&&(t.headers=s)),"stdio"===o&&(t.command=h,t.args=j.split(/\s+/).filter(Boolean)),e?.id?await O(`/api/mcp/${e.id}`,{method:"PATCH",body:JSON.stringify(t)}):await O("/api/mcp",{method:"POST",body:JSON.stringify(t)}),r()}catch(e){N(e?.message||"Save failed")}finally{b(!1)}};return(0,s.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/40 p-3 mb-3 space-y-2",children:[(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,s.jsxs)("div",{className:"col-span-2",children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Name"}),(0,s.jsx)(T.Input,{value:l,onChange:e=>i(e.target.value),placeholder:"github",className:"text-xs"}),(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:["Used as a tool prefix (e.g. ",(0,s.jsx)("code",{children:"mcp_github_search"}),")."]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Transport"}),(0,s.jsxs)("select",{value:o,onChange:e=>d(e.target.value),className:"w-full text-xs h-9 rounded-md border border-input bg-background px-2",children:[(0,s.jsx)("option",{value:"http",children:"HTTP (recommended)"}),(0,s.jsx)("option",{value:"sse",children:"SSE"}),(0,s.jsx)("option",{value:"stdio",children:"stdio (local)"})]})]})]}),"stdio"!==o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"URL"}),(0,s.jsx)(T.Input,{value:c,onChange:e=>x(e.target.value),placeholder:"https://your-server.com/mcp",className:"text-xs font-mono"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Headers (JSON, optional)"}),(0,s.jsx)("textarea",{value:m,onChange:e=>u(e.target.value),rows:3,placeholder:'{ "Authorization": "Bearer xxx" }',className:"w-full rounded-md border border-input bg-background px-2 py-1.5 text-xs font-mono"})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Command"}),(0,s.jsx)(T.Input,{value:h,onChange:e=>p(e.target.value),placeholder:"node",className:"text-xs font-mono"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Label,{className:"text-xs",children:"Args (space separated)"}),(0,s.jsx)(T.Input,{value:j,onChange:e=>g(e.target.value),placeholder:"src/stdio/dist/server.js",className:"text-xs font-mono"})]})]}),v&&(0,s.jsx)("p",{className:"text-[11px] text-rose-500",children:v}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(L.Button,{size:"sm",onClick:y,disabled:f||!l||("stdio"!==o?!c:!h),children:f?(0,s.jsx)(a.Loader2,{className:"size-3.5 animate-spin"}):"Save"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:n,children:"Cancel"})]})]})}function ea({row:e,onChange:n}){let[r,l]=(0,t.useState)(null),[i,o]=(0,t.useState)(!1),[d,c]=(0,t.useState)(!1),m=async()=>{await O(`/api/mcp/${e.id}`,{method:"PATCH",body:JSON.stringify({enabled:!e.enabled})}),n()},u=async()=>{confirm(`Delete MCP server "${e.name}"?`)&&(await O(`/api/mcp/${e.id}`,{method:"DELETE"}),n())},h=async()=>{o(!0),l(null);try{let s=await O(`/api/mcp/${e.id}/test`,{method:"POST"});l(s)}finally{o(!1)}};return d?(0,s.jsx)(et,{initial:e,onCancel:()=>c(!1),onSaved:()=>{c(!1),n()}}):(0,s.jsxs)("div",{className:"rounded-md border border-border/60 bg-background/50 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(y,{className:(0,B.cn)("size-4",e.enabled?"text-emerald-500":"text-muted-foreground")}),(0,s.jsx)("span",{className:"text-sm font-medium",children:e.name}),(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:e.transport}),!e.enabled&&(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:"disabled"}),(0,s.jsxs)("span",{className:"ml-auto text-[11px] text-muted-foreground font-mono break-all",children:["tool prefix: ",(0,s.jsxs)("code",{children:["mcp_",e.name,"_*"]})]})]}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-1 break-all",children:["stdio"===e.transport?(0,s.jsxs)(s.Fragment,{children:["cmd: ",(0,s.jsxs)("code",{children:[e.command," ",e.args?.join(" ")]})]}):(0,s.jsxs)(s.Fragment,{children:["url: ",(0,s.jsx)("code",{children:e.url})]}),e.headers&&Object.keys(e.headers).length>0&&(0,s.jsxs)("span",{className:"ml-2",children:["headers: ",Object.entries(e.headers).map(([e,s])=>`${e}: ${s}`).join(", ")]})]}),(0,s.jsxs)("div",{className:"flex gap-1 mt-2",children:[(0,s.jsxs)(L.Button,{size:"sm",variant:"outline",onClick:h,disabled:i,children:[i?(0,s.jsx)(a.Loader2,{className:"size-3 animate-spin mr-1"}):null,"Test"]}),(0,s.jsx)(L.Button,{size:"sm",variant:"outline",onClick:m,children:e.enabled?"Disable":"Enable"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:()=>c(!0),children:"Edit"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:u,className:"text-rose-500 hover:text-rose-600 ml-auto",children:(0,s.jsx)(x.Trash2,{className:"size-3.5"})})]}),r&&(0,s.jsx)("div",{className:(0,B.cn)("mt-2 rounded border p-2 text-[11px]",r.ok?"border-emerald-500/40 bg-emerald-500/5":"border-rose-500/40 bg-rose-500/5"),children:r.ok?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-emerald-500",children:["✓ Connected — ",r.toolCount," tool(s) discovered"]}),r.toolNames&&r.toolNames.length>0&&(0,s.jsx)("p",{className:"text-muted-foreground font-mono mt-0.5 break-all",children:r.toolNames.join(", ")})]}):(0,s.jsxs)("p",{className:"text-rose-500",children:["✗ ",r.error]})})]})}function en({children:e}){return(0,s.jsx)("div",{className:"rounded-lg border border-border/60 bg-card/40 p-4",children:e})}function er({icon:e,title:t,status:a,statusTone:n}){return(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[e,(0,s.jsx)("h3",{className:"font-medium",children:t}),(0,s.jsx)("span",{className:(0,B.cn)("ml-auto text-xs",n),children:a})]})}function el(){let[e,a]=(0,t.useState)([]),[n,r]=(0,t.useState)(0),[l,i]=(0,t.useState)(!0),[o,d]=(0,t.useState)(""),[c,m]=(0,t.useState)(""),[u,h]=(0,t.useState)(""),[p,j]=(0,t.useState)(""),[g,f]=(0,t.useState)(0),[b]=(0,t.useState)(50),[v,N]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=setTimeout(()=>{j(u),f(0)},250);return()=>clearTimeout(e)},[u]);let y=(0,t.useRef)(!1),k=(0,t.useCallback)(async()=>{y.current||i(!0);try{let e=new URLSearchParams;o&&e.set("source",o),c&&e.set("status",c),p&&e.set("q",p),e.set("limit",String(b)),e.set("offset",String(g*b));let s=await fetch(`${(0,A.getApiUrl)()}/api/integrations/events?${e.toString()}`);if(s.ok){let e=await s.json();a(e.events),r(e.total)}}finally{y.current||i(!1),y.current=!1}},[o,c,p,g,b]);(0,t.useEffect)(()=>{k()},[k]),(0,t.useEffect)(()=>{if(0!==g||o||c||p)return;let e=setInterval(()=>{y.current=!0,k()},5e3);return()=>clearInterval(e)},[g,o,c,p,k]);let M=async()=>{confirm("Clear ALL audit log entries? This cannot be undone.")&&(await fetch(`${(0,A.getApiUrl)()}/api/integrations/events`,{method:"DELETE"}),f(0),k())},B=Math.max(1,Math.ceil(n/b));return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-base font-semibold",children:"Audit log"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:'Every incoming Slack event, inbox webhook, schedule firing, and orchestrator turn outcome lands here. Use it to debug "why didn\'t the agent respond?".'})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 p-2 rounded-md border border-border/40 bg-card/40",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(z.default,{className:"size-3.5 text-muted-foreground"}),(0,s.jsx)(T.Input,{value:u,onChange:e=>h(e.target.value),placeholder:"search channel, user, text, reason…",className:"h-7 w-56 text-xs"})]}),(0,s.jsxs)("select",{value:o,onChange:e=>{d(e.target.value),f(0)},className:"h-7 px-2 rounded text-xs bg-background border border-border/60",children:[(0,s.jsx)("option",{value:"",children:"all sources"}),(0,s.jsx)("option",{value:"slack",children:"slack"}),(0,s.jsx)("option",{value:"inbox",children:"inbox"}),(0,s.jsx)("option",{value:"schedule",children:"schedule"}),(0,s.jsx)("option",{value:"webhook",children:"webhook"}),(0,s.jsx)("option",{value:"daemon",children:"daemon"})]}),(0,s.jsxs)("select",{value:c,onChange:e=>{m(e.target.value),f(0)},className:"h-7 px-2 rounded text-xs bg-background border border-border/60",children:[(0,s.jsx)("option",{value:"",children:"all statuses"}),(0,s.jsx)("option",{value:"routed",children:"routed"}),(0,s.jsx)("option",{value:"dropped",children:"dropped"}),(0,s.jsx)("option",{value:"error",children:"error"}),(0,s.jsx)("option",{value:"completed",children:"completed"}),(0,s.jsx)("option",{value:"failed",children:"failed"}),(0,s.jsx)("option",{value:"received",children:"received"})]}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:()=>void k(),className:"h-7 px-2",children:(0,s.jsx)(C.RefreshCw,{className:"size-3.5"})}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground ml-auto",children:l?"loading…":`${n} event${1===n?"":"s"}`}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",onClick:()=>void M(),className:"h-7 px-2 text-destructive",children:(0,s.jsx)(x.Trash2,{className:"size-3.5"})})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border/40 bg-card/40 overflow-hidden",children:[0===e.length&&!l&&(0,s.jsx)("p",{className:"p-4 text-xs text-muted-foreground text-center",children:"No events match the current filters."}),e.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{window.getSelection()?.toString()||N(s=>s===e.id?null:e.id)},className:"w-full text-left px-3 py-2 border-b border-border/30 last:border-b-0 hover:bg-accent/40 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,s.jsx)("span",{className:"font-mono text-muted-foreground tabular-nums whitespace-nowrap",title:new Date(e.ts).toLocaleString(),children:function(e){let s=new Date(e);if(isNaN(s.getTime()))return e;let t=new Date,a=s.toDateString()===t.toDateString(),n=s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});if(a)return n;let r=s.toLocaleDateString([],{month:"short",day:"numeric"});return`${r} ${n}`}(e.ts)}),(0,s.jsx)(ei,{status:e.status}),(0,s.jsx)("span",{className:"font-medium text-muted-foreground uppercase text-[10px] tracking-wide",children:e.source}),e.subtype&&(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground/70",children:e.subtype}),e.channel&&(0,s.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground/80 truncate max-w-[160px]",children:e.channel}),e.user&&(0,s.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground/80 truncate max-w-[120px]",children:["@",e.user]}),void 0!==e.durationMs&&(0,s.jsxs)("span",{className:"text-[10px] text-muted-foreground/70",children:[(e.durationMs/1e3).toFixed(1),"s"]}),(0,s.jsx)("span",{className:"ml-auto text-[10px] text-muted-foreground/60 font-mono",children:e.id.slice(0,8)})]}),e.textSnippet&&(0,s.jsx)("p",{className:"mt-1 text-xs text-foreground/80 truncate",children:e.textSnippet}),e.dropReason&&(0,s.jsxs)("p",{className:"mt-1 text-[11px] text-yellow-500/90",children:["dropped: ",e.dropReason]}),e.error&&(0,s.jsxs)("p",{className:"mt-1 text-[11px] text-red-500/90",children:["error: ",e.error]}),v===e.id&&(0,s.jsx)("pre",{className:"mt-2 p-2 rounded bg-background/60 text-[10px] font-mono text-muted-foreground overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify(e,null,2)})]},e.id))]}),n>b&&(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Page ",g+1," of ",B]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",disabled:0===g,onClick:()=>f(0),className:"h-7 px-2",children:"First"}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",disabled:0===g,onClick:()=>f(e=>e-1),className:"h-7 px-2",children:(0,s.jsx)(w.default,{className:"size-3.5"})}),(0,s.jsx)(L.Button,{size:"sm",variant:"ghost",disabled:g>=B-1,onClick:()=>f(e=>e+1),className:"h-7 px-2",children:(0,s.jsx)(S.default,{className:"size-3.5"})})]})]})]})}function ei({status:e}){return(0,s.jsx)("span",{className:(0,B.cn)("inline-flex items-center px-1.5 py-0.5 rounded text-[10px] border",{routed:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",completed:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",dropped:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30",received:"bg-blue-500/15 text-blue-400 border-blue-500/30",error:"bg-red-500/15 text-red-400 border-red-500/30",failed:"bg-red-500/15 text-red-400 border-red-500/30"}[e]),children:e})}e.s(["default",()=>D],412490)}]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,473063,413778,509331,52283,e=>{"use strict";var t=e.i(611051),a=(0,e.i(47561).default)(Object.keys,Object),s=Object.prototype.hasOwnProperty;let r=function(e){if(!(0,t.default)(e))return a(e);var r=[];for(var l in Object(e))s.call(e,l)&&"constructor"!=l&&r.push(l);return r};e.s(["default",0,r],413778);var l=e.i(379963),c=e.i(195130),n=(0,l.default)(c.default,"DataView"),i=e.i(648429),o=(0,l.default)(c.default,"Promise"),d=(0,l.default)(c.default,"Set");e.s(["default",0,d],509331);var h=(0,l.default)(c.default,"WeakMap"),m=e.i(934147),f=e.i(61577),u="[object Map]",p="[object Promise]",k="[object Set]",b="[object WeakMap]",v="[object DataView]",j=(0,f.default)(n),g=(0,f.default)(i.default),y=(0,f.default)(o),P=(0,f.default)(d),w=(0,f.default)(h),x=m.default;(n&&x(new n(new ArrayBuffer(1)))!=v||i.default&&x(new i.default)!=u||o&&x(o.resolve())!=p||d&&x(new d)!=k||h&&x(new h)!=b)&&(x=function(e){var t=(0,m.default)(e),a="[object Object]"==t?e.constructor:void 0,s=a?(0,f.default)(a):"";if(s)switch(s){case j:return v;case g:return u;case y:return p;case P:return k;case w:return b}return t});let _=x;e.s(["default",0,_],52283);var S=e.i(239974),L=e.i(127724),M=e.i(211112),C=e.i(416286),E=e.i(523466),T=Object.prototype.hasOwnProperty;e.s(["default",0,function(e){if(null==e)return!0;if((0,M.default)(e)&&((0,L.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,C.default)(e)||(0,E.default)(e)||(0,S.default)(e)))return!e.length;var a=_(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if((0,t.default)(e))return!r(e).length;for(var s in e)if(T.call(e,s))return!1;return!0}],473063)},687734,e=>{"use strict";var t=e.i(209026),a=e.i(460753);e.i(492314);var s=e.i(59955),r=(0,a.__name)(e=>{let{securityLevel:a}=(0,t.getConfig2)(),r=(0,s.select)("body");if("sandbox"===a){let t=(0,s.select)(`#i${e}`),a=t.node()?.contentDocument??document;r=(0,s.select)(a.body)}return r.select(`#${e}`)},"selectSvgElement");e.s(["selectSvgElement",()=>r])},661981,e=>{"use strict";var t=(0,e.i(460753).__name)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,a=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:t+a}},"getSubGraphTitleMargins");e.s(["getSubGraphTitleMargins",()=>t])},916048,e=>{"use strict";var t=e.i(209026),a=e.i(460753),s=(0,a.__name)(e=>{let{handDrawnSeed:a}=(0,t.getConfig2)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:a}},"solidStateFill"),r=(0,a.__name)(e=>{let t=l([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),l=(0,a.__name)(e=>{let t=new Map;return e.forEach(e=>{let[a,s]=e.split(":");t.set(a.trim(),s?.trim())}),t},"styles2Map"),c=(0,a.__name)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),n=(0,a.__name)(e=>{let{stylesArray:t}=r(e),a=[],s=[],l=[],n=[];return t.forEach(e=>{let t=e[0];c(t)?a.push(e.join(":")+" !important"):(s.push(e.join(":")+" !important"),t.includes("stroke")&&l.push(e.join(":")+" !important"),"fill"===t&&n.push(e.join(":")+" !important"))}),{labelStyles:a.join(";"),nodeStyles:s.join(";"),stylesArray:t,borderStyles:l,backgroundStyles:n}},"styles2String"),i=(0,a.__name)((e,a)=>{let{themeVariables:s,handDrawnSeed:l}=(0,t.getConfig2)(),{nodeBorder:c,mainBkg:n}=s,{stylesMap:i}=r(e);return Object.assign({roughness:.7,fill:i.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:i.get("stroke")||c,seed:l,strokeWidth:i.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o(i.get("stroke-dasharray"))},a)},"userNodeOverrides"),o=(0,a.__name)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray");e.s(["compileStyles",()=>r,"isLabelStyle",()=>c,"solidStateFill",()=>s,"styles2String",()=>n,"userNodeOverrides",()=>i])},628511,e=>{"use strict";var t=e.i(537981),a=e.i(17415),s=e.i(661981),r=e.i(916048),l=e.i(284421),c=e.i(97482),n=e.i(209026),i=e.i(460753);e.i(492314);var o=e.i(604883),d=e.i(440364),h=e.i(388304),m=e.i(61507),f=e.i(938759),u=e.i(783924),p=e.i(684336),k=e.i(688559),b=e.i(36617),v=e.i(196860),j=e.i(561924),g=e.i(648570),y=e.i(46683),P=e.i(59955),w=e.i(70304),x=(0,i.__name)((e,t,a,s,r,l)=>{t.arrowTypeStart&&S(e,"start",t.arrowTypeStart,a,s,r,l),t.arrowTypeEnd&&S(e,"end",t.arrowTypeEnd,a,s,r,l)},"addEdgeMarkers"),_={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},S=(0,i.__name)((e,t,a,s,r,l,c)=>{let n=_[a];if(!n)return void i.log.warn(`Unknown arrow type: ${a}`);let o=n.type,d=`${r}_${l}-${o}${"start"===t?"Start":"End"}`;if(c&&""!==c.trim()){let a=c.replace(/[^\dA-Za-z]/g,"_"),r=`${d}_${a}`;if(!document.getElementById(r)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=r,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",c),n.fill&&e.setAttribute("fill",c)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${s}#${r})`)}else e.attr(`marker-${t}`,`url(${s}#${d})`)},"addEdgeMarker"),L=new Map,M=new Map,C=(0,i.__name)(()=>{L.clear(),M.clear()},"clear"),E=(0,i.__name)(e=>e?e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),T=(0,i.__name)(async(e,t)=>{let s,c=(0,n.evaluate)((0,n.getConfig2)().flowchart.htmlLabels),{labelStyles:o}=(0,r.styles2String)(t);t.labelStyle=o;let d=await (0,l.createText)(e,t.label,{style:t.labelStyle,useHtmlLabels:c,addSvgBackground:!0,isNode:!1});i.log.info("abc82",t,t.labelType);let h=e.insert("g").attr("class","edgeLabel"),m=h.insert("g").attr("class","label").attr("data-id",t.id);m.node().appendChild(d);let f=d.getBBox();if(c){let e=d.children[0],t=(0,P.select)(d);f=e.getBoundingClientRect(),t.attr("width",f.width),t.attr("height",f.height)}if(m.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),L.set(t.id,h),t.width=f.width,t.height=f.height,t.startLabelLeft){let r=await (0,a.createLabel_default)(t.startLabelLeft,E(t.labelStyle)),l=e.insert("g").attr("class","edgeTerminals"),c=l.insert("g").attr("class","inner");s=c.node().appendChild(r);let n=r.getBBox();c.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),M.get(t.id)||M.set(t.id,{}),M.get(t.id).startLeft=l,R(s,t.startLabelLeft)}if(t.startLabelRight){let r=await (0,a.createLabel_default)(t.startLabelRight,E(t.labelStyle)),l=e.insert("g").attr("class","edgeTerminals"),c=l.insert("g").attr("class","inner");s=l.node().appendChild(r),c.node().appendChild(r);let n=r.getBBox();c.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),M.get(t.id)||M.set(t.id,{}),M.get(t.id).startRight=l,R(s,t.startLabelRight)}if(t.endLabelLeft){let r=await (0,a.createLabel_default)(t.endLabelLeft,E(t.labelStyle)),l=e.insert("g").attr("class","edgeTerminals"),c=l.insert("g").attr("class","inner");s=c.node().appendChild(r);let n=r.getBBox();c.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),l.node().appendChild(r),M.get(t.id)||M.set(t.id,{}),M.get(t.id).endLeft=l,R(s,t.endLabelLeft)}if(t.endLabelRight){let r=await (0,a.createLabel_default)(t.endLabelRight,E(t.labelStyle)),l=e.insert("g").attr("class","edgeTerminals"),c=l.insert("g").attr("class","inner");s=c.node().appendChild(r);let n=r.getBBox();c.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),l.node().appendChild(r),M.get(t.id)||M.set(t.id,{}),M.get(t.id).endRight=l,R(s,t.endLabelRight)}return d},"insertEdgeLabel");function R(e,t){(0,n.getConfig2)().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,i.__name)(R,"setTerminalWidth");var O=(0,i.__name)((e,t)=>{i.log.debug("Moving label abc88 ",e.id,e.label,L.get(e.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,r=(0,n.getConfig2)(),{subGraphTitleTotalMargin:l}=(0,s.getSubGraphTitleMargins)(r);if(e.label){let s=L.get(e.id),r=e.x,n=e.y;if(a){let s=c.utils_default.calcLabelPosition(a);i.log.debug("Moving label "+e.label+" from (",r,",",n,") to (",s.x,",",s.y,") abc88"),t.updatedPath&&(r=s.x,n=s.y)}s.attr("transform",`translate(${r}, ${n+l/2})`)}if(e.startLabelLeft){let t=M.get(e.id).startLeft,s=e.x,r=e.y;if(a){let t=c.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.startLabelRight){let t=M.get(e.id).startRight,s=e.x,r=e.y;if(a){let t=c.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelLeft){let t=M.get(e.id).endLeft,s=e.x,r=e.y;if(a){let t=c.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelRight){let t=M.get(e.id).endRight,s=e.x,r=e.y;if(a){let t=c.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",a);s=t.x,r=t.y}t.attr("transform",`translate(${s}, ${r})`)}},"positionEdgeLabel"),$=(0,i.__name)((e,t)=>{let a=e.x,s=e.y,r=Math.abs(t.x-a),l=Math.abs(t.y-s),c=e.width/2,n=e.height/2;return r>=c||l>=n},"outsideNode"),A=(0,i.__name)((e,t,a)=>{i.log.debug(`intersection calc abc89:
|
|
2
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
3
|
+
insidePoint : ${JSON.stringify(a)}
|
|
4
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let s=e.x,r=e.y,l=Math.abs(s-a.x),c=e.width/2,n=a.x<t.x?c-l:c+l,o=e.height/2,d=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(r-t.y)*c>Math.abs(s-t.x)*o){let e=a.y<t.y?t.y-o-r:r-o-t.y;n=h*e/d;let s={x:a.x<t.x?a.x+n:a.x-h+n,y:a.y<t.y?a.y+d-e:a.y-d+e};return 0===n&&(s.x=t.x,s.y=t.y),0===h&&(s.x=t.x),0===d&&(s.y=t.y),i.log.debug(`abc89 top/bottom calc, Q ${d}, q ${e}, R ${h}, r ${n}`,s),s}{let e=d*(n=a.x<t.x?t.x-c-s:s-c-t.x)/h,r=a.x<t.x?a.x+h-n:a.x-h+n,l=a.y<t.y?a.y+e:a.y-e;return i.log.debug(`sides calc abc89, Q ${d}, q ${e}, R ${h}, r ${n}`,{_x:r,_y:l}),0===n&&(r=t.x,l=t.y),0===h&&(r=t.x),0===d&&(l=t.y),{x:r,y:l}}},"intersection"),N=(0,i.__name)((e,t)=>{i.log.warn("abc88 cutPathAtIntersect",e,t);let a=[],s=e[0],r=!1;return e.forEach(e=>{if(i.log.info("abc88 checking point",e,t),$(t,e)||r)i.log.warn("abc88 outside",e,s),s=e,r||a.push(e);else{let l=A(t,s,e);i.log.debug("abc88 inside",e,s,l),i.log.debug("abc88 intersection",l,t);let c=!1;a.forEach(e=>{c=c||e.x===l.x&&e.y===l.y}),a.some(e=>e.x===l.x&&e.y===l.y)?i.log.warn("abc88 no intersect",l,a):a.push(l),r=!0}}),i.log.debug("returning points",a),a},"cutPathAtIntersect");function W(e){let t=[],a=[];for(let s=1;s<e.length-1;s++){let r=e[s-1],l=e[s],c=e[s+1];r.x===l.x&&l.y===c.y&&Math.abs(l.x-c.x)>5&&Math.abs(l.y-r.y)>5?(t.push(l),a.push(s)):r.y===l.y&&l.x===c.x&&Math.abs(l.x-r.x)>5&&Math.abs(l.y-c.y)>5&&(t.push(l),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}(0,i.__name)(W,"extractCornerPoints");var H=(0,i.__name)(function(e,t,a){let s=t.x-e.x,r=t.y-e.y,l=a/Math.sqrt(s*s+r*r);return{x:t.x-l*s,y:t.y-l*r}},"findAdjacentPoint"),z=(0,i.__name)(function(e){let{cornerPointPositions:t}=W(e),a=[];for(let s=0;s<e.length;s++)if(t.includes(s)){let t=e[s-1],r=e[s+1],l=e[s],c=H(t,l,5),n=H(r,l,5),o=n.x-c.x,d=n.y-c.y;a.push(c);let h=2*Math.sqrt(2),m={x:l.x,y:l.y};Math.abs(r.x-t.x)>10&&Math.abs(r.y-t.y)>=10?(i.log.debug("Corner point fixing",Math.abs(r.x-t.x),Math.abs(r.y-t.y)),m=l.x===c.x?{x:o<0?c.x-5+h:c.x+5-h,y:d<0?c.y-h:c.y+h}:{x:o<0?c.x-h:c.x+h,y:d<0?c.y-5+h:c.y+5-h}):i.log.debug("Corner point skipping fixing",Math.abs(r.x-t.x),Math.abs(r.y-t.y)),a.push(m,n)}else a.push(e[s]);return a},"fixCorners"),X=(0,i.__name)((e,t,a)=>{let s=Array(Math.floor((e-t-a)/4)).fill("2 2").join(" ");return`0 ${t} ${s} ${a}`},"generateDashArray"),Y=(0,i.__name)(function(e,a,s,l,_,S,L,M=!1){let C,E,{handDrawnSeed:T}=(0,n.getConfig2)(),R=a.points,O=!1,$=[];for(let e in a.cssCompiledStyles)(0,r.isLabelStyle)(e)||$.push(a.cssCompiledStyles[e]);i.log.debug("UIO intersect check",a.points,S.x,_.x),S.intersect&&_.intersect&&!M&&((R=R.slice(1,a.points.length-1)).unshift(_.intersect(R[0])),i.log.debug("Last point UIO",a.start,"-->",a.end,R[R.length-1],S,S.intersect(R[R.length-1])),R.push(S.intersect(R[R.length-1])));let A=btoa(JSON.stringify(R));a.toCluster&&(i.log.info("to cluster abc88",s.get(a.toCluster)),R=N(a.points,s.get(a.toCluster).node),O=!0),a.fromCluster&&(i.log.debug("from cluster abc88",s.get(a.fromCluster),JSON.stringify(R,null,2)),R=N(R.reverse(),s.get(a.fromCluster).node).reverse(),O=!0);let W=R.filter(e=>!Number.isNaN(e.y));W=z(W);let H=o.curveBasis;switch(H=d.curveLinear,a.curve){case"linear":H=d.curveLinear;break;case"basis":default:H=o.curveBasis;break;case"cardinal":H=h.curveCardinal;break;case"bumpX":H=m.curveBumpX;break;case"bumpY":H=f.curveBumpY;break;case"catmullRom":H=u.curveCatmullRom;break;case"monotoneX":H=p.curveMonotoneX;break;case"monotoneY":H=k.curveMonotoneY;break;case"natural":H=b.curveNatural;break;case"step":H=v.curveStep;break;case"stepAfter":H=j.curveStepAfter;break;case"stepBefore":H=g.curveStepBefore}let{x:Y,y:B}=(0,t.getLineFunctionsWithOffset)(a),q=(0,y.line)().x(Y).y(B).curve(H);switch(a.thickness){case"normal":default:C="edge-thickness-normal";break;case"thick":C="edge-thickness-thick";break;case"invisible":C="edge-thickness-invisible"}switch(a.pattern){case"solid":default:C+=" edge-pattern-solid";break;case"dotted":C+=" edge-pattern-dotted";break;case"dashed":C+=" edge-pattern-dashed"}let I="rounded"===a.curve?D(U(W,a),5):q(W),V=Array.isArray(a.style)?a.style:[a.style],Q=V.find(e=>e?.startsWith("stroke:")),Z=!1;if("handDrawn"===a.look){let t=w.default.svg(e);Object.assign([],W);let s=t.path(I,{roughness:.3,seed:T});C+=" transition";let r=(E=(0,P.select)(s).select("path").attr("id",a.id).attr("class"," "+C+(a.classes?" "+a.classes:"")).attr("style",V?V.reduce((e,t)=>e+";"+t,""):"")).attr("d");E.attr("d",r),e.node().appendChild(E.node())}else{let s=$.join(";"),r=V?V.reduce((e,t)=>e+t+";",""):"",l="";a.animate&&(l=" edge-animation-fast"),a.animation&&(l=" edge-animation-"+a.animation);let c=(s?s+";"+r+";":r)+";"+(V?V.reduce((e,t)=>e+";"+t,""):"");E=e.append("path").attr("d",I).attr("id",a.id).attr("class"," "+C+(a.classes?" "+a.classes:"")+(l??"")).attr("style",c),Q=c.match(/stroke:([^;]+)/)?.[1],Z=!0===a.animate||!!a.animation||s.includes("animation");let n=E.node(),i="function"==typeof n.getTotalLength?n.getTotalLength():0,o=t.markerOffsets2[a.arrowTypeStart]||0,d=t.markerOffsets2[a.arrowTypeEnd]||0;if("neo"===a.look&&!Z){let e="dotted"===a.pattern||"dashed"===a.pattern?X(i,o,d):`0 ${o} ${i-o-d} ${d}`,t=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;E.attr("style",t+E.attr("style"))}}E.attr("data-edge",!0),E.attr("data-et","edge"),E.attr("data-id",a.id),E.attr("data-points",A),a.showPoints&&W.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let F="";((0,n.getConfig2)().flowchart.arrowMarkerAbsolute||(0,n.getConfig2)().state.arrowMarkerAbsolute)&&(F=(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),i.log.info("arrowTypeStart",a.arrowTypeStart),i.log.info("arrowTypeEnd",a.arrowTypeEnd),x(E,a,F,L,l,Q);let G=Math.floor(R.length/2),J=R[G];c.utils_default.isLabelCoordinateInPath(J,E.attr("d"))||(O=!0);let K={};return O&&(K.updatedPath=R),K.originalPath=a.points,K},"insertEdge");function D(e,t){if(e.length<2)return"";let a="",s=e.length;for(let r=0;r<s;r++){let l=e[r],c=e[r-1],n=e[r+1];if(0===r)a+=`M${l.x},${l.y}`;else if(r===s-1)a+=`L${l.x},${l.y}`;else{let e=l.x-c.x,s=l.y-c.y,r=n.x-l.x,i=n.y-l.y,o=Math.hypot(e,s),d=Math.hypot(r,i);if(o<1e-5||d<1e-5){a+=`L${l.x},${l.y}`;continue}let h=e/o,m=s/o,f=r/d,u=i/d,p=Math.acos(Math.max(-1,Math.min(1,h*f+m*u)));if(p<1e-5||1e-5>Math.abs(Math.PI-p)){a+=`L${l.x},${l.y}`;continue}let k=Math.min(t/Math.sin(p/2),o/2,d/2),b=l.x-h*k,v=l.y-m*k,j=l.x+f*k,g=l.y+u*k;a+=`L${b},${v}Q${l.x},${l.y} ${j},${g}`}}return a}function B(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-e.x,s=t.y-e.y;return{angle:Math.atan2(s,a),deltaX:a,deltaY:s}}function U(e,a){let s=e.map(e=>({...e}));if(e.length>=2&&t.markerOffsets[a.arrowTypeStart]){let r=t.markerOffsets[a.arrowTypeStart],l=e[0],{angle:c}=B(l,e[1]),n=r*Math.cos(c),i=r*Math.sin(c);s[0].x=l.x+n,s[0].y=l.y+i}let r=e.length;if(r>=2&&t.markerOffsets[a.arrowTypeEnd]){let l=t.markerOffsets[a.arrowTypeEnd],c=e[r-1],{angle:n}=B(e[r-2],c),i=l*Math.cos(n),o=l*Math.sin(n);s[r-1].x=c.x-i,s[r-1].y=c.y-o}return s}(0,i.__name)(D,"generateRoundedPath"),(0,i.__name)(B,"calculateDeltaAndAngle"),(0,i.__name)(U,"applyMarkerOffsetsToPoints");var q=(0,i.__name)((e,t,a,s)=>{t.forEach(t=>{el[t](e,a,s)})},"insertMarkers"),I=(0,i.__name)((e,t,a)=>{i.log.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),V=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Q=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Z=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),F=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),G=(0,i.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),J=(0,i.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),K=(0,i.__name)((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),ee=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),et=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ea=(0,i.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let r=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),es=(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),er=(0,i.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let r=e.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),el={extension:I,composition:V,aggregation:Q,dependency:Z,lollipop:F,point:G,circle:J,cross:K,barb:ee,only_one:et,zero_or_one:ea,one_or_more:es,zero_or_more:er,requirement_arrow:(0,i.__name)((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
5
|
+
L20,10
|
|
6
|
+
M20,10
|
|
7
|
+
L0,20`)},"requirement_arrow"),requirement_contains:(0,i.__name)((e,t,a)=>{let s=e.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")};e.s(["clear",()=>C,"insertEdge",()=>Y,"insertEdgeLabel",()=>T,"markers_default",()=>q,"positionEdgeLabel",()=>O])},364601,e=>{"use strict";var t=e.i(628511),a=e.i(17415),s=e.i(97482),r=e.i(209026),l=e.i(460753),c={common:r.common_default,getConfig:r.getConfig,insertCluster:a.insertCluster,insertEdge:t.insertEdge,insertEdgeLabel:t.insertEdgeLabel,insertMarkers:t.markers_default,insertNode:a.insertNode,interpolateToCurve:s.interpolateToCurve,labelHelper:a.labelHelper,log:l.log,positionEdgeLabel:t.positionEdgeLabel},n={},i=(0,l.__name)(e=>{for(let t of e)n[t.name]=t},"registerLayoutLoaders");(0,l.__name)(()=>{i([{name:"dagre",loader:(0,l.__name)(async()=>await e.A(635288),"loader")},{name:"cose-bilkent",loader:(0,l.__name)(async()=>await e.A(112933),"loader")}])},"registerDefaultLayoutLoaders")();var o=(0,l.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in n))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let a=n[e.layoutAlgorithm];return(await a.loader()).render(e,t,c,{algorithm:a.algorithm})},"render"),d=(0,l.__name)((e="",{fallback:t="dagre"}={})=>{if(e in n)return e;if(t in n)return l.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",()=>d,"registerLayoutLoaders",()=>i,"render",()=>o])},715786,e=>{"use strict";let t=(0,e.i(292511).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["default",()=>t])},29343,280105,e=>{"use strict";let t=(0,e.i(292511).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",()=>t],280105),e.s(["CheckCircle2",()=>t],29343)},573656,482079,e=>{"use strict";var t=e.i(715786);e.s(["XCircle",()=>t.default],573656);let a=(0,e.i(292511).default)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["MessageCircleQuestion",()=>a],482079)},263845,501253,e=>{"use strict";var t=e.i(292511);let a=(0,t.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",()=>a],263845);let s=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",()=>s],501253)},719125,e=>{"use strict";let t=(0,e.i(292511).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",()=>t])},210162,e=>{"use strict";let t=(0,e.i(292511).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",()=>t])},367887,e=>{"use strict";var t=e.i(719125);e.s(["Copy",()=>t.default])},482306,e=>{"use strict";let t=(0,e.i(292511).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],482306)},978964,114507,e=>{"use strict";var t=e.i(292511);let a=(0,t.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["default",()=>a],978964);let s=(0,t.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["default",()=>s],114507)},356212,e=>{"use strict";var t={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}};e.s(["package_default",()=>t])},77589,e=>{"use strict";let t=(0,e.i(292511).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["default",()=>t])},191729,772857,e=>{"use strict";let t=(0,e.i(292511).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t],191729);var a=e.i(414294),s=e.i(430878);e.i(773340);var r=e.i(309945),l=Symbol("radix.slottable");function c(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}var n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var l,n;let i,o,d,h=(n=l=`Primitive.${t}`,(i=s.forwardRef((e,t)=>{let{children:a,...l}=e;if(s.isValidElement(a)){var c;let e,n,i=(c=a,(n=(e=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?c.ref:(n=(e=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?c.props.ref:c.props.ref||c.ref),o=function(e,t){let a={...t};for(let s in t){let r=e[s],l=t[s];/^on[A-Z]/.test(s)?r&&l?a[s]=(...e)=>{let t=l(...e);return r(...e),t}:r&&(a[s]=r):"style"===s?a[s]={...r,...l}:"className"===s&&(a[s]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}(l,a.props);return a.type!==s.Fragment&&(o.ref=t?(0,r.composeRefs)(t,i):i),s.cloneElement(a,o)}return s.Children.count(a)>1?s.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(d=s.forwardRef((e,t)=>{let{children:r,...l}=e,n=s.Children.toArray(r),i=n.find(c);if(i){let e=i.props.children,r=n.map(t=>t!==i?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...l,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,a.jsx)(o,{...l,ref:t,children:r})})).displayName=`${l}.Slot`,d),m=s.forwardRef((e,s)=>{let{asChild:r,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(r?h:t,{...l,ref:s})});return m.displayName=`Primitive.${t}`,{...e,[t]:m}},{}),i=e.i(395509),o=e.i(897462),d=e.i(542899),h=e.i(995945),m=e.i(992421),f=e.i(241416),u="ScrollArea",[p,k]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>s.createContext(e));return function(a){let r=a?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...a,[e]:r}}),[a,r])}};return l.scopeName=e,[function(t,l){let c=s.createContext(l),n=r.length;r=[...r,l];let i=t=>{let{scope:r,children:l,...i}=t,o=r?.[e]?.[n]||c,d=s.useMemo(()=>i,Object.values(i));return(0,a.jsx)(o.Provider,{value:d,children:l})};return i.displayName=t+"Provider",[i,function(a,r){let i=r?.[e]?.[n]||c,o=s.useContext(i);if(o)return o;if(void 0!==l)return l;throw Error(`\`${a}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let a=()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=a.reduce((t,{useScope:a,scopeName:s})=>{let r=a(e)[`__scope${s}`];return{...t,...r}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return a.scopeName=t.scopeName,a}(l,...t)]}(u),[b,v]=p(u),j=s.forwardRef((e,t)=>{let{__scopeScrollArea:l,type:c="hover",dir:i,scrollHideDelay:o=600,...h}=e,[m,f]=s.useState(null),[u,p]=s.useState(null),[k,v]=s.useState(null),[j,g]=s.useState(null),[y,P]=s.useState(null),[w,x]=s.useState(0),[_,S]=s.useState(0),[L,M]=s.useState(!1),[C,E]=s.useState(!1),T=(0,r.useComposedRefs)(t,e=>f(e)),R=(0,d.useDirection)(i);return(0,a.jsx)(b,{scope:l,type:c,dir:R,scrollHideDelay:o,scrollArea:m,viewport:u,onViewportChange:p,content:k,onContentChange:v,scrollbarX:j,onScrollbarXChange:g,scrollbarXEnabled:L,onScrollbarXEnabledChange:M,scrollbarY:y,onScrollbarYChange:P,scrollbarYEnabled:C,onScrollbarYEnabledChange:E,onCornerWidthChange:x,onCornerHeightChange:S,children:(0,a.jsx)(n.div,{dir:R,...h,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});j.displayName=u;var g="ScrollAreaViewport",y=s.forwardRef((e,t)=>{let{__scopeScrollArea:l,children:c,nonce:i,...o}=e,d=v(g,l),h=s.useRef(null),m=(0,r.useComposedRefs)(t,h,d.onViewportChange);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,a.jsx)(n.div,{"data-radix-scroll-area-viewport":"",...o,ref:m,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,a.jsx)("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:c})})]})});y.displayName=g;var P="ScrollAreaScrollbar",w=s.forwardRef((e,t)=>{let{forceMount:r,...l}=e,c=v(P,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:i}=c,o="horizontal"===e.orientation;return s.useEffect(()=>(o?n(!0):i(!0),()=>{o?n(!1):i(!1)}),[o,n,i]),"hover"===c.type?(0,a.jsx)(x,{...l,ref:t,forceMount:r}):"scroll"===c.type?(0,a.jsx)(_,{...l,ref:t,forceMount:r}):"auto"===c.type?(0,a.jsx)(S,{...l,ref:t,forceMount:r}):"always"===c.type?(0,a.jsx)(L,{...l,ref:t}):null});w.displayName=P;var x=s.forwardRef((e,t)=>{let{forceMount:r,...l}=e,c=v(P,e.__scopeScrollArea),[n,o]=s.useState(!1);return s.useEffect(()=>{let e=c.scrollArea,t=0;if(e){let a=()=>{window.clearTimeout(t),o(!0)},s=()=>{t=window.setTimeout(()=>o(!1),c.scrollHideDelay)};return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",s),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",s)}}},[c.scrollArea,c.scrollHideDelay]),(0,a.jsx)(i.Presence,{present:r||n,children:(0,a.jsx)(S,{"data-state":n?"visible":"hidden",...l,ref:t})})}),_=s.forwardRef((e,t)=>{var r;let{forceMount:l,...c}=e,n=v(P,e.__scopeScrollArea),o="horizontal"===e.orientation,d=q(()=>m("SCROLL_END"),100),[h,m]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},s.useReducer((e,t)=>r[e][t]??e,"hidden"));return s.useEffect(()=>{if("idle"===h){let e=window.setTimeout(()=>m("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(e)}},[h,n.scrollHideDelay,m]),s.useEffect(()=>{let e=n.viewport,t=o?"scrollLeft":"scrollTop";if(e){let a=e[t],s=()=>{let s=e[t];a!==s&&(m("SCROLL"),d()),a=s};return e.addEventListener("scroll",s),()=>e.removeEventListener("scroll",s)}},[n.viewport,o,m,d]),(0,a.jsx)(i.Presence,{present:l||"hidden"!==h,children:(0,a.jsx)(L,{"data-state":"hidden"===h?"hidden":"visible",...c,ref:t,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),S=s.forwardRef((e,t)=>{let r=v(P,e.__scopeScrollArea),{forceMount:l,...c}=e,[n,o]=s.useState(!1),d="horizontal"===e.orientation,h=q(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;o(d?e:t)}},10);return I(r.viewport,h),I(r.content,h),(0,a.jsx)(i.Presence,{present:l||n,children:(0,a.jsx)(L,{"data-state":n?"visible":"hidden",...c,ref:t})})}),L=s.forwardRef((e,t)=>{let{orientation:r="vertical",...l}=e,c=v(P,e.__scopeScrollArea),n=s.useRef(null),i=s.useRef(0),[o,d]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=X(o.viewport,o.content),m={...l,sizes:o,onSizesChange:d,hasThumb:!!(h>0&&h<1),onThumbChange:e=>n.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function f(e,t){return function(e,t,a,s="ltr"){let r=Y(a),l=t||r/2,c=a.scrollbar.paddingStart+l,n=a.scrollbar.size-a.scrollbar.paddingEnd-(r-l),i=a.content-a.viewport;return B([c,n],"ltr"===s?[0,i]:[-1*i,0])(e)}(e,i.current,o,t)}return"horizontal"===r?(0,a.jsx)(M,{...m,ref:t,onThumbPositionChange:()=>{if(c.viewport&&n.current){let e=D(c.viewport.scrollLeft,o,c.dir);n.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{c.viewport&&(c.viewport.scrollLeft=e)},onDragScroll:e=>{c.viewport&&(c.viewport.scrollLeft=f(e,c.dir))}}):"vertical"===r?(0,a.jsx)(C,{...m,ref:t,onThumbPositionChange:()=>{if(c.viewport&&n.current){let e=D(c.viewport.scrollTop,o);n.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{c.viewport&&(c.viewport.scrollTop=e)},onDragScroll:e=>{c.viewport&&(c.viewport.scrollTop=f(e))}}):null}),M=s.forwardRef((e,t)=>{let{sizes:l,onSizesChange:c,...n}=e,i=v(P,e.__scopeScrollArea),[o,d]=s.useState(),h=s.useRef(null),m=(0,r.useComposedRefs)(t,h,i.onScrollbarXChange);return s.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),(0,a.jsx)(R,{"data-orientation":"horizontal",...n,ref:m,sizes:l,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(l)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,a)=>{if(i.viewport){var s,r;let l=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(l),s=l,r=a,s>0&&s<r&&t.preventDefault()}},onResize:()=>{h.current&&i.viewport&&o&&c({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:z(o.paddingLeft),paddingEnd:z(o.paddingRight)}})}})}),C=s.forwardRef((e,t)=>{let{sizes:l,onSizesChange:c,...n}=e,i=v(P,e.__scopeScrollArea),[o,d]=s.useState(),h=s.useRef(null),m=(0,r.useComposedRefs)(t,h,i.onScrollbarYChange);return s.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),(0,a.jsx)(R,{"data-orientation":"vertical",...n,ref:m,sizes:l,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(l)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,a)=>{if(i.viewport){var s,r;let l=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(l),s=l,r=a,s>0&&s<r&&t.preventDefault()}},onResize:()=>{h.current&&i.viewport&&o&&c({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:z(o.paddingTop),paddingEnd:z(o.paddingBottom)}})}})}),[E,T]=p(P),R=s.forwardRef((e,t)=>{let{__scopeScrollArea:l,sizes:c,hasThumb:i,onThumbChange:d,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:u,onDragScroll:p,onWheelScroll:k,onResize:b,...j}=e,g=v(P,l),[y,w]=s.useState(null),x=(0,r.useComposedRefs)(t,e=>w(e)),_=s.useRef(null),S=s.useRef(""),L=g.viewport,M=c.content-c.viewport,C=(0,o.useCallbackRef)(k),T=(0,o.useCallbackRef)(u),R=q(b,10);function O(e){_.current&&p({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return s.useEffect(()=>{let e=e=>{let t=e.target;y?.contains(t)&&C(e,M)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,y,M,C]),s.useEffect(T,[c,T]),I(y,R),I(g.content,R),(0,a.jsx)(E,{scope:l,scrollbar:y,hasThumb:i,onThumbChange:(0,o.useCallbackRef)(d),onThumbPointerUp:(0,o.useCallbackRef)(h),onThumbPositionChange:T,onThumbPointerDown:(0,o.useCallbackRef)(m),children:(0,a.jsx)(n.div,{...j,ref:x,style:{position:"absolute",...j.style},onPointerDown:(0,f.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),_.current=y.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,f.composeEventHandlers)(e.onPointerMove,O),onPointerUp:(0,f.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=S.current,g.viewport&&(g.viewport.style.scrollBehavior=""),_.current=null})})})}),O="ScrollAreaThumb",$=s.forwardRef((e,t)=>{let{forceMount:s,...r}=e,l=T(O,e.__scopeScrollArea);return(0,a.jsx)(i.Presence,{present:s||l.hasThumb,children:(0,a.jsx)(A,{ref:t,...r})})}),A=s.forwardRef((e,t)=>{let{__scopeScrollArea:l,style:c,...i}=e,o=v(O,l),d=T(O,l),{onThumbPositionChange:h}=d,m=(0,r.useComposedRefs)(t,e=>d.onThumbChange(e)),u=s.useRef(void 0),p=q(()=>{u.current&&(u.current(),u.current=void 0)},100);return s.useEffect(()=>{let e=o.viewport;if(e){let t=()=>{p(),u.current||(u.current=U(e,h),h())};return h(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,p,h]),(0,a.jsx)(n.div,{"data-state":d.hasThumb?"visible":"hidden",...i,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...c},onPointerDownCapture:(0,f.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),a=e.clientX-t.left,s=e.clientY-t.top;d.onThumbPointerDown({x:a,y:s})}),onPointerUp:(0,f.composeEventHandlers)(e.onPointerUp,d.onThumbPointerUp)})});$.displayName=O;var N="ScrollAreaCorner",W=s.forwardRef((e,t)=>{let s=v(N,e.__scopeScrollArea),r=!!(s.scrollbarX&&s.scrollbarY);return"scroll"!==s.type&&r?(0,a.jsx)(H,{...e,ref:t}):null});W.displayName=N;var H=s.forwardRef((e,t)=>{let{__scopeScrollArea:r,...l}=e,c=v(N,r),[i,o]=s.useState(0),[d,h]=s.useState(0),m=!!(i&&d);return I(c.scrollbarX,()=>{let e=c.scrollbarX?.offsetHeight||0;c.onCornerHeightChange(e),h(e)}),I(c.scrollbarY,()=>{let e=c.scrollbarY?.offsetWidth||0;c.onCornerWidthChange(e),o(e)}),m?(0,a.jsx)(n.div,{...l,ref:t,style:{width:i,height:d,position:"absolute",right:"ltr"===c.dir?0:void 0,left:"rtl"===c.dir?0:void 0,bottom:0,...e.style}}):null});function z(e){return e?parseInt(e,10):0}function X(e,t){let a=e/t;return isNaN(a)?0:a}function Y(e){let t=X(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-a)*t,18)}function D(e,t,a="ltr"){let s=Y(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-r,c=t.content-t.viewport,n=(0,m.clamp)(e,"ltr"===a?[0,c]:[-1*c,0]);return B([0,c],[0,l-s])(n)}function B(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(a-e[0])}}var U=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},s=0;return!function r(){let l={left:e.scrollLeft,top:e.scrollTop},c=a.left!==l.left,n=a.top!==l.top;(c||n)&&t(),a=l,s=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(s)};function q(e,t){let a=(0,o.useCallbackRef)(e),r=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(r.current),[]),s.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function I(e,t){let a=(0,o.useCallbackRef)(t);(0,h.useLayoutEffect)(()=>{let t=0;if(e){let s=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(a)});return s.observe(e),()=>{window.cancelAnimationFrame(t),s.unobserve(e)}}},[e,a])}var V=e.i(555552);function Q({className:e,children:t,...s}){return(0,a.jsxs)(j,{"data-slot":"scroll-area",className:(0,V.cn)("relative",e),...s,children:[(0,a.jsx)(y,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,a.jsx)(Z,{}),(0,a.jsx)(W,{})]})}function Z({className:e,orientation:t="vertical",...s}){return(0,a.jsx)(w,{"data-slot":"scroll-area-scrollbar",orientation:t,className:(0,V.cn)("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",e),...s,children:(0,a.jsx)($,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}e.s(["ScrollArea",()=>Q,"ScrollBar",()=>Z],772857)},416667,e=>{"use strict";let t=(0,e.i(292511).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",()=>t])},424922,e=>{e.v(t=>Promise.all(["static/chunks/7d33695e9e6e7098.js"].map(t=>e.l(t))).then(()=>t(595182)))},168873,e=>{e.v(t=>Promise.all(["static/chunks/7f8dcebf4917639a.js"].map(t=>e.l(t))).then(()=>t(271136)))},267555,e=>{e.v(t=>Promise.all(["static/chunks/b68d2ad059d231e1.js"].map(t=>e.l(t))).then(()=>t(722788)))},273354,e=>{e.v(t=>Promise.all(["static/chunks/e21622a90df41fb9.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(742666)))},601681,e=>{e.v(t=>Promise.all(["static/chunks/110b468cada0b19c.js","static/chunks/f99d736102eede68.js","static/chunks/226afaab58322e9d.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(681594)))},780677,e=>{e.v(t=>Promise.all(["static/chunks/11bf8221eb5d3051.js"].map(t=>e.l(t))).then(()=>t(539360)))},832664,e=>{e.v(t=>Promise.all(["static/chunks/f8af7c706aa3bd42.js"].map(t=>e.l(t))).then(()=>t(264908)))},759864,e=>{e.v(t=>Promise.all(["static/chunks/ba4f587d565e9ed9.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(163166)))},74304,e=>{e.v(t=>Promise.all(["static/chunks/e4b1f98322c4bd0a.js"].map(t=>e.l(t))).then(()=>t(971760)))},710100,e=>{e.v(t=>Promise.all(["static/chunks/c34377402f10481b.js"].map(t=>e.l(t))).then(()=>t(901815)))},665143,e=>{e.v(t=>Promise.all(["static/chunks/af1f1d4f41789bad.js"].map(t=>e.l(t))).then(()=>t(288547)))},552321,e=>{e.v(t=>Promise.all(["static/chunks/c41f381102075508.js"].map(t=>e.l(t))).then(()=>t(509982)))},96633,e=>{e.v(t=>Promise.all(["static/chunks/7180ff3c09fb636d.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(112537)))},731195,e=>{e.v(t=>Promise.all(["static/chunks/463e2604330ccc6d.js"].map(t=>e.l(t))).then(()=>t(52003)))},9251,e=>{e.v(t=>Promise.all(["static/chunks/4fe40531446572c4.js"].map(t=>e.l(t))).then(()=>t(658240)))},52303,e=>{e.v(t=>Promise.all(["static/chunks/e39be7e37181a9e9.js"].map(t=>e.l(t))).then(()=>t(327010)))},326771,e=>{e.v(t=>Promise.all(["static/chunks/6b91d4788effe1aa.js"].map(t=>e.l(t))).then(()=>t(470080)))},934449,e=>{e.v(t=>Promise.all(["static/chunks/39c79347bee03aba.js"].map(t=>e.l(t))).then(()=>t(647296)))},74926,e=>{e.v(t=>Promise.all(["static/chunks/92953f52765bba17.js"].map(t=>e.l(t))).then(()=>t(75089)))},257442,e=>{e.v(t=>Promise.all(["static/chunks/74e736e553ab9634.js"].map(t=>e.l(t))).then(()=>t(868724)))},240923,e=>{e.v(t=>Promise.all(["static/chunks/af1d73aed08cec34.js","static/chunks/06ef04f47d9600ae.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(580024)))},52297,e=>{e.v(t=>Promise.all(["static/chunks/849d0f7533b5e11d.js"].map(t=>e.l(t))).then(()=>t(64919)))},95831,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(513762)))},336373,e=>{e.v(t=>Promise.all(["static/chunks/aa485a5ac4605430.js"].map(t=>e.l(t))).then(()=>t(499913)))},172636,e=>{e.v(t=>Promise.all(["static/chunks/da15129ac55132fc.js"].map(t=>e.l(t))).then(()=>t(504292)))},751803,e=>{e.v(t=>Promise.all(["static/chunks/e6534395aed524cc.js","static/chunks/9ff34bfb8e9fc269.js"].map(t=>e.l(t))).then(()=>t(886708)))},615206,e=>{e.v(t=>Promise.all(["static/chunks/e3f64e9758532890.js"].map(t=>e.l(t))).then(()=>t(127078)))},886435,e=>{e.v(t=>Promise.all(["static/chunks/11954480dd21e413.js"].map(t=>e.l(t))).then(()=>t(884042)))},208400,e=>{e.v(t=>Promise.all(["static/chunks/7092611165bf9255.js"].map(t=>e.l(t))).then(()=>t(722970)))},774210,e=>{e.v(t=>Promise.all(["static/chunks/426fbc1f76ae0d69.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(635377)))},325806,e=>{e.v(t=>Promise.all(["static/chunks/e507363f86fbf2da.js"].map(t=>e.l(t))).then(()=>t(146867)))},454881,e=>{e.v(t=>Promise.all(["static/chunks/cee36f4604ffe6c6.js"].map(t=>e.l(t))).then(()=>t(815850)))},728920,e=>{e.v(t=>Promise.all(["static/chunks/b71fe87bc2b87072.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(289491)))},556516,e=>{e.v(t=>Promise.all(["static/chunks/53cb211e6034d9ee.js"].map(t=>e.l(t))).then(()=>t(292353)))},768810,e=>{e.v(t=>Promise.all(["static/chunks/22cc3b1d0679f43d.js"].map(t=>e.l(t))).then(()=>t(756872)))},36055,e=>{e.v(t=>Promise.all(["static/chunks/955b4de34169a4cd.js","static/chunks/0f3c351dacb605ce.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(475616)))},378958,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/ccc608430198012b.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(610982)))},848127,e=>{e.v(t=>Promise.all(["static/chunks/35957eea04e3d9f7.js"].map(t=>e.l(t))).then(()=>t(365789)))},904556,e=>{e.v(t=>Promise.all(["static/chunks/f20df2e672c0c210.js"].map(t=>e.l(t))).then(()=>t(682444)))},347771,e=>{e.v(t=>Promise.all(["static/chunks/91dfe2e10af9ddbe.js"].map(t=>e.l(t))).then(()=>t(604329)))},686137,e=>{e.v(t=>Promise.all(["static/chunks/0a2a545aaa4ba5a7.js"].map(t=>e.l(t))).then(()=>t(552747)))},949690,e=>{e.v(t=>Promise.all(["static/chunks/bd35005835e0972b.js"].map(t=>e.l(t))).then(()=>t(523425)))},183836,e=>{e.v(t=>Promise.all(["static/chunks/74a345c211a2c8ca.js"].map(t=>e.l(t))).then(()=>t(65839)))},290920,e=>{e.v(t=>Promise.all(["static/chunks/10f0f5eaae9e276b.js"].map(t=>e.l(t))).then(()=>t(374961)))},613593,e=>{e.v(t=>Promise.all(["static/chunks/4e41cc2e2cd5c9ca.js"].map(t=>e.l(t))).then(()=>t(484450)))},294887,e=>{e.v(t=>Promise.all(["static/chunks/6a8334a8ed5bf4ea.js"].map(t=>e.l(t))).then(()=>t(836935)))},538357,e=>{e.v(t=>Promise.all(["static/chunks/a188f37ee7096dc7.js"].map(t=>e.l(t))).then(()=>t(679906)))},741723,e=>{e.v(t=>Promise.all(["static/chunks/f6335043e0702821.js"].map(t=>e.l(t))).then(()=>t(929461)))},105283,e=>{e.v(t=>Promise.all(["static/chunks/a267d4ef7aa3a0a4.js"].map(t=>e.l(t))).then(()=>t(879230)))},392999,e=>{e.v(t=>Promise.all(["static/chunks/948b78734ca3d9cc.js"].map(t=>e.l(t))).then(()=>t(281667)))},619029,e=>{e.v(t=>Promise.all(["static/chunks/a08bc08ec36b0dde.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(278005)))},679713,e=>{e.v(t=>Promise.all(["static/chunks/8f6377a494021cb4.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(854078)))},25691,e=>{e.v(t=>Promise.all(["static/chunks/cb0c8c5f5b429ad4.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(592740)))},86556,e=>{e.v(t=>Promise.all(["static/chunks/411539befc33fe45.js"].map(t=>e.l(t))).then(()=>t(359801)))},310443,e=>{e.v(t=>Promise.all(["static/chunks/d6fe85bef9d11db6.js","static/chunks/f8248bf119d365a0.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7ad6219affedba24.js","static/chunks/8db31a1af9c73051.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(640273)))},994828,e=>{e.v(t=>Promise.all(["static/chunks/f4294937ddf137cf.js"].map(t=>e.l(t))).then(()=>t(402511)))},684352,e=>{e.v(t=>Promise.all(["static/chunks/0b9e09ed44af1d2a.js"].map(t=>e.l(t))).then(()=>t(152863)))},137028,e=>{e.v(t=>Promise.all(["static/chunks/f4739c8070793434.js"].map(t=>e.l(t))).then(()=>t(362245)))},837437,e=>{e.v(t=>Promise.all(["static/chunks/3d2c9cdce44daac7.js"].map(t=>e.l(t))).then(()=>t(418379)))},785635,e=>{e.v(t=>Promise.all(["static/chunks/e830a932f6af46eb.js","static/chunks/e8bed04fcf644f5c.js"].map(t=>e.l(t))).then(()=>t(298417)))},415116,e=>{e.v(t=>Promise.all(["static/chunks/e8bed04fcf644f5c.js"].map(t=>e.l(t))).then(()=>t(501588)))},891657,e=>{e.v(t=>Promise.all(["static/chunks/9e3be5dbca505e8d.js"].map(t=>e.l(t))).then(()=>t(972782)))},693084,e=>{e.v(t=>Promise.all(["static/chunks/af51bd2790c637ac.js"].map(t=>e.l(t))).then(()=>t(677002)))},445204,e=>{e.v(t=>Promise.all(["static/chunks/71f9c494b8de7f49.js"].map(t=>e.l(t))).then(()=>t(197191)))},975967,e=>{e.v(t=>Promise.all(["static/chunks/b5e5b251d639add2.js"].map(t=>e.l(t))).then(()=>t(653638)))},267018,e=>{e.v(t=>Promise.all(["static/chunks/603a3f1496d736d8.js"].map(t=>e.l(t))).then(()=>t(806821)))},309317,e=>{e.v(t=>Promise.all(["static/chunks/24fbb9da3ec1209f.js"].map(t=>e.l(t))).then(()=>t(917453)))},388952,e=>{e.v(t=>Promise.all(["static/chunks/b4a686a0931987e3.js"].map(t=>e.l(t))).then(()=>t(999586)))},455006,e=>{e.v(t=>Promise.all(["static/chunks/d9c6bae931e0989e.js"].map(t=>e.l(t))).then(()=>t(402862)))},283831,e=>{e.v(t=>Promise.all(["static/chunks/eeb05e78d4908802.js"].map(t=>e.l(t))).then(()=>t(484745)))},87687,e=>{e.v(t=>Promise.all(["static/chunks/372f0472aa687cd8.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(666612)))},726414,e=>{e.v(t=>Promise.all(["static/chunks/0d07d0b5412d5616.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(667354)))},712039,e=>{e.v(t=>Promise.all(["static/chunks/775a23568c750905.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(467282)))},105287,e=>{e.v(t=>Promise.all(["static/chunks/0f02dfa521617772.js"].map(t=>e.l(t))).then(()=>t(474761)))},58916,e=>{e.v(t=>Promise.all(["static/chunks/3c78ae34d4a63017.js"].map(t=>e.l(t))).then(()=>t(962069)))},465381,e=>{e.v(t=>Promise.all(["static/chunks/f58d505582d80000.js"].map(t=>e.l(t))).then(()=>t(760124)))},398913,e=>{e.v(t=>Promise.all(["static/chunks/a9e99eadcba68817.js","static/chunks/8db31a1af9c73051.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(314525)))},344283,e=>{e.v(t=>Promise.all(["static/chunks/0b4b037cd01db83b.js"].map(t=>e.l(t))).then(()=>t(622218)))},310258,e=>{e.v(t=>Promise.all(["static/chunks/f4834f5b739352e8.js","static/chunks/763419728d677985.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(486524)))},196446,e=>{e.v(t=>Promise.all(["static/chunks/aaf72264685f9f99.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(15894)))},78905,e=>{e.v(t=>Promise.all(["static/chunks/f82d75ea3bc5a6b2.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(624870)))},808975,e=>{e.v(t=>Promise.all(["static/chunks/e597a3b066b5af38.js"].map(t=>e.l(t))).then(()=>t(124660)))},64439,e=>{e.v(t=>Promise.all(["static/chunks/7639a2ae22a8e859.js"].map(t=>e.l(t))).then(()=>t(394921)))},280445,e=>{e.v(t=>Promise.all(["static/chunks/0a4abe4c34855441.js"].map(t=>e.l(t))).then(()=>t(998543)))},822969,e=>{e.v(t=>Promise.all(["static/chunks/0e8efcbb73e15e2d.js"].map(t=>e.l(t))).then(()=>t(463367)))},590834,e=>{e.v(t=>Promise.all(["static/chunks/0527ec57ea4ae731.js"].map(t=>e.l(t))).then(()=>t(82225)))},407645,e=>{e.v(t=>Promise.all(["static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(815512)))},115233,e=>{e.v(t=>Promise.all(["static/chunks/d9391979856f7485.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(284161)))},895764,e=>{e.v(t=>Promise.all(["static/chunks/3b4af1941bd2235e.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/8db31a1af9c73051.js","static/chunks/7f56445f284895ee.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(490113)))},172420,e=>{e.v(t=>Promise.all(["static/chunks/c89e0c935729a3d2.js","static/chunks/7f56445f284895ee.js","static/chunks/8db31a1af9c73051.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(928444)))},987718,e=>{e.v(t=>Promise.all(["static/chunks/ea66cd9af309875b.js"].map(t=>e.l(t))).then(()=>t(610370)))},38679,e=>{e.v(t=>Promise.all(["static/chunks/4874e126f4cc3524.js"].map(t=>e.l(t))).then(()=>t(524525)))},787201,e=>{e.v(t=>Promise.all(["static/chunks/6402a50f95eeedd7.js"].map(t=>e.l(t))).then(()=>t(647353)))},980017,e=>{e.v(t=>Promise.all(["static/chunks/206ac5a103a40c5c.js"].map(t=>e.l(t))).then(()=>t(255571)))},144131,e=>{e.v(t=>Promise.all(["static/chunks/b5cb0216b21eafc5.js"].map(t=>e.l(t))).then(()=>t(825339)))},502431,e=>{e.v(t=>Promise.all(["static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(526699)))},729473,e=>{e.v(t=>Promise.all(["static/chunks/4ddd1156645b9788.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(183148)))},576554,e=>{e.v(t=>Promise.all(["static/chunks/9c6c32c0da8a9361.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(204696)))},113295,e=>{e.v(t=>Promise.all(["static/chunks/0869945c81913908.js"].map(t=>e.l(t))).then(()=>t(283844)))},991170,e=>{e.v(t=>Promise.all(["static/chunks/07e754638219ff92.js"].map(t=>e.l(t))).then(()=>t(458070)))},26929,e=>{e.v(t=>Promise.all(["static/chunks/8afee0c728904a19.js"].map(t=>e.l(t))).then(()=>t(975109)))},281787,e=>{e.v(t=>Promise.all(["static/chunks/c62dca9f94e89ae7.js"].map(t=>e.l(t))).then(()=>t(270743)))},808302,e=>{e.v(t=>Promise.all(["static/chunks/3006cde4dcb89a9c.js"].map(t=>e.l(t))).then(()=>t(995089)))},514714,e=>{e.v(t=>Promise.all(["static/chunks/9d7e4f0e658540de.js"].map(t=>e.l(t))).then(()=>t(216452)))},941751,e=>{e.v(t=>Promise.all(["static/chunks/8db31a1af9c73051.js"].map(t=>e.l(t))).then(()=>t(547593)))},44535,e=>{e.v(t=>Promise.all(["static/chunks/9ff34bfb8e9fc269.js","static/chunks/f8248bf119d365a0.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7ad6219affedba24.js","static/chunks/49b1d6aceb7ad5cf.js"].map(t=>e.l(t))).then(()=>t(468323)))},694401,e=>{e.v(t=>Promise.all(["static/chunks/aa15105b6b962fb8.js"].map(t=>e.l(t))).then(()=>t(847418)))},580413,e=>{e.v(t=>Promise.all(["static/chunks/6b61e6d70f3cd2c3.js"].map(t=>e.l(t))).then(()=>t(622504)))},681665,e=>{e.v(t=>Promise.all(["static/chunks/12777b8c30d039bd.js"].map(t=>e.l(t))).then(()=>t(914001)))},378842,e=>{e.v(t=>Promise.all(["static/chunks/c0616ccf6cd55fd1.js","static/chunks/52cac654ae5fc046.js"].map(t=>e.l(t))).then(()=>t(943821)))},214730,e=>{e.v(t=>Promise.all(["static/chunks/e0ea86c3131487bd.js"].map(t=>e.l(t))).then(()=>t(251934)))},553944,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js"].map(t=>e.l(t))).then(()=>t(462516)))},834697,e=>{e.v(t=>Promise.all(["static/chunks/d780c02bbdb751ec.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(301144)))},472126,e=>{e.v(t=>Promise.all(["static/chunks/eb98b1cd9e2a59ba.js"].map(t=>e.l(t))).then(()=>t(772296)))},485531,e=>{e.v(t=>Promise.all(["static/chunks/56813ce2a81b5922.js"].map(t=>e.l(t))).then(()=>t(706472)))},336844,e=>{e.v(t=>Promise.all(["static/chunks/6549fe8f5743aeac.js"].map(t=>e.l(t))).then(()=>t(751393)))},251683,e=>{e.v(t=>Promise.all(["static/chunks/8f28b787822085f0.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(60063)))},470369,e=>{e.v(t=>Promise.all(["static/chunks/cb7c3491d0da8daa.js"].map(t=>e.l(t))).then(()=>t(944211)))},233461,e=>{e.v(t=>Promise.all(["static/chunks/917b6f54e7d1e776.js"].map(t=>e.l(t))).then(()=>t(983753)))},803482,e=>{e.v(t=>Promise.all(["static/chunks/5d36e222789a1e01.js"].map(t=>e.l(t))).then(()=>t(129269)))},948534,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/18b21b0a429ecb66.js"].map(t=>e.l(t))).then(()=>t(636701)))},301121,e=>{e.v(t=>Promise.all(["static/chunks/8eabf4e21fb292d4.js"].map(t=>e.l(t))).then(()=>t(938820)))},602420,e=>{e.v(t=>Promise.all(["static/chunks/e3970cd69968a3b7.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(233532)))},506813,e=>{e.v(t=>Promise.all(["static/chunks/ce852cce30862a4c.js"].map(t=>e.l(t))).then(()=>t(223898)))},140850,e=>{e.v(t=>Promise.all(["static/chunks/c973de21ed34090c.js"].map(t=>e.l(t))).then(()=>t(742023)))},549647,e=>{e.v(t=>Promise.all(["static/chunks/c891cd556aa7acf1.js"].map(t=>e.l(t))).then(()=>t(747652)))},962276,e=>{e.v(t=>Promise.all(["static/chunks/782750051316e90e.js"].map(t=>e.l(t))).then(()=>t(112691)))},488064,e=>{e.v(t=>Promise.all(["static/chunks/80e424cf39a5dcc5.js"].map(t=>e.l(t))).then(()=>t(887886)))},935257,e=>{e.v(t=>Promise.all(["static/chunks/64f5826a003f01d1.js"].map(t=>e.l(t))).then(()=>t(360063)))},145171,e=>{e.v(t=>Promise.all(["static/chunks/3dd00e0bc55a6903.js"].map(t=>e.l(t))).then(()=>t(26833)))},371822,e=>{e.v(t=>Promise.all(["static/chunks/c6dfb363e41eaf49.js"].map(t=>e.l(t))).then(()=>t(578379)))},670410,e=>{e.v(t=>Promise.all(["static/chunks/23a5895aad8101ad.js","static/chunks/f8248bf119d365a0.js"].map(t=>e.l(t))).then(()=>t(587528)))},339255,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/c09163cd00015e85.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(37711)))},868854,e=>{e.v(t=>Promise.all(["static/chunks/2b0d37a90eafd82e.js"].map(t=>e.l(t))).then(()=>t(303550)))},22667,e=>{e.v(t=>Promise.all(["static/chunks/e6e9365137d03871.js"].map(t=>e.l(t))).then(()=>t(389871)))},436910,e=>{e.v(t=>Promise.all(["static/chunks/7caf1c11b0c054a1.js"].map(t=>e.l(t))).then(()=>t(3795)))},507940,e=>{e.v(t=>Promise.all(["static/chunks/93dd6912ca0bce4f.js"].map(t=>e.l(t))).then(()=>t(785974)))},55452,e=>{e.v(t=>Promise.all(["static/chunks/24ad305b622f6720.js"].map(t=>e.l(t))).then(()=>t(697630)))},933900,e=>{e.v(t=>Promise.all(["static/chunks/72a723be24f5a255.js"].map(t=>e.l(t))).then(()=>t(479371)))},246481,e=>{e.v(t=>Promise.all(["static/chunks/9ae6b9e163eb0aab.js"].map(t=>e.l(t))).then(()=>t(831476)))},325975,e=>{e.v(t=>Promise.all(["static/chunks/6f7542d47732e155.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(380117)))},832212,e=>{e.v(t=>Promise.all(["static/chunks/9fb6e022474ccac7.js","static/chunks/b999e8f735687ca5.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(16505)))},929773,e=>{e.v(t=>Promise.all(["static/chunks/6f44a939c693a863.js"].map(t=>e.l(t))).then(()=>t(303856)))},997293,e=>{e.v(t=>Promise.all(["static/chunks/33948efb1580fd27.js"].map(t=>e.l(t))).then(()=>t(640683)))},948438,e=>{e.v(t=>Promise.all(["static/chunks/56a43118bad7cb81.js"].map(t=>e.l(t))).then(()=>t(674782)))},714648,e=>{e.v(t=>Promise.all(["static/chunks/f2568ff5d06d2c62.js"].map(t=>e.l(t))).then(()=>t(362893)))},378567,e=>{e.v(t=>Promise.all(["static/chunks/b3a753e3e983e969.js"].map(t=>e.l(t))).then(()=>t(746397)))},656940,e=>{e.v(t=>Promise.all(["static/chunks/f1303eac027d5c35.js"].map(t=>e.l(t))).then(()=>t(87465)))},197812,e=>{e.v(t=>Promise.all(["static/chunks/b7ea3312af6b18c7.js"].map(t=>e.l(t))).then(()=>t(493303)))},286754,e=>{e.v(t=>Promise.all(["static/chunks/4547515a6d048778.js"].map(t=>e.l(t))).then(()=>t(861555)))},714818,e=>{e.v(t=>Promise.all(["static/chunks/c1b89a4a96aa9e52.js"].map(t=>e.l(t))).then(()=>t(887012)))},26675,e=>{e.v(t=>Promise.all(["static/chunks/630badef965071c8.js"].map(t=>e.l(t))).then(()=>t(684726)))},694488,e=>{e.v(t=>Promise.all(["static/chunks/6ac99ae2b1fe307b.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(263035)))},118886,e=>{e.v(t=>Promise.all(["static/chunks/c0d7f4ab8f1f1bc9.js"].map(t=>e.l(t))).then(()=>t(191042)))},354419,e=>{e.v(t=>Promise.all(["static/chunks/8d39b46f9d7c54f4.js"].map(t=>e.l(t))).then(()=>t(553445)))},196728,e=>{e.v(t=>Promise.all(["static/chunks/9ff34bfb8e9fc269.js"].map(t=>e.l(t))).then(()=>t(951084)))},850381,e=>{e.v(t=>Promise.all(["static/chunks/ff6d0dd894d41a47.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(372853)))},776789,e=>{e.v(t=>Promise.all(["static/chunks/6f48fe9d683a0cc5.js"].map(t=>e.l(t))).then(()=>t(741194)))},988321,e=>{e.v(t=>Promise.all(["static/chunks/51946aced88b8ae2.js"].map(t=>e.l(t))).then(()=>t(534702)))},577036,e=>{e.v(t=>Promise.all(["static/chunks/c703f401bf226572.js"].map(t=>e.l(t))).then(()=>t(71342)))},733419,e=>{e.v(t=>Promise.all(["static/chunks/1586c4ec6afda503.js"].map(t=>e.l(t))).then(()=>t(109926)))},755698,e=>{e.v(t=>Promise.all(["static/chunks/857006df902a21ab.js"].map(t=>e.l(t))).then(()=>t(734979)))},525413,e=>{e.v(t=>Promise.all(["static/chunks/b5db816b123084d0.js","static/chunks/35957eea04e3d9f7.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(522702)))},871580,e=>{e.v(t=>Promise.all(["static/chunks/b3f7982222421889.js"].map(t=>e.l(t))).then(()=>t(148252)))},719347,e=>{e.v(t=>Promise.all(["static/chunks/fa749080364f8f08.js"].map(t=>e.l(t))).then(()=>t(259704)))},418074,e=>{e.v(t=>Promise.all(["static/chunks/9f7929135279582c.js"].map(t=>e.l(t))).then(()=>t(162689)))},248688,e=>{e.v(t=>Promise.all(["static/chunks/b12c69de100637e5.js"].map(t=>e.l(t))).then(()=>t(169111)))},417101,e=>{e.v(t=>Promise.all(["static/chunks/ffe29c0580c6e2b0.js"].map(t=>e.l(t))).then(()=>t(611182)))},205156,e=>{e.v(t=>Promise.all(["static/chunks/04b1eda6614f5bbe.js","static/chunks/9ff34bfb8e9fc269.js","static/chunks/f8248bf119d365a0.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/0f3c351dacb605ce.js","static/chunks/7f56445f284895ee.js","static/chunks/7e36297bdda90ff5.js","static/chunks/8db31a1af9c73051.js"].map(t=>e.l(t))).then(()=>t(174440)))},616617,e=>{e.v(t=>Promise.all(["static/chunks/33688eb4e85828f5.js","static/chunks/f8248bf119d365a0.js","static/chunks/f99d736102eede68.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/0f3c351dacb605ce.js","static/chunks/8db31a1af9c73051.js","static/chunks/7f56445f284895ee.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(818717)))},712841,e=>{e.v(t=>Promise.all(["static/chunks/2b112b98cc047657.js"].map(t=>e.l(t))).then(()=>t(612709)))},407559,e=>{e.v(t=>Promise.all(["static/chunks/583c1d1ed842e9ee.js"].map(t=>e.l(t))).then(()=>t(579157)))},329481,e=>{e.v(t=>Promise.all(["static/chunks/2e98228ab8c36d19.js"].map(t=>e.l(t))).then(()=>t(146440)))},906092,e=>{e.v(t=>Promise.all(["static/chunks/a28472fd9e7f6f84.js"].map(t=>e.l(t))).then(()=>t(905084)))},99440,e=>{e.v(t=>Promise.all(["static/chunks/2b2467c5260d444a.js"].map(t=>e.l(t))).then(()=>t(697956)))},280679,e=>{e.v(t=>Promise.all(["static/chunks/35e1b86c62bc87b0.js"].map(t=>e.l(t))).then(()=>t(109291)))},54004,e=>{e.v(t=>Promise.all(["static/chunks/9278b2b10956f273.js"].map(t=>e.l(t))).then(()=>t(185561)))},529105,e=>{e.v(t=>Promise.all(["static/chunks/9ead00122ce12d8b.js"].map(t=>e.l(t))).then(()=>t(725384)))},430026,e=>{e.v(t=>Promise.all(["static/chunks/450e83577b856348.js"].map(t=>e.l(t))).then(()=>t(271825)))},681262,e=>{e.v(t=>Promise.all(["static/chunks/aac83b65f06ff134.js"].map(t=>e.l(t))).then(()=>t(6950)))},429843,e=>{e.v(t=>Promise.all(["static/chunks/6b590b0b6f878f68.js"].map(t=>e.l(t))).then(()=>t(99481)))},790483,e=>{e.v(t=>Promise.all(["static/chunks/ebfb0dc7a630a61a.js"].map(t=>e.l(t))).then(()=>t(195448)))},66378,e=>{e.v(t=>Promise.all(["static/chunks/62ece7d6867e41c6.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(511047)))},14166,e=>{e.v(t=>Promise.all(["static/chunks/794db2ef16bc485a.js"].map(t=>e.l(t))).then(()=>t(812440)))},825194,e=>{e.v(t=>Promise.all(["static/chunks/b8b5830b4f5a07e4.js"].map(t=>e.l(t))).then(()=>t(930764)))},486478,e=>{e.v(t=>Promise.all(["static/chunks/f4834f5b739352e8.js"].map(t=>e.l(t))).then(()=>t(905374)))},29704,e=>{e.v(t=>Promise.all(["static/chunks/0cd3f508e23e2335.js"].map(t=>e.l(t))).then(()=>t(736594)))},205697,e=>{e.v(t=>Promise.all(["static/chunks/c3046484a0963427.js"].map(t=>e.l(t))).then(()=>t(210498)))},561937,e=>{e.v(t=>Promise.all(["static/chunks/679d9c3136624cef.js"].map(t=>e.l(t))).then(()=>t(260237)))},69149,e=>{e.v(t=>Promise.all(["static/chunks/71b9b97c65b14988.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(604740)))},558167,e=>{e.v(t=>Promise.all(["static/chunks/7dd90b5408b3259c.js"].map(t=>e.l(t))).then(()=>t(176078)))},471804,e=>{e.v(t=>Promise.all(["static/chunks/32a4d8c6a5c5cbee.js"].map(t=>e.l(t))).then(()=>t(564617)))},699598,e=>{e.v(t=>Promise.all(["static/chunks/09c95ac06f01e26e.js"].map(t=>e.l(t))).then(()=>t(605824)))},224168,e=>{e.v(t=>Promise.all(["static/chunks/1c77dfda9f767ddc.js"].map(t=>e.l(t))).then(()=>t(335968)))},268280,e=>{e.v(t=>Promise.all(["static/chunks/63bcfad7de044dd5.js"].map(t=>e.l(t))).then(()=>t(112312)))},341811,e=>{e.v(t=>Promise.all(["static/chunks/8b313f3a9a9986f1.js"].map(t=>e.l(t))).then(()=>t(251109)))},760495,e=>{e.v(t=>Promise.all(["static/chunks/ad76d4e0aa4055e7.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(317276)))},983690,e=>{e.v(t=>Promise.all(["static/chunks/0ccef7f197f7b981.js"].map(t=>e.l(t))).then(()=>t(106333)))},981895,e=>{e.v(t=>Promise.all(["static/chunks/c0616ccf6cd55fd1.js"].map(t=>e.l(t))).then(()=>t(921306)))},523467,e=>{e.v(t=>Promise.all(["static/chunks/bd9f77af154db67d.js"].map(t=>e.l(t))).then(()=>t(724224)))},70493,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/9dfd8c0fe146ab95.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js","static/chunks/f99d736102eede68.js"].map(t=>e.l(t))).then(()=>t(399855)))},528966,e=>{e.v(t=>Promise.all(["static/chunks/3d204794c1566b1f.js"].map(t=>e.l(t))).then(()=>t(912682)))},765573,e=>{e.v(t=>Promise.all(["static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(329065)))},889390,e=>{e.v(t=>Promise.all(["static/chunks/4c670edd9d5ecab0.js"].map(t=>e.l(t))).then(()=>t(923674)))},158869,e=>{e.v(t=>Promise.all(["static/chunks/f8248bf119d365a0.js","static/chunks/9ff34bfb8e9fc269.js","static/chunks/b999e8f735687ca5.js","static/chunks/f99d736102eede68.js","static/chunks/9bdc7bff1419e7b7.js","static/chunks/8db31a1af9c73051.js","static/chunks/0f3c351dacb605ce.js","static/chunks/b00f2c767d9ff85c.js","static/chunks/7ad6219affedba24.js","static/chunks/7e36297bdda90ff5.js","static/chunks/7f56445f284895ee.js"].map(t=>e.l(t))).then(()=>t(115174)))},540873,e=>{e.v(t=>Promise.all(["static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(688884)))},941325,e=>{e.v(t=>Promise.all(["static/chunks/3199b4d87a59135a.js"].map(t=>e.l(t))).then(()=>t(172682)))},905331,e=>{e.v(t=>Promise.all(["static/chunks/72dfbdfac5999f65.js"].map(t=>e.l(t))).then(()=>t(386400)))},634520,e=>{e.v(t=>Promise.all(["static/chunks/398ec44ecf114a29.js"].map(t=>e.l(t))).then(()=>t(11416)))},749827,e=>{e.v(t=>Promise.all(["static/chunks/2e0a531fa5061998.js"].map(t=>e.l(t))).then(()=>t(305747)))},723339,e=>{e.v(t=>Promise.all(["static/chunks/08a34ab3be877561.js"].map(t=>e.l(t))).then(()=>t(658171)))},659928,e=>{e.v(t=>Promise.all(["static/chunks/0ff96804d78f9529.js"].map(t=>e.l(t))).then(()=>t(726163)))},676577,e=>{e.v(t=>Promise.all(["static/chunks/7e3d0bfaf1579da0.js"].map(t=>e.l(t))).then(()=>t(312630)))},9996,e=>{e.v(t=>Promise.all(["static/chunks/9f8f859f44f73b3c.js"].map(t=>e.l(t))).then(()=>t(268997)))},990512,e=>{e.v(t=>Promise.all(["static/chunks/844cf8b6fbb9b0e3.js","static/chunks/f99d736102eede68.js","static/chunks/7ad6219affedba24.js","static/chunks/b00f2c767d9ff85c.js"].map(t=>e.l(t))).then(()=>t(93951)))},318085,e=>{e.v(t=>Promise.all(["static/chunks/3b04d044755c7f57.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(52858)))},984300,e=>{e.v(t=>Promise.all(["static/chunks/96cddbf73f404051.js","static/chunks/5a2826a781e83be2.js","static/chunks/8f838b716ac12e87.js","static/chunks/7ad6219affedba24.js"].map(t=>e.l(t))).then(()=>t(658313)))},712096,e=>{e.v(t=>Promise.all(["static/chunks/ff9d96f61d250514.js"].map(t=>e.l(t))).then(()=>t(785933)))},959984,e=>{e.v(t=>Promise.all(["static/chunks/a071c4ed8e86f034.js"].map(t=>e.l(t))).then(()=>t(628081)))},657695,e=>{e.v(t=>Promise.all(["static/chunks/00e2b2bd4fd73888.js"].map(t=>e.l(t))).then(()=>t(617666)))},216503,e=>{e.v(t=>Promise.all(["static/chunks/116387fbd07b44f4.js"].map(t=>e.l(t))).then(()=>t(323243)))},237218,e=>{e.v(t=>Promise.all(["static/chunks/e6c0c79337937d5b.js"].map(t=>e.l(t))).then(()=>t(818648)))},944971,e=>{e.v(t=>Promise.all(["static/chunks/0ff9fac9d5158f9b.js"].map(t=>e.l(t))).then(()=>t(894742)))},483867,e=>{e.v(t=>Promise.all(["static/chunks/5b4eb6c4a60ca27e.js"].map(t=>e.l(t))).then(()=>t(275093)))},190206,e=>{e.v(t=>Promise.all(["static/chunks/33688eb4e85828f5.js"].map(t=>e.l(t))).then(()=>t(276215)))},893978,e=>{e.v(t=>Promise.all(["static/chunks/48da29031f3dc1ee.js"].map(t=>e.l(t))).then(()=>t(923145)))},267823,e=>{e.v(t=>Promise.all(["static/chunks/56b3fd6a49a27c98.js"].map(t=>e.l(t))).then(()=>t(913602)))},747329,e=>{e.v(t=>Promise.all(["static/chunks/cac2ad3d83e64e4e.js"].map(t=>e.l(t))).then(()=>t(812092)))},904154,e=>{e.v(t=>Promise.all(["static/chunks/2c92705ad1c4314a.js"].map(t=>e.l(t))).then(()=>t(672985)))},189508,e=>{e.v(t=>Promise.all(["static/chunks/c12b3bcfa2870a9a.js"].map(t=>e.l(t))).then(()=>t(930276)))},327553,e=>{e.v(t=>Promise.all(["static/chunks/c9ba28c28ea3fab3.js"].map(t=>e.l(t))).then(()=>t(187541)))},759341,e=>{e.v(t=>Promise.all(["static/chunks/f3a83beaa45a556d.js"].map(t=>e.l(t))).then(()=>t(965010)))},557366,e=>{e.v(t=>Promise.all(["static/chunks/76f16109a9bffb58.js"].map(t=>e.l(t))).then(()=>t(727144)))},127572,e=>{e.v(t=>Promise.all(["static/chunks/03b1e54927c98b05.js"].map(t=>e.l(t))).then(()=>t(969396)))},398911,e=>{e.v(t=>Promise.all(["static/chunks/26976267539c766c.js"].map(t=>e.l(t))).then(()=>t(163631)))},765061,e=>{e.v(t=>Promise.all(["static/chunks/e50b0d6daeb45dcc.js"].map(t=>e.l(t))).then(()=>t(573584)))},814228,e=>{e.v(t=>Promise.all(["static/chunks/014655d90e22a6ea.js"].map(t=>e.l(t))).then(()=>t(752946)))},374789,e=>{e.v(t=>Promise.all(["static/chunks/09e7e676c004255e.js"].map(t=>e.l(t))).then(()=>t(912646)))},675562,e=>{e.v(t=>Promise.all(["static/chunks/a3cad768330e329e.js"].map(t=>e.l(t))).then(()=>t(557145)))},264696,e=>{e.v(t=>Promise.all(["static/chunks/85e937ccc534609c.js"].map(t=>e.l(t))).then(()=>t(689735)))},42530,e=>{e.v(t=>Promise.all(["static/chunks/8dcc90bc92c8c971.js"].map(t=>e.l(t))).then(()=>t(35453)))},427713,e=>{e.v(t=>Promise.all(["static/chunks/31b3a9b2a8d314ed.js"].map(t=>e.l(t))).then(()=>t(883598)))},576963,e=>{e.v(t=>Promise.all(["static/chunks/dd768aa5e1ac0874.js"].map(t=>e.l(t))).then(()=>t(178888)))},329581,e=>{e.v(t=>Promise.all(["static/chunks/9af889226a2ee121.js"].map(t=>e.l(t))).then(()=>t(995069)))},195279,e=>{e.v(t=>Promise.all(["static/chunks/ce73fab9db85e2ab.js"].map(t=>e.l(t))).then(()=>t(870837)))},516651,e=>{e.v(t=>Promise.all(["static/chunks/1456df2f144296eb.js"].map(t=>e.l(t))).then(()=>t(623302)))},689651,e=>{e.v(t=>Promise.all(["static/chunks/5510573e0cfc1400.js"].map(t=>e.l(t))).then(()=>t(669558)))},642036,e=>{e.v(t=>Promise.all(["static/chunks/514d55d16e308dc8.js"].map(t=>e.l(t))).then(()=>t(9891)))},840055,e=>{e.v(t=>Promise.all(["static/chunks/4a9d22b22ac291cb.js"].map(t=>e.l(t))).then(()=>t(712210)))},398687,e=>{e.v(t=>Promise.all(["static/chunks/cff13b04c1a5bd5a.js"].map(t=>e.l(t))).then(()=>t(205017)))},18935,e=>{e.v(t=>Promise.all(["static/chunks/59ab8f3037318070.js"].map(t=>e.l(t))).then(()=>t(795346)))},52380,e=>{e.v(t=>Promise.all(["static/chunks/2ee46b47d30992b2.js"].map(t=>e.l(t))).then(()=>t(659978)))},24410,e=>{e.v(t=>Promise.all(["static/chunks/6c38ab56a33393a2.js"].map(t=>e.l(t))).then(()=>t(73435)))},795210,e=>{e.v(t=>Promise.all(["static/chunks/688eabd0265bf745.js"].map(t=>e.l(t))).then(()=>t(910848)))},695303,e=>{e.v(t=>Promise.all(["static/chunks/13af0835ba351243.js"].map(t=>e.l(t))).then(()=>t(575944)))},686210,e=>{e.v(t=>Promise.all(["static/chunks/ac0edaec19bb583d.js"].map(t=>e.l(t))).then(()=>t(924160)))},847729,e=>{e.v(t=>Promise.all(["static/chunks/c033b65a68a579c2.js"].map(t=>e.l(t))).then(()=>t(377199)))},233589,e=>{e.v(t=>Promise.all(["static/chunks/706e667344c89c99.js"].map(t=>e.l(t))).then(()=>t(49703)))},951946,e=>{e.v(t=>Promise.all(["static/chunks/f57449a5fac33dcd.js"].map(t=>e.l(t))).then(()=>t(79001)))},279775,e=>{e.v(t=>Promise.all(["static/chunks/ae8125fdcd72d4fa.js"].map(t=>e.l(t))).then(()=>t(721403)))},593928,e=>{e.v(t=>Promise.all(["static/chunks/25de65d107ce3c3d.js"].map(t=>e.l(t))).then(()=>t(317143)))},198658,e=>{e.v(t=>Promise.all(["static/chunks/9d05b89cf149821a.js"].map(t=>e.l(t))).then(()=>t(969770)))},270659,e=>{e.v(t=>Promise.all(["static/chunks/44876e582cade503.js"].map(t=>e.l(t))).then(()=>t(181985)))},320719,e=>{e.v(t=>Promise.all(["static/chunks/2f543ea68e1c8e7e.js"].map(t=>e.l(t))).then(()=>t(970686)))},525766,e=>{e.v(t=>Promise.all(["static/chunks/55aef1501fa495c6.js"].map(t=>e.l(t))).then(()=>t(948029)))},610344,e=>{e.v(t=>Promise.all(["static/chunks/9720eee1cde17814.js"].map(t=>e.l(t))).then(()=>t(961758)))},100684,e=>{e.v(t=>Promise.all(["static/chunks/df035ebd0e7ec5f7.js"].map(t=>e.l(t))).then(()=>t(332363)))},291123,e=>{e.v(t=>Promise.all(["static/chunks/febc2f96b7fbd369.js"].map(t=>e.l(t))).then(()=>t(9563)))},198410,e=>{e.v(t=>Promise.all(["static/chunks/2be85cc3954990ac.js"].map(t=>e.l(t))).then(()=>t(866064)))},785810,e=>{e.v(t=>Promise.all(["static/chunks/d0e319a5b21386c3.js"].map(t=>e.l(t))).then(()=>t(74628)))},350612,e=>{e.v(t=>Promise.all(["static/chunks/e8142c7904838b5a.js"].map(t=>e.l(t))).then(()=>t(800608)))},492494,e=>{e.v(t=>Promise.all(["static/chunks/e9cc9412c5bc46d8.js"].map(t=>e.l(t))).then(()=>t(362283)))},59650,e=>{e.v(t=>Promise.all(["static/chunks/30daf1b94ed4e1cb.js"].map(t=>e.l(t))).then(()=>t(324805)))},533273,e=>{e.v(t=>Promise.all(["static/chunks/ebaec72f0276e5e9.js"].map(t=>e.l(t))).then(()=>t(258160)))},473810,e=>{e.v(t=>Promise.all(["static/chunks/25502b6bcb274a00.js"].map(t=>e.l(t))).then(()=>t(921210)))},486978,e=>{e.v(t=>Promise.all(["static/chunks/8ac2c9d606ed5639.js"].map(t=>e.l(t))).then(()=>t(344744)))},371553,e=>{e.v(t=>Promise.all(["static/chunks/133ac69409129fce.js"].map(t=>e.l(t))).then(()=>t(309802)))},297035,e=>{e.v(t=>Promise.all(["static/chunks/abcd629cf9f8a4e0.js"].map(t=>e.l(t))).then(()=>t(413263)))},747632,e=>{e.v(t=>Promise.all(["static/chunks/aeee013933670787.js"].map(t=>e.l(t))).then(()=>t(845599)))},93215,e=>{e.v(t=>Promise.all(["static/chunks/c6d5475083a4fb34.js"].map(t=>e.l(t))).then(()=>t(798823)))},612986,e=>{e.v(t=>Promise.all(["static/chunks/dd04e9a8e8564216.js"].map(t=>e.l(t))).then(()=>t(428504)))},255674,e=>{e.v(t=>Promise.all(["static/chunks/3ac428e2be7a950e.js"].map(t=>e.l(t))).then(()=>t(759086)))},731013,e=>{e.v(t=>Promise.all(["static/chunks/2c2d824a59e9330f.js"].map(t=>e.l(t))).then(()=>t(302569)))},94801,e=>{e.v(t=>Promise.all(["static/chunks/8d3357baa0194eb3.js"].map(t=>e.l(t))).then(()=>t(528832)))},457836,e=>{e.v(t=>Promise.all(["static/chunks/d18214fcf73b738a.js"].map(t=>e.l(t))).then(()=>t(522428)))},13877,e=>{e.v(t=>Promise.all(["static/chunks/1a17c7262c26e5a8.js"].map(t=>e.l(t))).then(()=>t(487853)))},448048,e=>{e.v(t=>Promise.all(["static/chunks/9e6df530cd0eb319.js"].map(t=>e.l(t))).then(()=>t(675700)))},639922,e=>{e.v(t=>Promise.all(["static/chunks/397cbe85aee30daa.js"].map(t=>e.l(t))).then(()=>t(263088)))},595345,e=>{e.v(t=>Promise.all(["static/chunks/bec22788d1b72056.js"].map(t=>e.l(t))).then(()=>t(589229)))},259500,e=>{e.v(t=>Promise.all(["static/chunks/786229452e9adc9c.js"].map(t=>e.l(t))).then(()=>t(70533)))},614472,e=>{e.v(e=>Promise.resolve().then(()=>e(751692)))},635288,e=>{e.v(t=>Promise.all(["static/chunks/eb2336bebeacbd67.js","static/chunks/0c28698f24525f4b.js","static/chunks/0a528cc28f82ba03.js"].map(t=>e.l(t))).then(()=>t(98658)))},112933,e=>{e.v(t=>Promise.all(["static/chunks/e8818e2e0fa2f58d.js","static/chunks/9a25c27deceff30a.js"].map(t=>e.l(t))).then(()=>t(880974)))},533915,e=>{e.v(t=>Promise.all(["static/chunks/3ed0d8760b119d01.js","static/chunks/cd692773c1bcea89.js"].map(t=>e.l(t))).then(()=>t(390730)))},956761,e=>{e.v(t=>Promise.all(["static/chunks/5c9e51e6018376bc.js","static/chunks/c1cac54014b81f57.js"].map(t=>e.l(t))).then(()=>t(73242)))},943185,e=>{e.v(t=>Promise.all(["static/chunks/436fb7278e72f433.js"].map(t=>e.l(t))).then(()=>t(910193)))},388129,e=>{e.v(t=>Promise.all(["static/chunks/7e2d13a8c33ced33.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/f988354b60c71d30.js"].map(t=>e.l(t))).then(()=>t(682305)))},941076,e=>{e.v(t=>Promise.all(["static/chunks/90aa821be74370ff.js","static/chunks/2b555af61ff8a482.js"].map(t=>e.l(t))).then(()=>t(573818)))},781187,e=>{e.v(t=>Promise.all(["static/chunks/33a0a1e856b99004.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(125046)))},459696,e=>{e.v(t=>Promise.all(["static/chunks/a406a5829bbcf59b.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(685022)))},348039,e=>{e.v(t=>Promise.all(["static/chunks/789dbc21354f0085.js"].map(t=>e.l(t))).then(()=>t(499127)))},110104,e=>{e.v(t=>Promise.all(["static/chunks/19e4a28ed794eef9.js","static/chunks/a1d99eb317ea65d0.js"].map(t=>e.l(t))).then(()=>t(142153)))},666358,e=>{e.v(t=>Promise.all(["static/chunks/48e3424fa6991e17.js"].map(t=>e.l(t))).then(()=>t(110761)))},966453,e=>{e.v(t=>Promise.all(["static/chunks/d45ba22873ea302b.js","static/chunks/31d900268839d031.js"].map(t=>e.l(t))).then(()=>t(885614)))},723358,e=>{e.v(t=>Promise.all(["static/chunks/e027fcb5600ede88.js","static/chunks/4b502c6a99b7ccc1.js"].map(t=>e.l(t))).then(()=>t(964944)))},873682,e=>{e.v(t=>Promise.all(["static/chunks/b86457d4169823a4.js","static/chunks/4b502c6a99b7ccc1.js"].map(t=>e.l(t))).then(()=>t(23925)))},334989,e=>{e.v(t=>Promise.all(["static/chunks/eb2336bebeacbd67.js","static/chunks/0c28698f24525f4b.js","static/chunks/48ef1ee1d9d5f871.js"].map(t=>e.l(t))).then(()=>t(650143)))},740095,e=>{e.v(t=>Promise.all(["static/chunks/4c4094617780a684.js"].map(t=>e.l(t))).then(()=>t(24928)))},984866,e=>{e.v(t=>Promise.all(["static/chunks/a30654d4606d42ba.js"].map(t=>e.l(t))).then(()=>t(19001)))},886387,e=>{e.v(t=>Promise.all(["static/chunks/dd9579f5206c525d.js"].map(t=>e.l(t))).then(()=>t(118693)))},391450,e=>{e.v(t=>Promise.all(["static/chunks/46764b74f7dbe173.js"].map(t=>e.l(t))).then(()=>t(287372)))},870423,e=>{e.v(t=>Promise.all(["static/chunks/bf09182813a79197.js"].map(t=>e.l(t))).then(()=>t(76197)))},390930,e=>{e.v(t=>Promise.all(["static/chunks/8438344f063f68bf.js"].map(t=>e.l(t))).then(()=>t(284517)))},776122,e=>{e.v(t=>Promise.all(["static/chunks/9ceec826aa123e4f.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(717575)))},336554,e=>{e.v(t=>Promise.all(["static/chunks/5abbff0d70a9b705.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/7e2d13a8c33ced33.js"].map(t=>e.l(t))).then(()=>t(49560)))},840096,e=>{e.v(t=>Promise.all(["static/chunks/844a8bf094cc1dca.js","static/chunks/4e493e91a091199a.js","static/chunks/c775042783ccf8e4.js"].map(t=>e.l(t))).then(()=>t(612987)))},604139,e=>{e.v(t=>Promise.all(["static/chunks/a45e5b4089d83ad4.js","static/chunks/7e2d13a8c33ced33.js","static/chunks/c753bbe362f26398.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/9a25c27deceff30a.js"].map(t=>e.l(t))).then(()=>t(313999)))},717464,e=>{e.v(t=>Promise.all(["static/chunks/7e2d13a8c33ced33.js","static/chunks/dd196b6cd32d6d20.js","static/chunks/f3e0328e36b377af.js"].map(t=>e.l(t))).then(()=>t(895318)))},147891,e=>{e.v(t=>Promise.all(["static/chunks/d8d08f28d5adff35.js"].map(t=>e.l(t))).then(()=>t(125894)))},265626,e=>{e.v(t=>Promise.all(["static/chunks/212a147616620030.js"].map(t=>e.l(t))).then(()=>t(468025)))},596066,e=>{e.v(e=>Promise.resolve().then(()=>e(739963)))}]);
|