@highstate/designer 0.21.1 → 0.26.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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BdRuKvw2.js → -aI73seg.js} +1 -1
- package/.output/public/_nuxt/39D0VL7r.js +1 -0
- package/.output/public/_nuxt/{rscZxuQ2.js → 3T5CmBSF.js} +1 -1
- package/.output/public/_nuxt/4R6BJ3GI.js +1 -0
- package/.output/public/_nuxt/{sB5TSp0H.js → 77UvFSdd.js} +7 -7
- package/.output/public/_nuxt/{B4FDp1sn.js → B0E2rEnI.js} +1 -1
- package/.output/public/_nuxt/B1x03f8R.js +1 -0
- package/.output/public/_nuxt/B2CVdECd.js +1 -0
- package/.output/public/_nuxt/{CTRkBkra.js → B2_u9ZKl.js} +1 -1
- package/.output/public/_nuxt/{5gjbd9sK.js → B8uKU-iG.js} +1 -1
- package/.output/public/_nuxt/{CemiMtCX.js → B9BJCsIg.js} +1 -1
- package/.output/public/_nuxt/{xnReCuE4.js → BBmoak6l.js} +1 -1
- package/.output/public/_nuxt/BEOSfHJT.js +1 -0
- package/.output/public/_nuxt/{DsG1SoRB.js → BJV0IIsR.js} +1 -1
- package/.output/public/_nuxt/{CPsHsqGU.js → BKaSp7fy.js} +1 -1
- package/.output/public/_nuxt/{DKWXhhCy.js → BOujskTX.js} +1 -1
- package/.output/public/_nuxt/{Fcs-0n6A.js → BPboW4rx.js} +1 -1
- package/.output/public/_nuxt/{Djg8J2AC.js → BR4jrf3-.js} +1 -1
- package/.output/public/_nuxt/{CpGRan2R.js → BSRetNRl.js} +1 -1
- package/.output/public/_nuxt/{CqQg8Ldy.js → Ba9NwIJp.js} +1 -1
- package/.output/public/_nuxt/{CJN4g-3R.js → BbWhHw7B.js} +1 -1
- package/.output/public/_nuxt/Bcyj9glE.js +6 -0
- package/.output/public/_nuxt/{CvSiusML.js → Be4ezMZK.js} +1 -1
- package/.output/public/_nuxt/{DkkrdwgN.js → BgvYz3Nr.js} +1 -1
- package/.output/public/_nuxt/BlGDdimO.js +1 -0
- package/.output/public/_nuxt/{D_wY_uke.js → Bn5R9WlL.js} +1 -1
- package/.output/public/_nuxt/{Bs8TB6Bu.js → BqJDg8iS.js} +1 -1
- package/.output/public/_nuxt/BxD6MFcJ.js +1 -0
- package/.output/public/_nuxt/{CaehGOgh.js → BxvmPvww.js} +1 -1
- package/.output/public/_nuxt/{DEtIJe2u.js → By1Fxx6d.js} +1 -1
- package/.output/public/_nuxt/{CnhVSb6R.js → ByBXn3Vz.js} +1 -1
- package/.output/public/_nuxt/C1bzPMRu.js +14 -0
- package/.output/public/_nuxt/{BIPWeF69.js → C29gnYT3.js} +1 -1
- package/.output/public/_nuxt/{BCJKqJxW.js → C5DRPdxC.js} +1 -1
- package/.output/public/_nuxt/{Cs-GjQ8R.js → C794qwo0.js} +1 -1
- package/.output/public/_nuxt/{DSDbyhpJ.js → C9OJ0gQB.js} +1 -1
- package/.output/public/_nuxt/{EnN6XTXK.js → C9n5vGW7.js} +1 -1
- package/.output/public/_nuxt/{B2SoM2pd.js → CCBTuGSI.js} +2 -2
- package/.output/public/_nuxt/{DTPYfUid.js → CGLWlIpJ.js} +1 -1
- package/.output/public/_nuxt/CI40hKzv.js +2 -0
- package/.output/public/_nuxt/{BTd2ZN65.js → CLsyMJ1X.js} +1 -1
- package/.output/public/_nuxt/{ByE1aAlg.js → CNWyx-82.js} +1 -1
- package/.output/public/_nuxt/CRZrAKrA.js +2 -0
- package/.output/public/_nuxt/{B7RpoNQl.js → CRb2z3Pg.js} +1 -1
- package/.output/public/_nuxt/{BzhaMbyl.js → CWA5Cfde.js} +1 -1
- package/.output/public/_nuxt/{CmJE87KM.js → C_yayEmb.js} +1 -1
- package/.output/public/_nuxt/{BwKAHWnp.js → CaZj7sno.js} +1 -1
- package/.output/public/_nuxt/CiaugisX.js +1 -0
- package/.output/public/_nuxt/Cjs5trkS.js +1 -0
- package/.output/public/_nuxt/CoqwalnO.js +2 -0
- package/.output/public/_nuxt/{OuCcJFrZ.js → CscXh7Vy.js} +1 -1
- package/.output/public/_nuxt/{9OHRRPkh.js → CwWsKBf5.js} +1 -1
- package/.output/public/_nuxt/Cwefpg1x.js +1 -0
- package/.output/public/_nuxt/{DtBrxin9.js → CyFj-Mv9.js} +1 -1
- package/.output/public/_nuxt/{C973_vs5.js → D1BdWMiq.js} +1 -1
- package/.output/public/_nuxt/D1yXAE_w.js +1 -0
- package/.output/public/_nuxt/{Bl_Sz9PU.js → D2lHwbtX.js} +1 -1
- package/.output/public/_nuxt/{Dahes9VH.js → D46u9gXN.js} +1 -1
- package/.output/public/_nuxt/{D-7HtdRe.js → D4H6aUyZ.js} +7 -7
- package/.output/public/_nuxt/D9ITfHnZ.js +269 -0
- package/.output/public/_nuxt/{C2zyO9uX.js → DFwfZeyL.js} +1 -1
- package/.output/public/_nuxt/{UD_auLNX.js → DMM9kDc1.js} +1 -1
- package/.output/public/_nuxt/{wCosSBIO.js → DNVXBFXP.js} +1 -1
- package/.output/public/_nuxt/{DXyfavJr.js → DPQHj1GW.js} +1 -1
- package/.output/public/_nuxt/{CBIEPWAA.js → DRTFVhVr.js} +1 -1
- package/.output/public/_nuxt/{GXzlut8R.js → DTYY2tCY.js} +1 -1
- package/.output/public/_nuxt/{hAFXcJ2_.js → DVKmRHSk.js} +1 -1
- package/.output/public/_nuxt/{DdvHdmGh.js → DYYyOkJe.js} +1 -1
- package/.output/public/_nuxt/{DUHba1vY.js → DcV32yum.js} +1 -1
- package/.output/public/_nuxt/DdhYQ3Tv.js +1 -0
- package/.output/public/_nuxt/DmMgvbsF.js +1 -0
- package/.output/public/_nuxt/{DnpKvmH_.js → DrQCNsTo.js} +1 -1
- package/.output/public/_nuxt/{DSpiceQe.js → DvCXikgN.js} +1 -1
- package/.output/public/_nuxt/DzQULtcW.js +1 -0
- package/.output/public/_nuxt/{BArXRmKu.js → DzowYWbi.js} +1 -1
- package/.output/public/_nuxt/{CtbC3i8L.js → I4u-TRO-.js} +1 -1
- package/.output/public/_nuxt/{y0GN4iGv.js → O3nsZ-Uz.js} +1 -1
- package/.output/public/_nuxt/Qj4UhtaN.js +1 -0
- package/.output/public/_nuxt/{Bdd5S2WL.js → VF7GAmoY.js} +1 -1
- package/.output/public/_nuxt/{Lks7C8cK.js → YpnHruhZ.js} +1 -1
- package/.output/public/_nuxt/_pageId_.C5KTkEfy.css +1 -0
- package/.output/public/_nuxt/_panelId_.CKSHyLNC.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/53add2c3-4d7c-4a4f-a116-e73c3787cf98.json +1 -0
- package/.output/public/_nuxt/components.a-P9dVi2.css +1 -0
- package/.output/public/_nuxt/{entry.Bc0aTA0K.css → entry.DsBbjDm-.css} +1 -1
- package/.output/public/_nuxt/error-404.DnBTUElh.css +1 -0
- package/.output/public/_nuxt/error-500.BNyYF0qG.css +1 -0
- package/.output/public/_nuxt/{CBVcjGJL.js → fbfpKHgl.js} +1 -1
- package/.output/public/_nuxt/{BD_Kvn-W.js → fxmP1KZw.js} +1 -1
- package/.output/public/_nuxt/graph-resolver-DhjyrFRu.js +180 -0
- package/.output/public/_nuxt/{DCK6hB22.js → hunqYsQf.js} +1 -1
- package/.output/public/_nuxt/iJghVVcV.js +1 -0
- package/.output/public/_nuxt/{Bu1xs0Fv.js → m4Sxwg8n.js} +1 -1
- package/.output/public/_nuxt/{C4XpvUuq.js → rpHuDh4d.js} +1 -1
- package/.output/public/_nuxt/{vuetify.BzdWZaIq.css → vuetify.DtnS3-VQ.css} +1 -1
- package/.output/server/index.mjs +2040 -1079
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +19 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
- package/.output/server/node_modules/ws/package.json +70 -0
- package/.output/server/node_modules/ws/wrapper.mjs +21 -0
- package/.output/server/package.json +2 -1
- package/package.json +4 -4
- package/.output/public/_nuxt/-OnKOwAh.js +0 -1
- package/.output/public/_nuxt/B-dJABhs.js +0 -1
- package/.output/public/_nuxt/BKIVPvZX.js +0 -1
- package/.output/public/_nuxt/BXphdu9w.js +0 -2
- package/.output/public/_nuxt/BYmSxWA_.js +0 -1
- package/.output/public/_nuxt/BhozkjGO.js +0 -1
- package/.output/public/_nuxt/BtrNScOx.js +0 -1
- package/.output/public/_nuxt/BupMEc6X.js +0 -6
- package/.output/public/_nuxt/Bv_vOb-Y.js +0 -14
- package/.output/public/_nuxt/CYL3VlR9.js +0 -1
- package/.output/public/_nuxt/Cz-197mS.js +0 -1
- package/.output/public/_nuxt/DHJ62FKo.js +0 -2
- package/.output/public/_nuxt/DrWe3t51.js +0 -2
- package/.output/public/_nuxt/M0WOzN-S.js +0 -269
- package/.output/public/_nuxt/ZpmLW6rw.js +0 -1
- package/.output/public/_nuxt/builds/meta/d356de5d-6230-4e66-aba2-c48f455ae207.json +0 -1
- package/.output/public/_nuxt/builds/meta/ed797280-2bf0-44e6-a601-2ff2462bfbbc.json +0 -1
- package/.output/public/_nuxt/c6k-jVO-.js +0 -1
- package/.output/public/_nuxt/components.CIe9upZ4.css +0 -1
- package/.output/public/_nuxt/error-404.iOXvqd5J.css +0 -1
- package/.output/public/_nuxt/error-500.D0BgXBui.css +0 -1
- package/.output/public/_nuxt/graph-resolver-E9RSC1Ga.js +0 -180
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as m,t as l}from"#entry";import"./
|
|
1
|
+
import{s as m,t as l}from"#entry";import"./C5DRPdxC.js";import{S as d}from"./DVKmRHSk.js";import{_ as g}from"./BBmoak6l.js";import{E as c,aO as n,Y as f,_ as u,D as t,V as _,W as y}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./M3Z1JMP1.js";import"./CWA5Cfde.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./DTYY2tCY.js";import"./m4Sxwg8n.js";const M=c({__name:"index",async setup(P){let a,o;const{settingsStore:e}=m(),{projectStore:s}=m();return s.initializing?([a,o]=n(()=>l(()=>s.initialized).toBe(!0)),await a,o(),s.addLibraryRoot()):([a,o]=n(()=>s.initialize1()),await a,o(),[a,o]=n(()=>s.initialize2()),await a,o()),e.terminals.load(),(j,i)=>(_(),f(t(d),{title:"Terminals",icon:"mdi-console",description:"Manage terminals and terminal sessions for this project."},{default:u(({height:p})=>[y(t(g),{search:t(e).terminals.search,"onUpdate:search":i[0]||(i[0]=r=>t(e).terminals.search=r),"sort-by":t(e).terminals.sortBy,"onUpdate:sortBy":i[1]||(i[1]=r=>t(e).terminals.sortBy=r),page:t(e).terminals.page,"onUpdate:page":i[2]||(i[2]=r=>t(e).terminals.page=r),"items-per-page":t(e).terminals.itemsPerPage,"onUpdate:itemsPerPage":i[3]||(i[3]=r=>t(e).terminals.itemsPerPage=r),"project-id":t(s).projectId,data:t(e).terminals.data,loading:t(e).terminals.isLoading,height:p},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as n,S as g}from"./CCBTuGSI.js";import{i as f}from"#entry";import{_ as h}from"./DvCXikgN.js";import{_ as v}from"./DTYY2tCY.js";import{_ as P}from"./iJghVVcV.js";import"./C5DRPdxC.js";import{a as y,_ as b}from"./m4Sxwg8n.js";import{E as k,aG as r,V as B,Y as I,D as s,_ as i,W as o,$ as A,a0 as M,ao as S,aP as V}from"./77UvFSdd.js";const W=k({__name:"PanelsTable",props:V({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(a){const l=r(a,"search"),d=r(a,"sortBy"),c=r(a,"page"),m=r(a,"itemsPerPage"),p=f(),u=[{...n.name,sortable:!1},{key:"status",title:"Status",sortable:!1},{key:"instance",title:"Instance",sortable:!1},{key:"serviceAccount",title:"Service Account",sortable:!1},{key:"workerVersion",title:"Worker Version",sortable:!1},n.id,n.createdAt,n.actions];return($,t)=>(B(),I(s(g),{search:l.value,"onUpdate:search":t[0]||(t[0]=e=>l.value=e),"sort-by":d.value,"onUpdate:sortBy":t[1]||(t[1]=e=>d.value=e),page:c.value,"onUpdate:page":t[2]||(t[2]=e=>c.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>m.value=e),headers:u,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.status":i(({item:e})=>[o(S,{color:e.online?"success":void 0,"prepend-icon":e.online?"mdi-access-point":"mdi-access-point-off",size:"small",variant:"tonal"},{default:i(()=>[A(M(e.online?"Online":"Offline"),1)]),_:2},1032,["color","prepend-icon"])]),"item.instance":i(({item:e})=>[o(s(v),{item:{stateId:e.stateId}},null,8,["item"])]),"item.serviceAccount":i(({item:e})=>[o(s(h),{item:{serviceAccountId:e.serviceAccountId,serviceAccountMeta:e.serviceAccountMeta}},null,8,["item"])]),"item.workerVersion":i(({item:e})=>[o(s(P),{item:e},null,8,["item"])]),"item.actions":i(({item:e})=>[o(s(y),{icon:"mdi-open-in-new",tooltip:"Open Panel",disabled:!e.online,onClick:w=>s(p).openPanel(a.projectId,e.id)},null,8,["disabled","onClick"]),o(s(b),{"page-name":"settings.panel-details","page-params":{projectId:a.projectId,panelId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{W as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as M,b as r}from"./CCBTuGSI.js";import{g as B}from"./DfvKjH24.js";import{C as x}from"./Bn5R9WlL.js";import{s as S}from"#entry";import{E as k,aG as l,V as C,Y as D,D as s,_ as o,W as n,a2 as d,a0 as f,aP as E}from"./77UvFSdd.js";import"./C5DRPdxC.js";import{_ as T,I as m}from"./B9BJCsIg.js";import{_ as j}from"./m4Sxwg8n.js";const U={class:"d-flex align-center ga-3"},A={class:"d-flex flex-column"},H={class:"text-body-2 font-weight-medium"},V={class:"text-caption text-medium-emphasis"},Y=k({__name:"EntitySnapshotsTable",props:E({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{},fallbackIconMeta:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(a){const u=l(a,"search"),g=l(a,"sortBy"),p=l(a,"page"),y=l(a,"itemsPerPage"),{libraryStore:h}=S(),c=t=>B({entities:h.library.entities,entityType:t.entityType,meta:t.meta}),I=t=>c(t).title,v=t=>c(t).subtitle||t.id,b=t=>{const i=c(t).metaForIcon;return i?.icon?i:a.fallbackIconMeta?.icon?{...t.meta,icon:a.fallbackIconMeta.icon,iconColor:t.meta.iconColor??a.fallbackIconMeta.iconColor}:t.meta},P=[r.name,r.id,{key:"operationId",title:"Operation ID"},{key:"stateId",title:"State ID"},r.createdAt,r.actions];return(t,i)=>(C(),D(s(M),{search:u.value,"onUpdate:search":i[0]||(i[0]=e=>u.value=e),"sort-by":g.value,"onUpdate:sortBy":i[1]||(i[1]=e=>g.value=e),page:p.value,"onUpdate:page":i[2]||(i[2]=e=>p.value=e),"items-per-page":y.value,"onUpdate:itemsPerPage":i[3]||(i[3]=e=>y.value=e),headers:P,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.meta.title":o(({item:e})=>[d("div",U,[n(s(x),{meta:b(e),size:24},null,8,["meta"]),d("div",A,[d("div",H,f(I(e)),1),d("div",V,f(v(e)),1)])])]),"item.id":o(({item:e})=>[n(s(m),{value:e.id},null,8,["value"])]),"item.operationId":o(({item:e})=>[n(s(m),{value:e.operationId},null,8,["value"])]),"item.stateId":o(({item:e})=>[n(s(m),{value:e.stateId},null,8,["value"])]),"item.createdAt":o(({item:e})=>[n(s(T),{value:e.createdAt},null,8,["value"])]),"item.actions":o(({item:e})=>[n(s(j),{"page-name":"settings.entity-snapshot-details","page-params":{projectId:a.projectId,snapshotId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{Y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as x,t as S}from"#entry";import"./
|
|
1
|
+
import{s as x,t as S}from"#entry";import"./C5DRPdxC.js";import{S as U}from"./DVKmRHSk.js";import{S as w,b as c}from"./CCBTuGSI.js";import{g as C}from"./DfvKjH24.js";import{C as M}from"./Bn5R9WlL.js";import{E as j,aG as u,V as l,Y as m,D as t,_ as g,J as v,W as k,a2 as h,a1 as b,a0 as B,aP as A,aO as f}from"./77UvFSdd.js";import{_ as E,I as z}from"./B9BJCsIg.js";import{_ as I}from"./m4Sxwg8n.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./BxAss8Tj.js";const D={class:"d-flex align-center ga-3"},T={class:"d-flex flex-column"},N={class:"text-body-2 font-weight-medium"},V={key:0,class:"text-caption text-medium-emphasis"},F={key:1,class:"text-caption text-medium-emphasis"},H=j({__name:"EntitiesTable",props:A({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const r=u(s,"search"),n=u(s,"sortBy"),a=u(s,"page"),d=u(s,"itemsPerPage"),{libraryStore:P}=x(),i=o=>C({entities:P.library.entities,entityType:o.type,meta:o.meta}),y=[c.name,c.id,{key:"type",title:"Type"},c.createdAt,c.actions];return(o,p)=>(l(),m(t(w),{search:r.value,"onUpdate:search":p[0]||(p[0]=e=>r.value=e),"sort-by":n.value,"onUpdate:sortBy":p[1]||(p[1]=e=>n.value=e),page:a.value,"onUpdate:page":p[2]||(p[2]=e=>a.value=e),"items-per-page":d.value,"onUpdate:itemsPerPage":p[3]||(p[3]=e=>d.value=e),headers:y,data:s.data,loading:s.loading,"hide-header":s.hideHeader,height:s.height},{"item.meta.title":g(({item:e})=>[h("div",D,[i(e).metaForIcon?(l(),m(t(M),{key:0,meta:i(e).metaForIcon,size:24},null,8,["meta"])):b("",!0),h("div",T,[h("div",N,B(i(e).title),1),i(e).subtitle?(l(),v("div",V,B(i(e).subtitle),1)):b("",!0)])])]),"item.id":g(({item:e})=>[k(t(z),{value:e.id},null,8,["value"])]),"item.createdAt":g(({item:e})=>[e.createdAt?(l(),m(t(E),{key:0,value:e.createdAt},null,8,["value"])):(l(),v("div",F,"N/A"))]),"item.actions":g(({item:e})=>[e.snapshotId?(l(),m(t(I),{key:0,"page-name":"settings.entity-snapshot-details","page-params":{projectId:s.projectId,snapshotId:e.snapshotId}},null,8,["page-params"])):(l(),m(t(I),{key:1,"page-name":"settings.entity-details","page-params":{projectId:s.projectId,entityId:e.id}},null,8,["page-params"]))]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ee=j({__name:"index",async setup(s){let r,n;const{settingsStore:a,projectStore:d}=x();return d.initializing?([r,n]=f(()=>S(()=>d.initialized).toBe(!0)),await r,n(),d.addLibraryRoot()):([r,n]=f(()=>d.initialize1()),await r,n(),[r,n]=f(()=>d.initialize2()),await r,n()),a.entities.load(),(P,i)=>(l(),m(t(U),{title:"Entities",icon:"mdi-database",description:"Browse entities produced by operations in your project."},{default:g(({height:y})=>[k(t(H),{search:t(a).entities.search,"onUpdate:search":i[0]||(i[0]=o=>t(a).entities.search=o),"sort-by":t(a).entities.sortBy,"onUpdate:sortBy":i[1]||(i[1]=o=>t(a).entities.sortBy=o),page:t(a).entities.page,"onUpdate:page":i[2]||(i[2]=o=>t(a).entities.page=o),"items-per-page":t(a).entities.itemsPerPage,"onUpdate:itemsPerPage":i[3]||(i[3]=o=>t(a).entities.itemsPerPage=o),"project-id":t(d).projectId,data:t(a).entities.data,loading:t(a).entities.isLoading,height:y},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as q,o as T,r as E,c as z,p as O,e as H,a as P,b as I,n as U,j as V,h as B,w as D,d as F,_ as M,f as $}from"#entry";import{E as W,u as L,H as G,p as J,F as A,ae as j,B as K,r as Q,j as g,x as X,aF as Y,V as Z,J as ee,a2 as C,a0 as _,W as te,_ as ne,$ as re}from"./
|
|
1
|
+
import{u as q,o as T,r as E,c as z,p as O,e as H,a as P,b as I,n as U,j as V,h as B,w as D,d as F,_ as M,f as $}from"#entry";import{E as W,u as L,H as G,p as J,F as A,ae as j,B as K,r as Q,j as g,x as X,aF as Y,V as Z,J as ee,a2 as C,a0 as _,W as te,_ as ne,$ as re}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";const ae=(...t)=>t.find(o=>o!==void 0);function oe(t){const o=t.componentName||"NuxtLink";function c(e){return typeof e=="string"&&e.startsWith("#")}function w(e,i,d){const n=d??t.trailingSlash;if(!e||n!=="append"&&n!=="remove")return e;if(typeof e=="string")return R(e,n);const s="path"in e&&e.path!==void 0?e.path:i(e).path;return{...e,name:void 0,path:R(s,n)}}function S(e){const i=q(),d=X(),n=g(()=>!!e.target&&e.target!=="_self"),s=g(()=>{const l=e.to||e.href||"";return typeof l=="string"&&B(l,{acceptRelative:!0})}),m=j("RouterLink"),v=m&&typeof m!="string"?m.useLink:void 0,f=g(()=>{if(e.external)return!0;const l=e.to||e.href||"";return typeof l=="object"?!1:l===""||s.value}),a=g(()=>{const l=e.to||e.href||"";return f.value?l:w(l,i.resolve,e.trailingSlash)}),p=f.value?void 0:v?.({...e,to:a}),b=g(()=>{const l=e.trailingSlash??t.trailingSlash;if(!a.value||s.value||c(a.value))return a.value;if(f.value){const x=typeof a.value=="object"&&"path"in a.value?P(a.value):a.value,k=typeof x=="object"?i.resolve(x).href:x;return R(k,l)}return typeof a.value=="object"?i.resolve(a.value)?.href??null:R(V(d.app.baseURL,a.value),l)});return{to:a,hasTarget:n,isAbsoluteUrl:s,isExternal:f,href:b,isActive:p?.isActive??g(()=>a.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??g(()=>a.value===i.currentRoute.value.path),route:p?.route??g(()=>i.resolve(a.value)),async navigate(l){await U(b.value,{replace:e.replace,external:f.value||n.value})}}}return W({name:o,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:S,setup(e,{slots:i}){const d=q(),{to:n,href:s,navigate:m,isExternal:v,hasTarget:f,isAbsoluteUrl:a}=S(e),p=K(!1),b=Q(null),l=u=>{b.value=e.custom?u?.$el?.nextElementSibling:u?.$el};function x(u){return!p.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===u:e.prefetchOn?.[u]??t.prefetchOn?.[u])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!ue()}async function k(u=L()){if(p.value)return;p.value=!0;const h=typeof n.value=="string"?n.value:v.value?P(n.value):d.resolve(n.value).fullPath,r=v.value?new URL(h,window.location.href).href:h;await Promise.all([u.hooks.callHook("link:prefetch",r).catch(()=>{}),!v.value&&!f.value&&I(n.value,d).catch(()=>{})])}if(x("visibility")){const u=L();let h,r=null;G(()=>{const y=se();T(()=>{h=E(()=>{b?.value?.tagName&&(r=y.observe(b.value,async()=>{r?.(),r=null,await k(u)}))})})}),J(()=>{h&&z(h),r?.(),r=null})}return()=>{if(!v.value&&!f.value&&!c(n.value)){const r={ref:l,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x("interaction")&&(r.onPointerenter=k.bind(null,void 0),r.onFocus=k.bind(null,void 0)),p.value&&(r.class=e.prefetchedClass||t.prefetchedClass),r.rel=e.rel||void 0),A(j("RouterLink"),r,i.default)}const u=e.target||null,h=ae(e.noRel?"":e.rel,t.externalRelAttribute,a.value||f.value?"noopener noreferrer":"")||null;return e.custom?i.default?i.default({href:s.value,navigate:m,prefetch:k,get route(){if(!s.value)return;const r=new URL(s.value,window.location.href);return{path:r.pathname,fullPath:r.pathname,get query(){return O(r.search)},hash:r.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:s.value}},rel:h,target:u,isExternal:v.value||f.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:b,href:s.value||null,rel:h,target:u,onClick:async r=>{if(!(v.value||f.value)){r.preventDefault();try{const y=H(s.value);return await(e.replace?d.replace(y):d.push(y))}finally{if(c(n.value)){const y=n.value.slice(1);let N=y;try{N=decodeURIComponent(y)}catch{}document.getElementById(N)?.focus()}}}}},i.default?.())}}})}const ie=oe(Y);function R(t,o){const c=o==="append"?D:F;return B(t)&&!t.startsWith("http")?t:c(t,!0)}function se(){const t=L();if(t._observer)return t._observer;let o=null;const c=new Map,w=(e,i)=>(o||=new IntersectionObserver(d=>{for(const n of d){const s=c.get(n.target);(n.isIntersecting||n.intersectionRatio>0)&&s&&s()}}),c.set(e,i),o.observe(e),()=>{c.delete(e),o?.unobserve(e),c.size===0&&(o?.disconnect(),o=null)});return t._observer={observe:w}}const le=/2g/;function ue(){const t=navigator.connection;return!!(t&&(t.saveData||le.test(t.effectiveType)))}const ce={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},fe={class:"max-w-520px text-center"},de=["textContent"],he=["textContent"],ve=["textContent"],pe={class:"flex items-center justify-center w-full"},ge={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:404},statusText:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return $({title:`${o.status} - ${o.statusText} | ${o.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(c,w)=>{const S=ie;return Z(),ee("div",ce,[C("div",fe,[C("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:_(t.status)},null,8,de),C("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:_(t.statusText)},null,8,he),C("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:_(t.description)},null,8,ve),C("div",pe,[te(S,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:ne(()=>[re(_(t.backHome),1)]),_:1})])])])}}},we=M(ge,[["__scopeId","data-v-eb1dd9f7"]]);export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as v,_ as x}from"#entry";import{E as m,V as f,J as p,a2 as u,a0 as n,D as s,W as i,at as _,_ as c,Z as h,$ as d,au as y}from"./77UvFSdd.js";import"./C5DRPdxC.js";const $=e=>e?e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Unknown",g=e=>{if(!e)return"Unknown";const o=Date.now()-e.getTime(),t=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o/(1e3*60*60)),l=Math.floor(o/(1e3*60));return t>0?`${t} day${t===1?"":"s"} ago`:a>0?`${a} hour${a===1?"":"s"} ago`:l>0?`${l} minute${l===1?"":"s"} ago`:"Just now"},T=e=>`${e.slice(0,8)}...${e.slice(-8)}`,C={class:"d-flex align-center"},b={class:"text-caption text-medium-emphasis font-mono mr-2"},w=m({__name:"IdTableCell",props:{value:{},truncate:{type:Boolean,default:!0},copyFullText:{default:"Copy full ID"}},setup(e){const{copy:r}=v();return(o,t)=>(f(),p("div",C,[u("code",b,n(e.truncate?s(T)(e.value):e.value),1),i(_,{icon:"mdi-content-copy",variant:"text",size:"x-small",onClick:t[0]||(t[0]=a=>s(r)(e.value))},{default:c(()=>[i(h,{size:"16"},{default:c(()=>[...t[1]||(t[1]=[d("mdi-content-copy",-1)])]),_:1}),i(y,{activator:"parent",location:"top"},{default:c(()=>[d(n(e.copyFullText),1)]),_:1})]),_:1})]))}}),M=x(w,[["__scopeId","data-v-0dcfb73b"]]),I={class:"text-body-2"},V={class:"text-caption text-medium-emphasis"},N=m({__name:"TimeTableCell",props:{value:{}},setup(e){return(r,o)=>(f(),p("div",null,[u("div",I,n(s($)(e.value)),1),u("div",V,n(s(g)(e.value)),1)]))}});export{M as I,N as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as u,b as r}from"./
|
|
1
|
+
import{S as u,b as r}from"./CCBTuGSI.js";import"#entry";import{t as f}from"./M3Z1JMP1.js";import{_ as h}from"./BgvYz3Nr.js";import{_ as c}from"./CWA5Cfde.js";import"./C5DRPdxC.js";import{_ as P}from"./m4Sxwg8n.js";import{E as y,aG as i,V as B,Y as b,D as s,_ as o,W as m,aP as v}from"./77UvFSdd.js";const T=y({__name:"TerminalsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(a){const n=i(a,"search"),d=i(a,"sortBy"),l=i(a,"page"),p=i(a,"itemsPerPage"),g=[{title:"Status",key:"status",sortable:!1},r.name,{key:"owner",title:"Owner",sortable:!1},r.id,r.createdAt,r.actions];return(M,t)=>(B(),b(s(u),{search:n.value,"onUpdate:search":t[0]||(t[0]=e=>n.value=e),"sort-by":d.value,"onUpdate:sortBy":t[1]||(t[1]=e=>d.value=e),page:l.value,"onUpdate:page":t[2]||(t[2]=e=>l.value=e),"items-per-page":p.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>p.value=e),headers:g,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.status":o(({item:e})=>[m(s(h),{status:e.status,"status-map":s(f)},null,8,["status","status-map"])]),"item.owner":o(({item:e})=>[m(s(c),{item:e},null,8,["item"])]),"item.actions":o(({item:e})=>[m(s(P),{"page-name":"settings.terminal-details","page-params":{projectId:a.projectId,terminalId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{T as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{be as A,_ as H,Z as $,s as U,m as Z,t as V,x as G,ap as Y,l as J}from"#entry";import{_ as K,a as W,b as X}from"./DdhYQ3Tv.js";import{a as q,g as Q,i as ee}from"./oZs8U75K.js";import{_ as te,G as oe}from"./C1bzPMRu.js";import{E as S,aU as se,l as ae,V as g,Y as x,ai as B,a6 as ne,_ as r,W as c,a2 as _,a0 as y,aK as E,at as O,aL as re,ak as ie,a as z,D as s,$ as h,aR as le,bc as ce,a7 as ue,J as pe,aa as de,a1 as M,Z as D,am as me,ap as fe,aq as ge,aj as _e,r as P,j as F,aO as I,H as xe,w as be,av as L,aw as N}from"./77UvFSdd.js";import{u as R}from"./CiaugisX.js";import{P as ye}from"./DrQCNsTo.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./CRZrAKrA.js";import"./fbfpKHgl.js";import"./CI40hKzv.js";import"./BxD6MFcJ.js";import"./rpHuDh4d.js";import"./Bn5R9WlL.js";import"./D4H6aUyZ.js";import"./DPQHj1GW.js";import"./D1BdWMiq.js";import"./YpnHruhZ.js";import"./BxAss8Tj.js";import"./Bcyj9glE.js";const ve={class:"text-caption text-medium-emphasis mb-2"},he={class:"d-flex align-center mt-3 mb-1"},we={class:"text-caption text-medium-emphasis"},Ce={class:"output-expression-picker__list"},ke=["onClick"],Ie={class:"text-body-2"},Se={class:"text-caption text-medium-emphasis"},Te=S({__name:"OutputExpressionPicker",props:{targetLabel:{},rootType:{},targetType:{},options:{},x:{},y:{}},emits:["select","close"],setup(u,{emit:d}){const l=d,i=P(""),n=P(!1),m=P(["__root__"]),C=se("picker");A(C,()=>l("close"));const w=(o,e)=>e?o.label.toLowerCase().includes(e)||o.title.toLowerCase().includes(e)||o.type.toLowerCase().includes(e):!0,f=o=>{if(!o)return;const e=o.lastIndexOf(".");if(e!==-1)return o.slice(0,e)},T=o=>{const e=["__root__"];let t=f(o);for(;t;)e.push(t),t=f(t);return e},j=F(()=>{const o=new Map;for(const t of u.options){const p=t.path??"__root__";o.set(p,{...t,id:p,children:[]})}const e=[];for(const t of o.values()){const p=f(t.path),b=o.get(p??"__root__");if(t.id!=="__root__"&&b){b.children?.push(t);continue}e.push(t)}return e}),k=(o,e)=>{const t=o.children?.map(v=>k(v,e)).filter(v=>!!v),p=n.value||o.assignable||(t?.length??0)>0,b=w(o,e)||(t?.length??0)>0;return!p||!b?null:{...o,children:t&&t.length>0?t:void 0}},a=F(()=>{const o=i.value.trim().toLowerCase();return j.value.map(e=>k(e,o)).filter(e=>!!e)});return ae(()=>{i.value.trim().length>0||n.value||(m.value=Array.from(new Set(u.options.filter(o=>o.assignable).flatMap(o=>T(o.path)))))}),(o,e)=>(g(),x(B,{ref:"picker",class:"output-expression-picker",style:ne({left:`${Math.max(12,u.x)}px`,top:`${Math.max(12,u.y)}px`}),elevation:"10",width:"420"},{default:r(()=>[c(re,{class:"d-flex align-center py-2 pr-2 text-subtitle-1"},{default:r(()=>[_("span",null,"Connect to "+y(u.targetLabel),1),c(E),c(O,{icon:"mdi-close",size:"small",variant:"text",onClick:e[0]||(e[0]=t=>l("close"))})]),_:1}),c(_e,{class:"pt-0 pb-2"},{default:r(()=>[_("div",ve,y(u.rootType)+" -> "+y(u.targetType),1),c(ie,{modelValue:s(i),"onUpdate:modelValue":e[1]||(e[1]=t=>z(i)?i.value=t:null),density:"compact",variant:"outlined","prepend-inner-icon":"mdi-magnify",placeholder:"Search expressions...","hide-details":"",autofocus:""},null,8,["modelValue"]),_("div",he,[_("div",we,y(s(n)?"All expressions":"Compatible"),1),c(E),c(O,{size:"x-small",variant:"text",onClick:e[2]||(e[2]=t=>n.value=!s(n))},{default:r(()=>[h(y(s(n)?"Compatible only":"Show all"),1)]),_:1})]),_("div",Ce,[s(a).length>0?(g(),x(le,{key:0,opened:s(m),"onUpdate:opened":e[3]||(e[3]=t=>z(m)?m.value=t:null),items:s(a),"item-title":"label","item-value":"id",density:"compact","open-all":s(i).trim().length>0,"open-on-click":"","indent-lines":""},{prepend:r(({item:t})=>[t.assignable?(g(),x(D,{key:0,size:"12"},{default:r(()=>[...e[4]||(e[4]=[h("mdi-circle-outline",-1)])]),_:1})):(g(),x(D,{key:1,size:"12",color:"disabled"},{default:r(()=>[...e[5]||(e[5]=[h("mdi-circle-off-outline",-1)])]),_:1}))]),title:r(({item:t})=>[_("div",{class:ue(["output-expression-picker__item",{"output-expression-picker__item--disabled":!t.assignable}]),onClick:ce(p=>t.assignable&&l("select",t.path),["stop"])},[_("div",Ie,y(t.label)+y(t.multiple?"[]":""),1),_("div",Se,[h(y(t.type)+" ",1),t.assignable?M("",!0):(g(),pe(de,{key:0},[h(" · not assignable")],64))])],10,ke)]),_:1},8,["opened","items","open-all"])):(g(),x(me,{key:1,density:"compact"},{default:r(()=>[c(fe,null,{default:r(()=>[c(ge,null,{default:r(()=>[...e[6]||(e[6]=[h("No expressions found",-1)])]),_:1})]),_:1})]),_:1}))])]),_:1})]),_:1},8,["style"]))}}),je=H(Te,[["__scopeId","data-v-3fd43a00"]]),Pe=S({__name:"ExtraElementPanel",setup(u){const d=l=>{q(l.dataTransfer)};return(l,i)=>(g(),x(B,null,{default:r(()=>[_("div",{draggable:"true",style:{cursor:"grab"},onDragstart:d},[c(te)],32)]),_:1}))}}),Ve=S({__name:"ProjectCanvas",async setup(u){let d,l;const i=$(),n=R(),{projectStore:m,instancesStore:C,libraryStore:w}=U(),f=Z.child({feature:"project-canvas-focus"});m.initializing?([d,l]=I(()=>V(()=>m.initialized).toBe(!0)),await d,l(),m.addLibraryRoot()):([d,l]=I(()=>m.initialize1()),await d,l(),[d,l]=I(()=>m.initialize2()),await d,l()),[d,l]=I(()=>n.initialize()),await d,l();const T=async a=>{f.debug({instanceId:a},"focus requested"),await V(i.vueFlowStore.areNodesInitialized).toBe(!0),await j(()=>{const v=i.nodeFactory.instanceIdToNodeIdMap.get(a);return v?!!i.vueFlowStore.findNode(v):!1},20,50);const o=i.nodeFactory.instanceIdToNodeIdMap.get(a);if(!o)return f.debug({instanceId:a},"focus failed: node id not found in instance map"),!1;const e=i.vueFlowStore.findNode(o);if(!e)return f.debug({instanceId:a,nodeId:o},"focus failed: vue-flow node not found"),!1;const t=e.position.x+e.dimensions.width/2,p=e.position.y+e.dimensions.height/2,b=i.vueFlowStore.viewport.value.zoom;return await i.vueFlowStore.setCenter(t,p,{zoom:b,duration:300}),f.debug({instanceId:a,nodeId:o,nodeCenterX:t,nodeCenterY:p},"focus success"),!0},j=async(a,o,e)=>{for(let t=0;t<o;t++){if(a())return;await new Promise(p=>setTimeout(p,e))}};xe(()=>{n.placeNodes()}),be(()=>n.instanceFocusRequest,async a=>{if(!a)return;if(f.debug({request:a},"focus request changed"),!await T(a.instanceId)){f.debug({request:a},"focus request kept for retry because focus did not succeed");return}n.clearInstanceFocusRequest(a.requestId)},{immediate:!0});const k=a=>{if(a.preventDefault(),!a.dataTransfer||i.blueprint)return;let o;const e=Q(a.dataTransfer);if(e){const t=C.getNextInstanceName(e),p=Y(e,t),b=w.library.components[e];o={boundary:{width:360,height:260},instances:[{id:p,name:t,type:e,kind:b.kind,position:{x:0,y:0}}],hubs:[]}}else if(ee(a.dataTransfer))o={boundary:{width:74,height:74},instances:[],hubs:[{id:G.createId(),position:{x:0,y:0}}]};else return;i.blueprint=o};return(a,o)=>(g(),x(s(oe),{canvasId:["project",s(m).projectId],components:s(w).library.components,entities:s(w).library.entities,"input-resolver-outputs":s(C).inputResolverOutputs,editable:"",onDragover:k},{"node-instance":r(e=>[c(s(X),L(N(e)),null,16)]),"node-hub":r(e=>[c(s(W),L(N(e)),null,16)]),"panel-bottom-left":r(()=>[c(s(K))]),"panel-bottom-right":r(()=>[c(s(Pe))]),overlay:r(()=>[s(n).pendingOutputExpression?(g(),x(s(je),{key:0,"target-label":s(n).pendingOutputExpression.targetLabel,"root-type":s(n).pendingOutputExpression.rootType,"target-type":s(n).pendingOutputExpression.targetType,options:s(n).pendingOutputExpression.options,x:s(n).pendingOutputExpression.x,y:s(n).pendingOutputExpression.y,onSelect:s(n).selectPendingOutputExpression,onClose:s(n).closePendingOutputExpression},null,8,["target-label","root-type","target-type","options","x","y","onSelect","onClose"])):M("",!0)]),_:1},8,["canvasId","components","entities","input-resolver-outputs"]))}}),qe=S({__name:"index",props:{params:{}},setup(u){return J(u.params.projectId),$.ensureCreated("project",u.params.projectId),R.ensureCreated(u.params.projectId),(d,l)=>(g(),x(s(ye),{"project-id":u.params.projectId,"can-unlock":""},{default:r(()=>[c(s(Ve))]),_:1},8,["project-id"]))}});export{qe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as L,_ as B,g as z,u as A,m as F,n as W}from"#entry";import{E as N,V as o,J as h,W as u,_ as r,a5 as J,w as R,a2 as d,aa as V,ab as y,D as s,aN as M,a1 as w,ai as U,ae as Y,Y as m,Z as C,$ as I,a0 as _,a7 as P,at as x,as as G,aj as Z,a3 as q,a4 as S,B as H,j as $}from"./
|
|
1
|
+
import{l as L,_ as B,g as z,u as A,m as F,n as W}from"#entry";import{E as N,V as o,J as h,W as u,_ as r,a5 as J,w as R,a2 as d,aa as V,ab as y,D as s,aN as M,a1 as w,ai as U,ae as Y,Y as m,Z as C,$ as I,a0 as _,a7 as P,at as x,as as G,aj as Z,a3 as q,a4 as S,B as H,j as $}from"./77UvFSdd.js";import{P as K}from"./DrQCNsTo.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./Bcyj9glE.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(T){return L(T.projectId),(p,j)=>(o(),h("div",O,[u(K,{"project-id":T.projectId,"can-unlock":""},{default:r(()=>[J(p.$slots,"default",{},void 0,!0)]),_:3},8,["project-id"])]))}}),X=B(Q,[["__scopeId","data-v-cbe63052"]]),ee={class:"data-settings-panel"},te={class:"panel-layout"},ae={class:"vertical-tabs"},se={class:"tab-section"},oe={class:"tab-label"},re={class:"tab-section"},ce={class:"tab-label"},ne={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(T){const p=z(),j=A(),c=H(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(F.info({from:c.value?.path,to:t.path},"settings route changed"),c.value=t),t?.name==="settings"&&await b(l.value.beforeGlobalTabs[0])},{immediate:!0});const l=$(()=>{const f=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),n=[],e=[];for(const a of f){const i=a.meta.tab;if(!i||!a.path.startsWith("/settings/"))continue;const k={name:a.name,icon:i.icon,label:i.label,order:i.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:i.subpages??[]};k.isProjectTab?e.push(k):n.push(k)}n.sort((a,i)=>a.order-i.order),e.sort((a,i)=>a.order-i.order);const g=n.filter(a=>a.order<90),E=n.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:E}}),v=t=>c.value&&(t.name===c.value.name||t.subpages.includes(c.value.name)),D=$(()=>l.value.beforeGlobalTabs.find(v)||l.value.projectTabs.find(v)),b=async t=>{if(!t.isProjectTab){await W({name:t.name});return}await W({name:t.name,params:{projectId:p.focusedProjectId}})};return R(()=>p.focusedProjectId,async(t,f)=>{const n=j.currentRoute.value;!n||t===f&&n.path.startsWith("/settings/projects/")||!n.path.startsWith("/settings/")||(t&&l.value.projectTabs.length>0?await b(D.value??l.value.projectTabs[0]):!t&&n.path.startsWith("/settings/projects/")&&await b(l.value.beforeGlobalTabs[0]))}),(t,f)=>{const n=Y("RouterView");return o(),h("div",ee,[d("div",te,[d("div",ae,[d("div",se,[(o(!0),h(V,null,y(s(l).beforeGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>b(e)},{default:r(()=>[u(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),d("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),u(G,{class:"section-divider"}),d("div",re,[u(M,{modelValue:s(p).focusedProjectId,"onUpdate:modelValue":f[0]||(f[0]=e=>s(p).focusedProjectId=e),items:s(p).projects,label:"Project","item-title":"meta.title","item-value":"id",variant:"outlined",density:"compact",class:"project-selector","prepend-inner-icon":"mdi-folder-outline",clearable:"","hide-details":""},null,8,["modelValue","items"]),s(p).focusedProjectId?(o(!0),h(V,{key:0},y(s(l).projectTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>b(e)},{default:r(()=>[u(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),d("span",ce,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):w("",!0)]),u(G,{class:"section-divider"}),d("div",ne,[(o(!0),h(V,null,y(s(l).afterGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>b(e)},{default:r(()=>[u(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),d("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),d("div",ie,[u(U,{class:"content-card",variant:"flat"},{default:r(()=>[u(Z,{class:"content-card-text"},{default:r(()=>[s(c)?(o(),m(n,{key:0,route:s(c)},{default:r(({Component:e})=>[s(c).params.projectId?(o(),m(q,{key:0},{default:r(()=>[(o(),m(s(X),{"project-id":s(c).params.projectId,key:s(c).params.projectId},{default:r(()=>[(o(),m(S(e),{params:s(c).params},null,8,["params"]))]),_:2},1032,["project-id"]))]),_:2},1024)):(o(),m(S(e),{key:1}))]),_:1},8,["route"])):w("",!0)]),_:1})]),_:1})])])])}}}),ve=B(de,[["__scopeId","data-v-ee43cb94"]]);export{ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as n,t as d}from"#entry";import"./
|
|
1
|
+
import{s as n,t as d}from"#entry";import"./C5DRPdxC.js";import{S as y}from"./DVKmRHSk.js";import{_ as g}from"./CLsyMJ1X.js";import{E as l,aO as p,Y as c,_ as u,D as t,V as K,W as f}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./CWA5Cfde.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./DTYY2tCY.js";import"./m4Sxwg8n.js";const D=l({__name:"index",async setup(P){let o,r;const{settingsStore:e}=n(),{projectStore:s}=n();return s.initializing?([o,r]=p(()=>d(()=>s.initialized).toBe(!0)),await o,r(),s.addLibraryRoot()):([o,r]=p(()=>s.initialize1()),await o,r(),[o,r]=p(()=>s.initialize2()),await o,r()),e.apiKeys.load(),(_,i)=>(K(),c(t(y),{title:"API Keys",icon:"mdi-key-variant",description:"Manage the API keys that provide programmatic access to your project resources."},{default:u(({height:m})=>[f(t(g),{search:t(e).apiKeys.search,"onUpdate:search":i[0]||(i[0]=a=>t(e).apiKeys.search=a),"sort-by":t(e).apiKeys.sortBy,"onUpdate:sortBy":i[1]||(i[1]=a=>t(e).apiKeys.sortBy=a),page:t(e).apiKeys.page,"onUpdate:page":i[2]||(i[2]=a=>t(e).apiKeys.page=a),"items-per-page":t(e).apiKeys.itemsPerPage,"onUpdate:itemsPerPage":i[3]||(i[3]=a=>t(e).apiKeys.itemsPerPage=a),"project-id":t(s).projectId,data:t(e).apiKeys.data,loading:t(e).apiKeys.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as n,v as u,t as p}from"#entry";import{u as f}from"./M3Z1JMP1.js";import{_}from"./
|
|
1
|
+
import{s as n,v as u,t as p}from"#entry";import{u as f}from"./M3Z1JMP1.js";import{_}from"./BgvYz3Nr.js";import{_ as k,I as h}from"./B9BJCsIg.js";import{S as y}from"./C5DRPdxC.js";import{D as M,a as I}from"./hunqYsQf.js";import{E as g,aO as l,Y as w,_ as r,D as t,V as C,W as s}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";const j=g({__name:"[unlockMethodId]",props:{params:{}},async setup(c){let e,a;const{settingsStore:m}=n(),{projectStore:i}=n();i.initializing?([e,a]=l(()=>p(()=>i.initialized).toBe(!0)),await e,a(),i.addLibraryRoot()):([e,a]=l(()=>i.initialize1()),await e,a(),[e,a]=l(()=>i.initialize2()),await e,a());const o=([e,a]=l(()=>m.getUnlockMethodDetails(c.params.unlockMethodId)),e=await e,a(),e);if(!o)throw u({statusCode:404,statusMessage:"Unlock Method not found"});const d=[{key:"unlockMethodId",label:"Unlock Method ID"},{key:"type",label:"Type"},{key:"createdAt",label:"Created"}];return(D,b)=>(C(),w(t(I),null,{default:r(()=>[s(y,{meta:t(o).meta,"fallback-icon":"mdi-lock-outline",title:t(o).meta.title||`${t(o).type} Unlock Method`,description:t(o).meta.description},null,8,["meta","title","description"]),s(t(M),{title:"Unlock Method Details",items:d},{"item.unlockMethodId":r(()=>[s(t(h),{value:t(o).id},null,8,["value"])]),"item.type":r(()=>[s(t(_),{status:t(o).type,"status-map":t(f)},null,8,["status","status-map"])]),"item.createdAt":r(()=>[s(t(k),{value:t(o).createdAt},null,8,["value"])]),_:1})]),_:1}))}});export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as k,v as C,t as M,n as x}from"#entry";import{t as V}from"./M3Z1JMP1.js";import{E as D,aG as P,V as b,Y as h,D as e,_ as u,W as m,at as z,a2 as U,a0 as $,ao as L,$ as N,aP as I,aO as g,aQ as O}from"./
|
|
1
|
+
import{s as k,v as C,t as M,n as x}from"#entry";import{t as V}from"./M3Z1JMP1.js";import{E as D,aG as P,V as b,Y as h,D as e,_ as u,W as m,at as z,a2 as U,a0 as $,ao as L,$ as N,aP as I,aO as g,aQ as O}from"./77UvFSdd.js";import{_ as H}from"./CWA5Cfde.js";import{_ as B,I as E}from"./B9BJCsIg.js";import{S as F}from"./C5DRPdxC.js";import{D as R,a as G}from"./hunqYsQf.js";import{O as Q}from"./O3nsZ-Uz.js";import{_ as T}from"./BbWhHw7B.js";import{S as W,b as w}from"./CCBTuGSI.js";import{_ as Y}from"./D2lHwbtX.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./fbfpKHgl.js";import"./DTYY2tCY.js";import"./BgvYz3Nr.js";import"./D1BdWMiq.js";import"./m4Sxwg8n.js";const q={class:"text-body-2"},J=D({__name:"TerminalSessionsTable",props:I({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:I(["openSession"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(n,{emit:s}){const l=s,c=P(n,"search"),p=P(n,"sortBy"),o=P(n,"page"),r=P(n,"itemsPerPage"),d=[w.id,{title:"Started",key:"startedAt"},{title:"Finished",key:"finishedAt"},{title:"Duration",key:"duration"},w.actions],A=(v,i)=>{const a=new Date(v),j=(i?new Date(i):new Date).getTime()-a.getTime(),f=Math.floor(j/1e3),y=Math.floor(f/60),S=Math.floor(y/60);return S>0?`${S}h ${y%60}m ${f%60}s`:y>0?`${y}m ${f%60}s`:`${f}s`};return(v,i)=>(b(),h(e(W),{search:c.value,"onUpdate:search":i[0]||(i[0]=a=>c.value=a),"sort-by":p.value,"onUpdate:sortBy":i[1]||(i[1]=a=>p.value=a),page:o.value,"onUpdate:page":i[2]||(i[2]=a=>o.value=a),"items-per-page":r.value,"onUpdate:itemsPerPage":i[3]||(i[3]=a=>r.value=a),headers:d,data:n.data,loading:n.loading,"hide-header":n.hideHeader},{"item.startedAt":u(({item:a})=>[m(e(B),{value:a.startedAt},null,8,["value"])]),"item.finishedAt":u(({item:a})=>[a.finishedAt?(b(),h(e(B),{key:0,value:a.finishedAt},null,8,["value"])):(b(),h(L,{key:1,size:"small",color:"success",variant:"outlined"},{default:u(()=>[...i[4]||(i[4]=[N("Running",-1)])]),_:1}))]),"item.duration":u(({item:a})=>[U("div",q,$(A(a.startedAt,a.finishedAt)),1)]),"item.actions":u(({item:a})=>[m(z,{variant:"text",icon:"mdi-open-in-new",size:"small",onClick:t=>l("openSession",a.id)},null,8,["onClick"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header"]))}}),K={class:"text-body-2"},ye=D({__name:"[terminalId]",props:{params:{}},async setup(n){let s,l;const{settingsStore:c}=k(),{projectStore:p}=k();p.initializing?([s,l]=g(()=>M(()=>p.initialized).toBe(!0)),await s,l(),p.addLibraryRoot()):([s,l]=g(()=>p.initialize1()),await s,l(),[s,l]=g(()=>p.initialize2()),await s,l());const o=([s,l]=g(()=>c.getTerminalDetails(n.params.terminalId)),s=await s,l(),s);if(!o)throw C({statusCode:404,statusMessage:"Terminal not found"});const r=c.sessionsForTerminal(n.params.terminalId),d=c.artifactsForTerminal(n.params.terminalId);[s,l]=g(()=>r.load()),await s,l(),[s,l]=g(()=>d.load()),await s,l();const A=[{key:"terminalId",label:"Terminal ID"},{key:"name",label:"Name"},{key:"serviceAccount",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}],v=i=>{x({name:"terminal-session",params:{projectId:n.params.projectId,sessionId:i}})};return(i,a)=>(b(),h(e(G),null,{default:u(()=>[m(F,{meta:e(o).meta,"fallback-icon":"mdi-console",title:e(o).meta.title||e(o).name||"Unnamed Terminal",status:e(o).status,"status-map":e(V),description:e(o).meta.description},null,8,["meta","title","status","status-map","description"]),m(e(R),{title:"Terminal Details",items:A},{"item.terminalId":u(()=>[m(e(E),{value:e(o).id},null,8,["value"])]),"item.name":u(()=>[U("div",K,$(e(o).name||"N/A"),1)]),"item.serviceAccount":u(()=>[m(e(H),{item:e(o)},null,8,["item"])]),"item.createdAt":u(()=>[m(e(B),{value:e(o).createdAt},null,8,["value"])]),"item.updatedAt":u(()=>[m(e(B),{value:e(o).updatedAt},null,8,["value"])]),_:1}),m(O,{elevation:0},{default:u(()=>[m(e(Q),{title:"Spec",data:e(o).spec},null,8,["data"]),m(e(T),{title:"Sessions",icon:"mdi-console",count:e(r).data.value.total},{default:u(()=>[m(e(J),{search:e(r).search.value,"onUpdate:search":a[0]||(a[0]=t=>e(r).search.value=t),"sort-by":e(r).sortBy.value,"onUpdate:sortBy":a[1]||(a[1]=t=>e(r).sortBy.value=t),page:e(r).page.value,"onUpdate:page":a[2]||(a[2]=t=>e(r).page.value=t),"items-per-page":e(r).itemsPerPage.value,"onUpdate:itemsPerPage":a[3]||(a[3]=t=>e(r).itemsPerPage.value=t),"project-id":n.params.projectId,data:e(r).data.value,loading:e(r).isLoading.value,"hide-header":!0,onOpenSession:v},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),m(e(T),{title:"Artifacts",icon:"mdi-package-variant",count:e(d).data.value.total},{default:u(()=>[m(e(Y),{search:e(d).search.value,"onUpdate:search":a[4]||(a[4]=t=>e(d).search.value=t),"sort-by":e(d).sortBy.value,"onUpdate:sortBy":a[5]||(a[5]=t=>e(d).sortBy.value=t),page:e(d).page.value,"onUpdate:page":a[6]||(a[6]=t=>e(d).page.value=t),"items-per-page":e(d).itemsPerPage.value,"onUpdate:itemsPerPage":a[7]||(a[7]=t=>e(d).itemsPerPage.value=t),"project-id":n.params.projectId,data:e(d).data.value,loading:e(d).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1})]),_:1}))}});export{ye as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as n,t as c}from"#entry";import"./
|
|
1
|
+
import{s as n,t as c}from"#entry";import"./C5DRPdxC.js";import{S as d}from"./DVKmRHSk.js";import{_ as g}from"./DzowYWbi.js";import{E as l,aO as p,Y as f,_ as u,D as t,V as y,W as P}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./CWA5Cfde.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./DTYY2tCY.js";import"./m4Sxwg8n.js";import"./DRTFVhVr.js";const N=l({__name:"index",async setup(_){let i,o;const{settingsStore:e}=n(),{projectStore:a}=n();return a.initializing?([i,o]=p(()=>c(()=>a.initialized).toBe(!0)),await i,o(),a.addLibraryRoot()):([i,o]=p(()=>a.initialize1()),await i,o(),[i,o]=p(()=>a.initialize2()),await i,o()),e.secrets.load(),(j,r)=>(y(),f(t(d),{title:"Project Secrets",icon:"mdi-key-variant",description:"View and manage secrets for your project instances."},{default:u(({height:m})=>[P(t(g),{search:t(e).secrets.search,"onUpdate:search":r[0]||(r[0]=s=>t(e).secrets.search=s),"sort-by":t(e).secrets.sortBy,"onUpdate:sortBy":r[1]||(r[1]=s=>t(e).secrets.sortBy=s),page:t(e).secrets.page,"onUpdate:page":r[2]||(r[2]=s=>t(e).secrets.page=s),"items-per-page":t(e).secrets.itemsPerPage,"onUpdate:itemsPerPage":r[3]||(r[3]=s=>t(e).secrets.itemsPerPage=s),"project-id":t(a).projectId,data:t(e).secrets.data,loading:t(e).secrets.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as n,t as m}from"#entry";import"./
|
|
1
|
+
import{s as n,t as m}from"#entry";import"./C5DRPdxC.js";import{S as d}from"./DVKmRHSk.js";import{_ as l}from"./DYYyOkJe.js";import{E as c,aO as g,Y as f,_ as u,D as t,V as y,W as _}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./m4Sxwg8n.js";const I=c({__name:"index",async setup(P){let s,a;const{settingsStore:e}=n(),{projectStore:o}=n();return o.initializing?([s,a]=g(()=>m(()=>o.initialized).toBe(!0)),await s,a(),o.addLibraryRoot()):([s,a]=g(()=>o.initialize1()),await s,a(),[s,a]=g(()=>o.initialize2()),await s,a()),e.triggers.reset(),(j,r)=>(y(),f(t(d),{title:"Instance Triggers",icon:"mdi-flash-outline",description:"View and manage triggers created by project instances."},{default:u(({height:p})=>[_(t(l),{search:t(e).triggers.search,"onUpdate:search":r[0]||(r[0]=i=>t(e).triggers.search=i),"sort-by":t(e).triggers.sortBy,"onUpdate:sortBy":r[1]||(r[1]=i=>t(e).triggers.sortBy=i),page:t(e).triggers.page,"onUpdate:page":r[2]||(r[2]=i=>t(e).triggers.page=i),"items-per-page":t(e).triggers.itemsPerPage,"onUpdate:itemsPerPage":r[3]||(r[3]=i=>t(e).triggers.itemsPerPage=i),"project-id":t(o).projectId,data:t(e).triggers.data,loading:t(e).triggers.isLoading,height:p},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S,b as d}from"./
|
|
1
|
+
import{S,b as d}from"./CCBTuGSI.js";import{g as b,u as h,q as C}from"#entry";import{S as w}from"./DVKmRHSk.js";import"./C5DRPdxC.js";import{E as k,Y as B,_ as u,D as s,V as x,W as g,a as n,at as L,r as i,j as U}from"./77UvFSdd.js";import"./B9BJCsIg.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";const W=k({__name:"project-list",setup(D){const m=b(),f=h(),j=[d.name,d.id,d.createdAt,{key:"actions",title:"Actions"}],r=i(""),P=C(r,300),l=i(),c=i(1),p=i(10),v=U(()=>{const a=P.value.toLowerCase().trim(),e=a?m.projects.filter(o=>o.id.includes(a)||o.meta.title.toLowerCase().includes(a)||o.meta.description?.toLowerCase().includes(a)):m.projects;return{items:e,total:e.length}}),y=a=>{f.push({name:"project",params:{projectId:a}})};return(a,e)=>(x(),B(s(w),{title:"Projects",icon:"mdi-folder-multiple",description:"Manage your projects and their associated instances, secrets, and settings. Projects encapsulate all configurations and data for your application."},{default:u(({height:o})=>[g(s(S),{search:s(r),"onUpdate:search":e[0]||(e[0]=t=>n(r)?r.value=t:null),"sort-by":s(l),"onUpdate:sortBy":e[1]||(e[1]=t=>n(l)?l.value=t:null),page:s(c),"onUpdate:page":e[2]||(e[2]=t=>n(c)?c.value=t:null),"items-per-page":s(p),"onUpdate:itemsPerPage":e[3]||(e[3]=t=>n(p)?p.value=t:null),headers:j,data:s(v),loading:!1,height:o},{"item.actions":u(({item:t})=>[g(L,{icon:"mdi-arrow-right",variant:"text",size:"small",onClick:V=>y(t.id)},null,8,["onClick"])]),_:1},8,["search","sort-by","page","items-per-page","data","height"])]),_:1}))}});export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as n,V as c,Y as i,
|
|
1
|
+
import{E as n,V as c,Y as i,aZ as r,_ as a,a5 as d,a2 as u,W as l,$ as t,a0 as s,Z as m,ao as _}from"./77UvFSdd.js";const f={class:"d-flex align-center"},x=n({__name:"RelatedDataPanel",props:{title:{},icon:{},count:{}},setup(e){return(o,p)=>(c(),i(r,{color:"#2d2d2d","bg-color":"#1e1e1e",class:"related-data-panel"},{title:a(()=>[u("div",f,[l(m,{class:"mr-2"},{default:a(()=>[t(s(e.icon),1)]),_:1}),t(" "+s(e.title)+" ",1),l(_,{size:"small",class:"ml-2",variant:"outlined"},{default:a(()=>[t(s(e.count),1)]),_:1})])]),text:a(()=>[d(o.$slots,"default")]),_:3}))}});export{x as _};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{G as J,H as pt}from"#entry";import{E as on,aG as se,aU as cn,V as fn,Y as an,ak as ln,_ as oe,W as hn,Z as un,$ as dn,a0 as yn}from"./77UvFSdd.js";const dt=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Ae(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function W(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function at(e,...t){if(!Ae(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function St(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");W(e.outputLen),W(e.blockLen)}function _t(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function gn(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Kt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ut(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ut(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Q(e,t){return e<<32-t|e>>>t}function T(e,t){return e<<t|e>>>32-t>>>0}const pn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function wn(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function xn(e){for(let t=0;t<e.length;t++)e[t]=wn(e[t]);return e}const ie=pn?e=>e:xn,Ie=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",bn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ue(e){if(at(e),Ie)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=bn[e[n]];return t}const rt={_0:48,_9:57,A:65,F:70,a:97,f:102};function ce(e){if(e>=rt._0&&e<=rt._9)return e-rt._0;if(e>=rt.A&&e<=rt.F)return e-(rt.A-10);if(e>=rt.a&&e<=rt.f)return e-(rt.a-10)}function _e(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Ie)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const c=ce(e.charCodeAt(s)),i=ce(e.charCodeAt(s+1));if(c===void 0||i===void 0){const f=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+f+'" at index '+s)}r[o]=c*16+i}return r}function ve(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Bt(e){return typeof e=="string"&&(e=ve(e)),at(e),e}function fe(e){return typeof e=="string"&&(e=ve(e)),at(e),e}function Le(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class Se{}function mn(e){const t=r=>e().update(Bt(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function ft(e=32){if(dt&&typeof dt.getRandomValues=="function")return dt.getRandomValues(new Uint8Array(e));if(dt&&typeof dt.randomBytes=="function")return Uint8Array.from(dt.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class Ce extends Se{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,St(t);const r=Bt(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=t.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),ut(s)}update(t){return _t(this),this.iHash.update(t),this}digestInto(t){_t(this),at(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:i}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=c,t.outputLen=i,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const mt=(e,t,n)=>new Ce(e,t).update(n).digest();mt.create=(e,t)=>new Ce(e,t);function ke(e,t,n){return St(e),n===void 0&&(n=new Uint8Array(e.outputLen)),mt(e,Bt(n),Bt(t))}const Ht=Uint8Array.from([0]),ae=Uint8Array.of();function En(e,t,n,r=32){St(e),W(r);const o=e.outputLen;if(r>255*o)throw new Error("Length should be <= 255*HashLen");const s=Math.ceil(r/o);n===void 0&&(n=ae);const c=new Uint8Array(s*o),i=mt.create(e,t),f=i._cloneInto(),l=new Uint8Array(i.outputLen);for(let h=0;h<s;h++)Ht[0]=h+1,f.update(h===0?ae:l).update(n).update(Ht).digestInto(l),c.set(l,o*h),i._cloneInto(f);return i.destroy(),f.destroy(),ut(l,Ht),c.slice(0,r)}const wt=(e,t,n,r,o)=>En(e,ke(e,t,n),r,o);function Bn(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(n>>o&s),i=Number(n&s),f=r?4:0,l=r?0:4;e.setUint32(t+f,c,r),e.setUint32(t+l,i,r)}function An(e,t,n){return e&t^~e&n}function In(e,t,n){return e&t^e&n^t&n}class Un extends Se{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Ut(this.buffer)}update(t){_t(this),t=Bt(t),at(t);const{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let c=0;c<s;){const i=Math.min(o-this.pos,s-c);if(i===o){const f=Ut(t);for(;o<=s-c;c+=o)this.process(f,c);continue}r.set(t.subarray(c,c+i),this.pos),this.pos+=i,c+=i,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){_t(this),gn(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;n[c++]=128,ut(this.buffer.subarray(c)),this.padOffset>o-c&&(this.process(r,0),c=0);for(let u=c;u<o;u++)n[u]=0;Bn(r,o-8,BigInt(this.length*8),s),this.process(r,0);const i=Ut(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,h=this.get();if(l>h.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)i.setUint32(4*u,h[u],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:c,pos:i}=this;return t.destroyed=c,t.finished=s,t.length=o,t.pos=i,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const ot=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_n=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),it=new Uint32Array(64);class vn extends Un{constructor(t=32){super(64,t,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:t,B:n,C:r,D:o,E:s,F:c,G:i,H:f}=this;return[t,n,r,o,s,c,i,f]}set(t,n,r,o,s,c,i,f){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=i|0,this.H=f|0}process(t,n){for(let u=0;u<16;u++,n+=4)it[u]=t.getUint32(n,!1);for(let u=16;u<64;u++){const a=it[u-15],d=it[u-2],w=Q(a,7)^Q(a,18)^a>>>3,g=Q(d,17)^Q(d,19)^d>>>10;it[u]=g+it[u-7]+w+it[u-16]|0}let{A:r,B:o,C:s,D:c,E:i,F:f,G:l,H:h}=this;for(let u=0;u<64;u++){const a=Q(i,6)^Q(i,11)^Q(i,25),d=h+a+An(i,f,l)+_n[u]+it[u]|0,g=(Q(r,2)^Q(r,13)^Q(r,22))+In(r,o,s)|0;h=l,l=f,f=i,i=c+d|0,c=s,s=o,o=r,r=d+g|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,i=i+this.E|0,f=f+this.F|0,l=l+this.G|0,h=h+this.H|0,this.set(r,o,s,c,i,f,l,h)}roundClean(){ut(it)}destroy(){this.set(0,0,0,0,0,0,0,0),ut(this.buffer)}}const Xt=mn(()=>new vn),st=Xt;function Ln(e,t,n,r){St(e);const o=Le({dkLen:32,asyncTick:10},r),{c:s,dkLen:c,asyncTick:i}=o;if(W(s),W(c),W(i),s<1)throw new Error("iterations (c) should be >= 1");const f=fe(t),l=fe(n),h=new Uint8Array(c),u=mt.create(e,f),a=u._cloneInto().update(l);return{c:s,dkLen:c,asyncTick:i,DK:h,PRF:u,PRFSalt:a}}function Sn(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),ut(o),n}function Te(e,t,n,r){const{c:o,dkLen:s,DK:c,PRF:i,PRFSalt:f}=Ln(e,t,n,r);let l;const h=new Uint8Array(4),u=Ut(h),a=new Uint8Array(i.outputLen);for(let d=1,w=0;w<s;d++,w+=i.outputLen){const g=c.subarray(w,w+i.outputLen);u.setInt32(0,d,!1),(l=f._cloneInto(l)).update(h).digestInto(a),g.set(a.subarray(0,g.length));for(let p=1;p<o;p++){i._cloneInto(l).update(a).digestInto(a);for(let E=0;E<g.length;E++)g[E]^=a[E]}}return Sn(i,f,c,l,a)}function le(e,t,n,r,o,s){let c=e[t++]^n[r++],i=e[t++]^n[r++],f=e[t++]^n[r++],l=e[t++]^n[r++],h=e[t++]^n[r++],u=e[t++]^n[r++],a=e[t++]^n[r++],d=e[t++]^n[r++],w=e[t++]^n[r++],g=e[t++]^n[r++],p=e[t++]^n[r++],E=e[t++]^n[r++],q=e[t++]^n[r++],$=e[t++]^n[r++],O=e[t++]^n[r++],z=e[t++]^n[r++],C=c,H=i,M=f,L=l,_=h,S=u,k=a,x=d,b=w,m=g,U=p,B=E,A=q,y=$,I=O,v=z;for(let N=0;N<8;N+=2)_^=T(C+A|0,7),b^=T(_+C|0,9),A^=T(b+_|0,13),C^=T(A+b|0,18),m^=T(S+H|0,7),y^=T(m+S|0,9),H^=T(y+m|0,13),S^=T(H+y|0,18),I^=T(U+k|0,7),M^=T(I+U|0,9),k^=T(M+I|0,13),U^=T(k+M|0,18),L^=T(v+B|0,7),x^=T(L+v|0,9),B^=T(x+L|0,13),v^=T(B+x|0,18),H^=T(C+L|0,7),M^=T(H+C|0,9),L^=T(M+H|0,13),C^=T(L+M|0,18),k^=T(S+_|0,7),x^=T(k+S|0,9),_^=T(x+k|0,13),S^=T(_+x|0,18),B^=T(U+m|0,7),b^=T(B+U|0,9),m^=T(b+B|0,13),U^=T(m+b|0,18),A^=T(v+I|0,7),y^=T(A+v|0,9),I^=T(y+A|0,13),v^=T(I+y|0,18);o[s++]=c+C|0,o[s++]=i+H|0,o[s++]=f+M|0,o[s++]=l+L|0,o[s++]=h+_|0,o[s++]=u+S|0,o[s++]=a+k|0,o[s++]=d+x|0,o[s++]=w+b|0,o[s++]=g+m|0,o[s++]=p+U|0,o[s++]=E+B|0,o[s++]=q+A|0,o[s++]=$+y|0,o[s++]=O+I|0,o[s++]=z+v|0}function Nt(e,t,n,r,o){let s=r+0,c=r+16*o;for(let i=0;i<16;i++)n[c+i]=e[t+(2*o-1)*16+i];for(let i=0;i<o;i++,s+=16,t+=16)le(n,c,e,t,n,s),i>0&&(c+=16),le(n,s,e,t+=16,n,c)}function Cn(e,t,n){const r=Le({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:s,p:c,dkLen:i,asyncTick:f,maxmem:l,onProgress:h}=r;if(W(o),W(s),W(c),W(i),W(f),W(l),h!==void 0&&typeof h!="function")throw new Error("progressCb should be function");const u=128*s,a=u/4,d=Math.pow(2,32);if(o<=1||(o&o-1)!==0||o>d)throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");if(c<0||c>(d-1)*32/u)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(i<0||i>(d-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");if(u*(o+c)>l)throw new Error("Scrypt: memused is bigger than maxMem. Expected 128 * r * (N + p) > maxmem of "+l);const g=Te(Xt,e,t,{c:1,dkLen:u*c}),p=Kt(g),E=Kt(new Uint8Array(u*o)),q=Kt(new Uint8Array(u));let $=()=>{};if(h){const O=2*o*c,z=Math.max(Math.floor(O/1e4),1);let C=0;$=()=>{C++,h&&(!(C%z)||C===O)&&h(C/O)}}return{N:o,r:s,p:c,dkLen:i,blockSize32:a,V:E,B32:p,B:g,tmp:q,blockMixCb:$,asyncTick:f}}function kn(e,t,n,r,o){const s=Te(Xt,e,n,{c:1,dkLen:t});return ut(n,r,o),s}function Ke(e,t,n){const{N:r,r:o,p:s,dkLen:c,blockSize32:i,V:f,B32:l,B:h,tmp:u,blockMixCb:a}=Cn(e,t,n);ie(l);for(let d=0;d<s;d++){const w=i*d;for(let g=0;g<i;g++)f[g]=l[w+g];for(let g=0,p=0;g<r-1;g++)Nt(f,p,f,p+=i,o),a();Nt(f,(r-1)*i,l,w,o),a();for(let g=0;g<r;g++){const p=l[w+i-16]%r;for(let E=0;E<i;E++)u[E]=l[w+E]^f[p*i+E];Nt(u,0,l,w,o),a()}}return ie(l),kn(e,c,h,f,u)}function He(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ot(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function Mt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function j(e,...t){if(!He(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function he(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Tn(e,t){j(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function ct(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function xt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Kn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}const Hn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Nn(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Rt(e){if(typeof e=="string")e=Nn(e);else if(He(e))e=$t(e);else throw new Error("Uint8Array expected, got "+typeof e);return e}function Mn(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function qn(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}const On=(e,t)=>{function n(r,...o){if(j(r),!Hn)throw new Error("Non little-endian hardware is not yet supported");if(e.nonceLength!==void 0){const h=o[0];if(!h)throw new Error("nonce / iv required");e.varSizeNonce?j(h):j(h,e.nonceLength)}const s=e.tagLength;s&&o[1]!==void 0&&j(o[1]);const c=t(r,...o),i=(h,u)=>{if(u!==void 0){if(h!==2)throw new Error("cipher output not supported");j(u)}};let f=!1;return{encrypt(h,u){if(f)throw new Error("cannot encrypt() twice with same key + nonce");return f=!0,j(h),i(c.encrypt.length,u),c.encrypt(h,u)},decrypt(h,u){if(j(h),s&&h.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return i(c.decrypt.length,u),c.decrypt(h,u)}}}return Object.assign(n,e),n};function ue(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(n&&!$n(t))throw new Error("invalid output, must be aligned");return t}function de(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(n>>o&s),i=Number(n&s),f=4,l=0;e.setUint32(t+f,c,r),e.setUint32(t+l,i,r)}function Rn(e,t,n){Ot(n);const r=new Uint8Array(16),o=Kn(r);return de(o,0,BigInt(t),n),de(o,8,BigInt(e),n),r}function $n(e){return e.byteOffset%4===0}function $t(e){return Uint8Array.from(e)}const Ne=e=>Uint8Array.from(e.split("").map(t=>t.charCodeAt(0))),zn=Ne("expand 16-byte k"),jn=Ne("expand 32-byte k"),Vn=ct(zn),Pn=ct(jn);function K(e,t){return e<<t|e>>>32-t}function zt(e){return e.byteOffset%4===0}const At=64,Wn=16,Me=2**32-1,ye=new Uint32Array;function Gn(e,t,n,r,o,s,c,i){const f=o.length,l=new Uint8Array(At),h=ct(l),u=zt(o)&&zt(s),a=u?ct(o):ye,d=u?ct(s):ye;for(let w=0;w<f;c++){if(e(t,n,r,h,c,i),c>=Me)throw new Error("arx: counter overflow");const g=Math.min(At,f-w);if(u&&g===At){const p=w/4;if(w%4!==0)throw new Error("arx: invalid block position");for(let E=0,q;E<Wn;E++)q=p+E,d[q]=a[q]^h[E];w+=At;continue}for(let p=0,E;p<g;p++)E=w+p,s[E]=o[E]^l[p];w+=g}}function Xn(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:s,rounds:c}=Mn({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return Mt(o),Mt(c),Ot(s),Ot(n),(i,f,l,h,u=0)=>{j(i),j(f),j(l);const a=l.length;if(h===void 0&&(h=new Uint8Array(a)),j(h),Mt(u),u<0||u>=Me)throw new Error("arx: counter overflow");if(h.length<a)throw new Error(`arx: output (${h.length}) is shorter than data (${a})`);const d=[];let w=i.length,g,p;if(w===32)d.push(g=$t(i)),p=Pn;else if(w===16&&n)g=new Uint8Array(32),g.set(i),g.set(i,16),p=Vn,d.push(g);else throw new Error(`arx: invalid 32-byte key, got length=${w}`);zt(f)||d.push(f=$t(f));const E=ct(g);if(r){if(f.length!==24)throw new Error("arx: extended nonce must be 24 bytes");r(p,E,ct(f.subarray(0,16)),E),f=f.subarray(16)}const q=16-o;if(q!==f.length)throw new Error(`arx: nonce must be ${q} or 16 bytes`);if(q!==12){const O=new Uint8Array(12);O.set(f,s?0:12-f.length),f=O,d.push(f)}const $=ct(f);return Gn(e,p,E,$,l,h,u,c),xt(...d),h}}const R=(e,t)=>e[t++]&255|(e[t++]&255)<<8;class Yn{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=Rt(t),j(t,32);const n=R(t,0),r=R(t,2),o=R(t,4),s=R(t,6),c=R(t,8),i=R(t,10),f=R(t,12),l=R(t,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|s<<9)&8191,this.r[4]=(s>>>4|c<<12)&255,this.r[5]=c>>>1&8190,this.r[6]=(c>>>14|i<<2)&8191,this.r[7]=(i>>>11|f<<5)&8065,this.r[8]=(f>>>8|l<<8)&8191,this.r[9]=l>>>5&127;for(let h=0;h<8;h++)this.pad[h]=R(t,16+2*h)}process(t,n,r=!1){const o=r?0:2048,{h:s,r:c}=this,i=c[0],f=c[1],l=c[2],h=c[3],u=c[4],a=c[5],d=c[6],w=c[7],g=c[8],p=c[9],E=R(t,n+0),q=R(t,n+2),$=R(t,n+4),O=R(t,n+6),z=R(t,n+8),C=R(t,n+10),H=R(t,n+12),M=R(t,n+14);let L=s[0]+(E&8191),_=s[1]+((E>>>13|q<<3)&8191),S=s[2]+((q>>>10|$<<6)&8191),k=s[3]+(($>>>7|O<<9)&8191),x=s[4]+((O>>>4|z<<12)&8191),b=s[5]+(z>>>1&8191),m=s[6]+((z>>>14|C<<2)&8191),U=s[7]+((C>>>11|H<<5)&8191),B=s[8]+((H>>>8|M<<8)&8191),A=s[9]+(M>>>5|o),y=0,I=y+L*i+_*(5*p)+S*(5*g)+k*(5*w)+x*(5*d);y=I>>>13,I&=8191,I+=b*(5*a)+m*(5*u)+U*(5*h)+B*(5*l)+A*(5*f),y+=I>>>13,I&=8191;let v=y+L*f+_*i+S*(5*p)+k*(5*g)+x*(5*w);y=v>>>13,v&=8191,v+=b*(5*d)+m*(5*a)+U*(5*u)+B*(5*h)+A*(5*l),y+=v>>>13,v&=8191;let N=y+L*l+_*f+S*i+k*(5*p)+x*(5*g);y=N>>>13,N&=8191,N+=b*(5*w)+m*(5*d)+U*(5*a)+B*(5*u)+A*(5*h),y+=N>>>13,N&=8191;let P=y+L*h+_*l+S*f+k*i+x*(5*p);y=P>>>13,P&=8191,P+=b*(5*g)+m*(5*w)+U*(5*d)+B*(5*a)+A*(5*u),y+=P>>>13,P&=8191;let tt=y+L*u+_*h+S*l+k*f+x*i;y=tt>>>13,tt&=8191,tt+=b*(5*p)+m*(5*g)+U*(5*w)+B*(5*d)+A*(5*a),y+=tt>>>13,tt&=8191;let D=y+L*a+_*u+S*h+k*l+x*f;y=D>>>13,D&=8191,D+=b*i+m*(5*p)+U*(5*g)+B*(5*w)+A*(5*d),y+=D>>>13,D&=8191;let Z=y+L*d+_*a+S*u+k*h+x*l;y=Z>>>13,Z&=8191,Z+=b*f+m*i+U*(5*p)+B*(5*g)+A*(5*w),y+=Z>>>13,Z&=8191;let F=y+L*w+_*d+S*a+k*u+x*h;y=F>>>13,F&=8191,F+=b*l+m*f+U*i+B*(5*p)+A*(5*g),y+=F>>>13,F&=8191;let et=y+L*g+_*w+S*d+k*a+x*u;y=et>>>13,et&=8191,et+=b*h+m*l+U*f+B*i+A*(5*p),y+=et>>>13,et&=8191;let nt=y+L*p+_*g+S*w+k*d+x*a;y=nt>>>13,nt&=8191,nt+=b*u+m*h+U*l+B*f+A*i,y+=nt>>>13,nt&=8191,y=(y<<2)+y|0,y=y+I|0,I=y&8191,y=y>>>13,v+=y,s[0]=I,s[1]=v,s[2]=N,s[3]=P,s[4]=tt,s[5]=D,s[6]=Z,s[7]=F,s[8]=et,s[9]=nt}finalize(){const{h:t,pad:n}=this,r=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let i=2;i<10;i++)t[i]+=o,o=t[i]>>>13,t[i]&=8191;t[0]+=o*5,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let i=1;i<10;i++)r[i]=t[i]+o,o=r[i]>>>13,r[i]&=8191;r[9]-=8192;let s=(o^1)-1;for(let i=0;i<10;i++)r[i]&=s;s=~s;for(let i=0;i<10;i++)t[i]=t[i]&s|r[i];t[0]=(t[0]|t[1]<<13)&65535,t[1]=(t[1]>>>3|t[2]<<10)&65535,t[2]=(t[2]>>>6|t[3]<<7)&65535,t[3]=(t[3]>>>9|t[4]<<4)&65535,t[4]=(t[4]>>>12|t[5]<<1|t[6]<<14)&65535,t[5]=(t[6]>>>2|t[7]<<11)&65535,t[6]=(t[7]>>>5|t[8]<<8)&65535,t[7]=(t[8]>>>8|t[9]<<5)&65535;let c=t[0]+n[0];t[0]=c&65535;for(let i=1;i<8;i++)c=(t[i]+n[i]|0)+(c>>>16)|0,t[i]=c&65535;xt(r)}update(t){he(this),t=Rt(t),j(t);const{buffer:n,blockLen:r}=this,o=t.length;for(let s=0;s<o;){const c=Math.min(r-this.pos,o-s);if(c===r){for(;r<=o-s;s+=r)this.process(t,s);continue}n.set(t.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===r&&(this.process(n,0,!1),this.pos=0)}return this}destroy(){xt(this.h,this.r,this.buffer,this.pad)}digestInto(t){he(this),Tn(t,this),this.finished=!0;const{buffer:n,h:r}=this;let{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let s=0;for(let c=0;c<8;c++)t[s++]=r[c]>>>0,t[s++]=r[c]>>>8;return t}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}}function Dn(e){const t=(r,o)=>e(o).update(Rt(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}const Zn=Dn(e=>new Yn(e));function Fn(e,t,n,r,o,s=20){let c=e[0],i=e[1],f=e[2],l=e[3],h=t[0],u=t[1],a=t[2],d=t[3],w=t[4],g=t[5],p=t[6],E=t[7],q=o,$=n[0],O=n[1],z=n[2],C=c,H=i,M=f,L=l,_=h,S=u,k=a,x=d,b=w,m=g,U=p,B=E,A=q,y=$,I=O,v=z;for(let P=0;P<s;P+=2)C=C+_|0,A=K(A^C,16),b=b+A|0,_=K(_^b,12),C=C+_|0,A=K(A^C,8),b=b+A|0,_=K(_^b,7),H=H+S|0,y=K(y^H,16),m=m+y|0,S=K(S^m,12),H=H+S|0,y=K(y^H,8),m=m+y|0,S=K(S^m,7),M=M+k|0,I=K(I^M,16),U=U+I|0,k=K(k^U,12),M=M+k|0,I=K(I^M,8),U=U+I|0,k=K(k^U,7),L=L+x|0,v=K(v^L,16),B=B+v|0,x=K(x^B,12),L=L+x|0,v=K(v^L,8),B=B+v|0,x=K(x^B,7),C=C+S|0,v=K(v^C,16),U=U+v|0,S=K(S^U,12),C=C+S|0,v=K(v^C,8),U=U+v|0,S=K(S^U,7),H=H+k|0,A=K(A^H,16),B=B+A|0,k=K(k^B,12),H=H+k|0,A=K(A^H,8),B=B+A|0,k=K(k^B,7),M=M+x|0,y=K(y^M,16),b=b+y|0,x=K(x^b,12),M=M+x|0,y=K(y^M,8),b=b+y|0,x=K(x^b,7),L=L+_|0,I=K(I^L,16),m=m+I|0,_=K(_^m,12),L=L+_|0,I=K(I^L,8),m=m+I|0,_=K(_^m,7);let N=0;r[N++]=c+C|0,r[N++]=i+H|0,r[N++]=f+M|0,r[N++]=l+L|0,r[N++]=h+_|0,r[N++]=u+S|0,r[N++]=a+k|0,r[N++]=d+x|0,r[N++]=w+b|0,r[N++]=g+m|0,r[N++]=p+U|0,r[N++]=E+B|0,r[N++]=q+A|0,r[N++]=$+y|0,r[N++]=O+I|0,r[N++]=z+v|0}const Qn=Xn(Fn,{counterRight:!1,counterLength:4,allowShortKeys:!1}),Jn=new Uint8Array(16),ge=(e,t)=>{e.update(t);const n=t.length%16;n&&e.update(Jn.subarray(n))},tr=new Uint8Array(32);function pe(e,t,n,r,o){const s=e(t,n,tr),c=Zn.create(s);o&&ge(c,o),ge(c,r);const i=Rn(r.length,o?o.length:0,!0);c.update(i);const f=c.digest();return xt(s,i),f}const er=e=>(t,n,r)=>({encrypt(s,c){const i=s.length;c=ue(i+16,c,!1),c.set(s);const f=c.subarray(0,-16);e(t,n,f,f,1);const l=pe(e,t,n,f,r);return c.set(l,i),xt(l),c},decrypt(s,c){c=ue(s.length-16,c,!1);const i=s.subarray(0,-16),f=s.subarray(-16),l=pe(e,t,n,i,r);if(!qn(f,l))throw new Error("invalid tag");return c.set(s.subarray(0,-16)),e(t,n,c,c,1),xt(l),c}}),bt=On({blockSize:64,nonceLength:12,tagLength:16},er(Qn));const qe=BigInt(0),we=BigInt(1);function Oe(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?qe:BigInt("0x"+e)}function nr(e){return Oe(Ue(e))}function jt(e){return at(e),Oe(Ue(Uint8Array.from(e).reverse()))}function Re(e,t){return _e(e.toString(16).padStart(t*2,"0"))}function $e(e,t){return Re(e,t).reverse()}function xe(e,t,n){let r;if(typeof t=="string")try{r=_e(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(Ae(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=r.length;if(typeof n=="number"&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}const qt=e=>typeof e=="bigint"&&qe<=e;function rr(e,t,n){return qt(e)&&qt(t)&&qt(n)&&t<=e&&e<n}function be(e,t,n,r){if(!rr(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}const sr=e=>(we<<BigInt(e))-we;function or(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(o,s,c){const i=e[o];if(c&&i===void 0)return;const f=typeof i;if(f!==s||i===null)throw new Error(`param "${o}" is invalid: expected ${s}, got ${f}`)}Object.entries(t).forEach(([o,s])=>r(o,s,!1)),Object.entries(n).forEach(([o,s])=>r(o,s,!0))}const V=BigInt(0),G=BigInt(1),ht=BigInt(2),ze=BigInt(3),je=BigInt(4),Ve=BigInt(5),ir=BigInt(7),Pe=BigInt(8),cr=BigInt(9),We=BigInt(16);function X(e,t){const n=e%t;return n>=V?n:t+n}function Y(e,t,n){let r=e;for(;t-- >V;)r*=r,r%=n;return r}function me(e,t){if(e===V)throw new Error("invert: expected non-zero number");if(t<=V)throw new Error("invert: expected positive modulus, got "+t);let n=X(e,t),r=t,o=V,s=G;for(;n!==V;){const i=r/n,f=r%n,l=o-s*i;r=n,n=f,o=s,s=l}if(r!==G)throw new Error("invert: does not exist");return X(o,t)}function Yt(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function Ge(e,t){const n=(e.ORDER+G)/je,r=e.pow(t,n);return Yt(e,r,t),r}function fr(e,t){const n=(e.ORDER-Ve)/Pe,r=e.mul(t,ht),o=e.pow(r,n),s=e.mul(t,o),c=e.mul(e.mul(s,ht),o),i=e.mul(s,e.sub(c,e.ONE));return Yt(e,i,t),i}function ar(e){const t=Dt(e),n=Xe(e),r=n(t,t.neg(t.ONE)),o=n(t,r),s=n(t,t.neg(r)),c=(e+ir)/We;return(i,f)=>{let l=i.pow(f,c),h=i.mul(l,r);const u=i.mul(l,o),a=i.mul(l,s),d=i.eql(i.sqr(h),f),w=i.eql(i.sqr(u),f);l=i.cmov(l,h,d),h=i.cmov(a,u,w);const g=i.eql(i.sqr(h),f),p=i.cmov(l,h,g);return Yt(i,p,f),p}}function Xe(e){if(e<ze)throw new Error("sqrt is not defined for small field");let t=e-G,n=0;for(;t%ht===V;)t/=ht,n++;let r=ht;const o=Dt(e);for(;Ee(o,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return Ge;let s=o.pow(r,t);const c=(t+G)/ht;return function(f,l){if(f.is0(l))return l;if(Ee(f,l)!==1)throw new Error("Cannot find square root");let h=n,u=f.mul(f.ONE,s),a=f.pow(l,t),d=f.pow(l,c);for(;!f.eql(a,f.ONE);){if(f.is0(a))return f.ZERO;let w=1,g=f.sqr(a);for(;!f.eql(g,f.ONE);)if(w++,g=f.sqr(g),w===h)throw new Error("Cannot find square root");const p=G<<BigInt(h-w-1),E=f.pow(u,p);h=w,u=f.sqr(E),a=f.mul(a,u),d=f.mul(d,E)}return d}}function lr(e){return e%je===ze?Ge:e%Pe===Ve?fr:e%We===cr?ar(e):Xe(e)}function hr(e,t,n){if(n<V)throw new Error("invalid exponent, negatives unsupported");if(n===V)return e.ONE;if(n===G)return t;let r=e.ONE,o=t;for(;n>V;)n&G&&(r=e.mul(r,o)),o=e.sqr(o),n>>=G;return r}function ur(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((c,i,f)=>e.is0(i)?c:(r[f]=c,e.mul(c,i)),e.ONE),s=e.inv(o);return t.reduceRight((c,i,f)=>e.is0(i)?c:(r[f]=e.mul(c,r[f]),e.mul(c,i)),s),r}function Ee(e,t){const n=(e.ORDER-G)/ht,r=e.pow(t,n),o=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!o&&!s&&!c)throw new Error("invalid Legendre symbol result");return o?1:s?0:-1}function dr(e,t){t!==void 0&&W(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Dt(e,t,n=!1,r={}){if(e<=V)throw new Error("invalid field: expected ORDER > 0, got "+e);let o,s,c=!1,i;if(typeof t=="object"&&t!=null){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const a=t;a.BITS&&(o=a.BITS),a.sqrt&&(s=a.sqrt),typeof a.isLE=="boolean"&&(n=a.isLE),typeof a.modFromBytes=="boolean"&&(c=a.modFromBytes),i=a.allowedLengths}else typeof t=="number"&&(o=t),r.sqrt&&(s=r.sqrt);const{nBitLength:f,nByteLength:l}=dr(e,o);if(l>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let h;const u=Object.freeze({ORDER:e,isLE:n,BITS:f,BYTES:l,MASK:sr(f),ZERO:V,ONE:G,allowedLengths:i,create:a=>X(a,e),isValid:a=>{if(typeof a!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof a);return V<=a&&a<e},is0:a=>a===V,isValidNot0:a=>!u.is0(a)&&u.isValid(a),isOdd:a=>(a&G)===G,neg:a=>X(-a,e),eql:(a,d)=>a===d,sqr:a=>X(a*a,e),add:(a,d)=>X(a+d,e),sub:(a,d)=>X(a-d,e),mul:(a,d)=>X(a*d,e),pow:(a,d)=>hr(u,a,d),div:(a,d)=>X(a*me(d,e),e),sqrN:a=>a*a,addN:(a,d)=>a+d,subN:(a,d)=>a-d,mulN:(a,d)=>a*d,inv:a=>me(a,e),sqrt:s||(a=>(h||(h=lr(e)),h(u,a))),toBytes:a=>n?$e(a,l):Re(a,l),fromBytes:(a,d=!0)=>{if(i){if(!i.includes(a.length)||a.length>l)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+a.length);const g=new Uint8Array(l);g.set(a,n?0:g.length-a.length),a=g}if(a.length!==l)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+a.length);let w=n?jt(a):nr(a);if(c&&(w=X(w,e)),!d&&!u.isValid(w))throw new Error("invalid field element: outside of range 0..ORDER");return w},invertBatch:a=>ur(u,a),cmov:(a,d,w)=>w?d:a});return Object.freeze(u)}const Et=BigInt(0),yt=BigInt(1),It=BigInt(2);function yr(e){return or(e,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...e})}function gr(e){const t=yr(e),{P:n,type:r,adjustScalarBytes:o,powPminus2:s,randomBytes:c}=t,i=r==="x25519";if(!i&&r!=="x448")throw new Error("invalid type");const f=c||ft,l=i?255:448,h=i?32:56,u=BigInt(i?9:5),a=BigInt(i?121665:39081),d=i?It**BigInt(254):It**BigInt(447),w=i?BigInt(8)*It**BigInt(251)-yt:BigInt(4)*It**BigInt(445)-yt,g=d+w+yt,p=x=>X(x,n),E=q(u);function q(x){return $e(p(x),h)}function $(x){const b=xe("u coordinate",x,h);return i&&(b[31]&=127),p(jt(b))}function O(x){return jt(o(xe("scalar",x,h)))}function z(x,b){const m=M($(b),O(x));if(m===Et)throw new Error("invalid private or public key received");return q(m)}function C(x){return z(x,E)}function H(x,b,m){const U=p(x*(b-m));return b=p(b-U),m=p(m+U),{x_2:b,x_3:m}}function M(x,b){be("u",x,Et,n),be("scalar",b,d,g);const m=b,U=x;let B=yt,A=Et,y=x,I=yt,v=Et;for(let P=BigInt(l-1);P>=Et;P--){const tt=m>>P&yt;v^=tt,{x_2:B,x_3:y}=H(v,B,y),{x_2:A,x_3:I}=H(v,A,I),v=tt;const D=B+A,Z=p(D*D),F=B-A,et=p(F*F),nt=Z-et,rn=y+I,sn=y-I,te=p(sn*D),ee=p(rn*F),ne=te+ee,re=te-ee;y=p(ne*ne),I=p(U*p(re*re)),B=p(Z*et),A=p(nt*(Z+p(a*nt)))}({x_2:B,x_3:y}=H(v,B,y)),{x_2:A,x_3:I}=H(v,A,I);const N=s(A);return p(B*N)}const L={secretKey:h,publicKey:h,seed:h},_=(x=f(h))=>(at(x,L.seed),x);function S(x){const b=_(x);return{secretKey:b,publicKey:C(b)}}return{keygen:S,getSharedSecret:(x,b)=>z(x,b),getPublicKey:x=>C(x),scalarMult:z,scalarMultBase:C,utils:{randomSecretKey:_,randomPrivateKey:_},GuBytes:E.slice(),lengths:L}}const pr=BigInt(1),Be=BigInt(2),wr=BigInt(3),xr=BigInt(5),br=BigInt(8),Ye=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),mr={p:Ye,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:br,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function Er(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),s=Ye,i=e*e%s*e%s,f=Y(i,Be,s)*i%s,l=Y(f,pr,s)*e%s,h=Y(l,xr,s)*l%s,u=Y(h,t,s)*h%s,a=Y(u,n,s)*u%s,d=Y(a,r,s)*a%s,w=Y(d,o,s)*d%s,g=Y(w,o,s)*d%s,p=Y(g,t,s)*h%s;return{pow_p_5_8:Y(p,Be,s)*e%s,b2:i}}function Br(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Ar=Dt(mr.p,{isLE:!0}),Vt=(()=>{const e=Ar.ORDER;return gr({P:e,type:"x25519",powPminus2:t=>{const{pow_p_5_8:n,b2:r}=Er(t);return X(Y(n,wr,e)*r,e)},adjustScalarBytes:Br})})(),De=!1;async function Ze(e,t){try{return await e()}catch(n){if(n instanceof ReferenceError||n instanceof DOMException&&n.name==="NotSupportedError")return await t();throw n}}async function Zt(e,t){return await Ze(async()=>{const n=Pt(e)?e:await Ur(e),r=await crypto.subtle.importKey("raw",t,{name:"X25519"},De,[]);return new Uint8Array(await crypto.subtle.deriveBits({name:"X25519",public:r},n,256))},()=>{if(Pt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Vt.scalarMult(e,t)})}async function vt(e){return await Ze(async()=>Zt(e,Vt.GuBytes),()=>{if(Pt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Vt.scalarMultBase(e)})}const Ir=new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,110,4,34,4,32]);async function Ur(e){if(e.length!==32)throw new Error("X25519 private key must be 32 bytes");const t=new Uint8Array([...Ir,...e]);return crypto.subtle.importKey("pkcs8",t,{name:"X25519"},De,["deriveBits"])}function Pt(e){return typeof CryptoKey<"u"&&e instanceof CryptoKey}class _r{s;transcript=[];buf=new Uint8Array(0);constructor(t){this.s=t.getReader()}async readLine(){const t=[];for(;;){const n=this.buf.indexOf(10);if(n>=0)return t.push(this.buf.subarray(0,n)),this.transcript.push(this.buf.subarray(0,n+1)),this.buf=this.buf.subarray(n+1),vr(gt(t));this.buf.length>0&&(t.push(this.buf),this.transcript.push(this.buf));const r=await this.s.read();if(r.done)return this.buf=gt(t),null;this.buf=r.value}}close(){return this.s.releaseLock(),{rest:this.buf,transcript:gt(this.transcript)}}}function vr(e){return e.forEach(t=>{if(t<32||t>126)throw Error("invalid non-ASCII byte in header")}),new TextDecoder().decode(e)}function gt(e){const t=e.reduce(((o,s)=>o+s.length),0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Lt(e,...t){return e.pipeThrough(new TransformStream({start(n){for(const r of t)n.enqueue(r)}}))}function Wt(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function Fe(e){if(!(e instanceof ReadableStream))throw new Error("readAll expects a ReadableStream<Uint8Array>");return new Uint8Array(await new Response(e).arrayBuffer())}async function Lr(e){if(!(e instanceof ReadableStream))throw new Error("readAllString expects a ReadableStream<Uint8Array>");return await new Response(e).text()}async function Sr(e,t){const n=e.getReader(),r=[];let o=0;for(;o<t;){const{done:f,value:l}=await n.read();if(f)throw Error("stream ended before reading "+t+" bytes");r.push(l),o+=l.length}n.releaseLock();const s=gt(r),c=s.subarray(0,t),i=Lt(e,s.subarray(t));return{data:c,rest:i}}class Ct{args;body;constructor(t,n){this.args=t,this.body=n}}async function Cr(e){const t=await e.readLine();if(t===null)throw Error("invalid stanza");const n=t.split(" ");if(n.length<2||n.shift()!=="->")return{next:t};for(const s of n)if(s.length===0)throw Error("invalid stanza");const r=[];for(;;){const s=await e.readLine();if(s===null)throw Error("invalid stanza");const c=J.decode(s);if(c.length>48)throw Error("invalid stanza");if(r.push(c),c.length<48)break}const o=gt(r);return{s:new Ct(n,o)}}async function kr(e){const t=new _r(e),n=await t.readLine();if(n!=="age-encryption.org/v1")throw Error("invalid version "+(n??"line"));const r=[];for(;;){const{s:o,next:s}=await Cr(t);if(o!==void 0){r.push(o);continue}if(!s.startsWith("--- "))throw Error("invalid header");const c=J.decode(s.slice(4)),{rest:i,transcript:f}=t.close(),l=f.slice(0,f.length-1-s.length+3);return{stanzas:r,headerNoMAC:l,MAC:c,headerSize:f.length,rest:Lt(e,i)}}}function Qe(e){const t=[];t.push(`age-encryption.org/v1
|
|
2
|
+
`);for(const n of e){t.push("-> "+n.args.join(" ")+`
|
|
3
|
+
`);for(let r=0;r<n.body.length;r+=48){let o=r+48;o>n.body.length&&(o=n.body.length),t.push(J.encode(n.body.subarray(r,o))+`
|
|
4
|
+
`)}n.body.length%48===0&&t.push(`
|
|
5
|
+
`)}return t.push("---"),new TextEncoder().encode(t.join(""))}function Tr(e,t){return gt([Qe(e),new TextEncoder().encode(" "+J.encode(t)+`
|
|
6
|
+
`)])}function Fr(){const e=ft(32),t=pt.encodeFromBytes("AGE-SECRET-KEY-",e).toUpperCase();return Promise.resolve(t)}async function Qr(e){let t;if(Je(e))t=e;else{const r=pt.decodeToBytes(e);if(!e.startsWith("AGE-SECRET-KEY-1")||r.prefix.toUpperCase()!=="AGE-SECRET-KEY-"||r.bytes.length!==32)throw Error("invalid identity");t=r.bytes}const n=await vt(t);return pt.encodeFromBytes("age",n)}class Kr{recipient;constructor(t){const n=pt.decodeToBytes(t);if(!t.startsWith("age1")||n.prefix.toLowerCase()!=="age"||n.bytes.length!==32)throw Error("invalid recipient");this.recipient=n.bytes}async wrapFileKey(t){const n=ft(32),r=await vt(n),o=await Zt(n,this.recipient),s=new Uint8Array(r.length+this.recipient.length);s.set(r),s.set(this.recipient,r.length);const c=wt(st,o,s,"age-encryption.org/v1/X25519",32);return[new Ct(["X25519",J.encode(r)],Ft(t,c))]}}class Hr{identity;recipient;constructor(t){if(Je(t)){this.identity=t,this.recipient=vt(t);return}const n=pt.decodeToBytes(t);if(!t.startsWith("AGE-SECRET-KEY-1")||n.prefix.toUpperCase()!=="AGE-SECRET-KEY-"||n.bytes.length!==32)throw Error("invalid identity");this.identity=n.bytes,this.recipient=vt(n.bytes)}async unwrapFileKey(t){for(const n of t){if(n.args.length<1||n.args[0]!=="X25519")continue;if(n.args.length!==2)throw Error("invalid X25519 stanza");const r=J.decode(n.args[1]);if(r.length!==32)throw Error("invalid X25519 stanza");const o=await Zt(this.identity,r),s=await this.recipient,c=new Uint8Array(r.length+s.length);c.set(r),c.set(s,r.length);const i=wt(st,o,c,"age-encryption.org/v1/X25519",32),f=Qt(n.body,i);if(f!==null)return f}return null}}class Nr{passphrase;logN;constructor(t,n){this.passphrase=t,this.logN=n}wrapFileKey(t){const n=ft(16),r="age-encryption.org/v1/scrypt",o=new Uint8Array(r.length+16);o.set(new TextEncoder().encode(r)),o.set(n,r.length);const s=Ke(this.passphrase,o,{N:2**this.logN,r:8,p:1,dkLen:32});return[new Ct(["scrypt",J.encode(n),this.logN.toString()],Ft(t,s))]}}class Mr{passphrase;constructor(t){this.passphrase=t}unwrapFileKey(t){for(const n of t){if(n.args.length<1||n.args[0]!=="scrypt")continue;if(t.length!==1)throw Error("scrypt recipient is not the only one in the header");if(n.args.length!==3||!/^[1-9][0-9]*$/.test(n.args[2]))throw Error("invalid scrypt stanza");const r=J.decode(n.args[1]);if(r.length!==16)throw Error("invalid scrypt stanza");const o=Number(n.args[2]);if(o>20)throw Error("scrypt work factor is too high");const s="age-encryption.org/v1/scrypt",c=new Uint8Array(s.length+16);c.set(new TextEncoder().encode(s)),c.set(r,s.length);const i=Ke(this.passphrase,c,{N:2**o,r:8,p:1,dkLen:32}),f=Qt(n.body,i);if(f!==null)return f}return null}}function Ft(e,t){const n=new Uint8Array(12);return bt(t,n).encrypt(e)}function Qt(e,t){if(e.length!==32)throw Error("invalid stanza");const n=new Uint8Array(12);try{return bt(t,n).decrypt(e)}catch{return null}}function Je(e){return typeof CryptoKey<"u"&&e instanceof CryptoKey}const lt=16,Jt=64*1024,Gt=Jt+lt;function qr(e){const t=new Uint8Array(12),n=()=>{for(let c=t.length-2;c>=0&&(t[c]++,t[c]===0);c--);};let r=!0;const o=new Uint8Array(Gt);let s=0;return new TransformStream({transform(c,i){for(;c.length>0;){if(s===o.length){const l=bt(e,t).decrypt(o);i.enqueue(l),n(),s=0,r=!1}const f=Math.min(o.length-s,c.length);o.set(c.subarray(0,f),s),s+=f,c=c.subarray(f)}},flush(c){t[11]=1;const i=bt(e,t).decrypt(o.subarray(0,s));if(!r&&i.length===0)throw new Error("final chunk is empty");c.enqueue(i)}})}function Or(e){if(e<lt)throw Error("ciphertext is too small");if(e===lt)return 0;const t=Math.floor(e/Gt),n=e%Gt;if(0<n&&n<=lt)throw Error("ciphertext size is invalid");let r=e;return r-=t*lt,r-=n>0?lt:0,r}function Rr(e){const t=new Uint8Array(12),n=()=>{for(let s=t.length-2;s>=0&&(t[s]++,t[s]===0);s--);},r=new Uint8Array(Jt);let o=0;return new TransformStream({transform(s,c){for(;s.length>0;){if(o===r.length){const f=bt(e,t).encrypt(r);c.enqueue(f),n(),o=0}const i=Math.min(r.length-o,s.length);r.set(s.subarray(0,i),o),o+=i,s=s.subarray(i)}},flush(s){t[11]=1;const c=bt(e,t).encrypt(r.subarray(0,o));s.enqueue(c)}})}function $r(e){const t=Math.max(1,Math.ceil(e/Jt));return e+lt*t}function kt(e){if(e.length===0)throw Error("cbor: unexpected EOF");const t=e[0]>>5,n=e[0]&31;if(n<=23)return[t,n,e.subarray(1)];if(n===24){if(e.length<2)throw Error("cbor: unexpected EOF");return[t,e[1],e.subarray(2)]}if(n===25){if(e.length<3)throw Error("cbor: unexpected EOF");return[t,e[1]<<8|e[2],e.subarray(3)]}throw Error("cbor: unsupported argument encoding")}function zr(e){const[t,n,r]=kt(e);if(t!==0)throw Error("cbor: expected unsigned integer");return[n,r]}function jr(e){const[t,n,r]=kt(e);if(t!==2)throw Error("cbor: expected byte string");if(n>r.length)throw Error("cbor: unexpected EOF");return[r.subarray(0,n),r.subarray(n)]}function tn(e){const[t,n,r]=kt(e);if(t!==3)throw Error("cbor: expected text string");if(n>r.length)throw Error("cbor: unexpected EOF");return[new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(r.subarray(0,n)),r.subarray(n)]}function Vr(e){const[t,n,r]=kt(e);if(t!==4)throw Error("cbor: expected array");let o=r;const s=[];for(let c=0;c<n;c++){let i;[i,o]=tn(o),s.push(i)}return[s,o]}const Pr="AGE-PLUGIN-FIDO2PRF-";function Wr(e){const t=pt.decodeToBytes(e);if(!e.startsWith(Pr+"1"))throw Error("invalid identity");const[n,r]=zr(t.bytes);if(n!==1)throw Error("unsupported identity version");const[o,s]=jr(r),[c,i]=tn(s),[f]=Vr(i);return[o,c,f]}const Tt="age-encryption.org/fido2prf";class en{credId;transports;rpId;constructor(t){if(t?.identity){const[n,r,o]=Wr(t.identity);this.credId=n,this.transports=o,this.rpId=r}else this.rpId=t?.rpId}async getCredential(t){const r=(await navigator.credentials.get({publicKey:{allowCredentials:this.credId?[{id:this.credId,transports:this.transports,type:"public-key"}]:[],challenge:ft(16),extensions:{prf:{eval:Gr(t)}},userVerification:"required",rpId:this.rpId}})).getClientExtensionResults().prf?.results;if(r===void 0)throw Error("PRF extension not available (need macOS 15+, Chrome 132+)");return r}}class Jr extends en{async wrapFileKey(t){const n=ft(16),r=await this.getCredential(n),o=nn(r);return[new Ct([Tt,J.encode(n)],Ft(t,o))]}}class ts extends en{async unwrapFileKey(t){for(const n of t){if(n.args.length<1||n.args[0]!==Tt)continue;if(n.args.length!==2)throw Error("invalid prf stanza");const r=J.decode(n.args[1]);if(r.length!==16)throw Error("invalid prf stanza");const o=await this.getCredential(r),s=nn(o),c=Qt(n.body,s);if(c!==null)return c}return null}}function Gr(e){const t=new TextEncoder().encode(Tt),n=new Uint8Array(t.length+e.length+1);n.set(t,0),n[t.length]=1,n.set(e,t.length+1);const r=new Uint8Array(t.length+e.length+1);return r.set(t,0),r[t.length]=2,r.set(e,t.length+1),{first:n,second:r}}function nn(e){if(e.second===void 0)throw Error("Missing second PRF result");const t=new Uint8Array(e.first.byteLength+e.second.byteLength);return t.set(new Uint8Array(e.first),0),t.set(new Uint8Array(e.second),e.first.byteLength),ke(st,t,Tt)}class es{passphrase=null;scryptWorkFactor=18;recipients=[];setPassphrase(t){if(this.passphrase!==null)throw new Error("can encrypt to at most one passphrase");if(this.recipients.length!==0)throw new Error("can't encrypt to both recipients and passphrases");this.passphrase=t}setScryptWorkFactor(t){this.scryptWorkFactor=t}addRecipient(t){if(this.passphrase!==null)throw new Error("can't encrypt to both recipients and passphrases");typeof t=="string"?this.recipients.push(new Kr(t)):this.recipients.push(t)}async encrypt(t){const n=ft(16),r=[];let o=this.recipients;this.passphrase!==null&&(o=[new Nr(this.passphrase,this.scryptWorkFactor)]);for(const u of o)r.push(...await u.wrapFileKey(n));const s=wt(st,n,void 0,"header",32),c=mt(st,s,Qe(r)),i=Tr(r,c),f=ft(16),l=wt(st,n,f,"payload",32),h=Rr(l);return t instanceof ReadableStream?Object.assign(Lt(t.pipeThrough(h),i,f),{size:u=>$r(u)+i.length+f.length}):(typeof t=="string"&&(t=new TextEncoder().encode(t)),await Fe(Lt(Wt(t).pipeThrough(h),i,f)))}}class ns{identities=[];addPassphrase(t){this.identities.push(new Mr(t))}addIdentity(t){typeof t=="string"||Yr(t)?this.identities.push(new Hr(t)):this.identities.push(t)}async decrypt(t,n){const r=t instanceof ReadableStream?t:Wt(t),{fileKey:o,headerSize:s,rest:c}=await this.decryptHeaderInternal(r),{data:i,rest:f}=await Sr(c,16),l=wt(st,o,i,"payload",32),h=qr(l),u=f.pipeThrough(h),a=Object.assign(u,{size:d=>Or(d-s-i.length)});return t instanceof ReadableStream?a:n==="text"?await Lr(u):await Fe(u)}async decryptHeader(t){return(await this.decryptHeaderInternal(Wt(t))).fileKey}async decryptHeaderInternal(t){const n=await kr(t),r=await this.unwrapFileKey(n.stanzas);if(r===null)throw Error("no identity matched any of the file's recipients");const o=wt(st,r,void 0,"header",32),s=mt(st,o,n.headerNoMAC);if(!Xr(n.MAC,s))throw Error("invalid header HMAC");return{fileKey:r,headerSize:n.headerSize,rest:n.rest}}async unwrapFileKey(t){for(const n of this.identities){const r=await n.unwrapFileKey(t);if(r!==null)return r}return null}}function Xr(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function Yr(e){return typeof CryptoKey<"u"&&e instanceof CryptoKey}const rs=on({__name:"PasswordField",props:{modelValue:{},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}},emits:["update:modelValue","update:visible"],setup(e,{expose:t}){const n=se(e,"modelValue"),r=se(e,"visible"),o=cn("textField");return t({textField:o}),(s,c)=>(fn(),an(ln,{ref_key:"textField",ref:o,modelValue:n.value,"onUpdate:modelValue":c[1]||(c[1]=i=>n.value=i),variant:"outlined",density:"compact",type:r.value?"text":"password"},{"append-inner":oe(()=>[hn(un,{onClick:c[0]||(c[0]=i=>r.value=!r.value)},{default:oe(()=>[dn(yn(r.value?"mdi-eye-off":"mdi-eye"),1)]),_:1})]),_:1},8,["modelValue","type"]))}});export{ns as D,es as E,Jr as W,rs as _,ts as a,Fr as g,Qr as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as w,v as j,t as D,n as S}from"#entry";import{E as I,aG as v,V as P,Y as V,D as e,_ as n,a2 as B,W as r,$,a0 as x,ao as W,aP as b,aO as f,aQ as A}from"./
|
|
1
|
+
import{s as w,v as j,t as D,n as S}from"#entry";import{E as I,aG as v,V as P,Y as V,D as e,_ as n,a2 as B,W as r,$,a0 as x,ao as W,aP as b,aO as f,aQ as A}from"./77UvFSdd.js";import{_ as L}from"./DvCXikgN.js";import{I as C,_ as M}from"./B9BJCsIg.js";import{S as U}from"./C5DRPdxC.js";import{D as z,a as E}from"./hunqYsQf.js";import{_ as T}from"./BbWhHw7B.js";import{S as H,b as k}from"./CCBTuGSI.js";import{w as N}from"./M3Z1JMP1.js";import{_ as R}from"./BgvYz3Nr.js";import{_,a as h}from"./m4Sxwg8n.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./BxvmPvww.js";import"./fbfpKHgl.js";const F={class:"d-flex justify-end gap-1"},G=I({__name:"WorkerVersionsTable",props:b({projectId:{},workerId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:b(["viewLogs","restartVersion"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(a,{emit:i}){const l=i,p=v(a,"search"),u=v(a,"sortBy"),o=v(a,"page"),g=v(a,"itemsPerPage"),s=[{title:"Status",key:"status",sortable:!1},k.name,k.id,{title:"Digest",key:"digest",sortable:!1},{title:"Enabled",key:"enabled",sortable:!1},k.createdAt,k.actions];return(y,d)=>(P(),V(e(H),{search:p.value,"onUpdate:search":d[0]||(d[0]=t=>p.value=t),"sort-by":u.value,"onUpdate:sortBy":d[1]||(d[1]=t=>u.value=t),page:o.value,"onUpdate:page":d[2]||(d[2]=t=>o.value=t),"items-per-page":g.value,"onUpdate:itemsPerPage":d[3]||(d[3]=t=>g.value=t),headers:s,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.status":n(({item:t})=>[r(e(R),{status:t.status,"status-map":e(N)},null,8,["status","status-map"])]),"item.digest":n(({item:t})=>[r(e(C),{value:t.digest,truncate:!0,"copy-full-text":"Copy full digest"},null,8,["value"])]),"item.enabled":n(({item:t})=>[r(W,{size:"small",color:t.enabled?"success":"secondary",class:"text-uppercase"},{default:n(()=>[$(x(t.enabled?"Enabled":"Disabled"),1)]),_:2},1032,["color"])]),"item.actions":n(({item:t})=>[B("div",F,[r(e(_),{"page-name":"settings.worker-version-details","page-params":{projectId:a.projectId,workerId:a.workerId,versionId:t.id}},null,8,["page-params"]),r(e(h),{icon:"mdi-restart",tooltip:"Restart Worker Version",variant:"text",size:"small",onClick:m=>l("restartVersion",t.id)},null,8,["onClick"]),r(e(h),{icon:"mdi-console",tooltip:"View Logs",variant:"text",size:"small",onClick:m=>l("viewLogs",t.id)},null,8,["onClick"])])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),O={class:"text-body-2"},le=I({__name:"[workerId]",props:{params:{}},async setup(a){let i,l;const{settingsStore:p}=w(),{projectStore:u}=w();u.initializing?([i,l]=f(()=>D(()=>u.initialized).toBe(!0)),await i,l(),u.addLibraryRoot()):([i,l]=f(()=>u.initialize1()),await i,l(),[i,l]=f(()=>u.initialize2()),await i,l());const o=([i,l]=f(()=>p.getWorkerDetails(a.params.workerId)),i=await i,l(),i);if(!o)throw j({statusCode:404,statusMessage:"Worker not found"});const g=[{key:"workerId",label:"Worker ID"},{key:"identity",label:"Identity"},{key:"serviceAccount",label:"Service Account"},{key:"createdAt",label:"Created"}],s=p.versionsForWorker(a.params.workerId);s.load();const y=t=>{S({name:"worker-version-logs",params:{projectId:a.params.projectId,workerVersionId:t}})},d=async t=>{await p.restartWorkerVersion(t)};return(t,m)=>(P(),V(e(E),null,{default:n(()=>[r(U,{meta:e(o).meta,"fallback-icon":"mdi-progress-wrench",title:e(o).meta.title||e(o).identity,description:e(o).meta.description},null,8,["meta","title","description"]),r(e(z),{title:"Worker Details",items:g},{"item.workerId":n(()=>[r(e(C),{value:e(o).id},null,8,["value"])]),"item.identity":n(()=>[B("div",O,x(e(o).identity),1)]),"item.serviceAccount":n(()=>[r(e(L),{item:e(o)},null,8,["item"])]),"item.createdAt":n(()=>[r(e(M),{value:e(o).createdAt},null,8,["value"])]),_:1}),r(A,{elevation:0},{default:n(()=>[r(e(T),{title:"Worker Versions",icon:"mdi-source-branch",count:e(s).data.value.total},{default:n(()=>[r(e(G),{search:e(s).search.value,"onUpdate:search":m[0]||(m[0]=c=>e(s).search.value=c),"sort-by":e(s).sortBy.value,"onUpdate:sortBy":m[1]||(m[1]=c=>e(s).sortBy.value=c),page:e(s).page.value,"onUpdate:page":m[2]||(m[2]=c=>e(s).page.value=c),"items-per-page":e(s).itemsPerPage.value,"onUpdate:itemsPerPage":m[3]||(m[3]=c=>e(s).itemsPerPage.value=c),"project-id":a.params.projectId,"worker-id":a.params.workerId,data:e(s).data.value,loading:e(s).isLoading.value,"hide-header":!0,onRestartVersion:d,onViewLogs:y},null,8,["search","sort-by","page","items-per-page","project-id","worker-id","data","loading"])]),_:1},8,["count"])]),_:1})]),_:1}))}});export{le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as c,V as u,Y as l,ao as d,
|
|
1
|
+
import{E as c,V as u,Y as l,ao as d,aW as f,_ as n,W as g,aY as m,$ as z,a0 as h}from"./77UvFSdd.js";const C=c({__name:"StatusChip",props:{status:{},statusMap:{},size:{default:"small"}},setup(t){const r=a=>t.statusMap[a]?.color??"secondary",i=a=>{const e=t.statusMap[a];if(!(!e||"loading"in e))return e.icon??"mdi-circle"},s=a=>{const e=t.statusMap[a];return e&&"loading"in e&&e.loading},o=a=>{switch(a){case"x-small":return 12;case"small":return 16;case"default":return 20;case"large":return 24;case"x-large":return 28;default:return 16}};return(a,e)=>(u(),l(d,{color:r(t.status),"prepend-icon":s(t.status)?void 0:i(t.status),variant:"flat",size:t.size,class:"font-weight-bold"},f({default:n(()=>[z(" "+h(t.status),1)]),_:2},[s(t.status)?{name:"prepend",fn:n(()=>[g(m,{size:o(t.size)-4,width:2,indeterminate:"",class:"mr-2"},null,8,["size"])]),key:"0"}:void 0]),1032,["color","prepend-icon","size"]))}});export{C as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as n}from"./D4H6aUyZ.js";import{bi as c,l as p,_ as i}from"#entry";import{E as m,Y as s,_ as d,D as t,u,V as a,J as l,W as _,aY as f}from"./77UvFSdd.js";import{P as g}from"./DrQCNsTo.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./Bcyj9glE.js";const I={key:0,class:"page-container"},j=m({__name:"[pageId]",props:{params:{}},setup(e){const{state:r}=c(async()=>{const{$client:o}=u();return await o.state.getPage.query({projectId:e.params.projectId,pageId:e.params.pageId})},null);return p(e.params.projectId),(o,P)=>(a(),s(t(g),{"project-id":e.params.projectId,"can-unlock":""},{default:d(()=>[t(r)?(a(),l("div",I,[_(t(n),{content:t(r).content},null,8,["content"])])):(a(),s(f,{key:1,indeterminate:""}))]),_:1},8,["project-id"]))}}),v=i(j,[["__scopeId","data-v-9a58c678"]]);export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as c,_ as i}from"#entry";import{E as r,V as n,J as m,a2 as l,W as d,D as e,Y as u,a1 as y,a6 as f,j as a}from"./
|
|
1
|
+
import{I as c,_ as i}from"#entry";import{E as r,V as n,J as m,a2 as l,W as d,D as e,Y as u,a1 as y,a6 as f,j as a}from"./77UvFSdd.js";const I={class:"dual-icon__square"},C=r({__name:"ComponentIcon",props:{meta:{},size:{default:48}},setup(o){const s=a(()=>typeof o.size=="number"?`${o.size}px`:o.size),t=a(()=>o.meta.icon??"iconamoon:component");return(z,p)=>(n(),m("div",{class:"dual-icon",style:f({"--component-icon-size":e(s)})},[l("div",I,[d(e(c),{icon:e(t),class:"primary-icon",color:o.meta.iconColor},null,8,["icon","color"]),o.meta.secondaryIcon?(n(),u(e(c),{key:0,icon:o.meta.secondaryIcon,color:o.meta.secondaryIconColor,class:"secondary-icon"},null,8,["icon","color"])):y("",!0)])],4))}}),B=i(C,[["__scopeId","data-v-84e2fe7b"]]);export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,f as s}from"#entry";import{V as a,J as i,a2 as t,a0 as r}from"./
|
|
1
|
+
import{_ as o,f as s}from"#entry";import{V as a,J as i,a2 as t,a0 as r}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,h)=>(a(),i("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},k=o(f,[["__scopeId","data-v-25138efe"]]);export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as C,au as $}from"#entry";import{E as M,V as m,Y as f,ap as g,aW as h,_ as t,W as a,aY as B,D as v,Z as L,$ as i,a0 as u,aq as V,ar as I,a1 as E,a5 as c,aG as S,aU as T,H as Y,M as D,a$ as N,am as U,aP as G,r as x,n as O}from"./77UvFSdd.js";import{I as P}from"./rpHuDh4d.js";const H=M({__name:"ContextMenuItem",props:{title:{},subtitle:{},color:{},icon:{},customIcon:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(e,{emit:d}){const n=d;return(l,s)=>(m(),f(g,{disabled:e.disabled,onClick:s[0]||(s[0]=r=>n("click"))},h({append:t(()=>[c(l.$slots,"append")]),default:t(()=>[a(V,{color:e.color},{default:t(()=>[i(u(e.title),1)]),_:1},8,["color"]),e.subtitle?(m(),f(I,{key:0,color:e.color},{default:t(()=>[i(u(e.subtitle),1)]),_:1},8,["color"])):E("",!0),c(l.$slots,"default")]),_:2},[e.loading?{name:"prepend",fn:t(()=>[a(B,{indeterminate:"",color:"primary"})]),key:"0"}:e.customIcon?{name:"prepend",fn:t(()=>[a(v(C),{icon:e.customIcon,color:e.color,style:{"margin-right":"-20px",width:"24px",height:"24px"}},null,8,["icon","color"])]),key:"1"}:e.icon?{name:"prepend",fn:t(()=>[a(L,{color:e.color,style:{"margin-right":"-20px"}},{default:t(()=>[i(u(e.icon),1)]),_:1},8,["color"])]),key:"2"}:void 0]),1032,["disabled"]))}}),R=M({__name:"GenericContextMenu",props:G({title:{},subtitle:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(e,{expose:d}){const n=S(e,"visible"),l=x(0),s=x(0),r=T("contextMenu"),{isOutside:k}=$(r),p=async o=>{o.preventDefault(),n.value=!1,l.value=o.clientX,s.value=o.clientY,await O(),n.value=!0},b=()=>{k.value&&(n.value=!1)};return Y(()=>{window.addEventListener("mousedown",b)}),D(()=>{window.removeEventListener("mousedown",b),n.value=!1}),d({showContextMenu:p}),(o,y)=>(m(),f(N,{modelValue:n.value,"onUpdate:modelValue":y[0]||(y[0]=w=>n.value=w),target:[v(l),v(s)],location:"end","close-on-content-click":!1},{default:t(()=>[a(U,{ref_key:"contextMenu",ref:r,density:"compact",variant:"text",style:{"padding-bottom":"0"}},{default:t(()=>[c(o.$slots,"header",{},()=>[a(g,{class:"mb-2"},{default:t(()=>[a(V,null,{default:t(()=>[i(u(e.title),1)]),_:1}),a(I,{class:"d-flex align-center",style:{"font-family":"monospace"}},{default:t(()=>[i(u(e.subtitle)+" ",1),a(P,{content:e.subtitle},null,8,["content"])]),_:1})]),_:1})]),c(o.$slots,"default")]),_:3},512)]),_:3},8,["modelValue","target"]))}});export{H as _,R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as m,_ as s}from"#entry";import{E as r,V as t,Y as o,ao as f,_ as c,$ as d,a0 as u,D as n,a1 as g,j as h}from"./
|
|
1
|
+
import{n as m,_ as s}from"#entry";import{E as r,V as t,Y as o,ao as f,_ as c,$ as d,a0 as u,D as n,a1 as g,j as h}from"./77UvFSdd.js";import{_ as x}from"./fbfpKHgl.js";const C=r({__name:"EntityRefChip",props:{id:{},fallbackIcon:{},pageName:{},pageParams:{},meta:{},color:{},maxLength:{default:20}},setup(a){const i=()=>{m({name:a.pageName,params:a.pageParams})},l=h(()=>{const e=a.meta?.title??a.id;return e.length<=a.maxLength?e:`${e.slice(0,a.maxLength)}...`});return(e,k)=>(t(),o(f,{color:a.meta?.color??a.color,class:"font-weight-bold cursor-pointer",size:"small",onClick:i},{prepend:c(()=>[a.meta?.icon||a.fallbackIcon?(t(),o(n(x),{key:0,icon:a.fallbackIcon,"custom-icon":a.meta?.icon,color:a.meta?.iconColor,size:16,class:"mr-1"},null,8,["icon","custom-icon","color"])):g("",!0)]),default:c(()=>[d(" "+u(n(l)),1)]),_:1},8,["color"]))}}),I=s(C,[["__scopeId","data-v-cf302215"]]);export{I as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as m,v as u,t as f}from"#entry";import{E as _,aO as o,Y as y,_ as r,D as e,V as S,W as s,a2 as v,a0 as b}from"./
|
|
1
|
+
import{s as m,v as u,t as f}from"#entry";import{E as _,aO as o,Y as y,_ as r,D as e,V as S,W as s,a2 as v,a0 as b}from"./77UvFSdd.js";import{_ as k}from"./CWA5Cfde.js";import{_ as c,I as w}from"./B9BJCsIg.js";import{S as I}from"./C5DRPdxC.js";import{D as g,a as A}from"./hunqYsQf.js";import{S as D}from"./DRTFVhVr.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./fbfpKHgl.js";import"./DTYY2tCY.js";import"./BgvYz3Nr.js";const C={class:"text-body-2"},R=_({__name:"[secretId]",props:{params:{}},async setup(n){let a,i;const{settingsStore:d}=m(),{projectStore:l}=m();l.initializing?([a,i]=o(()=>f(()=>l.initialized).toBe(!0)),await a,i(),l.addLibraryRoot()):([a,i]=o(()=>l.initialize1()),await a,i(),[a,i]=o(()=>l.initialize2()),await a,i());const t=([a,i]=o(()=>d.getSecretDetails(n.params.secretId)),a=await a,i(),a);if(!t)throw u({statusCode:404,statusMessage:"Secret not found"});const p=[{key:"secretId",label:"Secret ID"},{key:"name",label:"Name"},{key:"value",label:"Value"},{key:"owner",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(h,j)=>(S(),y(e(A),null,{default:r(()=>[s(I,{meta:e(t).meta,"fallback-icon":"mdi-key-variant",title:e(t).meta.title||e(t).name||"Unnamed Secret",description:e(t).meta.description},null,8,["meta","title","description"]),s(e(g),{title:"Secret Details",items:p},{"item.secretId":r(()=>[s(e(w),{value:e(t).id},null,8,["value"])]),"item.name":r(()=>[v("div",C,b(e(t).name||"N/A"),1)]),"item.value":r(()=>[s(e(D),{"secret-id":e(t).id,"project-id":n.params.projectId},null,8,["secret-id","project-id"])]),"item.owner":r(()=>[s(e(k),{item:e(t)},null,8,["item"])]),"item.createdAt":r(()=>[s(e(c),{value:e(t).createdAt},null,8,["value"])]),"item.updatedAt":r(()=>[s(e(c),{value:e(t).updatedAt},null,8,["value"])]),_:1})]),_:1}))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as c,t as b}from"#entry";import"./
|
|
1
|
+
import{s as c,t as b}from"#entry";import"./C5DRPdxC.js";import{S as j}from"./DVKmRHSk.js";import{S as v,b as d}from"./CCBTuGSI.js";import{o as M,a as S}from"./M3Z1JMP1.js";import{_ as f}from"./BgvYz3Nr.js";import{_ as U}from"./m4Sxwg8n.js";import{E as P,aG as m,V as h,Y as B,D as t,_ as g,W as l,aP as x,aO as u}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./B9BJCsIg.js";const w=P({__name:"OperationsTable",props:x({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const i=m(s,"search"),r=m(s,"sortBy"),a=m(s,"page"),n=m(s,"itemsPerPage"),y=[{title:"Status",key:"status",sortable:!1},d.name,d.id,{title:"Type",key:"type",sortable:!1},d.createdAt,d.actions];return(p,o)=>(h(),B(t(v),{search:i.value,"onUpdate:search":o[0]||(o[0]=e=>i.value=e),"sort-by":r.value,"onUpdate:sortBy":o[1]||(o[1]=e=>r.value=e),page:a.value,"onUpdate:page":o[2]||(o[2]=e=>a.value=e),"items-per-page":n.value,"onUpdate:itemsPerPage":o[3]||(o[3]=e=>n.value=e),headers:y,data:s.data,loading:s.loading,"hide-header":s.hideHeader,height:s.height},{"item.status":g(({item:e})=>[l(t(f),{status:e.status,"status-map":t(S)},null,8,["status","status-map"])]),"item.type":g(({item:e})=>[l(t(f),{status:e.type,"status-map":t(M)},null,8,["status","status-map"])]),"item.actions":g(({item:e})=>[l(t(U),{"page-name":"settings.operation-details","page-params":{projectId:s.projectId,operationId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),E=P({__name:"index",async setup(s){let i,r;const{settingsStore:a}=c(),{projectStore:n}=c();return n.initializing?([i,r]=u(()=>b(()=>n.initialized).toBe(!0)),await i,r(),n.addLibraryRoot()):([i,r]=u(()=>n.initialize1()),await i,r(),[i,r]=u(()=>n.initialize2()),await i,r()),a.operations.load(),(y,p)=>(h(),B(t(j),{title:"Operations",icon:"mdi-cog-sync",description:"Manage and monitor operations executed within this project."},{default:g(({height:o})=>[l(t(w),{search:t(a).operations.search,"onUpdate:search":p[0]||(p[0]=e=>t(a).operations.search=e),"sort-by":t(a).operations.sortBy,"onUpdate:sortBy":p[1]||(p[1]=e=>t(a).operations.sortBy=e),page:t(a).operations.page,"onUpdate:page":p[2]||(p[2]=e=>t(a).operations.page=e),"items-per-page":t(a).operations.itemsPerPage,"onUpdate:itemsPerPage":p[3]||(p[3]=e=>t(a).operations.itemsPerPage=e),"project-id":t(n).projectId,data:t(a).operations.data,loading:t(a).operations.isLoading,height:o},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{E as default};
|