@intent-hq/web 2.372.3 → 2.372.4
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/package.json +1 -1
- package/web/app/immutable/chunks/{CP03b_lt.js → -JM4IO5s.js} +1 -1
- package/web/app/immutable/chunks/{BDMD6FdT.js → 0x9fwj6X.js} +1 -1
- package/web/app/immutable/chunks/{a_hFrVUs.js → 1cfvZqIL.js} +1 -1
- package/web/app/immutable/chunks/{DtPlbqlO.js → 4V5RPZv7.js} +1 -1
- package/web/app/immutable/chunks/{BpXYSrHL.js → 6s1pPvLx.js} +4 -4
- package/web/app/immutable/chunks/{uMNoDmQ2.js → 8kN6wMYA.js} +1 -1
- package/web/app/immutable/chunks/{CuNdhmq6.js → B0rlWqYd.js} +1 -1
- package/web/app/immutable/chunks/{BiWBSez2.js → B62l45Uf.js} +2 -2
- package/web/app/immutable/chunks/{C_MA8w30.js → B7-7bZi9.js} +1 -1
- package/web/app/immutable/chunks/{kRDyYnu-.js → B70PGGIw.js} +1 -1
- package/web/app/immutable/chunks/{CCr3GhwT.js → BBFSGGQF.js} +1 -1
- package/web/app/immutable/chunks/{DZnf3Vcd.js → BDARQpEZ.js} +1 -1
- package/web/app/immutable/chunks/{Ciyw1cDk.js → BEUFwM79.js} +1 -1
- package/web/app/immutable/chunks/{xCNFDAsL.js → BGPjhZRB.js} +1 -1
- package/web/app/immutable/chunks/{CBP_r2rZ.js → BGTJWNfe.js} +1 -1
- package/web/app/immutable/chunks/{DQITwHBm.js → BGdVu4MB.js} +2 -2
- package/web/app/immutable/chunks/{pO_uIUtS.js → BHINa8Ry.js} +2 -2
- package/web/app/immutable/chunks/{CLkKOQIb.js → BIHiol8V.js} +1 -1
- package/web/app/immutable/chunks/{D9E1Sed-.js → BIoeY2kf.js} +3 -3
- package/web/app/immutable/chunks/{C5Ddrquv.js → BJyEBl3g.js} +1 -1
- package/web/app/immutable/chunks/{DTl-epgW.js → BO2BotXa.js} +1 -1
- package/web/app/immutable/chunks/{BjmThgx9.js → BPE9rssu.js} +3 -3
- package/web/app/immutable/chunks/{Byc-Gwn1.js → BTTV-GiU.js} +2 -2
- package/web/app/immutable/chunks/{paBp5EDQ.js → BTtsrh4I.js} +2 -2
- package/web/app/immutable/chunks/{DmNlyOFF.js → BTwXmxv4.js} +2 -2
- package/web/app/immutable/chunks/{DL1rChoc.js → Ba0RqSDe.js} +1 -1
- package/web/app/immutable/chunks/{D0WHOKE3.js → BcI2Qs88.js} +1 -1
- package/web/app/immutable/chunks/{DfvdR1t7.js → BlCrzIC_.js} +13 -13
- package/web/app/immutable/chunks/{s5eSUTR7.js → BlEjgaTq.js} +1 -1
- package/web/app/immutable/chunks/{DsATs4Yw.js → BlT-PlLX.js} +3 -3
- package/web/app/immutable/chunks/{DoUa1hTg.js → BmpDBFC8.js} +1 -1
- package/web/app/immutable/chunks/{B8GoKZxM.js → Bng2Wjmd.js} +1 -1
- package/web/app/immutable/chunks/{8vt0w0gB.js → BoVvYfWW.js} +1 -1
- package/web/app/immutable/chunks/{DO0YQnSr.js → BoqgKStq.js} +1 -1
- package/web/app/immutable/chunks/{-il6if-X.js → BqwlUVV2.js} +1 -1
- package/web/app/immutable/chunks/{CXXobfG5.js → BtmPL5YS.js} +1 -1
- package/web/app/immutable/chunks/{rUAQGuY9.js → BuJuLth3.js} +1 -1
- package/web/app/immutable/chunks/{CNc8h__d.js → BukcKDm8.js} +1 -1
- package/web/app/immutable/chunks/{BAcZGd3g.js → Byis73mI.js} +1 -1
- package/web/app/immutable/chunks/{BlPpu_gv.js → C0QlGAGX.js} +1 -1
- package/web/app/immutable/chunks/{BbbO1mVP.js → C0pO6HUL.js} +1 -1
- package/web/app/immutable/chunks/{BuHIOAsb.js → C8EZa-xD.js} +1 -1
- package/web/app/immutable/chunks/{CMR4RacT.js → CACF-3uP.js} +1 -1
- package/web/app/immutable/chunks/{BIZcpPtH.js → CDypb-9r.js} +1 -1
- package/web/app/immutable/chunks/{Cu_kcmjo.js → CE4gPfvG.js} +1 -1
- package/web/app/immutable/chunks/{DXq51U5Z.js → CEEa3RhU.js} +1 -1
- package/web/app/immutable/chunks/{B93aSOB6.js → CEwqW-JV.js} +1 -1
- package/web/app/immutable/chunks/{BjLzmoKu.js → CGn7nYWV.js} +1 -1
- package/web/app/immutable/chunks/{D73rJM26.js → CHpIe7_H.js} +1 -1
- package/web/app/immutable/chunks/{lMYobXp7.js → CIZP3oBY.js} +1 -1
- package/web/app/immutable/chunks/{3vi-OgRR.js → CJ-lCrFi.js} +1 -1
- package/web/app/immutable/chunks/{B77zwvv7.js → CMFcg3RE.js} +1 -1
- package/web/app/immutable/chunks/{CNW9Rwes.js → CNefgEA2.js} +1 -1
- package/web/app/immutable/chunks/{eWtOjdwZ.js → CRHarGqr.js} +1 -1
- package/web/app/immutable/chunks/{CVA75Jzf.js → CSfWCx1k.js} +1 -1
- package/web/app/immutable/chunks/{Dyda26aD.js → CSr8o6qm.js} +1 -1
- package/web/app/immutable/chunks/{CSUG4tUd.js → CVnLEltT.js} +2 -2
- package/web/app/immutable/chunks/{sppurVVE.js → CWm_YxN-.js} +1 -1
- package/web/app/immutable/chunks/{BMjTWq66.js → CYUq_fja.js} +1 -1
- package/web/app/immutable/chunks/{64KJqioX.js → CZ7G19nC.js} +1 -1
- package/web/app/immutable/chunks/{DlekFIEJ.js → CbbK8WaD.js} +1 -1
- package/web/app/immutable/chunks/{D4_8WlAX.js → Cd2ZM5fn.js} +1 -1
- package/web/app/immutable/chunks/{4WFBPbig.js → ChADavMb.js} +2 -2
- package/web/app/immutable/chunks/{Smn45KEu.js → CjJYMl8M.js} +1 -1
- package/web/app/immutable/chunks/{AzvtNQGc.js → CjoZjg16.js} +1 -1
- package/web/app/immutable/chunks/{D-5xnKgT.js → CnjuQpEd.js} +1 -1
- package/web/app/immutable/chunks/{C4tXJNlU.js → CpGAJSr-.js} +1 -1
- package/web/app/immutable/chunks/{D4HebHoD.js → Cqsgf1DM.js} +1 -1
- package/web/app/immutable/chunks/{Dr_KWcsf.js → CrrouvLD.js} +1 -1
- package/web/app/immutable/chunks/{DoGlKPs8.js → Csqgcuja.js} +1 -1
- package/web/app/immutable/chunks/{B6OWzTDz.js → Cub6NZJQ.js} +1 -1
- package/web/app/immutable/chunks/{0PFbquWg.js → Cuij5UQt.js} +1 -1
- package/web/app/immutable/chunks/{CEIGYgmC.js → CvPNqaI1.js} +1 -1
- package/web/app/immutable/chunks/{DXT_tHZV.js → CxNWBXR-.js} +3 -3
- package/web/app/immutable/chunks/{DVkhmNxg.js → D0Rl0jWy.js} +3 -3
- package/web/app/immutable/chunks/{BQ0lhaiw.js → D1B_DGCd.js} +1 -1
- package/web/app/immutable/chunks/{C8GDR5mq.js → D1gQR6EA.js} +1 -1
- package/web/app/immutable/chunks/{BFAXN_U2.js → D2akGP2t.js} +1 -1
- package/web/app/immutable/chunks/{CbGkMYMi.js → D69enMvZ.js} +1 -1
- package/web/app/immutable/chunks/{CmfLCgYN.js → D6nqIgl8.js} +1 -1
- package/web/app/immutable/chunks/{D7X_WaSL.js → D72FFXC3.js} +3 -3
- package/web/app/immutable/chunks/{QJaPD5ja.js → D9N7PGtO.js} +3 -3
- package/web/app/immutable/chunks/{DSam4kPq.js → DA_CqgBx.js} +2 -2
- package/web/app/immutable/chunks/{FHdlPR2E.js → DB4YPFuG.js} +1 -1
- package/web/app/immutable/chunks/{CygNkso5.js → DCdZE6Zv.js} +1 -1
- package/web/app/immutable/chunks/{Di8laZBj.js → DE0oDk53.js} +1 -1
- package/web/app/immutable/chunks/{Dqso2iIq.js → DE9J1g7V.js} +1 -1
- package/web/app/immutable/chunks/{DyOuvQsx.js → DEsEAjIo.js} +3 -3
- package/web/app/immutable/chunks/{D9ZsyNyz.js → DJbcK1vm.js} +1 -1
- package/web/app/immutable/chunks/{n1Mub_w4.js → DOOWwNKc.js} +1 -1
- package/web/app/immutable/chunks/{DdfA1Cl6.js → DRX7fFc0.js} +2 -2
- package/web/app/immutable/chunks/{DzXo18RQ.js → DYb2Jx_H.js} +1 -1
- package/web/app/immutable/chunks/{Dz9187FZ.js → DZXtm4_Y.js} +1 -1
- package/web/app/immutable/chunks/{ezsQjlt6.js → DcPlD4Yk.js} +1 -1
- package/web/app/immutable/chunks/{eHy-2vQk.js → DfC089Aj.js} +1 -1
- package/web/app/immutable/chunks/{BSXFgzj_.js → DfybFhnX.js} +1 -1
- package/web/app/immutable/chunks/{tDXv5z_U.js → Dl1bhT5L.js} +1 -1
- package/web/app/immutable/chunks/{B3agx6Zv.js → Dp1LDv4x.js} +1 -1
- package/web/app/immutable/chunks/{m5FEmsd9.js → DskDJYfd.js} +1 -1
- package/web/app/immutable/chunks/{DUnf3IJM.js → DtDGJeDZ.js} +1 -1
- package/web/app/immutable/chunks/{DoKriIRg.js → DthXaxFc.js} +1 -1
- package/web/app/immutable/chunks/{Buf2XX2m.js → DwIiGflF.js} +1 -1
- package/web/app/immutable/chunks/{CMd9xe_v.js → DyZwlsjA.js} +1 -1
- package/web/app/immutable/chunks/{CwLBVHwC.js → EYYp06eB.js} +1 -1
- package/web/app/immutable/chunks/{DpqgMZNx.js → Fg5V-_KH.js} +1 -1
- package/web/app/immutable/chunks/{DSviIBB2.js → Id9rbUde.js} +1 -1
- package/web/app/immutable/chunks/{B430oCRo.js → JHEpx9qH.js} +1 -1
- package/web/app/immutable/chunks/{D_yMjDjB.js → NDFzzX6j.js} +6 -6
- package/web/app/immutable/chunks/{Bmgc_Vmk.js → OKyJRSao.js} +1 -1
- package/web/app/immutable/chunks/{TWY-IEJw.js → PAnofhoS.js} +1 -1
- package/web/app/immutable/chunks/{CjmicwNO.js → RLm3umLY.js} +1 -1
- package/web/app/immutable/chunks/{BR-e1Dqz.js → RNLMbZ9C.js} +4 -4
- package/web/app/immutable/chunks/{B4N2SW_I.js → TWIpzPb0.js} +1 -1
- package/web/app/immutable/chunks/{DumB3eQv.js → ZVjzo5B6.js} +1 -1
- package/web/app/immutable/chunks/{C8F76z1j.js → _q3XqkyK.js} +1 -1
- package/web/app/immutable/chunks/{D4p9bnGO.js → b2N6VSvj.js} +1 -1
- package/web/app/immutable/chunks/{DjHgMTjl.js → f_7_jVTC.js} +3 -3
- package/web/app/immutable/chunks/{2gbKHQXV.js → gprpeC7D.js} +1 -1
- package/web/app/immutable/chunks/{CgyKOUjB.js → p9pVDf-Y.js} +1 -1
- package/web/app/immutable/chunks/{CvO597Pq.js → pjjCtVad.js} +1 -1
- package/web/app/immutable/chunks/{C2f0QCtk.js → pnLCy_6A.js} +1 -1
- package/web/app/immutable/chunks/{yc-ZA4uZ.js → qc5YRWua.js} +1 -1
- package/web/app/immutable/chunks/{DAAshoKb.js → xHTS7_DQ.js} +1 -1
- package/web/app/immutable/entry/{app.DDy_f4Vr.js → app.Bn2XrulZ.js} +2 -2
- package/web/app/immutable/entry/start.DdzwOLyS.js +1 -0
- package/web/app/immutable/nodes/{0.BIgrj7tk.js → 0.BCyk8Eor.js} +1 -1
- package/web/app/immutable/nodes/{1.BS4qG73n.js → 1.D2GMUxe6.js} +1 -1
- package/web/app/immutable/nodes/{10.CoUmfWJP.js → 10.CqLjvueR.js} +4 -4
- package/web/app/immutable/nodes/{11.Cp19-DaX.js → 11.DjHiLQV_.js} +1 -1
- package/web/app/immutable/nodes/{15._NKX_puo.js → 15.DBgLfjTo.js} +1 -1
- package/web/app/immutable/nodes/{19.CrIpgdrd.js → 19.C65aoXG7.js} +2 -2
- package/web/app/immutable/nodes/{2.B-ARMoF4.js → 2.DyILpfUv.js} +4 -4
- package/web/app/immutable/nodes/{3.CeiKZ0d6.js → 3.BUXW6SHm.js} +1 -1
- package/web/app/immutable/nodes/{4.-s0Jfvde.js → 4.IOdsbvEy.js} +1 -1
- package/web/app/immutable/nodes/{5.BIDxYMYJ.js → 5.CdjllGpy.js} +1 -1
- package/web/app/immutable/nodes/{6.3fDeScAq.js → 6.B9bgqfmM.js} +1 -1
- package/web/app/immutable/nodes/{7.DydkXABx.js → 7.CJeEPi1x.js} +1 -1
- package/web/app/immutable/nodes/{8.DyQruTiJ.js → 8.CoXwlNYv.js} +1 -1
- package/web/app/immutable/nodes/{9.D0w1njvH.js → 9.B7TZvLdB.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CtWgyCM1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./ClpAEjbe.js";import{bs as kt,ca as K,aD as n,c9 as i,a7 as E,ay as _,W as w,bn as $t,bS as yt,aA as B,aB as St}from"./CJxGDkBm.js";import{i as L}from"./wmcYjLAa.js";import{k as _t}from"./Xh71Wbuh.js";import{c as wt}from"./DSqSJXGX.js";import{t as Bt}from"./D2MmXC4A.js";import{Jq as u,eJ as It,eK as Wt,J_ as Tt,Kd as Ut,K3 as Rt,vu as Dt,oq as J}from"./CpP1PKzF.js";import{g as At}from"./BrMXrCxP.js";import{bL as Ft,bN as Ht,dE as Nt}from"./D9Ykl3eH.js";import{C as f}from"./DypB-Dwi.js";import"./
|
|
1
|
+
import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./ClpAEjbe.js";import{bs as kt,ca as K,aD as n,c9 as i,a7 as E,ay as _,W as w,bn as $t,bS as yt,aA as B,aB as St}from"./CJxGDkBm.js";import{i as L}from"./wmcYjLAa.js";import{k as _t}from"./Xh71Wbuh.js";import{c as wt}from"./DSqSJXGX.js";import{t as Bt}from"./D2MmXC4A.js";import{Jq as u,eJ as It,eK as Wt,J_ as Tt,Kd as Ut,K3 as Rt,vu as Dt,oq as J}from"./CpP1PKzF.js";import{g as At}from"./BrMXrCxP.js";import{bL as Ft,bN as Ht,dE as Nt}from"./D9Ykl3eH.js";import{C as f}from"./DypB-Dwi.js";import"./DwIiGflF.js";import"./CnGVh7I3.js";import"./WSVFXKpL.js";import{bg as qt}from"./CtJxHvGv.js";import"./CPDV_dyu.js";/* empty css */import{T as Mt}from"./CjJYMl8M.js";import"./B5wwCKYG.js";import{M as xt}from"./Dd_i7pU1.js";import{V as Kt}from"./Cp06wewE.js";import{O as Et}from"./Cub6NZJQ.js";import{bT as Lt,bN as Jt,b8 as Vt}from"./DfC089Aj.js";import{i as Ot}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function jt(I,p){if(new.target)return pt({component:jt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),V=()=>h(Z,"$ftCommits$",l),T=()=>h(Q,"$foldUnchanged",l),U=()=>h(z,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,O]=Pt(),G=t=>{Kt(t,{embedded:!0,get foldEnabled(){return T()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Tt())})},j=t=>{var e=Gt(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>xt,(y,ht)=>{ht(y,{get icon(){return qt},get label(){return n(m)},onclick:zt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};L(s,m=>{n(k)&&m(d)})}w(t,e)},z=Lt(),Q=Jt(),X=Vt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=Nt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);K(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),k=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of V())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const N=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),q=i(()=>a().data?.branchBaseRef),M=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(q)||n(M))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(N))return n(N);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}K(()=>{!D||!b()||D.registerActions({display:G,actions:j})});function dt(t,e){u.dispatch(J(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(J(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},x=E(),mt=_(x);{var lt=t=>{var e=E(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Mt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return T()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(q)},get branchBaseCommitSha(){return n(M)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};L(mt,t=>{a().diffPath&&t(lt)})}w(I,x);var gt=$t(ct);return O(),gt}export{jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,aW as o}from"./
|
|
1
|
+
import{b as a,aW as o}from"./6s1pPvLx.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as st}from"./CygNkso5.js";import{g as it}from"./CgyKOUjB.js";import{s as at}from"./0PFbquWg.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./BpXYSrHL.js";import{c as kt}from"./rUAQGuY9.js";import{aR as Et}from"./eHy-2vQk.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as st}from"./DCdZE6Zv.js";import{g as it}from"./p9pVDf-Y.js";import{s as at}from"./Cuij5UQt.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./6s1pPvLx.js";import{c as kt}from"./BuJuLth3.js";import{aR as Et}from"./DfC089Aj.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./BpXYSrHL.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
1
|
+
import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./6s1pPvLx.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as It}from"./ClpAEjbe.js";import{bs as ct,ay as ye,be as E,b$ as L,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./BwASeArv.js";import{c as Tt}from"./DSqSJXGX.js";import{s as ot,f as Ft,c as Bt}from"./CnGVh7I3.js";import{f as B}from"./BVi5KkOP.js";import"./CPDV_dyu.js";import"./Qt_rZNko.js";import{b as Rt}from"./ISNHM8TL.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import{b as Nt}from"./B5fQcqb-.js";import{i as K}from"./wmcYjLAa.js";import{b as Ht}from"./5vm8eILD.js";import{F as Mt,ay as qt}from"./CtJxHvGv.js";import"./WSVFXKpL.js";import{F as mt,G as Jt}from"./C8GDR5mq.js";import"./B5wwCKYG.js";/* empty css */import{C as Wt}from"./C1zxTHwk.js";import{L as xt}from"./CIMWDf4a.js";import{I as tt}from"./MZe3NxQe.js";import"./B8-SJLLz.js";import"./D_G_nxUe.js";import{h as Yt}from"./paBp5EDQ.js";import{Jq as ke,fB as ht,J as Qt,eo as kt,r3 as Vt,uy as jt,Jh as Xt,oB as Zt,hQ as er}from"./CpP1PKzF.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./CVA75Jzf.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function j(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(T().length-1),onCancel:()=>j(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");B(de,{get variant(){return e(me)},onclick:()=>j(ae),children:(Ke,ze)=>{E();var Ae=L();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Rt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=L();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),j=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Be=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Be))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return j()},set baseUrl(r=""){j(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,I)=>dt(c,r,I)},k=br(),Re=C(k);{var Ne=r=>{var I=lr(),J=g(I,!0);o(se=>s(J,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,I)};K(Re,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(Re,2);{var Je=r=>{var I=cr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);Wt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(H,u=>{e(Be)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(H,2);{var R=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(R)})}P(W);var Z=i(W,2);{var Ce=u=>{B(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=L();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(I),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,I)};K(qe,r=>{(V()==="add"||x())&&r(Je)})}var We=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(J,se=ft)=>{var W=Kt(),H=C(W);tt(H,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(H,2);{var ne=M=>{B(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var R=L();o(Z=>s(R,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,R)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(W),a(J,W)},$$slots:{control:!0}})},Qe=r=>{var I=pr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W),ve=g(H,!0),ne=i(H,2);B(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=L();o(R=>s(_e,R),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(W),P(I),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,I)};K(We,r=>{e(at)?r(Ye):r(Qe,-1)})}var Ve=i(We,2);{var st=r=>{var I=fr(),J=C(I),se=C(J);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var W=i(se);P(J);var H=i(J,2),ve=C(H),ne=g(ve,!0),M=i(ve,2);{var $e=R=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=L();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);B(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(R,Z)},_e=R=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return j()},set value(G){j(G)}}));var z=i(F,2);{var q=G=>{B(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),j("")},children:(ee,p)=>{E();var n=L();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(R,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,R=>{V()==="edit"&&ge()&&d()!=="replace"?R($e):R(_e,-1)})}P(H),P(I),o((R,Z)=>{s(W,` ${R??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",I,X,X),a(r,I)};K(Ve,r=>{e(Be)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Lr(ie,c){const w=Ut();if(new.target)return it({component:Lr,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Be,"$deviceFlow$",d),j=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=It();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Be=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>jt(e(Ee))),Re=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function Je(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function We(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Qe(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function I(){e(Ne)&&Yt(e(Ne),{})}function J(p){p.key==="Enter"&&(p.preventDefault(),Je(),e(Re)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Qe())}const W=$(()=>A()?"sm":"xl"),H=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{B(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var R=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(R)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Ie=$(()=>t.lib_gitlabConnect_openGitlab_label());Jt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Ie)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{let Ie=$(()=>x()||!h());B(Le,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Ie)},onclick:Ve,children:(nt,ut)=>{E();var D=L();o(Q=>s(D,Q),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var He=i(Le,2);p(He),P(_),P(l),o(Ie=>s(Te,Ie),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,Q)=>{E();var te=L();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),Q=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(Q)},get"aria-describedby"(){return e(te)},get placeholder(){return Qt},oninput:We,onchange:Je,onkeydown:J,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{var He=D=>{var Q=yr(),te=g(Q,!0);o(pe=>{ot(Q,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,Q)};K(Le,D=>{e(k)||D(He)})}P(v);var Ie=i(v,2);{var nt=D=>{var Q=$r(),te=ye(Q),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=L();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var je=i(pe,2);{let O=$(()=>!h());tt(je,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(je,2),fe=C(Xe),we=i(fe);{var Ze=O=>{B(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:I,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));B(Pe,{variant:"primary",get size(){return e(W)},type:"button",onclick:Qe,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var Lt=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(Lt)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,Q)},ut=D=>{var Q=Cr(),te=C(Q);{let fe=$(()=>!e(k)||!h());B(te,{variant:"primary",get size(){return e(W)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());B(pe,{variant:"ghost",get size(){return e(H)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var je=i(pe,2);{var Xe=fe=>{B(fe,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(je,fe=>{N()&&fe(Xe)})}P(Q),a(D,Q)};K(Ie,D=>{e(Re)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);B(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Le=L();o(He=>s(Le,He),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Le)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>j()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{j()==="cancelled"?n(F):(j()==="already-started"||j()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Bt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Lr as G,ir as M,gr as P,sa as s};
|
|
1
|
+
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as It}from"./ClpAEjbe.js";import{bs as ct,ay as ye,be as E,b$ as L,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./BwASeArv.js";import{c as Tt}from"./DSqSJXGX.js";import{s as ot,f as Ft,c as Bt}from"./CnGVh7I3.js";import{f as B}from"./BVi5KkOP.js";import"./CPDV_dyu.js";import"./Qt_rZNko.js";import{b as Rt}from"./ISNHM8TL.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import{b as Nt}from"./B5fQcqb-.js";import{i as K}from"./wmcYjLAa.js";import{b as Ht}from"./5vm8eILD.js";import{F as Mt,ay as qt}from"./CtJxHvGv.js";import"./WSVFXKpL.js";import{F as mt,G as Jt}from"./D1gQR6EA.js";import"./B5wwCKYG.js";/* empty css */import{C as Wt}from"./C1zxTHwk.js";import{L as xt}from"./CIMWDf4a.js";import{I as tt}from"./MZe3NxQe.js";import"./B8-SJLLz.js";import"./D_G_nxUe.js";import{h as Yt}from"./BTtsrh4I.js";import{Jq as ke,fB as ht,J as Qt,eo as kt,r3 as Vt,uy as jt,Jh as Xt,oB as Zt,hQ as er}from"./CpP1PKzF.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./CSfWCx1k.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function j(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(T().length-1),onCancel:()=>j(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");B(de,{get variant(){return e(me)},onclick:()=>j(ae),children:(Ke,ze)=>{E();var Ae=L();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Rt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=L();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),j=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Be=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Be))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return j()},set baseUrl(r=""){j(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,I)=>dt(c,r,I)},k=br(),Re=C(k);{var Ne=r=>{var I=lr(),J=g(I,!0);o(se=>s(J,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,I)};K(Re,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(Re,2);{var Je=r=>{var I=cr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);Wt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(H,u=>{e(Be)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(H,2);{var R=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(R)})}P(W);var Z=i(W,2);{var Ce=u=>{B(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=L();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(I),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,I)};K(qe,r=>{(V()==="add"||x())&&r(Je)})}var We=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(J,se=ft)=>{var W=Kt(),H=C(W);tt(H,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(H,2);{var ne=M=>{B(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var R=L();o(Z=>s(R,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,R)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(W),a(J,W)},$$slots:{control:!0}})},Qe=r=>{var I=pr(),J=C(I),se=g(J,!0),W=i(J,2),H=C(W),ve=g(H,!0),ne=i(H,2);B(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=L();o(R=>s(_e,R),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(W),P(I),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,I)};K(We,r=>{e(at)?r(Ye):r(Qe,-1)})}var Ve=i(We,2);{var st=r=>{var I=fr(),J=C(I),se=C(J);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var W=i(se);P(J);var H=i(J,2),ve=C(H),ne=g(ve,!0),M=i(ve,2);{var $e=R=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=L();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);B(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);B(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(R,Z)},_e=R=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return j()},set value(G){j(G)}}));var z=i(F,2);{var q=G=>{B(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),j("")},children:(ee,p)=>{E();var n=L();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(R,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,R=>{V()==="edit"&&ge()&&d()!=="replace"?R($e):R(_e,-1)})}P(H),P(I),o((R,Z)=>{s(W,` ${R??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",I,X,X),a(r,I)};K(Ve,r=>{e(Be)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Lr(ie,c){const w=Ut();if(new.target)return it({component:Lr,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Be,"$deviceFlow$",d),j=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=It();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Be=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>jt(e(Ee))),Re=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function Je(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function We(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Qe(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function I(){e(Ne)&&Yt(e(Ne),{})}function J(p){p.key==="Enter"&&(p.preventDefault(),Je(),e(Re)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Qe())}const W=$(()=>A()?"sm":"xl"),H=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{B(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=L();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var R=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(R)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Ie=$(()=>t.lib_gitlabConnect_openGitlab_label());Jt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Ie)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{let Ie=$(()=>x()||!h());B(Le,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Ie)},onclick:Ve,children:(nt,ut)=>{E();var D=L();o(Q=>s(D,Q),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var He=i(Le,2);p(He),P(_),P(l),o(Ie=>s(Te,Ie),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,Q)=>{E();var te=L();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),Q=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(Q)},get"aria-describedby"(){return e(te)},get placeholder(){return Qt},oninput:We,onchange:Je,onkeydown:J,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Le=i(oe,2);{var He=D=>{var Q=yr(),te=g(Q,!0);o(pe=>{ot(Q,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,Q)};K(Le,D=>{e(k)||D(He)})}P(v);var Ie=i(v,2);{var nt=D=>{var Q=$r(),te=ye(Q),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=L();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var je=i(pe,2);{let O=$(()=>!h());tt(je,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(je,2),fe=C(Xe),we=i(fe);{var Ze=O=>{B(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:I,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));B(Pe,{variant:"primary",get size(){return e(W)},type:"button",onclick:Qe,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var Lt=O=>{B(O,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=L();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(Lt)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,Q)},ut=D=>{var Q=Cr(),te=C(Q);{let fe=$(()=>!e(k)||!h());B(te,{variant:"primary",get size(){return e(W)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());B(pe,{variant:"ghost",get size(){return e(H)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var je=i(pe,2);{var Xe=fe=>{B(fe,{variant:"ghost",get size(){return e(H)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=L();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(je,fe=>{N()&&fe(Xe)})}P(Q),a(D,Q)};K(Ie,D=>{e(Re)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);B(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Le=L();o(He=>s(Le,He),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Le)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>j()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{j()==="cancelled"?n(F):(j()==="already-started"||j()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Bt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Lr as G,ir as M,gr as P,sa as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./6s1pPvLx.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/eZHWD3Je.js","/app/immutable/chunks/BejTxFyR.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/ClpAEjbe.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/nodes/0.BIgrj7tk.js","/app/immutable/chunks/WSVFXKpL.js","/app/immutable/chunks/wmcYjLAa.js","/app/immutable/chunks/Xh71Wbuh.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CpP1PKzF.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CgBcONKs.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DedMJivv.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/CTV49dzf.js","/app/immutable/chunks/pO_uIUtS.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.D54btMV6.css","/app/immutable/nodes/1.BS4qG73n.js","/app/immutable/chunks/D_yMjDjB.js","/app/immutable/chunks/tDXv5z_U.js","/app/immutable/chunks/CtJxHvGv.js","/app/immutable/chunks/DSqSJXGX.js","/app/immutable/chunks/CnGVh7I3.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BwASeArv.js","/app/immutable/chunks/BVi5KkOP.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CPDV_dyu.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.B-ARMoF4.js","/app/immutable/chunks/aP6D-5EX.js","/app/immutable/chunks/D9Ykl3eH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/By588DV1.js","/app/immutable/chunks/a_hFrVUs.js","/app/immutable/chunks/CuNdhmq6.js","/app/immutable/chunks/DpqgMZNx.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/ByoP16rr.js","/app/immutable/chunks/DfvdR1t7.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BxKppgO5.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/eHy-2vQk.js","/app/immutable/chunks/CVA75Jzf.js","/app/immutable/chunks/C1zxTHwk.js","/app/immutable/chunks/BeYVt6Wg.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/oXpJ1LFx.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/b89lNINv.js","/app/immutable/chunks/DujUyPvo.js","/app/immutable/chunks/C5TH9nNS.js","/app/immutable/chunks/B6-GEB4b.js","/app/immutable/chunks/QJaPD5ja.js","/app/immutable/chunks/CwRzaOEp.js","/app/immutable/chunks/DlekFIEJ.js","/app/immutable/chunks/CkrbZXJF.js","/app/immutable/chunks/Ct82vzld.js","/app/immutable/chunks/B3Qi-Y-Q.js","/app/immutable/chunks/DXT_tHZV.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BqoCUMk3.js","/app/immutable/chunks/B-pzX-N9.js","/app/immutable/chunks/D35mkEt2.js","/app/immutable/chunks/D5Z_ha09.js","/app/immutable/chunks/DsATs4Yw.js","/app/immutable/chunks/Ciyw1cDk.js","/app/immutable/chunks/D95Y9O1z.js","/app/immutable/chunks/uMNoDmQ2.js","/app/immutable/chunks/Ck2JBj0W.js","/app/immutable/chunks/4WFBPbig.js","/app/immutable/chunks/DjFqe105.js","/app/immutable/chunks/4o9fnViW.js","/app/immutable/chunks/Gb7Ohwuc.js","/app/immutable/chunks/BYiyLeZ4.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/Qt_rZNko.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/CRpGhS3h.js","/app/immutable/chunks/BriVXGmT.js","/app/immutable/chunks/WQlIWqz7.js","/app/immutable/chunks/0LjODXcP.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BAcZGd3g.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/D_ohQxvA.js","/app/immutable/chunks/uLMJ7j2N.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DvfG7QDh.js","/app/immutable/chunks/CoeUPp7o.js","/app/immutable/chunks/BTHuy2Ni.js","/app/immutable/chunks/RHfBp4Mr.js","/app/immutable/chunks/DG0dlBsG.js","/app/immutable/chunks/CFoti_nz.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DWcAR6Dh.js","/app/immutable/chunks/C8GDR5mq.js","/app/immutable/chunks/MZe3NxQe.js","/app/immutable/chunks/CIMWDf4a.js","/app/immutable/chunks/D-g0wh54.js","/app/immutable/chunks/BpUPc2_6.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/CARsKzUN.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/R9aYbjet.js","/app/immutable/chunks/B5wwCKYG.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CXismnoJ.js","/app/immutable/chunks/B5fQcqb-.js","/app/immutable/chunks/CZ0QQTR9.js","/app/immutable/chunks/ISNHM8TL.js","/app/immutable/chunks/paBp5EDQ.js","/app/immutable/chunks/B06RKBOm.js","/app/immutable/chunks/C7RGdxsV.js","/app/immutable/chunks/V7b2Jgc1.js","/app/immutable/chunks/wJsFiZDi.js","/app/immutable/chunks/CWupBtSA.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/CMe1I98y.js","/app/immutable/chunks/CWDALWEd.js","/app/immutable/chunks/DHnd4dff.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/uD6eQoK5.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/CP03b_lt.js","/app/immutable/assets/DictationStopButton.DWUPhcKi.css","/app/immutable/chunks/CyoYktR7.js","/app/immutable/chunks/Br7ixYzv.js","/app/immutable/chunks/BA6icodG.js","/app/immutable/chunks/B2g9a1Br.js","/app/immutable/chunks/B8-SJLLz.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/D_G_nxUe.js","/app/immutable/chunks/BlXZA0dT.js","/app/immutable/chunks/B-QV7rQf.js","/app/immutable/chunks/DTl-epgW.js","/app/immutable/chunks/BDsP_Ia9.js","/app/immutable/chunks/DVkhmNxg.js","/app/immutable/chunks/BVjIKMSs.js","/app/immutable/chunks/BEjKEvzN.js","/app/immutable/chunks/C-F0IdwG.js","/app/immutable/chunks/DM2Efanx.js","/app/immutable/chunks/BjmThgx9.js","/app/immutable/chunks/sppurVVE.js","/app/immutable/chunks/ClEpfV0K.js","/app/immutable/chunks/G-nrQJwO.js","/app/immutable/chunks/DmNlyOFF.js","/app/immutable/chunks/Dd5ei__B.js","/app/immutable/chunks/BCrI1nnw.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/CsFPvReh.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/xlUSfXqt.js","/app/immutable/chunks/CYifx2a4.js","/app/immutable/assets/AttachmentPreview.D_hsaikk.css","/app/immutable/chunks/kRDyYnu-.js","/app/immutable/chunks/IQeTMQHj.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/Dsw5zy-Y.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/D2MmXC4A.js","/app/immutable/chunks/CpkdECcR.js","/app/immutable/chunks/BOXv-Vsz.js","/app/immutable/chunks/BR-e1Dqz.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/DnYPeWf9.js","/app/immutable/chunks/ryNitKU8.js","/app/immutable/chunks/DE4gFzLD.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/B_eLdLQf.js","/app/immutable/chunks/D7X_WaSL.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DRG24ZS8.js","/app/immutable/chunks/BTW5Qz3T.js","/app/immutable/chunks/Du0hpH6u.js","/app/immutable/chunks/D9E1Sed-.js","/app/immutable/chunks/BigcqNWS.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DfTSMq0b.js","/app/immutable/chunks/B3bYRRle.js","/app/immutable/chunks/DJDHO53I.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/Bw4CvlxU.js","/app/immutable/chunks/CSUG4tUd.js","/app/immutable/chunks/C_d1_duO.js","/app/immutable/chunks/Dr9JmihA.js","/app/immutable/chunks/CX5klKKv.js","/app/immutable/chunks/BHjJ9bUD.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BQgCURYe.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.CeiKZ0d6.js","/app/immutable/nodes/4.-s0Jfvde.js","/app/immutable/nodes/5.BIDxYMYJ.js","/app/immutable/nodes/6.3fDeScAq.js","/app/immutable/chunks/8eu_KG_5.js","/app/immutable/chunks/D98rdFQl.js","/app/immutable/chunks/B4qsbMKj.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/Dkc8Qc6T.js","/app/immutable/chunks/eWtOjdwZ.js","/app/immutable/chunks/DoUa1hTg.js","/app/immutable/chunks/DyOuvQsx.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BxAKyA2J.js","/app/immutable/chunks/PBef_gss.js","/app/immutable/chunks/Cfkb8WUl.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/D0WHOKE3.js","/app/immutable/chunks/Dd_i7pU1.js","/app/immutable/chunks/DoKriIRg.js","/app/immutable/chunks/Byc-Gwn1.js","/app/immutable/chunks/CYwwgxGp.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/Buf2XX2m.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CTsZeMVP.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/BpXYSrHL.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/DjAHTP5R.js","/app/immutable/chunks/BiWBSez2.js","/app/immutable/chunks/D0H3cACA.js","/app/immutable/chunks/DdfA1Cl6.js","/app/immutable/chunks/V1moMw6X.js","/app/immutable/chunks/CwLBVHwC.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/BQ0lhaiw.js","/app/immutable/chunks/C_MA8w30.js","/app/immutable/chunks/Dr_KWcsf.js","/app/immutable/chunks/CxEy75pV.js","/app/immutable/assets/conversation-turns.BHHyRLdd.css","/app/immutable/chunks/CvXttgUy.js","/app/immutable/chunks/Dp3fRAus.js","/app/immutable/chunks/DemmMiIF.js","/app/immutable/chunks/CNcD7ed8.js","/app/immutable/chunks/BFAXN_U2.js","/app/immutable/chunks/B6OWzTDz.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/CHXqkR4Y.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DSam4kPq.js","/app/immutable/chunks/BrMXrCxP.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.DydkXABx.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.DyQruTiJ.js","/app/immutable/chunks/lMYobXp7.js","/app/immutable/nodes/9.D0w1njvH.js","/app/immutable/chunks/yc-ZA4uZ.js","/app/immutable/chunks/5vm8eILD.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DX06oCSD.js","/app/immutable/chunks/DzEEVQPE.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.CoUmfWJP.js","/app/immutable/chunks/19Io1z-x.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/Dqso2iIq.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CqK6h2NU.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DIAE3Vla.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/DOjRV3T9.js","/app/immutable/chunks/DUnf3IJM.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.Cp19-DaX.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.B-B2Ucop.js","/app/immutable/nodes/13.3BHtnsTK.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.CpMLFBYk.js","/app/immutable/chunks/B-l-Ww4Z.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15._NKX_puo.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.Df1eG3N1.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.B46wRuCk.js","/app/immutable/nodes/18.CGBW_OhO.js","/app/immutable/nodes/19.CrIpgdrd.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.DEzyhl5Y.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/eZHWD3Je.js","/app/immutable/chunks/BejTxFyR.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/ClpAEjbe.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/nodes/0.BCyk8Eor.js","/app/immutable/chunks/WSVFXKpL.js","/app/immutable/chunks/wmcYjLAa.js","/app/immutable/chunks/Xh71Wbuh.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CpP1PKzF.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CgBcONKs.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DedMJivv.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/CTV49dzf.js","/app/immutable/chunks/BHINa8Ry.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.D54btMV6.css","/app/immutable/nodes/1.D2GMUxe6.js","/app/immutable/chunks/NDFzzX6j.js","/app/immutable/chunks/Dl1bhT5L.js","/app/immutable/chunks/CtJxHvGv.js","/app/immutable/chunks/DSqSJXGX.js","/app/immutable/chunks/CnGVh7I3.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BwASeArv.js","/app/immutable/chunks/BVi5KkOP.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CPDV_dyu.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.DyILpfUv.js","/app/immutable/chunks/aP6D-5EX.js","/app/immutable/chunks/D9Ykl3eH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/By588DV1.js","/app/immutable/chunks/1cfvZqIL.js","/app/immutable/chunks/B0rlWqYd.js","/app/immutable/chunks/Fg5V-_KH.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/ByoP16rr.js","/app/immutable/chunks/BlCrzIC_.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BxKppgO5.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DfC089Aj.js","/app/immutable/chunks/CSfWCx1k.js","/app/immutable/chunks/C1zxTHwk.js","/app/immutable/chunks/BeYVt6Wg.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/oXpJ1LFx.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/b89lNINv.js","/app/immutable/chunks/DujUyPvo.js","/app/immutable/chunks/C5TH9nNS.js","/app/immutable/chunks/B6-GEB4b.js","/app/immutable/chunks/D9N7PGtO.js","/app/immutable/chunks/CwRzaOEp.js","/app/immutable/chunks/CbbK8WaD.js","/app/immutable/chunks/CkrbZXJF.js","/app/immutable/chunks/Ct82vzld.js","/app/immutable/chunks/B3Qi-Y-Q.js","/app/immutable/chunks/CxNWBXR-.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BqoCUMk3.js","/app/immutable/chunks/B-pzX-N9.js","/app/immutable/chunks/D35mkEt2.js","/app/immutable/chunks/D5Z_ha09.js","/app/immutable/chunks/BlT-PlLX.js","/app/immutable/chunks/BEUFwM79.js","/app/immutable/chunks/D95Y9O1z.js","/app/immutable/chunks/8kN6wMYA.js","/app/immutable/chunks/Ck2JBj0W.js","/app/immutable/chunks/ChADavMb.js","/app/immutable/chunks/DjFqe105.js","/app/immutable/chunks/4o9fnViW.js","/app/immutable/chunks/Gb7Ohwuc.js","/app/immutable/chunks/BYiyLeZ4.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/Qt_rZNko.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/CRpGhS3h.js","/app/immutable/chunks/BriVXGmT.js","/app/immutable/chunks/WQlIWqz7.js","/app/immutable/chunks/0LjODXcP.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Byis73mI.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/D_ohQxvA.js","/app/immutable/chunks/uLMJ7j2N.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DvfG7QDh.js","/app/immutable/chunks/CoeUPp7o.js","/app/immutable/chunks/BTHuy2Ni.js","/app/immutable/chunks/RHfBp4Mr.js","/app/immutable/chunks/DG0dlBsG.js","/app/immutable/chunks/CFoti_nz.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DWcAR6Dh.js","/app/immutable/chunks/D1gQR6EA.js","/app/immutable/chunks/MZe3NxQe.js","/app/immutable/chunks/CIMWDf4a.js","/app/immutable/chunks/D-g0wh54.js","/app/immutable/chunks/BpUPc2_6.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/CARsKzUN.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/R9aYbjet.js","/app/immutable/chunks/B5wwCKYG.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CXismnoJ.js","/app/immutable/chunks/B5fQcqb-.js","/app/immutable/chunks/CZ0QQTR9.js","/app/immutable/chunks/ISNHM8TL.js","/app/immutable/chunks/BTtsrh4I.js","/app/immutable/chunks/B06RKBOm.js","/app/immutable/chunks/C7RGdxsV.js","/app/immutable/chunks/V7b2Jgc1.js","/app/immutable/chunks/wJsFiZDi.js","/app/immutable/chunks/CWupBtSA.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/CMe1I98y.js","/app/immutable/chunks/CWDALWEd.js","/app/immutable/chunks/DHnd4dff.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/uD6eQoK5.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/-JM4IO5s.js","/app/immutable/assets/DictationStopButton.DWUPhcKi.css","/app/immutable/chunks/CyoYktR7.js","/app/immutable/chunks/Br7ixYzv.js","/app/immutable/chunks/BA6icodG.js","/app/immutable/chunks/B2g9a1Br.js","/app/immutable/chunks/B8-SJLLz.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/D_G_nxUe.js","/app/immutable/chunks/BlXZA0dT.js","/app/immutable/chunks/B-QV7rQf.js","/app/immutable/chunks/BO2BotXa.js","/app/immutable/chunks/BDsP_Ia9.js","/app/immutable/chunks/D0Rl0jWy.js","/app/immutable/chunks/BVjIKMSs.js","/app/immutable/chunks/BEjKEvzN.js","/app/immutable/chunks/C-F0IdwG.js","/app/immutable/chunks/DM2Efanx.js","/app/immutable/chunks/BPE9rssu.js","/app/immutable/chunks/CWm_YxN-.js","/app/immutable/chunks/ClEpfV0K.js","/app/immutable/chunks/G-nrQJwO.js","/app/immutable/chunks/BTwXmxv4.js","/app/immutable/chunks/Dd5ei__B.js","/app/immutable/chunks/BCrI1nnw.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/CsFPvReh.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/xlUSfXqt.js","/app/immutable/chunks/CYifx2a4.js","/app/immutable/assets/AttachmentPreview.D_hsaikk.css","/app/immutable/chunks/B70PGGIw.js","/app/immutable/chunks/IQeTMQHj.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/Dsw5zy-Y.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/D2MmXC4A.js","/app/immutable/chunks/CpkdECcR.js","/app/immutable/chunks/BOXv-Vsz.js","/app/immutable/chunks/RNLMbZ9C.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/DnYPeWf9.js","/app/immutable/chunks/ryNitKU8.js","/app/immutable/chunks/DE4gFzLD.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/B_eLdLQf.js","/app/immutable/chunks/D72FFXC3.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DRG24ZS8.js","/app/immutable/chunks/BTW5Qz3T.js","/app/immutable/chunks/Du0hpH6u.js","/app/immutable/chunks/BIoeY2kf.js","/app/immutable/chunks/BigcqNWS.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DfTSMq0b.js","/app/immutable/chunks/B3bYRRle.js","/app/immutable/chunks/DJDHO53I.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/Bw4CvlxU.js","/app/immutable/chunks/CVnLEltT.js","/app/immutable/chunks/C_d1_duO.js","/app/immutable/chunks/Dr9JmihA.js","/app/immutable/chunks/CX5klKKv.js","/app/immutable/chunks/BHjJ9bUD.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BQgCURYe.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.BUXW6SHm.js","/app/immutable/nodes/4.IOdsbvEy.js","/app/immutable/nodes/5.CdjllGpy.js","/app/immutable/nodes/6.B9bgqfmM.js","/app/immutable/chunks/8eu_KG_5.js","/app/immutable/chunks/D98rdFQl.js","/app/immutable/chunks/B4qsbMKj.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/Dkc8Qc6T.js","/app/immutable/chunks/CRHarGqr.js","/app/immutable/chunks/BmpDBFC8.js","/app/immutable/chunks/DEsEAjIo.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BxAKyA2J.js","/app/immutable/chunks/PBef_gss.js","/app/immutable/chunks/Cfkb8WUl.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/BcI2Qs88.js","/app/immutable/chunks/Dd_i7pU1.js","/app/immutable/chunks/DthXaxFc.js","/app/immutable/chunks/BTTV-GiU.js","/app/immutable/chunks/CYwwgxGp.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DwIiGflF.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CTsZeMVP.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/6s1pPvLx.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/DjAHTP5R.js","/app/immutable/chunks/B62l45Uf.js","/app/immutable/chunks/D0H3cACA.js","/app/immutable/chunks/DRX7fFc0.js","/app/immutable/chunks/V1moMw6X.js","/app/immutable/chunks/EYYp06eB.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/D1B_DGCd.js","/app/immutable/chunks/B7-7bZi9.js","/app/immutable/chunks/CrrouvLD.js","/app/immutable/chunks/CxEy75pV.js","/app/immutable/assets/conversation-turns.BHHyRLdd.css","/app/immutable/chunks/CvXttgUy.js","/app/immutable/chunks/Dp3fRAus.js","/app/immutable/chunks/DemmMiIF.js","/app/immutable/chunks/CNcD7ed8.js","/app/immutable/chunks/D2akGP2t.js","/app/immutable/chunks/Cub6NZJQ.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/CHXqkR4Y.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DA_CqgBx.js","/app/immutable/chunks/BrMXrCxP.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.CJeEPi1x.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.CoXwlNYv.js","/app/immutable/chunks/CIZP3oBY.js","/app/immutable/nodes/9.B7TZvLdB.js","/app/immutable/chunks/qc5YRWua.js","/app/immutable/chunks/5vm8eILD.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DX06oCSD.js","/app/immutable/chunks/DzEEVQPE.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.CqLjvueR.js","/app/immutable/chunks/19Io1z-x.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DE9J1g7V.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CqK6h2NU.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DIAE3Vla.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/DOjRV3T9.js","/app/immutable/chunks/DtDGJeDZ.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.DjHiLQV_.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.B-B2Ucop.js","/app/immutable/nodes/13.3BHtnsTK.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.CpMLFBYk.js","/app/immutable/chunks/B-l-Ww4Z.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.DBgLfjTo.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.Df1eG3N1.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.B46wRuCk.js","/app/immutable/nodes/18.CGBW_OhO.js","/app/immutable/nodes/19.C65aoXG7.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.DEzyhl5Y.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as o,bm as X,t as lt,bo as f,bw as dt,b as pt,c as ft}from"../chunks/ClpAEjbe.js";import{l as x}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as m,bH as F,c0 as ht,ay as T,bS as It,W as c,bn as At,bV as U,aA as g,a7 as I,c9 as y,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as Lt}from"../chunks/CJxGDkBm.js";import{i as k}from"../chunks/wmcYjLAa.js";import{c as V}from"../chunks/DSqSJXGX.js";import{b as S}from"../chunks/NtFyWdpR.js";const yt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/eZHWD3Je.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},Vt=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function St(t){return t instanceof Error&&t.name==="TypeError"&&Vt.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,wt=8,xt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],_=s.indexOf("/"),l=_===-1?s:s.slice(0,_),d=l.slice(l.lastIndexOf("@")+1),p=_===-1?"":s.slice(_);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function w(t){const e=t.replace(xt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
|
|
3
3
|
`).slice(0,wt).map(w).join(`
|
|
4
|
-
`)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.BIgrj7tk.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.BS4qG73n.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.B-ARMoF4.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,32,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,18,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.CeiKZ0d6.js"),__vite__mapDeps([212,4,5,8,57,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.-s0Jfvde.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,32,33,9,55,56,57,58,59,60,61,21,22,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.BIDxYMYJ.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,150,130,129,32,33,34,1,35,9,128,125,112,57,86,126,56,121,122,89,90,87,59,88,131,55,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,58,60,61,21,22,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.3fDeScAq.js"),__vite__mapDeps([215,4,5,58,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,65,84,219,114,82,63,46,64,112,57,86,87,59,88,124,125,126,56,121,122,89,90,97,111,113,115,116,117,118,119,120,123,54,55,60,127,44,53,61,48,21,22,62,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,153,154,145,155,156,157,110,158,159,18,146,147,160,161,162,167,168,169,148,170,150,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,141,230,96,231,232,233,234,195,235,80,95,187,236,237,206,238,103,239,240,241,242,243,210,191,244,245,246,247,178,194,196,248,26,249,183,250,251,252,72,75,76,68,69,253,254,149,255,208,209,256,257,93,258,259,260,261,262,263,184,102,185,264,265,266,267,192,92,172,268,269,193,270,37,204,271,272,179,273]),import.meta.url),()=>o(()=>import("../nodes/7.DydkXABx.js"),__vite__mapDeps([274,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,57,224,54,32,55,56,58,59,60,160,61,159,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,62,63,64,65,146,147,134,127,116,117,225,73,226,124,74,227,148,228,229,52,153,154,136,115,137,145,155,156,157,110,70,111,113,114,118,119,120,123,132,133,135,43,42,45,41,138,139,158,161,162,163,164,165,166,167,168,169,170,150,171,140,77,141,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,206,238,103,239,240,241,242,243,210,191,244,245,246,247,178,194,196,248,82,188,189,180,91,249,183,250,251,252,254,98,99,275]),import.meta.url),()=>o(()=>import("../nodes/8.DyQruTiJ.js"),__vite__mapDeps([276,4,5,58,114,277,21,14,22,41,13,12,15,3,7,16,2,11,54,8,29,30,32,33,31,34,1,35,28,9,40,55,56,27,57,59,60,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.D0w1njvH.js"),__vite__mapDeps([278,4,5,8,9,31,7,29,3,30,28,33,32,34,11,1,2,35,86,135,112,57,136,115,137,27,131,121,122,56,89,90,113,58,114,87,59,88,116,117,118,119,111,120,123,124,125,126,97,54,40,55,12,13,14,15,16,60,127,44,53,38,39,20,61,48,21,22,62,63,46,64,65,51,128,129,130,132,133,134,43,25,42,45,41,70,138,139,173,144,145,150,146,147,148,26,67,157,279,280,79,160,161,227,234,195,83,71,50,49,249,263,184,183,102,164,165,149,169,81,277,154,155,156,259,260,100,92,106,281,91,282,266,283,69,284,229]),import.meta.url),()=>o(()=>import("../nodes/10.CoUmfWJP.js"),__vite__mapDeps([285,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,65,84,219,26,25,63,46,64,181,57,44,182,66,52,53,54,55,56,58,59,60,61,48,21,22,62,51,50,49,67,68,69,96,97,132,114,115,112,86,133,154,131,121,122,89,90,136,137,145,155,156,157,128,125,126,87,88,153,110,111,113,116,117,118,119,120,123,124,127,134,135,43,42,45,41,138,139,158,159,18,146,147,160,161,162,163,164,165,166,167,168,169,148,170,150,171,183,184,140,77,141,178,185,37,186,95,258,99,197,190,82,204,93,81,270,80,102,231,271,262,232,230,233,234,195,235,227,187,236,263,264,247,272,176,205,175,105,106,107,108,109,177,206,207,286,201,287,288,280,94,289,152,279,149,100,290,291,101,292,293,294,255,295,199,296,172,260,193,297]),import.meta.url),()=>o(()=>import("../nodes/11.Cp19-DaX.js"),__vite__mapDeps([298,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,57,112,86,54,40,55,56,58,59,60,110,97,256,193,155,125,290,291,101,38,39,20,286,201,108,109,107,61,48,44,45,161,287,118,103,294,102,299]),import.meta.url),()=>o(()=>import("../nodes/12.B-B2Ucop.js"),__vite__mapDeps([300,4,5,58,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.3BHtnsTK.js"),__vite__mapDeps([301,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,302]),import.meta.url),()=>o(()=>import("../nodes/14.CpMLFBYk.js"),__vite__mapDeps([303,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,304,13,174,197,112,57,86,40,116,117,132,58,114,115,133,135,136,137,27,131,121,122,56,89,90,305]),import.meta.url),()=>o(()=>import("../nodes/15._NKX_puo.js"),__vite__mapDeps([306,4,5,8,62,12,13,14,15,3,7,16,2,11,63,46,64,38,27,28,29,30,31,39,34,1,35,20,40,65,51,130,220,33,47,48,44,49,50,52,53,54,32,9,55,56,57,58,59,60,61,21,22,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,243,195,159,18,128,125,112,126,121,122,129,131,146,147,134,127,116,117,210,118,191,244,142,113,114,115,119,123,124,164,165,178,163,166,188,153,154,136,137,145,155,156,157,110,111,120,132,133,135,138,139,158,160,161,162,167,168,169,148,170,150,171,189,283,253,225,223,224,226,227,228,229,140,141,230,231,232,233,234,235,187,236,237,197,206,238,239,240,241,242,245,246,247,194,196,248,26,180,249,183,250,251,252,254,149,255,208,209,256,257,304,307]),import.meta.url),()=>o(()=>import("../nodes/16.Df1eG3N1.js"),__vite__mapDeps([308,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,57,73,225,28,16,197,32,9,76,77,40,61,48,44,309,229]),import.meta.url),()=>o(()=>import("../nodes/17.B46wRuCk.js"),__vite__mapDeps([310,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,265,31,97,226,15,16,32,28,86,87,59,88,124,125,112,57,126,56,121,122,89,90,27,61,48,44,49,74,73,225,227,148,228,229,123,40,266,197,75,267]),import.meta.url),()=>o(()=>import("../nodes/18.CGBW_OhO.js"),__vite__mapDeps([311,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.CrIpgdrd.js"),__vite__mapDeps([312,4,5,8,61,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,57,187,80,38,39,20,40,62,63,46,64,65,51,180,91,55,85,113,58,114,115,112,86,87,59,88,116,117,118,119,161,128,125,126,56,121,122,89,90,129,130,131,134,143,144,135,136,137,145,146,147,148,71,133,100,43,25,42,45,21,22,41,313]),import.meta.url),()=>o(()=>import("../nodes/20.DEzyhl5Y.js"),__vite__mapDeps([314,4,5,58,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,65,84,219,271,247,167,64,22,104,315]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
|
|
4
|
+
`)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.BCyk8Eor.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.D2GMUxe6.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.DyILpfUv.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,32,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,18,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.BUXW6SHm.js"),__vite__mapDeps([212,4,5,8,57,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.IOdsbvEy.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,32,33,9,55,56,57,58,59,60,61,21,22,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.CdjllGpy.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,150,130,129,32,33,34,1,35,9,128,125,112,57,86,126,56,121,122,89,90,87,59,88,131,55,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,58,60,61,21,22,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.B9bgqfmM.js"),__vite__mapDeps([215,4,5,58,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,65,84,219,114,82,63,46,64,112,57,86,87,59,88,124,125,126,56,121,122,89,90,97,111,113,115,116,117,118,119,120,123,54,55,60,127,44,53,61,48,21,22,62,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,153,154,145,155,156,157,110,158,159,18,146,147,160,161,162,167,168,169,148,170,150,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,141,230,96,231,232,233,234,195,235,80,95,187,236,237,206,238,103,239,240,241,242,243,210,191,244,245,246,247,178,194,196,248,26,249,183,250,251,252,72,75,76,68,69,253,254,149,255,208,209,256,257,93,258,259,260,261,262,263,184,102,185,264,265,266,267,192,92,172,268,269,193,270,37,204,271,272,179,273]),import.meta.url),()=>o(()=>import("../nodes/7.CJeEPi1x.js"),__vite__mapDeps([274,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,57,224,54,32,55,56,58,59,60,160,61,159,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,62,63,64,65,146,147,134,127,116,117,225,73,226,124,74,227,148,228,229,52,153,154,136,115,137,145,155,156,157,110,70,111,113,114,118,119,120,123,132,133,135,43,42,45,41,138,139,158,161,162,163,164,165,166,167,168,169,170,150,171,140,77,141,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,206,238,103,239,240,241,242,243,210,191,244,245,246,247,178,194,196,248,82,188,189,180,91,249,183,250,251,252,254,98,99,275]),import.meta.url),()=>o(()=>import("../nodes/8.CoXwlNYv.js"),__vite__mapDeps([276,4,5,58,114,277,21,14,22,41,13,12,15,3,7,16,2,11,54,8,29,30,32,33,31,34,1,35,28,9,40,55,56,27,57,59,60,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.B7TZvLdB.js"),__vite__mapDeps([278,4,5,8,9,31,7,29,3,30,28,33,32,34,11,1,2,35,86,135,112,57,136,115,137,27,131,121,122,56,89,90,113,58,114,87,59,88,116,117,118,119,111,120,123,124,125,126,97,54,40,55,12,13,14,15,16,60,127,44,53,38,39,20,61,48,21,22,62,63,46,64,65,51,128,129,130,132,133,134,43,25,42,45,41,70,138,139,173,144,145,150,146,147,148,26,67,157,279,280,79,160,161,227,234,195,83,71,50,49,249,263,184,183,102,164,165,149,169,81,277,154,155,156,259,260,100,92,106,281,91,282,266,283,69,284,229]),import.meta.url),()=>o(()=>import("../nodes/10.CqLjvueR.js"),__vite__mapDeps([285,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,65,84,219,26,25,63,46,64,181,57,44,182,66,52,53,54,55,56,58,59,60,61,48,21,22,62,51,50,49,67,68,69,96,97,132,114,115,112,86,133,154,131,121,122,89,90,136,137,145,155,156,157,128,125,126,87,88,153,110,111,113,116,117,118,119,120,123,124,127,134,135,43,42,45,41,138,139,158,159,18,146,147,160,161,162,163,164,165,166,167,168,169,148,170,150,171,183,184,140,77,141,178,185,37,186,95,258,99,197,190,82,204,93,81,270,80,102,231,271,262,232,230,233,234,195,235,227,187,236,263,264,247,272,176,205,175,105,106,107,108,109,177,206,207,286,201,287,288,280,94,289,152,279,149,100,290,291,101,292,293,294,255,295,199,296,172,260,193,297]),import.meta.url),()=>o(()=>import("../nodes/11.DjHiLQV_.js"),__vite__mapDeps([298,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,57,112,86,54,40,55,56,58,59,60,110,97,256,193,155,125,290,291,101,38,39,20,286,201,108,109,107,61,48,44,45,161,287,118,103,294,102,299]),import.meta.url),()=>o(()=>import("../nodes/12.B-B2Ucop.js"),__vite__mapDeps([300,4,5,58,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.3BHtnsTK.js"),__vite__mapDeps([301,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,302]),import.meta.url),()=>o(()=>import("../nodes/14.CpMLFBYk.js"),__vite__mapDeps([303,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,304,13,174,197,112,57,86,40,116,117,132,58,114,115,133,135,136,137,27,131,121,122,56,89,90,305]),import.meta.url),()=>o(()=>import("../nodes/15.DBgLfjTo.js"),__vite__mapDeps([306,4,5,8,62,12,13,14,15,3,7,16,2,11,63,46,64,38,27,28,29,30,31,39,34,1,35,20,40,65,51,130,220,33,47,48,44,49,50,52,53,54,32,9,55,56,57,58,59,60,61,21,22,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,243,195,159,18,128,125,112,126,121,122,129,131,146,147,134,127,116,117,210,118,191,244,142,113,114,115,119,123,124,164,165,178,163,166,188,153,154,136,137,145,155,156,157,110,111,120,132,133,135,138,139,158,160,161,162,167,168,169,148,170,150,171,189,283,253,225,223,224,226,227,228,229,140,141,230,231,232,233,234,235,187,236,237,197,206,238,239,240,241,242,245,246,247,194,196,248,26,180,249,183,250,251,252,254,149,255,208,209,256,257,304,307]),import.meta.url),()=>o(()=>import("../nodes/16.Df1eG3N1.js"),__vite__mapDeps([308,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,57,73,225,28,16,197,32,9,76,77,40,61,48,44,309,229]),import.meta.url),()=>o(()=>import("../nodes/17.B46wRuCk.js"),__vite__mapDeps([310,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,265,31,97,226,15,16,32,28,86,87,59,88,124,125,112,57,126,56,121,122,89,90,27,61,48,44,49,74,73,225,227,148,228,229,123,40,266,197,75,267]),import.meta.url),()=>o(()=>import("../nodes/18.CGBW_OhO.js"),__vite__mapDeps([311,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.C65aoXG7.js"),__vite__mapDeps([312,4,5,8,61,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,57,187,80,38,39,20,40,62,63,46,64,65,51,180,91,55,85,113,58,114,115,112,86,87,59,88,116,117,118,119,161,128,125,126,56,121,122,89,90,129,130,131,134,143,144,135,136,137,145,146,147,148,71,133,100,43,25,42,45,21,22,41,313]),import.meta.url),()=>o(()=>import("../nodes/20.DEzyhl5Y.js"),__vite__mapDeps([314,4,5,58,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,65,84,219,271,247,167,64,22,104,315]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/NDFzzX6j.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/ClpAEjbe.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/CJxGDkBm.js";import{s as $}from"../chunks/WSVFXKpL.js";import{i as ie}from"../chunks/wmcYjLAa.js";import{k as ae}from"../chunks/Xh71Wbuh.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jq as ue}from"../chunks/CpP1PKzF.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/DedMJivv.js";import{J as fe,H as me}from"../chunks/CTV49dzf.js";import{i as pe}from"../chunks/
|
|
1
|
+
import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/ClpAEjbe.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/CJxGDkBm.js";import{s as $}from"../chunks/WSVFXKpL.js";import{i as ie}from"../chunks/wmcYjLAa.js";import{k as ae}from"../chunks/Xh71Wbuh.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jq as ue}from"../chunks/CpP1PKzF.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/DedMJivv.js";import{J as fe,H as me}from"../chunks/CTV49dzf.js";import{i as pe}from"../chunks/BHINa8Ry.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,q=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){Y(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===q&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===j||e.button===q)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
|