@lobu/runtime-server 20.1.0 → 20.2.0
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/component.json +1 -1
- package/dist/connectors/chat-user-identity.ts +41 -0
- package/dist/connectors/google-identity.ts +11 -0
- package/dist/connectors/slack-identity.ts +19 -0
- package/dist/db/migrations/20260915030000_owner_dm_delivery_request_platform.sql +51 -0
- package/dist/dependencies.bun.lock +28 -30
- package/dist/owletto/dist/assets/{_-DdvHIadV.js → _-Ds4DyQjj.js} +2 -2
- package/dist/owletto/dist/assets/_-VmyR6aN_.js +1 -0
- package/dist/owletto/dist/assets/{_agentId-DbTBU4KZ.js → _agentId-BAVnp0c7.js} +1 -1
- package/dist/owletto/dist/assets/_agentId-Df-3rGi5.js +1 -0
- package/dist/owletto/dist/assets/{_automationId-C7dZzg6X.js → _automationId-D696vOjd.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey._connectionId-NQf43Ew3.js → _connectorKey._connectionId-BAJGfcy7.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey.index-D-0ZNsgM.js → _connectorKey.index-BBF8vGJS.js} +1 -1
- package/dist/owletto/dist/assets/{_conversationId-F5YmyLV9.js → _conversationId-Ci4rgrHm.js} +1 -1
- package/dist/owletto/dist/assets/{_deploymentId-3LTMi0ZT.js → _deploymentId-Iy-D5PDq.js} +1 -1
- package/dist/owletto/dist/assets/_name-CeGwb0oK.js +1 -0
- package/dist/owletto/dist/assets/{_owner-DglbbDEx.js → _owner-CFR1G8OX.js} +1 -1
- package/dist/owletto/dist/assets/_skillKey-DuLcQWBu.js +1 -0
- package/dist/owletto/dist/assets/{_slug-CnQDfsCE.js → _slug-CDSO20ac.js} +1 -1
- package/dist/owletto/dist/assets/{accept-invitation-Dgoyublh.js → accept-invitation-Db5jklHT.js} +1 -1
- package/dist/owletto/dist/assets/{activity-route-view-BNzKO6aD.js → activity-route-view-DVW3DoB7.js} +1 -1
- package/dist/owletto/dist/assets/{agent-card-controls-VJgcB5-0.js → agent-card-controls-CZO6GI0s.js} +1 -1
- package/dist/owletto/dist/assets/{agent-client-setup-list-C5KRNRw3.js → agent-client-setup-list-_chLOorY.js} +1 -1
- package/dist/owletto/dist/assets/{agent-connect-pages-BFSb6vmW.js → agent-connect-pages-DWBgSIYT.js} +1 -1
- package/dist/owletto/dist/assets/{agent-editor-form-CajEehVn.js → agent-editor-form-BTNlg0kQ.js} +1 -1
- package/dist/owletto/dist/assets/{agent-guardrails-route-CZ_rXj-3.js → agent-guardrails-route-B5uoMC6o.js} +1 -1
- package/dist/owletto/dist/assets/{agent-loading-shells-Dczhk067.js → agent-loading-shells-CLoLeFcB.js} +1 -1
- package/dist/owletto/dist/assets/{agent-permissions-matrix-DIVHvpZG.js → agent-permissions-matrix-TP00-MYL.js} +1 -1
- package/dist/owletto/dist/assets/{agent-skill-context-CxglCznW.js → agent-skill-context-D4a2QCoZ.js} +1 -1
- package/dist/owletto/dist/assets/{agent-skills-route-CatU8soC.js → agent-skills-route-KVDDTbJB.js} +1 -1
- package/dist/owletto/dist/assets/{agent-subpage-shell-DVSUdIBn.js → agent-subpage-shell-DuVYZvBE.js} +1 -1
- package/dist/owletto/dist/assets/{agent-thread-DnLUOzXk.js → agent-thread-CzCJU3-R.js} +1 -1
- package/dist/owletto/dist/assets/agents-DFs57C3c.js +1 -0
- package/dist/owletto/dist/assets/{agents-workbench-BOKifKIO.js → agents-workbench-C2bUlJP2.js} +1 -1
- package/dist/owletto/dist/assets/{app._appId-BXmITXO7.js → app._appId-D0_LQTJU.js} +1 -1
- package/dist/owletto/dist/assets/{automation-detail-content-wJC9hhmA.js → automation-detail-content-DWkdhnv2.js} +1 -1
- package/dist/owletto/dist/assets/automations-DFs57C3c.js +1 -0
- package/dist/owletto/dist/assets/{calendar-taCoBmAh.js → calendar-C0XpOHd8.js} +1 -1
- package/dist/owletto/dist/assets/{callback-CJxC8u_x.js → callback-CO_K9eR-.js} +1 -1
- package/dist/owletto/dist/assets/{card-kpw3EaKC.js → card-DeFQuU_J.js} +1 -1
- package/dist/owletto/dist/assets/{claim-DLHRN0bA.js → claim-CUpWOSie.js} +1 -1
- package/dist/owletto/dist/assets/{clients-R4JsT_Fz.js → clients-DhYr4lyL.js} +1 -1
- package/dist/owletto/dist/assets/{code-editor-D3X0yQdI.js → code-editor-BqGUZFt6.js} +1 -1
- package/dist/owletto/dist/assets/connect-Dtb-E5An.js +1 -0
- package/dist/owletto/dist/assets/connect._clientId-DWtceAAw.js +1 -0
- package/dist/owletto/dist/assets/{connected._clientId-ByH4etku.js → connected._clientId-CMe-wTuV.js} +1 -1
- package/dist/owletto/dist/assets/{connection-DdBkXNbX.js → connection-BgAlYjeV.js} +1 -1
- package/dist/owletto/dist/assets/{connection-feed-detail-DF93zx0A.js → connection-feed-detail-B3ePAinf.js} +1 -1
- package/dist/owletto/dist/assets/{connector-provenance-N3sc0nbo.js → connector-provenance-DgsDg0Z9.js} +1 -1
- package/dist/owletto/dist/assets/{connectors-Ckn_aoNE.js → connectors-CqPQPo9U.js} +1 -1
- package/dist/owletto/dist/assets/{consent-Bi6KCVtT.js → consent-bswcIzsf.js} +1 -1
- package/dist/owletto/dist/assets/{core.esm-CFYXLQXH.js → core.esm-DsLgjoel.js} +1 -1
- package/dist/owletto/dist/assets/create-CcXUdke7.js +1 -0
- package/dist/owletto/dist/assets/create-Cp6hMoeU.js +1 -0
- package/dist/owletto/dist/assets/{create-BiHpu2f4.js → create-Dwo04oWV.js} +1 -1
- package/dist/owletto/dist/assets/{create-automation-form-Cv2RHsQ6.js → create-automation-form-CJ4meayB.js} +1 -1
- package/dist/owletto/dist/assets/{create._connectorKey-Qynix_hA.js → create._connectorKey-CCBb2pil.js} +1 -1
- package/dist/owletto/dist/assets/{cronstrue-D7xlYtGk.js → cronstrue-ChFyC9ps.js} +1 -1
- package/dist/owletto/dist/assets/deployments-CjfFxyDA.js +1 -0
- package/dist/owletto/dist/assets/{deployments-body-BPCALbQe.js → deployments-body-Cg0KiWGr.js} +1 -1
- package/dist/owletto/dist/assets/device-DpY67Jaj.js +1 -0
- package/dist/owletto/dist/assets/{device-pin-tombstone-DrTJYNKG.js → device-pin-tombstone-1ikyqSdb.js} +1 -1
- package/dist/owletto/dist/assets/{device-rows-fVm-zAiU.js → device-rows-Cp3yMcuV.js} +1 -1
- package/dist/owletto/dist/assets/{device._deviceId-CIe7taim.js → device._deviceId-DTYKGBY8.js} +1 -1
- package/dist/owletto/dist/assets/{entity-options-DOGD_EyZ.js → entity-options-1EaSGMX4.js} +1 -1
- package/dist/owletto/dist/assets/{entity-page-C8oDszRY.js → entity-page-DJmM70dv.js} +1 -1
- package/dist/owletto/dist/assets/{entity-type-page-BfxIgJLq.js → entity-type-page-C3mT7tXn.js} +1 -1
- package/dist/owletto/dist/assets/{events-feed-B9OqmSBy.js → events-feed-iliGfjit.js} +1 -1
- package/dist/owletto/dist/assets/{full-page-spinner-DTSqneUO.js → full-page-spinner-BN2G_YiM.js} +1 -1
- package/dist/owletto/dist/assets/guardrails-CLlnRRy9.js +1 -0
- package/dist/owletto/dist/assets/identity-MSLryUi8.js +1 -0
- package/dist/owletto/dist/assets/index-3o4Eepb4.js +1 -0
- package/dist/owletto/dist/assets/{index-Bfux0kHb.js → index-BUr8321-.js} +3 -3
- package/dist/owletto/dist/assets/{index-CK2-iHcz.js → index-Bulu5ldM.js} +1 -1
- package/dist/owletto/dist/assets/{index-DcWyuLQS.js → index-BvbfITqH.js} +1 -1
- package/dist/owletto/dist/assets/{index-Bq4m-sK0.js → index-C-u4yR8Z.js} +1 -1
- package/dist/owletto/dist/assets/{index-DkKALC2l.js → index-C2oCgDX7.js} +1 -1
- package/dist/owletto/dist/assets/{index-jGZeANLE.js → index-C6VAJ8Ku.js} +1 -1
- package/dist/owletto/dist/assets/index-Clw9ZBj-.js +1 -0
- package/dist/owletto/dist/assets/index-D2oL4Ydo.js +1 -0
- package/dist/owletto/dist/assets/index-D7wulT4y.js +1 -0
- package/dist/owletto/dist/assets/{index-COgBJ_ab.js → index-DOLFe19K.js} +1 -1
- package/dist/owletto/dist/assets/index-DTSA0Xh1.js +1 -0
- package/dist/owletto/dist/assets/index-DxXXVPU0.js +1 -0
- package/dist/owletto/dist/assets/{index-CMOHHdFH.js → index-hSE2E46p.js} +1 -1
- package/dist/owletto/dist/assets/index-nzvsA3hT.js +1 -0
- package/dist/owletto/dist/assets/{index-DYe_DVHa.js → index-vdqhlocx.js} +1 -1
- package/dist/owletto/dist/assets/{json-diff-CANZD4MQ.js → json-diff-DnsW7Pin.js} +1 -1
- package/dist/owletto/dist/assets/{list-skeleton-DZTUxpBx.js → list-skeleton-CHzLN7GK.js} +1 -1
- package/dist/owletto/dist/assets/{login-D53geSP7.js → login-CCKNM0gV.js} +1 -1
- package/dist/owletto/dist/assets/{logout-DKQS25qd.js → logout-B-N2aodZ.js} +1 -1
- package/dist/owletto/dist/assets/{member-scope-gate-C4QyRm2Q.js → member-scope-gate-B560Wg-t.js} +1 -1
- package/dist/owletto/dist/assets/{memory-browse-page-DOpV3vht.js → memory-browse-page-DMDqKJn7.js} +1 -1
- package/dist/owletto/dist/assets/{model-selector-CvU3VP90.js → model-selector-DfbmHjLu.js} +1 -1
- package/dist/owletto/dist/assets/models-M51OGDRE.js +1 -0
- package/dist/owletto/dist/assets/{new-B8_sRMYD.js → new-BVQS9H-Y.js} +1 -1
- package/dist/owletto/dist/assets/{new-DIjOVXrQ.js → new-Df_dY6Z5.js} +1 -1
- package/dist/owletto/dist/assets/{new-Df1q7GEj.js → new-DxDVE9nL.js} +1 -1
- package/dist/owletto/dist/assets/{oauth-workspace-access-DWfiekRz.js → oauth-workspace-access-D9GmiMfK.js} +1 -1
- package/dist/owletto/dist/assets/{organization-DHEC7kDq.js → organization-uSDYkJpX.js} +1 -1
- package/dist/owletto/dist/assets/{permissions-i7iwnE1a.js → permissions-Fe0DP6b8.js} +1 -1
- package/dist/owletto/dist/assets/{proposal-review-shell-C_LcyUEF.js → proposal-review-shell-D9HwnDda.js} +1 -1
- package/dist/owletto/dist/assets/{recent-By19_Buq.js → recent-C03LhMD7.js} +1 -1
- package/dist/owletto/dist/assets/{renderer-B1UThnk2.js → renderer-CHNejd95.js} +1 -1
- package/dist/owletto/dist/assets/{reset-password-Dsz5-Xeo.js → reset-password-CuISnlG_.js} +1 -1
- package/dist/owletto/dist/assets/{runs-BQ11PAQT.js → runs-BnYdToDc.js} +1 -1
- package/dist/owletto/dist/assets/{runs-panel-wkV1aGD9.js → runs-panel-DsdESupx.js} +1 -1
- package/dist/owletto/dist/assets/{runs-table-DzSWYkaf.js → runs-table-B7jKuILd.js} +1 -1
- package/dist/owletto/dist/assets/{schema-value-normalization--DhnhJNf.js → schema-value-normalization-B--OWDL8.js} +1 -1
- package/dist/owletto/dist/assets/settings-Bg9yCCoN.js +1 -0
- package/dist/owletto/dist/assets/{settings-Bu239SXe.js → settings-wGNHtsDP.js} +1 -1
- package/dist/owletto/dist/assets/skills-CN5Ube7A.js +1 -0
- package/dist/owletto/dist/assets/{switch-CCKllS7w.js → switch-Dzse_XFM.js} +1 -1
- package/dist/owletto/dist/assets/{use-mention-search-CldNZTiT.js → use-mention-search-uyW1Uwf6.js} +1 -1
- package/dist/owletto/dist/index.html +1 -1
- package/dist/server-main.bundle.mjs +9903 -9541
- package/npm-shrinkwrap.json +116 -140
- package/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/credentials.d.ts +16 -1
- package/vendor/core/dist/credentials.js +10 -1
- package/vendor/core/package.json +1 -1
- package/dist/owletto/dist/assets/_-CfcfHJO8.js +0 -1
- package/dist/owletto/dist/assets/_agentId-BTmFhpb6.js +0 -1
- package/dist/owletto/dist/assets/_name-BKeZbc-h.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-DhiGYYFq.js +0 -1
- package/dist/owletto/dist/assets/agents-OLmcj-qM.js +0 -1
- package/dist/owletto/dist/assets/automations-OLmcj-qM.js +0 -1
- package/dist/owletto/dist/assets/connect-1ysEq9l0.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-BbMPs6l3.js +0 -1
- package/dist/owletto/dist/assets/create-C37QtjbJ.js +0 -1
- package/dist/owletto/dist/assets/create-kAQa5_Q7.js +0 -1
- package/dist/owletto/dist/assets/deployments-C5kSeowq.js +0 -1
- package/dist/owletto/dist/assets/device-DToHXxDM.js +0 -1
- package/dist/owletto/dist/assets/guardrails-9Mr6avxk.js +0 -1
- package/dist/owletto/dist/assets/identity-DMfCjdBz.js +0 -1
- package/dist/owletto/dist/assets/index-CkwwaMrx.js +0 -1
- package/dist/owletto/dist/assets/index-D0lZrXrY.js +0 -1
- package/dist/owletto/dist/assets/index-DZadnZpq.js +0 -1
- package/dist/owletto/dist/assets/index-DlqjyZKQ.js +0 -1
- package/dist/owletto/dist/assets/index-Dv0huHrO.js +0 -1
- package/dist/owletto/dist/assets/index-DxIDxgPJ.js +0 -1
- package/dist/owletto/dist/assets/index-bKUccXCc.js +0 -1
- package/dist/owletto/dist/assets/models-ooBIWFuB.js +0 -1
- package/dist/owletto/dist/assets/settings-FxbIvOhH.js +0 -1
- package/dist/owletto/dist/assets/skills-MBZ5ilDK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b3 as s,b4 as n,j as e}from"./index-
|
|
1
|
+
import{b3 as s,b4 as n,j as e}from"./index-BUr8321-.js";import{A as m}from"./activity-route-view-DVW3DoB7.js";import{E as a}from"./events-feed-iliGfjit.js";import"./device-automation-BIjs7DZJ.js";import"./agent-thread-storage-U6htL3ad.js";import"./pending-seed-CPbfgnLX.js";import"./clients-DhYr4lyL.js";import"./client-rows-EJSKR6z1.js";import"./connection-label-BobuYiAG.js";import"./calendar-C0XpOHd8.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./agent-loading-shells-CLoLeFcB.js";import"./member-scope-gate-B560Wg-t.js";function E(){const{owner:o}=s.useParams(),r=s.useSearch();if(o==="me"){const t=n(r),i={sortBy:"date",sortOrder:"desc",...t.contentIds?.length?{contentIds:t.contentIds}:{clientIds:t.clientIds,mcpActivityId:t.mcpActivityId}};return e.jsxs("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-6 px-4 py-6 lg:px-6",children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Your MCP activity"}),e.jsx(a,{organizationId:null,ownerSlug:"me",filters:i})]})}return e.jsx(m,{owner:o,search:r,attentionLens:!1})}export{E as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bM as A,bv as $,r as l,j as e,B as p,L as u,bN as C,bm as M,aT as S,bO as B,bP as E,bQ as W,aV as O}from"./index-
|
|
1
|
+
import{bM as A,bv as $,r as l,j as e,B as p,L as u,bN as C,bm as M,aT as S,bO as B,bP as E,bQ as W,aV as O}from"./index-BUr8321-.js";import{A as T}from"./agent-client-setup-list-_chLOorY.js";import{L as R}from"./list-skeleton-CHzLN7GK.js";import{u as _}from"./clients-DhYr4lyL.js";import{g as P,c as z}from"./client-rows-EJSKR6z1.js";const F={all:"All",managed:"Managed",connected:"Connected"};function G({owner:t,item:a,last:g}){const c=`flex items-center gap-3 px-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${g?"":"border-b"}`;if(a.kind==="managed"){const n=a.agent,d=[n.status==="active"?"Working":"Idle",`${n.connectionCount} ${n.connectionCount===1?"connection":"connections"}`,`${n.userCount} ${n.userCount===1?"user":"users"}`].filter(Boolean).join(" · ");return e.jsxs(u,{to:"/$owner/agents/$agentId/settings",params:{owner:t,agentId:n.agentId},search:{run_id:void 0},className:c,children:[e.jsx("span",{"aria-hidden":"true",className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e.jsx(B,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block truncate text-sm font-medium",children:n.name}),e.jsx("p",{className:"truncate text-xs",children:d})]}),n.status==="active"?e.jsx("span",{role:"img","aria-label":"Working",className:"h-2 w-2 shrink-0 rounded-full bg-emerald-500"}):null]})}if(a.kind==="connected"){const n=a.group;return e.jsxs(u,{to:"/$owner/agents/connected/$clientId",params:{owner:t,clientId:n.clientId},className:c,children:[e.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border text-muted-foreground",children:e.jsx(E,{name:n.title})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:n.title}),e.jsxs("p",{className:"truncate text-xs",children:["Connected · ",z(n)]})]}),e.jsx("span",{role:"img","aria-label":"Connected",className:"h-2 w-2 shrink-0 rounded-full bg-emerald-500"})]})}}function q({owner:t,isWorkspaceLoading:a}){const{isMember:g,isLoading:c}=A(),n=g&&!c,{data:d=[],isLoading:y}=$({enabled:n}),{data:f=[]}=_(null),j=l.useMemo(()=>P(f).filter(s=>s.connected),[f]),i=l.useMemo(()=>{const s=d.map(r=>({kind:"managed",key:r.agentId,agent:{agentId:r.agentId,name:r.name,status:r.status,connectionCount:r.connectionCount,userCount:r.userCount}})),h=j.map(r=>({kind:"connected",key:r.key,group:r}));return[...s,...h]},[d,j]),N=l.useMemo(()=>i.length>0?["all","managed","connected"]:[],[i]),[w,v]=l.useState("all"),o=N.includes(w)?w:"all",x=l.useMemo(()=>i.filter(s=>o==="all"?!0:o==="managed"?s.kind==="managed":s.kind==="connected"),[i,o]),b=a||c||y,m=i.length>0,k=!b&&!m&&n,L=n?m?o==="managed"?"No managed agents yet":o==="connected"?"No connected agents yet":"No agents match this filter":"No agents yet":"Workspace membership required",I=n?m?o==="managed"?"Build a managed agent to add one here.":o==="connected"?"Bring an agent you already run to this workspace.":"Try another filter.":"Build a managed agent, or bring one you already run to this workspace.":"Only workspace members can manage agents here.";return e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Who works here — your agents and the ones connected to this workspace."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:[N.map(s=>e.jsx(p,{type:"button",variant:o===s?"secondary":"ghost","aria-pressed":o===s,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>v(s),children:F[s]},s)),k?e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connect an agent below or build one with Lobu."}):null]}),e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-2 sm:ml-auto sm:w-auto sm:shrink-0",children:[m?e.jsx(p,{asChild:!0,size:"sm",className:"h-8 text-xs",children:e.jsxs(u,{to:"/$owner/agents/connect",params:{owner:t},children:[e.jsx(C,{className:"mr-1.5 h-3.5 w-3.5"}),"Connect an agent"]})}):null,e.jsx(p,{asChild:!0,variant:"outline",size:"sm",className:"h-8 text-xs",children:e.jsxs(u,{to:"/$owner/agents/new",params:{owner:t},search:{run_id:void 0},children:[e.jsx(C,{className:"mr-1.5 h-3.5 w-3.5"}),"Build a managed agent"]})})]})]}),b?e.jsx(R,{label:"Loading agents"}):x.length===0?k?e.jsx(T,{owner:t,dashed:!0}):e.jsx(M,{icon:S.agents.icon,title:L,description:I}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:x.map((s,h)=>e.jsx(G,{owner:t,item:s,last:h===x.length-1},s.key))})]})}function J(){const{owner:t}=W.useParams();return e.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-3 px-4 pt-4 pb-8 lg:px-6",children:e.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx(O,{owner:t,children:a=>e.jsx("div",{className:"mx-auto flex min-h-0 w-full min-w-0 max-w-3xl flex-1 flex-col",children:e.jsx(q,{owner:a.ownerSlug,isWorkspaceLoading:a.isWorkspaceLoading})})})})})}export{J as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b5 as z,j as n,aV as H,b6 as J,u as Q,b7 as X,b8 as Y,b9 as Z,ba as ee,bb as ne,r as _,bc as se,a2 as oe,bd as te,be as ae,bf as ce,bg as re,bh as ie,bi as K,bj as le,bk as de,S as O,B as U,bl as ue,bm as q,aT as G,bn as me,bo as pe,bp as he,bq as fe,br as xe,bs as ve,af as be,L as D,bt as ge}from"./index-
|
|
1
|
+
import{b5 as z,j as n,aV as H,b6 as J,u as Q,b7 as X,b8 as Y,b9 as Z,ba as ee,bb as ne,r as _,bc as se,a2 as oe,bd as te,be as ae,bf as ce,bg as re,bh as ie,bi as K,bj as le,bk as de,S as O,B as U,bl as ue,bm as q,aT as G,bn as me,bo as pe,bp as he,bq as fe,br as xe,bs as ve,af as be,L as D,bt as ge}from"./index-BUr8321-.js";import{b as je,c as Ne,d as ye}from"./device-rows-Cp3yMcuV.js";function Ie(){const{owner:o}=z.useParams(),{filter:r}=z.useSearch();return n.jsx(H,{owner:o,children:a=>n.jsx(_e,{ownerSlug:a.ownerSlug,organizationId:a.organizationId,isWorkspaceLoading:a.isWorkspaceLoading,requestedFilter:r})})}function _e({ownerSlug:o,organizationId:r,isWorkspaceLoading:a,requestedFilter:d}){const{data:u=[],isLoading:i}=J(r??""),{data:S=[],isLoading:C}=Q(r??""),{data:f=[]}=X(r,{}),{data:E=[],isLoading:R}=Y(),{data:w=[]}=Z(),{data:x,isLoading:v}=ee(),{data:l=[]}=ne(),b=a||i||C||R||v,A=x?.sandboxes??[],m=_.useMemo(()=>l.filter(k=>k.organization_slug===o||k.connectors.some(L=>L.organization_slug===o)),[l,o]);return n.jsx(se,{className:"flex flex-1 flex-col gap-6",children:n.jsx(Ce,{ownerSlug:o,isContentLoading:b,groups:u,installedDefs:S,authProfiles:f,inferenceProviders:E,inferenceCatalog:w,sandboxes:A,devices:m,requestedFilter:d})})}function Ce({ownerSlug:o,isContentLoading:r,groups:a,installedDefs:d,authProfiles:u,inferenceProviders:i,inferenceCatalog:S,sandboxes:C,devices:f,requestedFilter:E}){const R=oe(),w=E??"all",x=_.useMemo(()=>{const s=new Map(a.map(e=>[e.connector_key,e])),t=new Map;for(const e of d)t.set(e.key,e);for(const e of a)t.has(e.connector_key)||t.set(e.connector_key,{key:e.connector_key,name:e.connector_name??e.connector_key,description:null,version:"",auth_schema:null,feeds_schema:null,actions_schema:null,options_schema:null,status:"active",login_enabled:!1,favicon_domain:e.favicon_domain,facets:e.facets});const N=te(i).map(e=>({connector:e.connector,group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:!1,provider:e.provider,sandbox:void 0,device:void 0})),p=ae(C).map(e=>({connector:e.connector,group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:!e.sandbox.connected,provider:void 0,sandbox:e.sandbox,device:void 0})),P=je(f,a,o).map(e=>({connector:e.connector,group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:!1,isDevice:!0,provider:void 0,sandbox:void 0,device:e.device}));return[...Array.from(t.values()).filter(e=>e.installed||(s.get(e.key)?.connection_count??0)>0).filter(e=>!Ne(e)).map(e=>{const c=s.get(e.key),F=ce(e.auth_schema),I=u.reduce((j,$)=>($.connector_key!==e.key||(j[$.profile_kind]+=1),j),{env:0,oauth_app:0,oauth_account:0,browser_session:0}),h=re(e,c),y=we(e,c,F,I);return{connector:e,group:c,profileCounts:I,facets:h,needsSetup:y,provider:void 0,sandbox:void 0,device:void 0}}),...N,...p,...P].sort((e,c)=>e.needsSetup&&!c.needsSetup?-1:!e.needsSetup&&c.needsSetup?1:e.connector.name.localeCompare(c.connector.name))},[o,u,f,a,d,i,C]),v=_.useMemo(()=>{const s=ie.filter(t=>t!=="all"&&x.some(N=>K(N,t)));return s.length>1?["all",...s]:[]},[x]),l=v.includes(w)?w:"all",b=_.useMemo(()=>x.filter(s=>K(s,l)),[x,l]),A=b.length,m=_.useMemo(()=>l==="all"?le(o,f,de()):[],[l,o,f]),k=A+m.length,L=n.jsx(U,{asChild:!0,size:"sm",className:"h-8 shrink-0 text-xs",children:n.jsxs(D,{to:"/$owner/connectors/create",params:{owner:o},children:[n.jsx(ge,{className:"mr-1.5 h-3.5 w-3.5"}),"Add connector"]})});if(r)return n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"flex justify-end",children:L}),n.jsx("div",{className:"overflow-hidden rounded-lg border",role:"status","aria-label":"Loading connectors",children:Array.from({length:6}).map((s,t)=>n.jsxs("div",{className:`flex items-center gap-3 px-3 py-2.5 ${t===5?"":"border-b"}`,children:[n.jsx(O,{className:"h-7 w-7 shrink-0 rounded-md"}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx(O,{className:"h-4 w-40"}),n.jsx(O,{className:"h-3 w-24"})]})]},t))})]});const T=s=>{R({to:"/$owner/connectors",params:{owner:o},search:t=>({...t,filter:s==="all"?void 0:s}),replace:!0})};return n.jsxs("div",{className:"space-y-4",children:[n.jsx("p",{className:"text-sm text-muted-foreground",children:"What your agents can reach — data, tools, models, and runtimes."}),n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[n.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:[v.map(s=>n.jsx(U,{type:"button",variant:l===s?"secondary":"ghost","aria-pressed":l===s,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>T(s),children:ue[s]},s)),v.length===0&&b.length===0&&m.length>0?n.jsx("p",{className:"text-sm text-muted-foreground",children:"Nothing connected yet — set up one of the apps below."}):null]}),n.jsx("div",{className:"ml-auto shrink-0",children:L})]}),b.length===0?v.length>0?n.jsx(q,{icon:G.connectors.icon,title:"No connectors match this filter",description:"Try another capability.",secondaryActionLabel:"Show all",secondaryOnAction:()=>T("all")}):m.length>0?null:n.jsx(q,{icon:G.connectors.icon,title:"No connectors yet",description:"Connect your first connector to this workspace."}):n.jsx("div",{className:"overflow-hidden rounded-lg border",children:b.map(({connector:s,group:t,facets:N,profileCounts:p,needsSetup:P,provider:g,sandbox:e,device:c},F)=>{const I=new Map(d.map(M=>[M.key,M])),h=me(s.key,I,{name:s.name,iconUrl:g?S.find(M=>M.slug===g.kind)?.iconUrl:void 0,faviconDomain:s.favicon_domain??t?.favicon_domain??(e?pe(e.providerKind):void 0)}),y=p.oauth_account+p.browser_session,j=t?.connection_count??0,$=c?ye(c):g?[g.isDefault?"Default":null,g.status].filter(Boolean).join(" · "):e?[e.providerKind,e.connected?"Connected":"No credential"].join(" · "):[`${j} ${j===1?"connection":"connections"}`,y>0?`${y} ${y===1?"account":"accounts"}`:null,p.oauth_app>0?`${p.oauth_app} OAuth app${p.oauth_app===1?"":"s"}`:null].filter(Boolean).join(" · "),B=V(F,k),W=n.jsxs(n.Fragment,{children:[c?n.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border",children:n.jsx(he,{platform:fe(c)})}):n.jsx(xe,{icon:h.icon,iconUrl:h.iconUrl,name:h.name,faviconDomain:h.faviconDomain,className:"h-7 w-7 shrink-0 rounded-md text-[10px]"}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("span",{className:"truncate text-sm font-medium",children:h.name}),n.jsx(ve,{facets:N})]}),n.jsx("p",{className:"truncate text-xs text-muted-foreground",children:$})]}),P?n.jsx(be,{variant:"secondary",className:"shrink-0 text-[10px]",children:"Needs setup"}):null]});return c?n.jsx(D,{to:"/$owner/connectors/device/$deviceId",params:{owner:o,deviceId:c.id},className:B,children:W},s.key):n.jsx(D,{to:"/$owner/connectors/$connectorKey",params:{owner:o,connectorKey:s.key},className:B,children:W},s.key)})}),m.length>0?n.jsx("div",{className:"overflow-hidden rounded-lg border border-dashed",children:m.map((s,t)=>n.jsxs(D,{to:"/$owner/connectors/app/$appId",params:{owner:o,appId:s.id},className:V(t,m.length),children:[n.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-dashed",children:s.icon}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"truncate text-sm font-medium",children:s.name}),n.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s.tagline})]}),n.jsx("span",{className:"shrink-0 text-xs",children:"Set up"})]},s.id))}):null]})}function V(o,r){return`flex items-center gap-3 px-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${o===r-1?"":"border-b"}`}function we(o,r,a,d){const u=a.some(i=>i.type==="none");return!!(!u&&a.some(i=>i.type==="oauth")&&d.oauth_app===0||!u&&a.some(i=>i.type==="env_keys")&&d.env===0||!u&&a.some(i=>i.type==="app_installation")&&!r||o.required_capability&&!r)}export{Ie as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as $,a2 as I,a3 as C,r as R,a4 as y,a5 as S,j as v}from"./index-
|
|
1
|
+
import{a1 as $,a2 as I,a3 as C,r as R,a4 as y,a5 as S,j as v}from"./index-BUr8321-.js";import{F as U}from"./full-page-spinner-BN2G_YiM.js";function g(t){return t?.trim().toLowerCase()||null}function L(t){return t?.methods??[]}function _(t,c){const e=g(c);if(!e)return null;for(const i of t){const o=L(i.auth_schema);if(!o.some(n=>n.type==="oauth"&&g(n.provider)===e&&Array.isArray(n.loginScopes)&&n.loginScopes.length>0))continue;const r=o.find(n=>n.type==="app_installation"&&g(n.provider)===e);if(r)return{connectorKey:i.key,provider:e,installShape:r.installShape??null}}return null}function b(){const{isAuthenticated:t,authReady:c,currentOwner:e,orgsReady:i}=$(),o=I(),l=C(),r=R.useRef(!1),n=new URLSearchParams(window.location.search).get("onboard_provider");return R.useEffect(()=>{if(c&&l.pathname==="/"){if(t&&e){const a=new URLSearchParams(window.location.hash.replace(/^#/,"")),d=a.get("agent")?.trim(),p=a.get("thread")?.trim(),f=a.get("message")?.trim()||a.get("message_id")?.trim(),s=a.get("run")?.trim(),h=a.get("worker")?.trim();if(!!d&&!!p||!!s&&/^\d+$/.test(s)||!!h){if(r.current)return;if(r.current=!0,window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}`),d&&p){const u=f?`?message_id=${encodeURIComponent(f)}`:"";window.location.replace(`/${encodeURIComponent(e)}/chat/${encodeURIComponent(d)}/c/${encodeURIComponent(p)}${u}`);return}if(s&&/^\d+$/.test(s)){const u=new URLSearchParams({run_ids:s,peek:"1",peek_run_id:s});window.location.replace(`/${encodeURIComponent(e)}/events?${u.toString()}`);return}if(h){window.location.replace(`/${encodeURIComponent(e)}/connectors/device/${encodeURIComponent(h)}`);return}}if(r.current)return;r.current=!0;const m=()=>void o({to:"/$owner",params:{owner:e},replace:!0});if(n){y(e).then(u=>{const w=_(u,n);if(w){window.location.assign(`/${encodeURIComponent(e)}/connectors/${encodeURIComponent(w.connectorKey)}`);return}m()}).catch(m);return}m();return}if(t){i&&o({to:"/account/settings",replace:!0});return}o({to:"/auth/login",search:S(),replace:!0})}},[c,e,t,i,o,l.pathname,n]),v.jsx("div",{"data-public-loading":"true",children:v.jsx(U,{delayMs:0,className:"min-h-0 py-16"})})}export{b as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bu as o,a2 as c,bv as i,r as u,j as g}from"./index-
|
|
1
|
+
import{bu as o,a2 as c,bv as i,r as u,j as g}from"./index-BUr8321-.js";import{C as f}from"./agent-loading-shells-CLoLeFcB.js";function d(t,n,e){const a=t.find(r=>r.system)??t[0];return a?{to:"/$owner/chat/$agentId",params:{owner:n,agentId:a.agentId},search:e,replace:!0}:null}function h(){const{owner:t}=o.useParams(),n=o.useSearch(),e=c(),{data:a=[],isLoading:r}=i(),s=d(a,t,n);return u.useEffect(()=>{s&&e(s)},[e,s]),u.useEffect(()=>{r||a.length>0||e({to:"/$owner/agents",params:{owner:t},replace:!0})},[a.length,r,e,t]),g.jsx(f,{})}export{d as chatEntryTarget,h as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a6 as t,j as i}from"./index-BUr8321-.js";import{A as m}from"./activity-route-view-DVW3DoB7.js";import"./device-automation-BIjs7DZJ.js";import"./agent-thread-storage-U6htL3ad.js";import"./pending-seed-CPbfgnLX.js";import"./clients-DhYr4lyL.js";import"./client-rows-EJSKR6z1.js";import"./connection-label-BobuYiAG.js";import"./events-feed-iliGfjit.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./calendar-C0XpOHd8.js";import"./agent-loading-shells-CLoLeFcB.js";import"./member-scope-gate-B560Wg-t.js";function w(){const{owner:o}=t.useParams(),r=t.useSearch();return i.jsx(m,{owner:o,search:r,attentionLens:!0})}export{w as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b2 as t,j as p}from"./index-BUr8321-.js";import{M as i}from"./memory-browse-page-DMDqKJn7.js";import"./switch-Dzse_XFM.js";import"./entity-type-page-C3mT7tXn.js";import"./json-diff-DnsW7Pin.js";import"./index-OUb5Mlez.js";import"./index-Vcq4gwWv.js";import"./code-editor-BqGUZFt6.js";import"./schema-value-normalization-B--OWDL8.js";import"./calendar-C0XpOHd8.js";import"./core.esm-DsLgjoel.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./member-scope-gate-B560Wg-t.js";function R(){const{owner:o}=t.useParams(),r=t.useSearch(),e=r.create_type==="true",m=r.create==="true";return p.jsx(i,{ownerSlug:o,create:m,createType:e})}export{R as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h0 as n,j as o,aV as r}from"./index-BUr8321-.js";import{A as a}from"./agent-connect-pages-DWBgSIYT.js";import"./agent-client-setup-list-_chLOorY.js";import"./clients-DhYr4lyL.js";import"./client-rows-EJSKR6z1.js";function g(){const{owner:t}=n.useParams();return o.jsx(r,{owner:t,children:({ownerSlug:e})=>o.jsx(a,{owner:e})})}export{g as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,j as t,B as p,bw as T,bx as C,by as L,bv as S,bb as E,u as I,bz as M,bm as N,bA as R,aT as D,bn as B,L as j,bB as P,bC as O,bD as W,bE as z,br as F,af as v,bF as H,H as K,bG as U,bH as G,bI as J,x as A,bJ as Q,bK as V,bL as Z,aV as q}from"./index-
|
|
1
|
+
import{r as x,j as t,B as p,bw as T,bx as C,by as L,bv as S,bb as E,u as I,bz as M,bm as N,bA as R,aT as D,bn as B,L as j,bB as P,bC as O,bD as W,bE as z,br as F,af as v,bF as H,H as K,bG as U,bH as G,bI as J,x as A,bJ as Q,bK as V,bL as Z,aV as q}from"./index-BUr8321-.js";import{L as X}from"./list-skeleton-CHzLN7GK.js";import{c as Y}from"./cronstrue-ChFyC9ps.js";const ee=[{value:"all",label:"All"},{value:"event",label:"Event"},{value:"schedule",label:"Schedule"},{value:"manual",label:"Manual"}];function ne({pending:e,onConfirm:n}){const[s,r]=x.useState(!1);return s?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(p,{type:"button",variant:"destructive",size:"sm",disabled:e,onClick:n,children:"Delete"}),t.jsx(p,{type:"button",variant:"ghost",size:"sm",onClick:()=>r(!1),children:"Cancel"})]}):t.jsx(p,{type:"button",variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-destructive","aria-label":"Delete",onClick:()=>r(!0),children:t.jsx(T,{className:"h-4 w-4"})})}function te(e){try{return Y.toString(e.trim(),{throwExceptionOnParseError:!0})}catch{return`On schedule ${e.trim()}`}}function se(e){return e.toLowerCase()==="github"?"GitHub":C(e)}function ae(e){return C(e.replace(/^\$/,""))}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return"";const n=e;return typeof n.repository=="string"?` in ${n.repository}`:typeof n.channel_id=="string"?` in #${n.channel_id}`:typeof n.resource_ref=="string"?` for ${n.resource_ref}`:""}function oe(e){return Array.isArray(e.triggers)?e.triggers.filter(n=>!!n&&typeof n=="object"):[]}function ie(e){if(e.kind==="schedule"&&typeof e.cron=="string")return te(e.cron);if(e.kind==="event"&&e.source!=="workspace"&&typeof e.connector_key=="string"){const n=Array.isArray(e.event_types)?e.event_types.filter(r=>typeof r=="string"):[],s=n.length>0?n.join(" or "):"an event";return`${se(e.connector_key)} sends ${s}${re(e.match)}`}if(e.kind==="event"&&e.source==="workspace"){const n=Array.isArray(e.event_types)?e.event_types.filter(l=>typeof l=="string"):[],s=n.length>0?n.join(" or "):"an event",r=typeof e.entity_type=="string"?` on ${ae(e.entity_type)}`:"";return`another Automation writes ${s}${r}`}return null}function le(e){return e.health==="degraded"?"error":"enabled"}function ce(e){const n=oe(e),s=e.name?.trim()||"Untitled automation",r=n.some(o=>o.kind==="event"),l=n.some(o=>o.kind==="schedule"),m=r?"event":l?"schedule":"manual",u=n.map(ie).filter(o=>!!o);let d="When started manually";u.length===1?d=`When ${u[0]}`:u.length>1&&(d=`When ${u[0]}${u.slice(1).map(o=>`, or when ${o}`).join("")}`);const i=n.some(o=>o.kind==="event"&&o.output==="reply_to_source")?"source":"silent";return{key:`automation:${e.automation_id}`,kind:m,when:d,does:s,output:{destination:i},state:le(e),sortTime:e.next_run_at?Date.parse(e.next_run_at):null,automation:e}}const y={event:0,schedule:1,manual:2};function ue(e){return e.map(ce).sort((n,s)=>n.state!==s.state?n.state==="enabled"?-1:1:y[n.kind]!==y[s.kind]?y[n.kind]-y[s.kind]:n.sortTime!==s.sortTime?n.sortTime===null?1:s.sortTime===null?-1:n.sortTime-s.sortTime:n.when.localeCompare(s.when)||n.key.localeCompare(s.key))}const de={kind:"all",output:"any",state:"any"};function me(e,n){return e.filter(s=>(n.kind==="all"||s.kind===n.kind)&&(n.output==="any"||(n.output==="reply"?s.output.destination==="source":s.output.destination==="silent"))&&(n.state==="any"||(n.state==="active"?s.state==="enabled":s.state==="error")))}const w="bg-muted text-muted-foreground",fe={event:{label:"Event",icon:z},schedule:{label:"Schedule",icon:W},manual:{label:"Manual",icon:O}};function he({agentName:e,deviceLabel:n}){const s=n?{label:n,icon:U}:e?{label:e,icon:G}:{label:"Manual · any client",icon:J},{label:r,icon:l}=s;return t.jsxs(v,{variant:"secondary",className:w,children:[t.jsx(l,{className:"h-3 w-3"}),r]})}function xe({lastRunAt:e,nextRunAt:n}){const s=e?`Ran ${A(e)}`:n?`Next run ${A(n)}`:"Never run";return t.jsxs(v,{variant:"secondary",className:w,children:[t.jsx(Q,{className:"h-3 w-3"}),s]})}function pe({count:e}){return e<=0?null:t.jsxs(v,{variant:"secondary",className:w,children:[t.jsx(V,{className:"h-3 w-3"}),e," ",e===1?"client":"clients"]})}function ye(e){const n=Array.isArray(e.triggers)?e.triggers:[];for(const s of n)if(s&&typeof s=="object"&&s.kind==="event"&&s.source!=="workspace"&&typeof s.connector_key=="string")return s.connector_key;return null}function ve(e,n){return`flex items-center gap-3 px-3 py-2.5 text-left transition-colors hover:bg-accent/50 ${e===n-1?"":"border-b"}`}function be({automation:e,agentName:n,deviceLabel:s,connectorDisplay:r,owner:l,onRemove:m,removing:u,rowClass:d}){const i=e.automation,o=i.automation_id,b=fe[e.kind],g=i.entity_name&&i.entity_type?`${i.entity_name} · ${i.entity_type}`:null,f=[e.when,g].filter(Boolean).join(" — "),h=i.health==="degraded"?i.health_reasons?.[0]||"Needs attention":null;return t.jsxs("div",{className:d,children:[t.jsxs(j,{to:"/$owner/automations/$automationId",params:{owner:l,automationId:o},search:{view:"activity",run_id:void 0},className:"flex min-w-0 flex-1 items-center gap-3",children:[r?t.jsx(F,{icon:r.icon,iconUrl:r.iconUrl,name:r.name,faviconDomain:r.faviconDomain,className:"h-7 w-7 shrink-0 rounded-md text-[10px]"}):t.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border",children:t.jsx(b.icon,{className:"h-3.5 w-3.5 text-muted-foreground"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:e.does}),t.jsx(he,{agentName:n,deviceLabel:s}),t.jsx(xe,{lastRunAt:i.last_run_completed_at??i.last_fired_at??null,nextRunAt:i.next_run_at??null}),t.jsx(pe,{count:i.processing_client_count??0}),h?t.jsxs(v,{variant:"secondary",className:"max-w-full whitespace-normal bg-amber-500/10 text-left text-amber-700 dark:text-amber-400",children:[t.jsx(H,{className:"h-3 w-3 shrink-0"}),h]}):null]}),f?t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:f}):null]})]}),t.jsx(j,{to:"/$owner/automations/$automationId",params:{owner:l,automationId:o},search:{view:"definition",run_id:void 0},className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground","aria-label":"Edit",children:t.jsx(K,{className:"h-3.5 w-3.5"})}),t.jsx(ne,{pending:u,onConfirm:m})]})}function ge({owner:e,organizationId:n,isWorkspaceLoading:s}){const[r,l]=x.useState(de),m=L(n??void 0),{data:u=[]}=S({enabled:!!n}),{data:d=[]}=E(),{data:i=[]}=I(n),o=M(),b=x.useMemo(()=>{const a=new Map;for(const c of u)a.set(c.agentId,c.name);return a},[u]),g=x.useMemo(()=>{const a=new Map;for(const c of d)a.set(c.id,c.label||c.platform||c.id);return a},[d]),f=x.useMemo(()=>ue(m.data??[]),[m.data]),h=x.useMemo(()=>me(f,r),[f,r]),$=s||m.isLoading,k=t.jsx(p,{asChild:!0,size:"sm",className:"h-8 shrink-0 text-xs",children:t.jsxs(j,{to:"/$owner/automations/new",params:{owner:e},children:[t.jsx(P,{className:"mr-1.5 h-3.5 w-3.5"}),"New automation"]})});return $?t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-end",children:k}),t.jsx(X,{label:"Loading automations",actions:!0})]}):t.jsxs("div",{className:"space-y-4",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:"What runs on its own — on a schedule, on an event, or when you ask."}),t.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[t.jsx("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:ee.map(a=>t.jsx(p,{type:"button",variant:r.kind===a.value?"secondary":"ghost","aria-pressed":r.kind===a.value,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>l(c=>({...c,kind:a.value})),children:a.label},a.value))}),t.jsx("div",{className:"ml-auto shrink-0",children:k})]}),f.length===0?t.jsx(N,{icon:R,title:"No automations yet",description:"Automations act on their own — reply to a message, run a nightly summary, react to a ticket. Use New automation to create one."}):h.length===0?t.jsx(N,{icon:D.automations.icon,title:"No automations match this filter",description:"Try another trigger type.",secondaryActionLabel:"Show all",secondaryOnAction:()=>l(a=>({...a,kind:"all"}))}):t.jsx("div",{className:"overflow-hidden rounded-lg border",children:h.map((a,c)=>t.jsx(be,{automation:a,agentName:a.automation.managed_agent_id?b.get(a.automation.managed_agent_id)??a.automation.managed_agent_id:null,deviceLabel:a.automation.device_worker_id?g.get(a.automation.device_worker_id)??a.automation.device_worker_id:null,connectorDisplay:(()=>{const _=ye(a.automation);return _?B(_,i):null})(),owner:e,rowClass:ve(c,h.length),removing:o.isPending,onRemove:()=>o.mutate(a.automation.automation_id)},a.key))})]})}function _e(){const{owner:e}=Z.useParams();return t.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-3 px-4 pt-4 pb-8 lg:px-6",children:t.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:t.jsx(q,{owner:e,children:n=>t.jsx("div",{className:"mx-auto flex min-h-0 w-full min-w-0 max-w-3xl flex-1 flex-col",children:t.jsx(ge,{owner:n.ownerSlug,organizationId:n.organizationId,isWorkspaceLoading:n.isWorkspaceLoading})})})})})}export{_e as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{hu as r,j as e}from"./index-BUr8321-.js";import{A as m}from"./agent-skills-route-KVDDTbJB.js";import"./agent-subpage-shell-DuVYZvBE.js";import"./agent-skill-context-D4a2QCoZ.js";import"./core.esm-DsLgjoel.js";import"./skill-editor-D_W3QlRz.js";import"./agent-loading-shells-CLoLeFcB.js";import"./agent-card-controls-CZO6GI0s.js";import"./switch-Dzse_XFM.js";function c(){const{owner:t,agentId:o}=r.useParams();return e.jsx(m,{owner:t,agentId:o})}export{c as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{hw as o,j as e}from"./index-BUr8321-.js";import{A as n}from"./agent-guardrails-route-B5uoMC6o.js";import"./model-selector-DfbmHjLu.js";import"./agent-subpage-shell-DuVYZvBE.js";import"./agent-loading-shells-CLoLeFcB.js";import"./agent-card-controls-CZO6GI0s.js";import"./switch-Dzse_XFM.js";function d(){const{owner:r,agentId:t}=o.useParams();return e.jsx(n,{owner:r,agentId:t})}export{d as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aA as vr,aB as pr,r as u,aC as St,j as v,aD as Mt,aE as yt,aF as Er,aG as On,aH as mr,aI as gr,aJ as _r,aK as Or,aL as F,aM as Tn,aN as Ut,X as Tr,aO as Ar,aP as Ir,aQ as Rr,aR as Sr}from"./index-Bfux0kHb.js";function x(...e){return vr(pr(e))}function Be({error:e,localization:t,localizeErrors:n=!0}){var r;const a="Request failed";if(!n)return e?.message?e.message:(r=e?.error)!=null&&r.message?e.error.message:a;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const o=e.error.code;if(t?.[o])return t[o]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||a}function An(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}var yr={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Nr={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Cr={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},wr={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},br={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dr={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},xr={...br,...Dr},Pr={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Lr={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Mr={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Ur={INVALID_SESSION_TOKEN:"Invalid session token"},kr={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fr={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Br={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},jr={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Hr={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Vr={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},zr={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Wr={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...wr,...yr,...Nr,...Cr,...xr,...Pr,...Lr,...Mr,...Ur,...kr,...Fr,...Br,...jr,...Hr,...Vr,...zr},Gr={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},kt={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Ft={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const In=u.createContext({});function Yr(){return u.useContext(In)}var Xe,Bt;function Kr(){if(Bt)return Xe;Bt=1;var e=function(){};return Xe=e,Xe}var qr=Kr();const $r=St(qr);function Zr({async:e,appendTo:t,defer:n,id:r,nonce:a,src:o}){const c=document.createElement("script");e!==void 0&&(c.async=e),n!==void 0&&(c.defer=n),r&&(c.id=r),a&&c.setAttribute("nonce",a),c.src=o,(t==="head"?document.head:document.body).appendChild(c)}var Xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let we=null,be=!1;const je=new Set,He=new Set,Qr=typeof window<"u",ye="___grecaptcha_cfg",Rn=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jr(){if(!Qr)return;function e(n){if(be)n();else{window[ye]||(window[ye]={});const r=window[ye];r.fns||(r.fns=[]),r.fns.push(n)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){be=!0;for(const n of He)n();He.clear()}window[Rn]=t}function ea({language:e,onLoadCallbackName:t,render:n,useEnterprise:r=!1,useRecaptchaNet:a=!1}){const o=a?"recaptcha.net":"google.com",c=r?"enterprise.js":"api.js",s=new URLSearchParams({render:n});return t&&s.set("onload",t),e&&s.set("hl",e),`https://www.${o}/recaptcha/${c}?${s.toString()}`}function ta({language:e,render:t,scriptProps:n,useEnterprise:r,useRecaptchaNet:a}){const o={id:"google-recaptcha-v3"},c=ea({language:e,onLoadCallbackName:Rn,render:t,useEnterprise:r,useRecaptchaNet:a});if(we){if(we!==c)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}we=c,Zr(Object.assign(Object.assign(Object.assign({},o),n),{src:c}))}function na(e){if(!window[ye])return;const t=window[ye];t.clients&&delete t.clients[e]}function ra(e,t){var{onLoadCallback:n,onLoadCallbackName:r}=t,a=Xr(t,["onLoadCallback","onLoadCallbackName"]);if(je.size===0&&Jr(),ta(a),je.add(e),n&&(be?n():He.add(n)),r){let o=function(){if(!r)return;const c=window[r];typeof c=="function"&&c()};be?o():He.add(o)}}function aa(e){var t,n,r;je.delete(e),je.size===0&&(window.grecaptcha=void 0,window[ye]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(n=document.querySelector(`script[src="${we}"]`))===null||n===void 0||n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||r===void 0||r.remove(),we=null,be=!1)}let jt=!1;function oa({container:e,children:t,language:n,reCaptchaKey:r,scriptProps:a,useEnterprise:o,useRecaptchaNet:c}){var s,l,i,h,d,f,p;const E=u.useId(),[_,R]=u.useState(null),[g,S]=u.useState(null),O=u.useRef(!1);u.useEffect(()=>{function I(){var D;const C=o?(D=window.grecaptcha)===null||D===void 0?void 0:D.enterprise:window.grecaptcha;if(!C)throw new Error("reCAPTCHA not found");if(!C.ready)throw new Error("reCAPTCHA ready callback not found");C.ready(()=>{R(C)})}return ra(E,{language:n,onLoadCallback:I,onLoadCallbackName:a?.onLoadCallbackName,render:e?.element?"explicit":r,scriptProps:{appendTo:a?.appendTo,async:a?.async,defer:a?.defer,id:a?.id,nonce:a?.nonce},useEnterprise:o,useRecaptchaNet:c}),()=>{aa(E),R(null)}},[e?.element,E,n,r,a?.appendTo,a?.async,a?.defer,a?.id,a?.nonce,a?.onLoadCallbackName,o,c]),u.useEffect(()=>{var I,D,C;if(!e?.element||!_?.render)return;const M={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((I=e.parameters)===null||I===void 0?void 0:I.badge)||"inline",callback:e.parameters.callback,sitekey:r,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},L=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!L)throw new Error("reCAPTCHA container element not found");const k=_.render(L,M);return!((D=e?.parameters)===null||D===void 0)&&D.hidden&&(jt||($r(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),jt=!0),(C=L.querySelector(".grecaptcha-badge"))===null||C===void 0||C.style.setProperty("display","none")),S(k),O.current=!0,()=>{S(null),O.current=!1,na(k),L.innerHTML=""}},[e?.element,(s=e?.parameters)===null||s===void 0?void 0:s.badge,(l=e?.parameters)===null||l===void 0?void 0:l.hidden,(i=e?.parameters)===null||i===void 0?void 0:i.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(d=e?.parameters)===null||d===void 0?void 0:d.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(p=e?.parameters)===null||p===void 0?void 0:p.theme,_,r]);const A=!!e?.element,m=A?g:r,N=u.useMemo(()=>m!==null&&_?.execute?I=>{if(m===null||!_?.execute)throw new Error("reCAPTCHA has not been loaded");return A&&!O.current?(console.warn("Client ID not mounted"),null):_.execute(m,{action:I})}:void 0,[m,_,A]);return v.jsx(In.Provider,{value:{container:e?.element,executeRecaptcha:N,reCaptchaInstance:_},children:t})}var ia=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const n={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,n),this.notify(e)}setRefetching(e,t){const n=this.cache.get(e);n&&(n.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const n of t)this.notify(n)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const n=Array.from(t);for(const r of n)r()}}},te=new ia;function sa(){return()=>{}}function la(){return u.useSyncExternalStore(sa,()=>!0,()=>!1)}function ca(){const[e,t]=u.useState();return u.useEffect(()=>{const n=()=>{const a=document.documentElement.getAttribute("lang");t(a??void 0)};n();const r=new MutationObserver(a=>{for(const o of a)o.attributeName==="lang"&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{lang:e}}function ua(){const[e,t]=u.useState("light");return u.useEffect(()=>{const n=()=>{var a;const o=document.documentElement.classList.contains("dark")||((a=document.documentElement.getAttribute("style"))==null?void 0:a.includes("color-scheme: dark"));t(o?"dark":"light")};n();const r=new MutationObserver(a=>{for(const o of a)(o.attributeName==="style"||o.attributeName==="class")&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{theme:e}}function da({children:e}){const t=la(),{captcha:n}=u.useContext(oe);return n?.provider!=="google-recaptcha-v3"?e:v.jsxs(oa,{reCaptchaKey:n.siteKey,useEnterprise:n.enterprise,useRecaptchaNet:n.recaptchaNet,children:[t&&v.jsx("style",{children:`
|
|
1
|
+
import{aA as vr,aB as pr,r as u,aC as St,j as v,aD as Mt,aE as yt,aF as Er,aG as On,aH as mr,aI as gr,aJ as _r,aK as Or,aL as F,aM as Tn,aN as Ut,X as Tr,aO as Ar,aP as Ir,aQ as Rr,aR as Sr}from"./index-BUr8321-.js";function x(...e){return vr(pr(e))}function Be({error:e,localization:t,localizeErrors:n=!0}){var r;const a="Request failed";if(!n)return e?.message?e.message:(r=e?.error)!=null&&r.message?e.error.message:a;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const o=e.error.code;if(t?.[o])return t[o]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||a}function An(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}var yr={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Nr={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Cr={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},wr={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},br={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dr={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},xr={...br,...Dr},Pr={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Lr={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Mr={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Ur={INVALID_SESSION_TOKEN:"Invalid session token"},kr={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fr={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Br={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},jr={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Hr={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Vr={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},zr={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Wr={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...wr,...yr,...Nr,...Cr,...xr,...Pr,...Lr,...Mr,...Ur,...kr,...Fr,...Br,...jr,...Hr,...Vr,...zr},Gr={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},kt={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Ft={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const In=u.createContext({});function Yr(){return u.useContext(In)}var Xe,Bt;function Kr(){if(Bt)return Xe;Bt=1;var e=function(){};return Xe=e,Xe}var qr=Kr();const $r=St(qr);function Zr({async:e,appendTo:t,defer:n,id:r,nonce:a,src:o}){const c=document.createElement("script");e!==void 0&&(c.async=e),n!==void 0&&(c.defer=n),r&&(c.id=r),a&&c.setAttribute("nonce",a),c.src=o,(t==="head"?document.head:document.body).appendChild(c)}var Xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let we=null,be=!1;const je=new Set,He=new Set,Qr=typeof window<"u",ye="___grecaptcha_cfg",Rn=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jr(){if(!Qr)return;function e(n){if(be)n();else{window[ye]||(window[ye]={});const r=window[ye];r.fns||(r.fns=[]),r.fns.push(n)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){be=!0;for(const n of He)n();He.clear()}window[Rn]=t}function ea({language:e,onLoadCallbackName:t,render:n,useEnterprise:r=!1,useRecaptchaNet:a=!1}){const o=a?"recaptcha.net":"google.com",c=r?"enterprise.js":"api.js",s=new URLSearchParams({render:n});return t&&s.set("onload",t),e&&s.set("hl",e),`https://www.${o}/recaptcha/${c}?${s.toString()}`}function ta({language:e,render:t,scriptProps:n,useEnterprise:r,useRecaptchaNet:a}){const o={id:"google-recaptcha-v3"},c=ea({language:e,onLoadCallbackName:Rn,render:t,useEnterprise:r,useRecaptchaNet:a});if(we){if(we!==c)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}we=c,Zr(Object.assign(Object.assign(Object.assign({},o),n),{src:c}))}function na(e){if(!window[ye])return;const t=window[ye];t.clients&&delete t.clients[e]}function ra(e,t){var{onLoadCallback:n,onLoadCallbackName:r}=t,a=Xr(t,["onLoadCallback","onLoadCallbackName"]);if(je.size===0&&Jr(),ta(a),je.add(e),n&&(be?n():He.add(n)),r){let o=function(){if(!r)return;const c=window[r];typeof c=="function"&&c()};be?o():He.add(o)}}function aa(e){var t,n,r;je.delete(e),je.size===0&&(window.grecaptcha=void 0,window[ye]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(n=document.querySelector(`script[src="${we}"]`))===null||n===void 0||n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||r===void 0||r.remove(),we=null,be=!1)}let jt=!1;function oa({container:e,children:t,language:n,reCaptchaKey:r,scriptProps:a,useEnterprise:o,useRecaptchaNet:c}){var s,l,i,h,d,f,p;const E=u.useId(),[_,R]=u.useState(null),[g,S]=u.useState(null),O=u.useRef(!1);u.useEffect(()=>{function I(){var D;const C=o?(D=window.grecaptcha)===null||D===void 0?void 0:D.enterprise:window.grecaptcha;if(!C)throw new Error("reCAPTCHA not found");if(!C.ready)throw new Error("reCAPTCHA ready callback not found");C.ready(()=>{R(C)})}return ra(E,{language:n,onLoadCallback:I,onLoadCallbackName:a?.onLoadCallbackName,render:e?.element?"explicit":r,scriptProps:{appendTo:a?.appendTo,async:a?.async,defer:a?.defer,id:a?.id,nonce:a?.nonce},useEnterprise:o,useRecaptchaNet:c}),()=>{aa(E),R(null)}},[e?.element,E,n,r,a?.appendTo,a?.async,a?.defer,a?.id,a?.nonce,a?.onLoadCallbackName,o,c]),u.useEffect(()=>{var I,D,C;if(!e?.element||!_?.render)return;const M={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((I=e.parameters)===null||I===void 0?void 0:I.badge)||"inline",callback:e.parameters.callback,sitekey:r,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},L=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!L)throw new Error("reCAPTCHA container element not found");const k=_.render(L,M);return!((D=e?.parameters)===null||D===void 0)&&D.hidden&&(jt||($r(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),jt=!0),(C=L.querySelector(".grecaptcha-badge"))===null||C===void 0||C.style.setProperty("display","none")),S(k),O.current=!0,()=>{S(null),O.current=!1,na(k),L.innerHTML=""}},[e?.element,(s=e?.parameters)===null||s===void 0?void 0:s.badge,(l=e?.parameters)===null||l===void 0?void 0:l.hidden,(i=e?.parameters)===null||i===void 0?void 0:i.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(d=e?.parameters)===null||d===void 0?void 0:d.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(p=e?.parameters)===null||p===void 0?void 0:p.theme,_,r]);const A=!!e?.element,m=A?g:r,N=u.useMemo(()=>m!==null&&_?.execute?I=>{if(m===null||!_?.execute)throw new Error("reCAPTCHA has not been loaded");return A&&!O.current?(console.warn("Client ID not mounted"),null):_.execute(m,{action:I})}:void 0,[m,_,A]);return v.jsx(In.Provider,{value:{container:e?.element,executeRecaptcha:N,reCaptchaInstance:_},children:t})}var ia=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const n={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,n),this.notify(e)}setRefetching(e,t){const n=this.cache.get(e);n&&(n.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const n of t)this.notify(n)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const n=Array.from(t);for(const r of n)r()}}},te=new ia;function sa(){return()=>{}}function la(){return u.useSyncExternalStore(sa,()=>!0,()=>!1)}function ca(){const[e,t]=u.useState();return u.useEffect(()=>{const n=()=>{const a=document.documentElement.getAttribute("lang");t(a??void 0)};n();const r=new MutationObserver(a=>{for(const o of a)o.attributeName==="lang"&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{lang:e}}function ua(){const[e,t]=u.useState("light");return u.useEffect(()=>{const n=()=>{var a;const o=document.documentElement.classList.contains("dark")||((a=document.documentElement.getAttribute("style"))==null?void 0:a.includes("color-scheme: dark"));t(o?"dark":"light")};n();const r=new MutationObserver(a=>{for(const o of a)(o.attributeName==="style"||o.attributeName==="class")&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{theme:e}}function da({children:e}){const t=la(),{captcha:n}=u.useContext(oe);return n?.provider!=="google-recaptcha-v3"?e:v.jsxs(oa,{reCaptchaKey:n.siteKey,useEnterprise:n.enterprise,useRecaptchaNet:n.recaptchaNet,children:[t&&v.jsx("style",{children:`
|
|
2
2
|
.grecaptcha-badge {
|
|
3
3
|
visibility: hidden;
|
|
4
4
|
border-radius: var(--radius) !important;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bR as t,j as p,bS as m}from"./index-BUr8321-.js";import{M as i}from"./memory-browse-page-DMDqKJn7.js";import"./switch-Dzse_XFM.js";import"./entity-type-page-C3mT7tXn.js";import"./json-diff-DnsW7Pin.js";import"./index-OUb5Mlez.js";import"./index-Vcq4gwWv.js";import"./code-editor-BqGUZFt6.js";import"./schema-value-normalization-B--OWDL8.js";import"./calendar-C0XpOHd8.js";import"./core.esm-DsLgjoel.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./member-scope-gate-B560Wg-t.js";function R(){const{owner:o,entityType:r}=t.useParams(),{create:e}=t.useSearch();return p.jsx(i,{ownerSlug:o,typeScope:m(r),create:e??!1})}export{R as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gp as n,j as s,gq as r}from"./index-
|
|
1
|
+
import{gp as n,j as s,gq as r}from"./index-BUr8321-.js";function c(){const{owner:e}=n.useParams(),{connector:o,install:t}=n.useSearch();return s.jsx(r,{owner:e,initialConnectorKey:o||t})}export{c as component};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as _,j as L,cP as Je,dU as Ve,aj as ze,aS as _e}from"./index-Bfux0kHb.js";import{T as Be,P as be,E as S,S as U,g as qe,R as Ke,V as $e,F as ve,a as $,b as H,G as Q,W as Z,D as M,l as Qe,h as Ze,c as Ye,C as Xe,d as le,s as et,e as tt,j as nt}from"./index-OUb5Mlez.js";class x{constructor(e,n,l,i){this.fromA=e,this.toA=n,this.fromB=l,this.toB=i}offset(e,n=e){return new x(this.fromA+e,this.toA+e,this.fromB+n,this.toB+n)}}function E(t,e,n,l,i,r){if(t==l)return[];let o=X(t,e,n,l,i,r),a=ee(t,e+o,n,l,i+o,r);e+=o,n-=a,i+=o,r-=a;let d=n-e,c=r-i;if(!d||!c)return[new x(e,n,i,r)];if(d>c){let s=t.slice(e,n).indexOf(l.slice(i,r));if(s>-1)return[new x(e,e+s,i,i),new x(e+s+c,n,r,r)]}else if(c>d){let s=l.slice(i,r).indexOf(t.slice(e,n));if(s>-1)return[new x(e,e,i,i+s),new x(n,n,i+s+d,r)]}if(d==1||c==1)return[new x(e,n,i,r)];let f=Me(t,e,n,l,i,r);if(f){let[s,u,h]=f;return E(t,e,s,l,i,u).concat(E(t,s+h,n,l,u+h,r))}return rt(t,e,n,l,i,r)}let R=1e9,F=0,Y=!1;function rt(t,e,n,l,i,r){let o=n-e,a=r-i;if(R<1e9&&Math.min(o,a)>R*16||F>0&&Date.now()>F)return Math.min(o,a)>R*64?[new x(e,n,i,r)]:oe(t,e,n,l,i,r);let d=Math.ceil((o+a)/2);V.reset(d),z.reset(d);let c=(h,m)=>t.charCodeAt(e+h)==l.charCodeAt(i+m),f=(h,m)=>t.charCodeAt(n-h-1)==l.charCodeAt(r-m-1),s=(o-a)%2!=0?z:null,u=s?null:V;for(let h=0;h<d;h++){if(h>R||F>0&&!(h&63)&&Date.now()>F)return oe(t,e,n,l,i,r);let m=V.advance(h,o,a,d,s,!1,c)||z.advance(h,o,a,d,u,!0,f);if(m)return it(t,e,n,e+m[0],l,i,r,i+m[1])}return[new x(e,n,i,r)]}class Le{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let n=0;n<this.len;n++)this.vec[n]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,n,l,i,r,o,a){for(let d=-e+this.start;d<=e-this.end;d+=2){let c=i+d,f=d==-e||d!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,s=f-d;for(;f<n&&s<l&&a(f,s);)f++,s++;if(this.vec[c]=f,f>n)this.end+=2;else if(s>l)this.start+=2;else if(r){let u=i+(n-l)-d;if(u>=0&&u<this.len&&r.vec[u]!=-1)if(o){let h=r.vec[u];if(h>=n-f)return[h,i+h-u]}else{let h=n-r.vec[u];if(f>=h)return[f,s]}}}return null}}const V=new Le,z=new Le;function it(t,e,n,l,i,r,o,a){let d=!1;return!O(t,l)&&++l==n&&(d=!0),!O(i,a)&&++a==o&&(d=!0),d?[new x(e,n,r,o)]:E(t,e,l,i,r,a).concat(E(t,l,n,i,a,o))}function De(t,e){let n=1,l=Math.min(t,e);for(;n<l;)n=n<<1;return n}function X(t,e,n,l,i,r){if(e==n||e==r||t.charCodeAt(e)!=l.charCodeAt(i))return 0;let o=De(n-e,r-i);for(let a=e,d=i;;){let c=a+o,f=d+o;if(c>n||f>r||t.slice(a,c)!=l.slice(d,f)){if(o==1)return a-e-(O(t,a)?0:1);o=o>>1}else{if(c==n||f==r)return c-e;a=c,d=f}}}function ee(t,e,n,l,i,r){if(e==n||i==r||t.charCodeAt(n-1)!=l.charCodeAt(r-1))return 0;let o=De(n-e,r-i);for(let a=n,d=r;;){let c=a-o,f=d-o;if(c<e||f<i||t.slice(c,a)!=l.slice(f,d)){if(o==1)return n-a-(O(t,a)?0:1);o=o>>1}else{if(c==e||f==i)return n-c;a=c,d=f}}}function q(t,e,n,l,i,r,o,a){let d=l.slice(i,r),c=null;for(;;){if(c||o<a)return c;for(let f=e+o;;){O(t,f)||f++;let s=f+o;if(O(t,s)||(s+=s==f+1?1:-1),s>=n)break;let u=t.slice(f,s),h=-1;for(;(h=d.indexOf(u,h+1))!=-1;){let m=X(t,s,n,l,i+h+u.length,r),p=ee(t,e,f,l,i,i+h),g=u.length+m+p;(!c||c[2]<g)&&(c=[f-p,i+h-p,g])}f=s}if(a<0)return c;o=o>>1}}function Me(t,e,n,l,i,r){let o=n-e,a=r-i;if(o<a){let d=Me(l,i,r,t,e,n);return d&&[d[1],d[0],d[2]]}return o<4||a*2<o?null:q(t,e,n,l,i,r,Math.floor(o/4),-1)}function oe(t,e,n,l,i,r){Y=!0;let o=n-e,a=r-i,d;if(o<a){let u=q(l,i,r,t,e,n,Math.floor(o/6),50);d=u&&[u[1],u[0],u[2]]}else d=q(t,e,n,l,i,r,Math.floor(a/6),50);if(!d)return[new x(e,n,i,r)];let[c,f,s]=d;return E(t,e,c,l,i,f).concat(E(t,c+s,n,l,f+s,r))}function Se(t,e){for(let n=1;n<t.length;n++){let l=t[n-1],i=t[n];l.toA>i.fromA-e&&l.toB>i.fromB-e&&(t[n-1]=new x(l.fromA,i.toA,l.fromB,i.toB),t.splice(n--,1))}}function lt(t,e,n){for(;;){Se(n,1);let l=!1;for(let i=0;i<n.length;i++){let r=n[i],o,a;(o=X(t,r.fromA,r.toA,e,r.fromB,r.toB))&&(r=n[i]=new x(r.fromA+o,r.toA,r.fromB+o,r.toB)),(a=ee(t,r.fromA,r.toA,e,r.fromB,r.toB))&&(r=n[i]=new x(r.fromA,r.toA-a,r.fromB,r.toB-a));let d=r.toA-r.fromA,c=r.toB-r.fromB;if(d&&c)continue;let f=r.fromA-(i?n[i-1].toA:0),s=(i<n.length-1?n[i+1].fromA:t.length)-r.toA;if(!f||!s)continue;let u=d?t.slice(r.fromA,r.toA):e.slice(r.fromB,r.toB);f<=u.length&&t.slice(r.fromA-f,r.fromA)==u.slice(u.length-f)?(n[i]=new x(r.fromA-f,r.toA-f,r.fromB-f,r.toB-f),l=!0):s<=u.length&&t.slice(r.toA,r.toA+s)==u.slice(0,s)&&(n[i]=new x(r.fromA+s,r.toA+s,r.fromB+s,r.toB+s),l=!0)}if(!l)break}return n}function ot(t,e,n){for(let l=0,i=0;i<t.length;i++){let r=t[i],o=r.toA-r.fromA,a=r.toB-r.fromB;if(o&&a||o>3||a>3){let d=i==t.length-1?e.length:t[i+1].fromA,c=r.fromA-l,f=d-r.toA,s=fe(e,r.fromA,c),u=ae(e,r.toA,f),h=r.fromA-s,m=u-r.toA;if((!o||!a)&&h&&m){let p=Math.max(o,a),[g,A,T]=o?[e,r.fromA,r.toA]:[n,r.fromB,r.toB];p>h&&e.slice(s,r.fromA)==g.slice(T-h,T)?(r=t[i]=new x(s,s+o,r.fromB-h,r.toB-h),s=r.fromA,u=ae(e,r.toA,d-r.toA)):p>m&&e.slice(r.toA,u)==g.slice(A,A+m)&&(r=t[i]=new x(u-o,u,r.fromB+m,r.toB+m),u=r.toA,s=fe(e,r.fromA,r.fromA-l)),h=r.fromA-s,m=u-r.toA}if(h||m)r=t[i]=new x(r.fromA-h,r.toA+m,r.fromB-h,r.toB+m);else if(o){if(!a){let p=de(e,r.fromA,r.toA),g,A=p<0?-1:se(e,r.toA,r.fromA);p>-1&&(g=p-r.fromA)<=f&&e.slice(r.fromA,p)==e.slice(r.toA,r.toA+g)?r=t[i]=r.offset(g):A>-1&&(g=r.toA-A)<=c&&e.slice(r.fromA-g,r.fromA)==e.slice(A,r.toA)&&(r=t[i]=r.offset(-g))}}else{let p=de(n,r.fromB,r.toB),g,A=p<0?-1:se(n,r.toB,r.fromB);p>-1&&(g=p-r.fromB)<=f&&n.slice(r.fromB,p)==n.slice(r.toB,r.toB+g)?r=t[i]=r.offset(g):A>-1&&(g=r.toB-A)<=c&&n.slice(r.fromB-g,r.fromB)==n.slice(A,r.toB)&&(r=t[i]=r.offset(-g))}}l=r.toA}return Se(t,3),t}let y;try{y=new RegExp("[\\p{Alphabetic}\\p{Number}]","u")}catch{}function ye(t){return t>48&&t<58||t>64&&t<91||t>96&&t<123}function Ee(t,e){if(e==t.length)return 0;let n=t.charCodeAt(e);return n<192?ye(n)?1:0:y?!Ne(n)||e==t.length-1?y.test(String.fromCharCode(n))?1:0:y.test(t.slice(e,e+2))?2:0:0}function je(t,e){if(!e)return 0;let n=t.charCodeAt(e-1);return n<192?ye(n)?1:0:y?!Te(n)||e==1?y.test(String.fromCharCode(n))?1:0:y.test(t.slice(e-2,e))?2:0:0}const Oe=8;function ae(t,e,n){if(e==t.length||!je(t,e))return e;for(let l=e,i=e+n,r=0;r<Oe;r++){let o=Ee(t,l);if(!o||l+o>i)return l;l+=o}return e}function fe(t,e,n){if(!e||!Ee(t,e))return e;for(let l=e,i=e-n,r=0;r<Oe;r++){let o=je(t,l);if(!o||l-o<i)return l;l-=o}return e}function se(t,e,n){for(;e!=n;e--)if(t.charCodeAt(e-1)==10)return e;return-1}function de(t,e,n){for(;e!=n;e++)if(t.charCodeAt(e)==10)return e;return-1}const Ne=t=>t>=55296&&t<=56319,Te=t=>t>=56320&&t<=57343;function O(t,e){return!e||e==t.length||!Ne(t.charCodeAt(e-1))||!Te(t.charCodeAt(e))}function at(t,e,n){var l;let i=n?.override;return i?i(t,e):(R=((l=n?.scanLimit)!==null&&l!==void 0?l:1e9)>>1,F=n?.timeout?Date.now()+n.timeout:0,Y=!1,lt(t,e,E(t,0,t.length,e,0,e.length)))}function Ge(){return!Y}function Re(t,e,n){return ot(at(t,e,n),t,e)}const D=ve.define({combine:t=>t[0]}),ft=$.define(),Fe=ve.define(),k=U.define({create(t){return null},update(t,e){for(let n of e.effects)n.is(ft)&&(t=n.value);for(let n of e.state.facet(Fe))t=n(t,e);return t}});class j{constructor(e,n,l,i,r,o=!0){this.changes=e,this.fromA=n,this.toA=l,this.fromB=i,this.toB=r,this.precise=o}offset(e,n){return e||n?new j(this.changes,this.fromA+e,this.toA+e,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,n,l){let i=Re(e.toString(),n.toString(),l);return Ie(i,e,n,0,0,Ge())}static updateA(e,n,l,i,r){return ge(me(e,i,!0,l.length),e,n,l,r)}static updateB(e,n,l,i,r){return ge(me(e,i,!1,n.length),e,n,l,r)}}function ce(t,e,n,l){let i=n.lineAt(t),r=l.lineAt(e);return i.to==t&&r.to==e&&t<n.length&&e<l.length?[t+1,e+1]:[i.from,r.from]}function ue(t,e,n,l){let i=n.lineAt(t),r=l.lineAt(e);return i.from==t&&r.from==e?[t,e]:[i.to+1,r.to+1]}function Ie(t,e,n,l,i,r){let o=[];for(let a=0;a<t.length;a++){let d=t[a],[c,f]=ce(d.fromA+l,d.fromB+i,e,n),[s,u]=ue(d.toA+l,d.toB+i,e,n),h=[d.offset(-c+l,-f+i)];for(;a<t.length-1;){let m=t[a+1],[p,g]=ce(m.fromA+l,m.fromB+i,e,n);if(p>s+1&&g>u+1)break;h.push(m.offset(-c+l,-f+i)),[s,u]=ue(m.toA+l,m.toB+i,e,n),a++}o.push(new j(h,c,Math.max(c,s),f,Math.max(f,u),r))}return o}const W=1e3;function he(t,e,n,l){let i=0,r=t.length;for(;;){if(i==r){let f=0,s=0;i&&({toA:f,toB:s}=t[i-1]);let u=e-(n?f:s);return[f+u,s+u]}let o=i+r>>1,a=t[o],[d,c]=n?[a.fromA,a.toA]:[a.fromB,a.toB];if(d>e)r=o;else if(c<=e)i=o+1;else return l?[a.fromA,a.fromB]:[a.toA,a.toB]}}function me(t,e,n,l){let i=[];return e.iterChangedRanges((r,o,a,d)=>{let c=0,f=n?e.length:l,s=0,u=n?l:e.length;r>W&&([c,s]=he(t,r-W,n,!0)),o<e.length-W&&([f,u]=he(t,o+W,n,!1));let h=d-a-(o-r),m,[p,g]=n?[h,0]:[0,h];i.length&&(m=i[i.length-1]).toA>=c?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:f,toB:u,diffA:m.diffA+p,diffB:m.diffB+g}:i.push({fromA:c,toA:f,fromB:s,toB:u,diffA:p,diffB:g})}),i}function ge(t,e,n,l,i){if(!t.length)return e;let r=[];for(let o=0,a=0,d=0,c=0;;o++){let f=o==t.length?null:t[o],s=f?f.fromA+a:n.length,u=f?f.fromB+d:l.length;for(;c<e.length;){let g=e[c];if(f&&(g.toA+a>s||g.toB+d>u))break;r.push(g.offset(a,d)),c++}if(!f)break;let h=f.toA+a+f.diffA,m=f.toB+d+f.diffB,p=Re(n.sliceString(s,h),l.sliceString(u,m),i);for(let g of Ie(p,n,l,s,u,Ge()))r.push(g);for(a+=f.diffA,d+=f.diffB;c<e.length;){let g=e[c];if(g.fromA+a>h&&g.fromB+d>m)break;c++}}return r}const st={scanLimit:500},We=$e.fromClass(class{constructor(t){({deco:this.deco,gutter:this.gutter}=Ce(t))}update(t){(t.docChanged||t.viewportChanged||dt(t.startState,t.state)||ct(t.startState,t.state))&&({deco:this.deco,gutter:this.gutter}=Ce(t.view))}},{decorations:t=>t.deco});function dt(t,e){return t.field(k,!1)!=e.field(k,!1)}function ct(t,e){return t.facet(D)!=e.facet(D)}const pe=M.line({class:"cm-changedLine"}),He=M.mark({class:"cm-changedText"}),ut=M.mark({tagName:"ins",class:"cm-insertedLine"}),ht=M.mark({tagName:"del",class:"cm-deletedLine"}),xe=new class extends Q{constructor(){super(...arguments),this.elementClass="cm-changedLineGutter"}};function mt(t,e,n,l,i,r){let o=n?t.fromA:t.fromB,a=n?t.toA:t.toB,d=0;if(o!=a){i.add(o,o,pe),i.add(o,a,n?ht:ut),r&&r.add(o,o,xe);for(let c=e.iterRange(o,a-1),f=o;!c.next().done;){if(c.lineBreak){f++,i.add(f,f,pe),r&&r.add(f,f,xe);continue}let s=f+c.value.length;if(l)for(;d<t.changes.length;){let u=t.changes[d],h=o+(n?u.fromA:u.fromB),m=o+(n?u.toA:u.toB),p=Math.max(f,h),g=Math.min(s,m);if(p<g&&i.add(p,g,He),m<s)d++;else break}f=s}}}function Ce(t){let e=t.state.field(k),{side:n,highlightChanges:l,markGutter:i,overrideChunk:r}=t.state.facet(D),o=n=="a",a=new H,d=i?new H:null,{from:c,to:f}=t.viewport;for(let s of e){if((o?s.fromA:s.fromB)>=f)break;(o?s.toA:s.toB)>c&&(!r||!r(t.state,s,a,d))&&mt(s,t.state.doc,o,l,a,d)}return{deco:a.finish(),gutter:d&&d.finish()}}const K=$.define({map:(t,e)=>e.mapPos(t)});class gt extends Z{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let n=document.createElement("div");return n.className="cm-collapsedLines",n.textContent=e.state.phrase("$ unchanged lines",this.lines),n.addEventListener("click",l=>{let i=e.posAtDOM(l.target);e.dispatch({effects:K.of(i)});let{side:r,sibling:o}=e.state.facet(D);o&&o().dispatch({effects:K.of(pt(i,e.state.field(k),r=="a"))})}),n}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return"collapsed-unchanged-code"}}function pt(t,e,n){let l=0,i=0;for(let r=0;;r++){let o=r<e.length?e[r]:null;if(!o||(n?o.fromA:o.fromB)>=t)return i+(t-l);[l,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}const xt=U.define({create(t){return M.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)n.is(K)&&(t=t.update({filter:l=>l!=n.value}));if(t.size&&e.state.field(k)!=e.startState.field(k,!1)){let n=e.state.facet(D).side=="a",l=[];for(let i of e.state.field(k))t.between(n?i.fromA:i.fromB,n?i.toA:i.toB,r=>{l.push(r)});l.length&&(t=t.update({filter:i=>l.indexOf(i)<0}))}return t},provide:t=>S.decorations.from(t)});function Ct({margin:t=3,minSize:e=4}){return xt.init(n=>At(n,t,e))}function At(t,e,n){let l=new H,i=t.facet(D).side=="a",r=t.field(k),o=1;for(let a=0;;a++){let d=a<r.length?r[a]:null,c=a?o+e:1,f=d?t.doc.lineAt(i?d.fromA:d.fromB).number-1-e:t.doc.lines,s=f-c+1;if(s>=n&&l.add(t.doc.line(c).from,t.doc.line(f).to,M.replace({widget:new gt(s),block:!0})),!d)break;o=t.doc.lineAt(Math.min(t.doc.length,i?d.toA:d.toB)).number}return l.finish()}const kt=S.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:"auto !important",overflowY:"visible !important"},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:"rgba(160, 128, 100, .08)"},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:"rgba(100, 160, 128, .08)"},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat"},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat"},"&light.cm-merge-b .cm-changedText":{background:"linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat"},"&dark.cm-merge-b .cm-changedText":{background:"linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat"},"&.cm-merge-b .cm-deletedText":{background:"#ff000033"},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:"none"},".cm-deletedChunk":{paddingLeft:"6px","& .cm-chunkButtons":{position:"absolute",insetInlineEnd:"5px"},"& button":{border:"none",cursor:"pointer",color:"white",margin:"0 2px",borderRadius:"3px","&[name=accept]":{background:"#2a2"},"&[name=reject]":{background:"#d43"}}},".cm-collapsedLines":{padding:"5px 5px 5px 10px",cursor:"pointer","&:before":{content:'"⦚"',marginInlineEnd:"7px"},"&:after":{content:'"⦚"',marginInlineStart:"7px"}},"&light .cm-collapsedLines":{color:"#444",background:"linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)"},"&dark .cm-collapsedLines":{color:"#ddd",background:"linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)"},".cm-changeGutter":{width:"3px",paddingLeft:"1px"},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:"#e43"},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:"#fa9"},"&light.cm-merge-b .cm-changedLineGutter":{background:"#2b2"},"&dark.cm-merge-b .cm-changedLineGutter":{background:"#8f8"},".cm-inlineChangedLineGutter":{background:"#75d"}}),wt=new class extends Q{constructor(){super(...arguments),this.elementClass="cm-deletedLineGutter"}},Bt=be.low(qe({class:"cm-changeGutter",markers:t=>{var e;return((e=t.plugin(We))===null||e===void 0?void 0:e.gutter)||Ke.empty},widgetMarker:(t,e)=>e instanceof Pe?wt:null}));function bt(t){var e;let n=typeof t.original=="string"?Be.of(t.original.split(/\r?\n/)):t.original,l=t.diffConfig||st;return[be.low(We),Mt,kt,S.editorAttributes.of({class:"cm-merge-b"}),Fe.of((i,r)=>{let o=r.effects.find(a=>a.is(te));return o&&(i=j.updateA(i,o.value.doc,r.startState.doc,o.value.changes,l)),r.docChanged&&(i=j.updateB(i,r.state.field(N),r.newDoc,r.changes,l)),i}),D.of({highlightChanges:t.highlightChanges!==!1,markGutter:t.gutter!==!1,syntaxHighlightDeletions:t.syntaxHighlightDeletions!==!1,syntaxHighlightDeletionsMaxLength:3e3,mergeControls:(e=t.mergeControls)!==null&&e!==void 0?e:!0,overrideChunk:t.allowInlineDiffs?jt:void 0,side:"b"}),N.init(()=>n),t.gutter!==!1?Bt:[],t.collapseUnchanged?Ct(t.collapseUnchanged):[],k.init(i=>j.build(n,i.doc,l))]}const te=$.define(),N=U.define({create:()=>Be.empty,update(t,e){for(let n of e.effects)n.is(te)&&(t=n.value.doc);return t}}),Ae=new WeakMap;class Pe extends Z{constructor(e){super(),this.buildDOM=e,this.dom=null}eq(e){return this.dom==e.dom}toDOM(e){return this.dom||(this.dom=this.buildDOM(e))}}function vt(t,e,n){let l=Ae.get(e.changes);if(l)return l;let i=o=>{let{highlightChanges:a,syntaxHighlightDeletions:d,syntaxHighlightDeletionsMaxLength:c,mergeControls:f}=t.facet(D),s=document.createElement("div");if(s.className="cm-deletedChunk",f){let w=s.appendChild(document.createElement("div"));w.className="cm-chunkButtons";let b=C=>{C.preventDefault(),Lt(o,o.posAtDOM(s))},v=C=>{C.preventDefault(),Dt(o,o.posAtDOM(s))};if(typeof f=="function")w.appendChild(f("accept",b)),w.appendChild(f("reject",v));else{let C=w.appendChild(document.createElement("button"));C.name="accept",C.textContent=t.phrase("Accept"),C.onmousedown=b;let B=w.appendChild(document.createElement("button"));B.name="reject",B.textContent=t.phrase("Reject"),B.onmousedown=v}}if(n||e.fromA>=e.toA)return s;let u=o.state.field(N).sliceString(e.fromA,e.endA),h=d&&t.facet(Qe),m=T(),p=e.changes,g=0,A=!1;function T(){let w=s.appendChild(document.createElement("div"));return w.className="cm-deletedLine",w.appendChild(document.createElement("del"))}function I(w,b,v){for(let C=w;C<b;){if(u.charAt(C)==`
|
|
1
|
+
import{r as _,j as L,cP as Je,dU as Ve,aj as ze,aS as _e}from"./index-BUr8321-.js";import{T as Be,P as be,E as S,S as U,g as qe,R as Ke,V as $e,F as ve,a as $,b as H,G as Q,W as Z,D as M,l as Qe,h as Ze,c as Ye,C as Xe,d as le,s as et,e as tt,j as nt}from"./index-OUb5Mlez.js";class x{constructor(e,n,l,i){this.fromA=e,this.toA=n,this.fromB=l,this.toB=i}offset(e,n=e){return new x(this.fromA+e,this.toA+e,this.fromB+n,this.toB+n)}}function E(t,e,n,l,i,r){if(t==l)return[];let o=X(t,e,n,l,i,r),a=ee(t,e+o,n,l,i+o,r);e+=o,n-=a,i+=o,r-=a;let d=n-e,c=r-i;if(!d||!c)return[new x(e,n,i,r)];if(d>c){let s=t.slice(e,n).indexOf(l.slice(i,r));if(s>-1)return[new x(e,e+s,i,i),new x(e+s+c,n,r,r)]}else if(c>d){let s=l.slice(i,r).indexOf(t.slice(e,n));if(s>-1)return[new x(e,e,i,i+s),new x(n,n,i+s+d,r)]}if(d==1||c==1)return[new x(e,n,i,r)];let f=Me(t,e,n,l,i,r);if(f){let[s,u,h]=f;return E(t,e,s,l,i,u).concat(E(t,s+h,n,l,u+h,r))}return rt(t,e,n,l,i,r)}let R=1e9,F=0,Y=!1;function rt(t,e,n,l,i,r){let o=n-e,a=r-i;if(R<1e9&&Math.min(o,a)>R*16||F>0&&Date.now()>F)return Math.min(o,a)>R*64?[new x(e,n,i,r)]:oe(t,e,n,l,i,r);let d=Math.ceil((o+a)/2);V.reset(d),z.reset(d);let c=(h,m)=>t.charCodeAt(e+h)==l.charCodeAt(i+m),f=(h,m)=>t.charCodeAt(n-h-1)==l.charCodeAt(r-m-1),s=(o-a)%2!=0?z:null,u=s?null:V;for(let h=0;h<d;h++){if(h>R||F>0&&!(h&63)&&Date.now()>F)return oe(t,e,n,l,i,r);let m=V.advance(h,o,a,d,s,!1,c)||z.advance(h,o,a,d,u,!0,f);if(m)return it(t,e,n,e+m[0],l,i,r,i+m[1])}return[new x(e,n,i,r)]}class Le{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let n=0;n<this.len;n++)this.vec[n]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,n,l,i,r,o,a){for(let d=-e+this.start;d<=e-this.end;d+=2){let c=i+d,f=d==-e||d!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,s=f-d;for(;f<n&&s<l&&a(f,s);)f++,s++;if(this.vec[c]=f,f>n)this.end+=2;else if(s>l)this.start+=2;else if(r){let u=i+(n-l)-d;if(u>=0&&u<this.len&&r.vec[u]!=-1)if(o){let h=r.vec[u];if(h>=n-f)return[h,i+h-u]}else{let h=n-r.vec[u];if(f>=h)return[f,s]}}}return null}}const V=new Le,z=new Le;function it(t,e,n,l,i,r,o,a){let d=!1;return!O(t,l)&&++l==n&&(d=!0),!O(i,a)&&++a==o&&(d=!0),d?[new x(e,n,r,o)]:E(t,e,l,i,r,a).concat(E(t,l,n,i,a,o))}function De(t,e){let n=1,l=Math.min(t,e);for(;n<l;)n=n<<1;return n}function X(t,e,n,l,i,r){if(e==n||e==r||t.charCodeAt(e)!=l.charCodeAt(i))return 0;let o=De(n-e,r-i);for(let a=e,d=i;;){let c=a+o,f=d+o;if(c>n||f>r||t.slice(a,c)!=l.slice(d,f)){if(o==1)return a-e-(O(t,a)?0:1);o=o>>1}else{if(c==n||f==r)return c-e;a=c,d=f}}}function ee(t,e,n,l,i,r){if(e==n||i==r||t.charCodeAt(n-1)!=l.charCodeAt(r-1))return 0;let o=De(n-e,r-i);for(let a=n,d=r;;){let c=a-o,f=d-o;if(c<e||f<i||t.slice(c,a)!=l.slice(f,d)){if(o==1)return n-a-(O(t,a)?0:1);o=o>>1}else{if(c==e||f==i)return n-c;a=c,d=f}}}function q(t,e,n,l,i,r,o,a){let d=l.slice(i,r),c=null;for(;;){if(c||o<a)return c;for(let f=e+o;;){O(t,f)||f++;let s=f+o;if(O(t,s)||(s+=s==f+1?1:-1),s>=n)break;let u=t.slice(f,s),h=-1;for(;(h=d.indexOf(u,h+1))!=-1;){let m=X(t,s,n,l,i+h+u.length,r),p=ee(t,e,f,l,i,i+h),g=u.length+m+p;(!c||c[2]<g)&&(c=[f-p,i+h-p,g])}f=s}if(a<0)return c;o=o>>1}}function Me(t,e,n,l,i,r){let o=n-e,a=r-i;if(o<a){let d=Me(l,i,r,t,e,n);return d&&[d[1],d[0],d[2]]}return o<4||a*2<o?null:q(t,e,n,l,i,r,Math.floor(o/4),-1)}function oe(t,e,n,l,i,r){Y=!0;let o=n-e,a=r-i,d;if(o<a){let u=q(l,i,r,t,e,n,Math.floor(o/6),50);d=u&&[u[1],u[0],u[2]]}else d=q(t,e,n,l,i,r,Math.floor(a/6),50);if(!d)return[new x(e,n,i,r)];let[c,f,s]=d;return E(t,e,c,l,i,f).concat(E(t,c+s,n,l,f+s,r))}function Se(t,e){for(let n=1;n<t.length;n++){let l=t[n-1],i=t[n];l.toA>i.fromA-e&&l.toB>i.fromB-e&&(t[n-1]=new x(l.fromA,i.toA,l.fromB,i.toB),t.splice(n--,1))}}function lt(t,e,n){for(;;){Se(n,1);let l=!1;for(let i=0;i<n.length;i++){let r=n[i],o,a;(o=X(t,r.fromA,r.toA,e,r.fromB,r.toB))&&(r=n[i]=new x(r.fromA+o,r.toA,r.fromB+o,r.toB)),(a=ee(t,r.fromA,r.toA,e,r.fromB,r.toB))&&(r=n[i]=new x(r.fromA,r.toA-a,r.fromB,r.toB-a));let d=r.toA-r.fromA,c=r.toB-r.fromB;if(d&&c)continue;let f=r.fromA-(i?n[i-1].toA:0),s=(i<n.length-1?n[i+1].fromA:t.length)-r.toA;if(!f||!s)continue;let u=d?t.slice(r.fromA,r.toA):e.slice(r.fromB,r.toB);f<=u.length&&t.slice(r.fromA-f,r.fromA)==u.slice(u.length-f)?(n[i]=new x(r.fromA-f,r.toA-f,r.fromB-f,r.toB-f),l=!0):s<=u.length&&t.slice(r.toA,r.toA+s)==u.slice(0,s)&&(n[i]=new x(r.fromA+s,r.toA+s,r.fromB+s,r.toB+s),l=!0)}if(!l)break}return n}function ot(t,e,n){for(let l=0,i=0;i<t.length;i++){let r=t[i],o=r.toA-r.fromA,a=r.toB-r.fromB;if(o&&a||o>3||a>3){let d=i==t.length-1?e.length:t[i+1].fromA,c=r.fromA-l,f=d-r.toA,s=fe(e,r.fromA,c),u=ae(e,r.toA,f),h=r.fromA-s,m=u-r.toA;if((!o||!a)&&h&&m){let p=Math.max(o,a),[g,A,T]=o?[e,r.fromA,r.toA]:[n,r.fromB,r.toB];p>h&&e.slice(s,r.fromA)==g.slice(T-h,T)?(r=t[i]=new x(s,s+o,r.fromB-h,r.toB-h),s=r.fromA,u=ae(e,r.toA,d-r.toA)):p>m&&e.slice(r.toA,u)==g.slice(A,A+m)&&(r=t[i]=new x(u-o,u,r.fromB+m,r.toB+m),u=r.toA,s=fe(e,r.fromA,r.fromA-l)),h=r.fromA-s,m=u-r.toA}if(h||m)r=t[i]=new x(r.fromA-h,r.toA+m,r.fromB-h,r.toB+m);else if(o){if(!a){let p=de(e,r.fromA,r.toA),g,A=p<0?-1:se(e,r.toA,r.fromA);p>-1&&(g=p-r.fromA)<=f&&e.slice(r.fromA,p)==e.slice(r.toA,r.toA+g)?r=t[i]=r.offset(g):A>-1&&(g=r.toA-A)<=c&&e.slice(r.fromA-g,r.fromA)==e.slice(A,r.toA)&&(r=t[i]=r.offset(-g))}}else{let p=de(n,r.fromB,r.toB),g,A=p<0?-1:se(n,r.toB,r.fromB);p>-1&&(g=p-r.fromB)<=f&&n.slice(r.fromB,p)==n.slice(r.toB,r.toB+g)?r=t[i]=r.offset(g):A>-1&&(g=r.toB-A)<=c&&n.slice(r.fromB-g,r.fromB)==n.slice(A,r.toB)&&(r=t[i]=r.offset(-g))}}l=r.toA}return Se(t,3),t}let y;try{y=new RegExp("[\\p{Alphabetic}\\p{Number}]","u")}catch{}function ye(t){return t>48&&t<58||t>64&&t<91||t>96&&t<123}function Ee(t,e){if(e==t.length)return 0;let n=t.charCodeAt(e);return n<192?ye(n)?1:0:y?!Ne(n)||e==t.length-1?y.test(String.fromCharCode(n))?1:0:y.test(t.slice(e,e+2))?2:0:0}function je(t,e){if(!e)return 0;let n=t.charCodeAt(e-1);return n<192?ye(n)?1:0:y?!Te(n)||e==1?y.test(String.fromCharCode(n))?1:0:y.test(t.slice(e-2,e))?2:0:0}const Oe=8;function ae(t,e,n){if(e==t.length||!je(t,e))return e;for(let l=e,i=e+n,r=0;r<Oe;r++){let o=Ee(t,l);if(!o||l+o>i)return l;l+=o}return e}function fe(t,e,n){if(!e||!Ee(t,e))return e;for(let l=e,i=e-n,r=0;r<Oe;r++){let o=je(t,l);if(!o||l-o<i)return l;l-=o}return e}function se(t,e,n){for(;e!=n;e--)if(t.charCodeAt(e-1)==10)return e;return-1}function de(t,e,n){for(;e!=n;e++)if(t.charCodeAt(e)==10)return e;return-1}const Ne=t=>t>=55296&&t<=56319,Te=t=>t>=56320&&t<=57343;function O(t,e){return!e||e==t.length||!Ne(t.charCodeAt(e-1))||!Te(t.charCodeAt(e))}function at(t,e,n){var l;let i=n?.override;return i?i(t,e):(R=((l=n?.scanLimit)!==null&&l!==void 0?l:1e9)>>1,F=n?.timeout?Date.now()+n.timeout:0,Y=!1,lt(t,e,E(t,0,t.length,e,0,e.length)))}function Ge(){return!Y}function Re(t,e,n){return ot(at(t,e,n),t,e)}const D=ve.define({combine:t=>t[0]}),ft=$.define(),Fe=ve.define(),k=U.define({create(t){return null},update(t,e){for(let n of e.effects)n.is(ft)&&(t=n.value);for(let n of e.state.facet(Fe))t=n(t,e);return t}});class j{constructor(e,n,l,i,r,o=!0){this.changes=e,this.fromA=n,this.toA=l,this.fromB=i,this.toB=r,this.precise=o}offset(e,n){return e||n?new j(this.changes,this.fromA+e,this.toA+e,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,n,l){let i=Re(e.toString(),n.toString(),l);return Ie(i,e,n,0,0,Ge())}static updateA(e,n,l,i,r){return ge(me(e,i,!0,l.length),e,n,l,r)}static updateB(e,n,l,i,r){return ge(me(e,i,!1,n.length),e,n,l,r)}}function ce(t,e,n,l){let i=n.lineAt(t),r=l.lineAt(e);return i.to==t&&r.to==e&&t<n.length&&e<l.length?[t+1,e+1]:[i.from,r.from]}function ue(t,e,n,l){let i=n.lineAt(t),r=l.lineAt(e);return i.from==t&&r.from==e?[t,e]:[i.to+1,r.to+1]}function Ie(t,e,n,l,i,r){let o=[];for(let a=0;a<t.length;a++){let d=t[a],[c,f]=ce(d.fromA+l,d.fromB+i,e,n),[s,u]=ue(d.toA+l,d.toB+i,e,n),h=[d.offset(-c+l,-f+i)];for(;a<t.length-1;){let m=t[a+1],[p,g]=ce(m.fromA+l,m.fromB+i,e,n);if(p>s+1&&g>u+1)break;h.push(m.offset(-c+l,-f+i)),[s,u]=ue(m.toA+l,m.toB+i,e,n),a++}o.push(new j(h,c,Math.max(c,s),f,Math.max(f,u),r))}return o}const W=1e3;function he(t,e,n,l){let i=0,r=t.length;for(;;){if(i==r){let f=0,s=0;i&&({toA:f,toB:s}=t[i-1]);let u=e-(n?f:s);return[f+u,s+u]}let o=i+r>>1,a=t[o],[d,c]=n?[a.fromA,a.toA]:[a.fromB,a.toB];if(d>e)r=o;else if(c<=e)i=o+1;else return l?[a.fromA,a.fromB]:[a.toA,a.toB]}}function me(t,e,n,l){let i=[];return e.iterChangedRanges((r,o,a,d)=>{let c=0,f=n?e.length:l,s=0,u=n?l:e.length;r>W&&([c,s]=he(t,r-W,n,!0)),o<e.length-W&&([f,u]=he(t,o+W,n,!1));let h=d-a-(o-r),m,[p,g]=n?[h,0]:[0,h];i.length&&(m=i[i.length-1]).toA>=c?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:f,toB:u,diffA:m.diffA+p,diffB:m.diffB+g}:i.push({fromA:c,toA:f,fromB:s,toB:u,diffA:p,diffB:g})}),i}function ge(t,e,n,l,i){if(!t.length)return e;let r=[];for(let o=0,a=0,d=0,c=0;;o++){let f=o==t.length?null:t[o],s=f?f.fromA+a:n.length,u=f?f.fromB+d:l.length;for(;c<e.length;){let g=e[c];if(f&&(g.toA+a>s||g.toB+d>u))break;r.push(g.offset(a,d)),c++}if(!f)break;let h=f.toA+a+f.diffA,m=f.toB+d+f.diffB,p=Re(n.sliceString(s,h),l.sliceString(u,m),i);for(let g of Ie(p,n,l,s,u,Ge()))r.push(g);for(a+=f.diffA,d+=f.diffB;c<e.length;){let g=e[c];if(g.fromA+a>h&&g.fromB+d>m)break;c++}}return r}const st={scanLimit:500},We=$e.fromClass(class{constructor(t){({deco:this.deco,gutter:this.gutter}=Ce(t))}update(t){(t.docChanged||t.viewportChanged||dt(t.startState,t.state)||ct(t.startState,t.state))&&({deco:this.deco,gutter:this.gutter}=Ce(t.view))}},{decorations:t=>t.deco});function dt(t,e){return t.field(k,!1)!=e.field(k,!1)}function ct(t,e){return t.facet(D)!=e.facet(D)}const pe=M.line({class:"cm-changedLine"}),He=M.mark({class:"cm-changedText"}),ut=M.mark({tagName:"ins",class:"cm-insertedLine"}),ht=M.mark({tagName:"del",class:"cm-deletedLine"}),xe=new class extends Q{constructor(){super(...arguments),this.elementClass="cm-changedLineGutter"}};function mt(t,e,n,l,i,r){let o=n?t.fromA:t.fromB,a=n?t.toA:t.toB,d=0;if(o!=a){i.add(o,o,pe),i.add(o,a,n?ht:ut),r&&r.add(o,o,xe);for(let c=e.iterRange(o,a-1),f=o;!c.next().done;){if(c.lineBreak){f++,i.add(f,f,pe),r&&r.add(f,f,xe);continue}let s=f+c.value.length;if(l)for(;d<t.changes.length;){let u=t.changes[d],h=o+(n?u.fromA:u.fromB),m=o+(n?u.toA:u.toB),p=Math.max(f,h),g=Math.min(s,m);if(p<g&&i.add(p,g,He),m<s)d++;else break}f=s}}}function Ce(t){let e=t.state.field(k),{side:n,highlightChanges:l,markGutter:i,overrideChunk:r}=t.state.facet(D),o=n=="a",a=new H,d=i?new H:null,{from:c,to:f}=t.viewport;for(let s of e){if((o?s.fromA:s.fromB)>=f)break;(o?s.toA:s.toB)>c&&(!r||!r(t.state,s,a,d))&&mt(s,t.state.doc,o,l,a,d)}return{deco:a.finish(),gutter:d&&d.finish()}}const K=$.define({map:(t,e)=>e.mapPos(t)});class gt extends Z{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let n=document.createElement("div");return n.className="cm-collapsedLines",n.textContent=e.state.phrase("$ unchanged lines",this.lines),n.addEventListener("click",l=>{let i=e.posAtDOM(l.target);e.dispatch({effects:K.of(i)});let{side:r,sibling:o}=e.state.facet(D);o&&o().dispatch({effects:K.of(pt(i,e.state.field(k),r=="a"))})}),n}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return"collapsed-unchanged-code"}}function pt(t,e,n){let l=0,i=0;for(let r=0;;r++){let o=r<e.length?e[r]:null;if(!o||(n?o.fromA:o.fromB)>=t)return i+(t-l);[l,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}const xt=U.define({create(t){return M.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)n.is(K)&&(t=t.update({filter:l=>l!=n.value}));if(t.size&&e.state.field(k)!=e.startState.field(k,!1)){let n=e.state.facet(D).side=="a",l=[];for(let i of e.state.field(k))t.between(n?i.fromA:i.fromB,n?i.toA:i.toB,r=>{l.push(r)});l.length&&(t=t.update({filter:i=>l.indexOf(i)<0}))}return t},provide:t=>S.decorations.from(t)});function Ct({margin:t=3,minSize:e=4}){return xt.init(n=>At(n,t,e))}function At(t,e,n){let l=new H,i=t.facet(D).side=="a",r=t.field(k),o=1;for(let a=0;;a++){let d=a<r.length?r[a]:null,c=a?o+e:1,f=d?t.doc.lineAt(i?d.fromA:d.fromB).number-1-e:t.doc.lines,s=f-c+1;if(s>=n&&l.add(t.doc.line(c).from,t.doc.line(f).to,M.replace({widget:new gt(s),block:!0})),!d)break;o=t.doc.lineAt(Math.min(t.doc.length,i?d.toA:d.toB)).number}return l.finish()}const kt=S.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:"auto !important",overflowY:"visible !important"},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:"rgba(160, 128, 100, .08)"},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:"rgba(100, 160, 128, .08)"},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat"},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat"},"&light.cm-merge-b .cm-changedText":{background:"linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat"},"&dark.cm-merge-b .cm-changedText":{background:"linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat"},"&.cm-merge-b .cm-deletedText":{background:"#ff000033"},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:"none"},".cm-deletedChunk":{paddingLeft:"6px","& .cm-chunkButtons":{position:"absolute",insetInlineEnd:"5px"},"& button":{border:"none",cursor:"pointer",color:"white",margin:"0 2px",borderRadius:"3px","&[name=accept]":{background:"#2a2"},"&[name=reject]":{background:"#d43"}}},".cm-collapsedLines":{padding:"5px 5px 5px 10px",cursor:"pointer","&:before":{content:'"⦚"',marginInlineEnd:"7px"},"&:after":{content:'"⦚"',marginInlineStart:"7px"}},"&light .cm-collapsedLines":{color:"#444",background:"linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)"},"&dark .cm-collapsedLines":{color:"#ddd",background:"linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)"},".cm-changeGutter":{width:"3px",paddingLeft:"1px"},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:"#e43"},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:"#fa9"},"&light.cm-merge-b .cm-changedLineGutter":{background:"#2b2"},"&dark.cm-merge-b .cm-changedLineGutter":{background:"#8f8"},".cm-inlineChangedLineGutter":{background:"#75d"}}),wt=new class extends Q{constructor(){super(...arguments),this.elementClass="cm-deletedLineGutter"}},Bt=be.low(qe({class:"cm-changeGutter",markers:t=>{var e;return((e=t.plugin(We))===null||e===void 0?void 0:e.gutter)||Ke.empty},widgetMarker:(t,e)=>e instanceof Pe?wt:null}));function bt(t){var e;let n=typeof t.original=="string"?Be.of(t.original.split(/\r?\n/)):t.original,l=t.diffConfig||st;return[be.low(We),Mt,kt,S.editorAttributes.of({class:"cm-merge-b"}),Fe.of((i,r)=>{let o=r.effects.find(a=>a.is(te));return o&&(i=j.updateA(i,o.value.doc,r.startState.doc,o.value.changes,l)),r.docChanged&&(i=j.updateB(i,r.state.field(N),r.newDoc,r.changes,l)),i}),D.of({highlightChanges:t.highlightChanges!==!1,markGutter:t.gutter!==!1,syntaxHighlightDeletions:t.syntaxHighlightDeletions!==!1,syntaxHighlightDeletionsMaxLength:3e3,mergeControls:(e=t.mergeControls)!==null&&e!==void 0?e:!0,overrideChunk:t.allowInlineDiffs?jt:void 0,side:"b"}),N.init(()=>n),t.gutter!==!1?Bt:[],t.collapseUnchanged?Ct(t.collapseUnchanged):[],k.init(i=>j.build(n,i.doc,l))]}const te=$.define(),N=U.define({create:()=>Be.empty,update(t,e){for(let n of e.effects)n.is(te)&&(t=n.value.doc);return t}}),Ae=new WeakMap;class Pe extends Z{constructor(e){super(),this.buildDOM=e,this.dom=null}eq(e){return this.dom==e.dom}toDOM(e){return this.dom||(this.dom=this.buildDOM(e))}}function vt(t,e,n){let l=Ae.get(e.changes);if(l)return l;let i=o=>{let{highlightChanges:a,syntaxHighlightDeletions:d,syntaxHighlightDeletionsMaxLength:c,mergeControls:f}=t.facet(D),s=document.createElement("div");if(s.className="cm-deletedChunk",f){let w=s.appendChild(document.createElement("div"));w.className="cm-chunkButtons";let b=C=>{C.preventDefault(),Lt(o,o.posAtDOM(s))},v=C=>{C.preventDefault(),Dt(o,o.posAtDOM(s))};if(typeof f=="function")w.appendChild(f("accept",b)),w.appendChild(f("reject",v));else{let C=w.appendChild(document.createElement("button"));C.name="accept",C.textContent=t.phrase("Accept"),C.onmousedown=b;let B=w.appendChild(document.createElement("button"));B.name="reject",B.textContent=t.phrase("Reject"),B.onmousedown=v}}if(n||e.fromA>=e.toA)return s;let u=o.state.field(N).sliceString(e.fromA,e.endA),h=d&&t.facet(Qe),m=T(),p=e.changes,g=0,A=!1;function T(){let w=s.appendChild(document.createElement("div"));return w.className="cm-deletedLine",w.appendChild(document.createElement("del"))}function I(w,b,v){for(let C=w;C<b;){if(u.charAt(C)==`
|
|
2
2
|
`){m.firstChild||m.appendChild(document.createElement("br")),m=T(),C++;continue}let B=b,ne=v+(A?" cm-deletedText":""),re=!1,J=u.indexOf(`
|
|
3
3
|
`,C);if(J>-1&&J<b&&(B=J),a&&g<p.length){let G=Math.max(0,A?p[g].toA:p[g].fromA);G<=B&&(B=G,A&&g++,re=!0)}if(B>C){let G=document.createTextNode(u.slice(C,B));if(ne){let ie=m.appendChild(document.createElement("span"));ie.className=ne,ie.appendChild(G)}else m.appendChild(G);C=B}re&&(A=!A)}}if(h&&e.toA-e.fromA<=c){let w=h.parser.parse(u),b=0;Ze(w,{style:v=>Ye(t,v)},(v,C,B)=>{v>b&&I(b,v,""),I(v,C,B),b=C}),I(b,u.length,"")}else I(0,u.length,"");return m.firstChild||m.appendChild(document.createElement("br")),s},r=M.widget({block:!0,side:-1,widget:new Pe(i)});return Ae.set(e.changes,r),r}function Lt(t,e){let{state:n}=t,l=e??n.selection.main.head,i=t.state.field(k).find(d=>d.fromB<=l&&d.endB>=l);if(!i)return!1;let r=t.state.sliceDoc(i.fromB,Math.max(i.fromB,i.toB-1)),o=t.state.field(N);i.fromB!=i.toB&&i.toA<=o.length&&(r+=t.state.lineBreak);let a=Xe.of({from:i.fromA,to:Math.min(o.length,i.toA),insert:r},o.length);return t.dispatch({effects:te.of({doc:a.apply(o),changes:a}),userEvent:"accept"}),!0}function Dt(t,e){let{state:n}=t,l=e??n.selection.main.head,i=n.field(k).find(a=>a.fromB<=l&&a.endB>=l);if(!i)return!1;let o=n.field(N).sliceString(i.fromA,Math.max(i.fromA,i.toA-1));return i.fromA!=i.toA&&i.toB<=n.doc.length&&(o+=n.lineBreak),t.dispatch({changes:{from:i.fromB,to:Math.min(n.doc.length,i.toB),insert:o},userEvent:"revert"}),!0}function ke(t){let e=new H;for(let n of t.field(k)){let l=t.facet(D).overrideChunk&&Ue(t,n);e.add(n.fromB,n.fromB,vt(t,n,!!l))}return e.finish()}const Mt=U.define({create:t=>ke(t),update(t,e){return e.state.field(k,!1)!=e.startState.field(k,!1)?ke(e.state):t},provide:t=>S.decorations.from(t)}),we=new WeakMap;function Ue(t,e){let n=we.get(e);if(n!==void 0)return n;n=null;let l=t.field(N),i=t.doc,r=l.lineAt(e.endA).number-l.lineAt(e.fromA).number+1,o=i.lineAt(e.endB).number-i.lineAt(e.fromB).number+1;e:if(r==o&&r<10){let a=[],d=0,c=e.fromA,f=e.fromB;for(let s of e.changes){if(s.fromA<s.toA){d+=s.toA-s.fromA;let u=l.sliceString(c+s.fromA,c+s.toA);if(/\n/.test(u))break e;a.push(M.widget({widget:new St(u),side:-1}).range(f+s.fromB))}s.fromB<s.toB&&a.push(He.range(f+s.fromB,f+s.toB))}d<e.endA-e.fromA-r*2&&(n=a)}return we.set(e,n),n}class St extends Z{constructor(e){super(),this.text=e}eq(e){return this.text==e.text}toDOM(e){let n=document.createElement("del");return n.className="cm-deletedText",n.textContent=this.text,n}}const yt=new class extends Q{constructor(){super(...arguments),this.elementClass="cm-inlineChangedLineGutter"}},Et=M.line({class:"cm-inlineChangedLine"});function jt(t,e,n,l){let i=Ue(t,e),r=0;if(!i)return!1;for(let o=t.doc.lineAt(e.fromB);;){for(l&&l.add(o.from,o.from,yt),n.add(o.from,o.from,Et);r<i.length&&i[r].to<=o.to;){let a=i[r++];n.add(a.from,a.to,a.value)}if(o.to>=e.endB)break;o=t.doc.lineAt(o.to+1)}return!0}const Ot=S.theme({"&":{backgroundColor:"var(--background)",color:"var(--foreground)",fontSize:"12px",border:"1px solid var(--border)",borderRadius:"0.5rem",overflow:"hidden",width:"100%"},"& .cm-scroller":{overflow:"auto",maxHeight:"20rem",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace'},".cm-content":{padding:"6px 0"},".cm-gutters":{backgroundColor:"var(--muted)",color:"var(--muted-foreground)",border:"none",borderRight:"1px solid var(--border)"},".cm-changedLine":{backgroundColor:"color-mix(in oklch, var(--chart-2) 14%, transparent)"},".cm-changedText":{background:"color-mix(in oklch, var(--chart-2) 32%, transparent)"},".cm-deletedChunk":{backgroundColor:"color-mix(in oklch, var(--destructive) 10%, transparent)"},".cm-deletedText":{background:"color-mix(in oklch, var(--destructive) 28%, transparent)"},".cm-collapsedLines":{background:"var(--muted)",color:"var(--muted-foreground)",padding:"2px 8px"}});function P(t){if(Array.isArray(t))return t.map(P);if(t&&typeof t=="object"){const e={};for(const n of Object.keys(t).sort())e[n]=P(t[n]);return e}return t}function Nt({before:t,after:e}){const n=_.useRef(null);return _.useEffect(()=>{if(!n.current)return;const l=new S({state:le.create({doc:e,extensions:[le.readOnly.of(!0),S.editable.of(!1),S.lineWrapping,et(tt,{fallback:!0}),nt(),bt({original:t,mergeControls:!1,gutter:!0,collapseUnchanged:{margin:3,minSize:4}}),Ot]}),parent:n.current});return()=>l.destroy()},[t,e]),L.jsx("div",{ref:n,className:"w-full"})}function Rt({before:t,after:e}){const[n,l]=_.useState(!1);if(!t&&!e)return null;const i=!!(t&&e);return L.jsxs("div",{className:"mt-2",children:[L.jsxs("button",{type:"button",onClick:()=>l(!n),className:"flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground",children:[n?L.jsx(Je,{className:"h-3 w-3"}):L.jsx(Ve,{className:"h-3 w-3"}),i?n?"Hide diff":"Show diff":n?"Hide details":"Show details"]}),n&&(i?L.jsx("div",{className:"mt-2",children:L.jsx(Nt,{before:JSON.stringify(P(t),null,2),after:JSON.stringify(P(e),null,2)})}):L.jsxs("div",{className:"mt-2",children:[L.jsx("p",{className:"mb-1 text-[10px] font-medium uppercase text-muted-foreground",children:e?"After":"Before"}),L.jsx("pre",{className:ze(_e,"max-h-48 overflow-auto p-2 text-xs"),children:JSON.stringify(e??t,null,2)})]}))]})}export{Rt as J};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,S as e}from"./index-
|
|
1
|
+
import{j as s,S as e}from"./index-BUr8321-.js";function m({label:r,actions:l=!1}){return s.jsx("div",{className:"overflow-hidden rounded-lg border",role:"status","aria-label":r,children:Array.from({length:4},(d,a)=>s.jsxs("div",{className:`flex items-center gap-3 px-3 py-2.5 ${a===3?"":"border-b"}`,children:[s.jsx(e,{className:"h-7 w-7 shrink-0 rounded-md"}),s.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[s.jsx(e,{className:"h-4 w-40"}),s.jsx(e,{className:"h-3 w-24"})]}),l?s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s.jsx(e,{className:"h-8 w-8 rounded-md"}),s.jsx(e,{className:"h-8 w-8 rounded-md"})]}):null]},a))})}export{m as L};
|