docker-client-mx 1.37.1 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/docker-desktop-mx/browser/chunk-3Xh0zgnl.js +4 -0
  2. package/dist/docker-desktop-mx/browser/{chunk-d2Mr7W8C.js → chunk-86dQWBGy.js} +2 -2
  3. package/dist/docker-desktop-mx/browser/{chunk-ARerY_u8.js → chunk-A1-s5LFW.js} +1 -1
  4. package/dist/docker-desktop-mx/browser/{chunk-BTUpw4iP.js → chunk-B10he8vC.js} +1 -1
  5. package/dist/docker-desktop-mx/browser/{chunk-D0yJpook.js → chunk-B417lX5i.js} +1 -1
  6. package/dist/docker-desktop-mx/browser/{chunk-DO0iZtCc.js → chunk-BJhrBPGr.js} +1 -1
  7. package/dist/docker-desktop-mx/browser/{chunk-A5wKOcG7.js → chunk-BJln0q-L.js} +1 -1
  8. package/dist/docker-desktop-mx/browser/{chunk-DoJ0-JEW.js → chunk-BKqokLUJ.js} +1 -1
  9. package/dist/docker-desktop-mx/browser/{chunk-DmLR4vjP.js → chunk-BNyiHfLm.js} +1 -1
  10. package/dist/docker-desktop-mx/browser/{chunk-B_LO2qP5.js → chunk-Biflawt5.js} +1 -1
  11. package/dist/docker-desktop-mx/browser/{chunk-wHjVeoVE.js → chunk-BuZMCHMG.js} +1 -1
  12. package/dist/docker-desktop-mx/browser/chunk-C2AEaPKl.js +1 -0
  13. package/dist/docker-desktop-mx/browser/{chunk-Dc53d1I5.js → chunk-CJj93ZID.js} +1 -1
  14. package/dist/docker-desktop-mx/browser/chunk-CKKQa1e9.js +1 -0
  15. package/dist/docker-desktop-mx/browser/chunk-CQJfJJJO.js +4 -0
  16. package/dist/docker-desktop-mx/browser/{chunk-C5GyUjf6.js → chunk-CRU66E5W.js} +1 -1
  17. package/dist/docker-desktop-mx/browser/{chunk-C218KaAr.js → chunk-Cc4TZhIN2.js} +1 -1
  18. package/dist/docker-desktop-mx/browser/{chunk-DoVE0m-M.js → chunk-CcSH3zkW.js} +1 -1
  19. package/dist/docker-desktop-mx/browser/{chunk-BD9SGPlI.js → chunk-CcUK35Ba.js} +1 -1
  20. package/dist/docker-desktop-mx/browser/{chunk-CKZAnwkz.js → chunk-ChkLvkqV.js} +1 -1
  21. package/dist/docker-desktop-mx/browser/{chunk-Bd4WPFll.js → chunk-ClFvQPeD.js} +1 -1
  22. package/dist/docker-desktop-mx/browser/{chunk-CRsWWmSK.js → chunk-CleqfF2a.js} +1 -1
  23. package/dist/docker-desktop-mx/browser/{chunk-USWqj2oG.js → chunk-CsmSLtiO.js} +1 -1
  24. package/dist/docker-desktop-mx/browser/{chunk-CzxPdR3J.js → chunk-CtE-C6Yi.js} +1 -1
  25. package/dist/docker-desktop-mx/browser/{chunk-CSf-WGgq.js → chunk-Cxf0K3gA.js} +1 -1
  26. package/dist/docker-desktop-mx/browser/{chunk-CuB3SKfL.js → chunk-D2ip_9iB.js} +1 -1
  27. package/dist/docker-desktop-mx/browser/{chunk-DO4UNcFG.js → chunk-D7w-wcec.js} +1 -1
  28. package/dist/docker-desktop-mx/browser/chunk-DBk_NOEo.js +1 -0
  29. package/dist/docker-desktop-mx/browser/{chunk-C0CE-ryM.js → chunk-DNfHCIbw.js} +1 -1
  30. package/dist/docker-desktop-mx/browser/{chunk-BrDsQn6L.js → chunk-DmnENnOJ.js} +1 -1
  31. package/dist/docker-desktop-mx/browser/{chunk-CUfTRCjA.js → chunk-Dw7M06TM.js} +1 -1
  32. package/dist/docker-desktop-mx/browser/{chunk-Ce9HPQaw.js → chunk-DyCLoZvj.js} +1 -1
  33. package/dist/docker-desktop-mx/browser/{chunk-BiwCCNsK.js → chunk-F0R0gI7h.js} +1 -1
  34. package/dist/docker-desktop-mx/browser/{chunk-BwYNpJJ1.js → chunk-JJCcZGeB.js} +1 -1
  35. package/dist/docker-desktop-mx/browser/{chunk-d9EuDpHJ.js → chunk-Ou7gEgt7.js} +1 -1
  36. package/dist/docker-desktop-mx/browser/{chunk-sLP6RSjc.js → chunk-_hzP4C8y.js} +1 -1
  37. package/dist/docker-desktop-mx/browser/chunk-n7jRjd3_.js +5 -0
  38. package/dist/docker-desktop-mx/browser/index.html +2 -2
  39. package/dist/docker-desktop-mx/browser/main-27BJOEBW.js +1 -0
  40. package/dist/docker-desktop-mx/browser/styles-RGTBYKL7.css +1 -0
  41. package/dist-electron/attention.js +10 -2
  42. package/dist-electron/attention.js.map +1 -1
  43. package/dist-electron/channels.js +3 -0
  44. package/dist-electron/channels.js.map +1 -1
  45. package/dist-electron/ipc.js +4 -0
  46. package/dist-electron/ipc.js.map +1 -1
  47. package/dist-electron/preload.js +7 -1
  48. package/dist-electron/preload.js.map +1 -1
  49. package/dist-electron/project-update.js +120 -0
  50. package/dist-electron/project-update.js.map +1 -0
  51. package/package.json +1 -1
  52. package/dist/docker-desktop-mx/browser/chunk-B2cyL9jQ.js +0 -1
  53. package/dist/docker-desktop-mx/browser/chunk-BU6WXUxF.js +0 -4
  54. package/dist/docker-desktop-mx/browser/chunk-BrBZ51IY.js +0 -1
  55. package/dist/docker-desktop-mx/browser/chunk-CN_jXmBu.js +0 -4
  56. package/dist/docker-desktop-mx/browser/chunk-ai7J7l7m.js +0 -1
  57. package/dist/docker-desktop-mx/browser/main-QH6OTQO6.js +0 -1
  58. package/dist/docker-desktop-mx/browser/styles-QQZVKMBI.css +0 -1
@@ -1 +1 @@
1
- import{A as I,Mn as lk,R as Kr,Vn as ok,W as Lt,_r as wt,er as sk,ln as f,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u,t as f$1}from"./chunk-D0yJpook.js";import{n as y,t as c}from"./chunk-CzxPdR3J.js";var d;var h=f(()=>{Kr();lk();Kr();d=class a{state=wt(null);busy=wt(!1);startingWsl=wt(!1);wslFailure=wt(null);startedWsl=wt(!1);status=this.state.asReadonly();loading=this.busy.asReadonly();wslStarting=this.startingWsl.asReadonly();wslProblem=this.wslFailure.asReadonly();wslStartedBefore=this.startedWsl.asReadonly();async refresh(){this.busy.set(!0);try{this.state.set(await window.electron.engine.status())}finally{this.busy.set(!1)}}async startWsl(e){return this.start(()=>window.electron.engine.startWsl(e),!0)}async startWslDaemon(e){return this.start(()=>window.electron.engine.startWslDaemon(e),!1)}async start(e,t){this.startingWsl.set(!0),this.wslFailure.set(null);try{let r=await e();return r.ok?this.startedWsl.set(t):this.wslFailure.set(r.problem),await this.refresh(),r.ok}catch(r){return this.wslFailure.set(eH(r)),!1}finally{this.startingWsl.set(!1)}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});var p;var W=f(()=>{Kr();y();h();lk();sk();f$1();Kr();p=class a{engine=I(d);compose=I(c);toast=I(u);items=wt([]);busy=wt(!1);failure=wt(null);contexts=this.items.asReadonly();switching=this.busy.asReadonly();problem=this.failure.asReadonly();active=Lt(()=>this.items().find(e=>e.active)??null);async load(){try{this.items.set(await window.electron.contexts.list()),this.failure.set(null)}catch(e){this.failure.set(eH(e))}}async use(e){if(!(this.busy()||e===this.active()?.name)){this.busy.set(!0);try{let t=await window.electron.contexts.use(e);if(!t.ok){this.toast.error(t.problem,ok().dashboard.contexts.switchFailed(e));return}await Promise.all([this.load(),this.engine.refresh(),this.compose.loadStatus()])}catch(t){this.toast.error(eH(t),ok().dashboard.contexts.switchFailed(e))}finally{this.busy.set(!1)}}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});export{p as i,d as n,h as r,W as t};
1
+ import{A as I,Mn as lk,R as Kr,Vn as ok,W as Lt,_r as wt,er as sk,ln as f,sn as eH,zt as X}from"./chunk-CQJfJJJO.js";import{n as u,t as f$1}from"./chunk-B417lX5i.js";import{n as y,t as c}from"./chunk-CtE-C6Yi.js";var d;var h=f(()=>{Kr();lk();Kr();d=class a{state=wt(null);busy=wt(!1);startingWsl=wt(!1);wslFailure=wt(null);startedWsl=wt(!1);status=this.state.asReadonly();loading=this.busy.asReadonly();wslStarting=this.startingWsl.asReadonly();wslProblem=this.wslFailure.asReadonly();wslStartedBefore=this.startedWsl.asReadonly();async refresh(){this.busy.set(!0);try{this.state.set(await window.electron.engine.status())}finally{this.busy.set(!1)}}async startWsl(e){return this.start(()=>window.electron.engine.startWsl(e),!0)}async startWslDaemon(e){return this.start(()=>window.electron.engine.startWslDaemon(e),!1)}async start(e,t){this.startingWsl.set(!0),this.wslFailure.set(null);try{let r=await e();return r.ok?this.startedWsl.set(t):this.wslFailure.set(r.problem),await this.refresh(),r.ok}catch(r){return this.wslFailure.set(eH(r)),!1}finally{this.startingWsl.set(!1)}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});var p;var W=f(()=>{Kr();y();h();lk();sk();f$1();Kr();p=class a{engine=I(d);compose=I(c);toast=I(u);items=wt([]);busy=wt(!1);failure=wt(null);contexts=this.items.asReadonly();switching=this.busy.asReadonly();problem=this.failure.asReadonly();active=Lt(()=>this.items().find(e=>e.active)??null);async load(){try{this.items.set(await window.electron.contexts.list()),this.failure.set(null)}catch(e){this.failure.set(eH(e))}}async use(e){if(!(this.busy()||e===this.active()?.name)){this.busy.set(!0);try{let t=await window.electron.contexts.use(e);if(!t.ok){this.toast.error(t.problem,ok().dashboard.contexts.switchFailed(e));return}await Promise.all([this.load(),this.engine.refresh(),this.compose.loadStatus()])}catch(t){this.toast.error(eH(t),ok().dashboard.contexts.switchFailed(e))}finally{this.busy.set(!1)}}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});export{p as i,d as n,h as r,W as t};
@@ -1 +1 @@
1
- import{A as I,Mn as lk,R as Kr,Vn as ok,W as Lt,_r as wt,er as sk,ln as f$1,lr as ve,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u,t as f$2}from"./chunk-D0yJpook.js";var y;var f=f$1(()=>{Kr();lk();f$2();sk();Kr();y=class s{toast=I(u);items=wt([]);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);networks=this.items.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();unusedCount=Lt(()=>this.items().filter(e=>!e.builtIn&&e.connected===0).length);constructor(){I(ve).onDestroy(window.electron.events.subscribe(e=>{e.includes(`network`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.networks.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}async create(e){let t;try{let r=await window.electron.networks.create(e);t=r.ok?null:r.problem}catch(r){t=eH(r)}return t===null&&(this.toast.success(ok().networks.created(e.name)),await this.refresh()),t}async remove(e){this.running.update(t=>new Set(t).add(e));try{let t=await window.electron.networks.remove(e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let r=new Set(t);return r.delete(e),r})}await this.refresh()}async removeMany(e){await Promise.all(e.map(t=>this.remove(t)))}async prune(){this.busy.set(!0);try{let e=await window.electron.networks.prune();e.ok?this.toast.success(e.removed===0?ok().common.nothingToPrune:ok().networks.pruned(e.removed)):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}static ɵfac=function(t){return new(t||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,f as t};
1
+ import{A as I,Mn as lk,R as Kr,Vn as ok,W as Lt,_r as wt,er as sk,ln as f$1,lr as ve,sn as eH,zt as X}from"./chunk-CQJfJJJO.js";import{n as u,t as f$2}from"./chunk-B417lX5i.js";var y;var f=f$1(()=>{Kr();lk();f$2();sk();Kr();y=class s{toast=I(u);items=wt([]);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);networks=this.items.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();unusedCount=Lt(()=>this.items().filter(e=>!e.builtIn&&e.connected===0).length);constructor(){I(ve).onDestroy(window.electron.events.subscribe(e=>{e.includes(`network`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.networks.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}async create(e){let t;try{let r=await window.electron.networks.create(e);t=r.ok?null:r.problem}catch(r){t=eH(r)}return t===null&&(this.toast.success(ok().networks.created(e.name)),await this.refresh()),t}async remove(e){this.running.update(t=>new Set(t).add(e));try{let t=await window.electron.networks.remove(e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let r=new Set(t);return r.delete(e),r})}await this.refresh()}async removeMany(e){await Promise.all(e.map(t=>this.remove(t)))}async prune(){this.busy.set(!0);try{let e=await window.electron.networks.prune();e.ok?this.toast.success(e.removed===0?ok().common.nothingToPrune:ok().networks.pruned(e.removed)):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}static ɵfac=function(t){return new(t||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,f as t};
@@ -1 +1 @@
1
- import{En as jc,Fn as mj,Ft as Wm,Gn as pg,H as Li,I as Jm,J as My,Kn as pj,Kt as _m,O as HE,R as Kr,Sn as hg,T as Gm,V as Ld,Vn as ok,W as Lt,X as Nc,cn as ec,er as sk,hr as wc,in as dk,ln as f,r as Ac,sr as vS,tt as Od,un as fS,ur as vg,ut as RE}from"./chunk-BU6WXUxF.js";import{a as Ni,c as Ri,h as ki,i as Mi,n as Ii,o as Oi,p as ho,s as Pi,t as Ai}from"./chunk-CKZAnwkz.js";function H(o,u){if(o&1){let e=RE();Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`div`,5)(4,`span`,6),Gm(5,`app-icon`,7),Nc(),Li(6,`div`,8)(7,`h2`,9),fS(8),Nc(),Li(9,`p`,10),fS(10),Nc()()(),Li(11,`div`,11)(12,`button`,12),Gm(13,`app-icon`,13),fS(14),Nc(),Li(15,`button`,14),Jm(`click`,function(){Od(e);return Ld(HE().accept())}),Gm(16,`app-icon`,15),fS(17),Nc()()()()}if(o&2){let e=HE();ec(5),Wm(`size`,20),ec(3),pg(e.title()),ec(2),pg(e.description()),ec(3),Wm(`size`,14),ec(),Ac(` `,e.cancelLabel(),` `),ec(2),Wm(`name`,e.confirmIcon())(`size`,14),ec(),Ac(` `,e.shownConfirmLabel(),` `)}}var W;var J=f(()=>{Kr();ho();sk();dk();Kr();W=class o{open=mj(!1);title=jc.required();description=jc.required();confirmLabel=jc(null);confirmIcon=jc(`trash`);confirmed=pj();cancelLabel=Lt(()=>ok().common.cancel);shownConfirmLabel=Lt(()=>this.confirmLabel()??ok().shell.confirmDialog.confirm);accept(){this.open.set(!1),this.confirmed.emit()}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-confirm-dialog`]],inputs:{open:[1,`open`],title:[1,`title`],description:[1,`description`],confirmLabel:[1,`confirmLabel`],confirmIcon:[1,`confirmIcon`]},outputs:{open:`openChange`,confirmed:`confirmed`},decls:2,vars:1,consts:[[`rdxAlertDialogRoot`,``,3,`openChange`,`open`],[`rdxAlertDialogPortal`,``],[`rdxAlertDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxAlertDialogViewport`,``,`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxAlertDialogPopup`,``,1,`w-full`,`max-w-md`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[1,`flex`,`gap-3`],[1,`mt-0.5`,`text-danger`],[`name`,`warning`,3,`size`],[1,`min-w-0`],[`rdxAlertDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxAlertDialogDescription`,``,1,`mt-1.5`,`text-[13px]`,`text-ink-300`],[1,`mt-5`,`flex`,`justify-end`,`gap-2`],[`type`,`button`,`rdxAlertDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`button`,1,`mx-btn`,`mx-focus`,`border-danger`,`bg-danger`,`text-white`,`hover:border-danger`,`hover:bg-danger`,`hover:text-white`,3,`click`],[3,`name`,`size`]],template:function(e,d){e&1&&(Li(0,`div`,0),vg(`openChange`,function(c){return vS(d.open,c)||(d.open=c),c}),_m(1,H,18,8,`ng-template`,1),Nc()),e&2&&hg(`open`,d.open)},dependencies:[Ni,Ai,Oi,ki,Ii,Pi,Mi,Ri,My],encapsulation:2})}});export{W as n,J as t};
1
+ import{En as jc,Fn as mj,Ft as Wm,Gn as pg,H as Li,I as Jm,J as My,Kn as pj,Kt as _m,O as HE,R as Kr,Sn as hg,T as Gm,V as Ld,Vn as ok,W as Lt,X as Nc,cn as ec,er as sk,hr as wc,in as dk,ln as f,r as Ac,sr as vS,tt as Od,un as fS,ur as vg,ut as RE}from"./chunk-CQJfJJJO.js";import{a as Ni,c as Ri,h as ki,i as Mi,n as Ii,o as Oi,p as ho,s as Pi,t as Ai}from"./chunk-ChkLvkqV.js";function H(o,u){if(o&1){let e=RE();Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`div`,5)(4,`span`,6),Gm(5,`app-icon`,7),Nc(),Li(6,`div`,8)(7,`h2`,9),fS(8),Nc(),Li(9,`p`,10),fS(10),Nc()()(),Li(11,`div`,11)(12,`button`,12),Gm(13,`app-icon`,13),fS(14),Nc(),Li(15,`button`,14),Jm(`click`,function(){Od(e);return Ld(HE().accept())}),Gm(16,`app-icon`,15),fS(17),Nc()()()()}if(o&2){let e=HE();ec(5),Wm(`size`,20),ec(3),pg(e.title()),ec(2),pg(e.description()),ec(3),Wm(`size`,14),ec(),Ac(` `,e.cancelLabel(),` `),ec(2),Wm(`name`,e.confirmIcon())(`size`,14),ec(),Ac(` `,e.shownConfirmLabel(),` `)}}var W;var J=f(()=>{Kr();ho();sk();dk();Kr();W=class o{open=mj(!1);title=jc.required();description=jc.required();confirmLabel=jc(null);confirmIcon=jc(`trash`);confirmed=pj();cancelLabel=Lt(()=>ok().common.cancel);shownConfirmLabel=Lt(()=>this.confirmLabel()??ok().shell.confirmDialog.confirm);accept(){this.open.set(!1),this.confirmed.emit()}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-confirm-dialog`]],inputs:{open:[1,`open`],title:[1,`title`],description:[1,`description`],confirmLabel:[1,`confirmLabel`],confirmIcon:[1,`confirmIcon`]},outputs:{open:`openChange`,confirmed:`confirmed`},decls:2,vars:1,consts:[[`rdxAlertDialogRoot`,``,3,`openChange`,`open`],[`rdxAlertDialogPortal`,``],[`rdxAlertDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxAlertDialogViewport`,``,`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxAlertDialogPopup`,``,1,`w-full`,`max-w-md`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[1,`flex`,`gap-3`],[1,`mt-0.5`,`text-danger`],[`name`,`warning`,3,`size`],[1,`min-w-0`],[`rdxAlertDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxAlertDialogDescription`,``,1,`mt-1.5`,`text-[13px]`,`text-ink-300`],[1,`mt-5`,`flex`,`justify-end`,`gap-2`],[`type`,`button`,`rdxAlertDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`button`,1,`mx-btn`,`mx-focus`,`border-danger`,`bg-danger`,`text-white`,`hover:border-danger`,`hover:bg-danger`,`hover:text-white`,3,`click`],[3,`name`,`size`]],template:function(e,d){e&1&&(Li(0,`div`,0),vg(`openChange`,function(c){return vS(d.open,c)||(d.open=c),c}),_m(1,H,18,8,`ng-template`,1),Nc()),e&2&&hg(`open`,d.open)},dependencies:[Ni,Ai,Oi,ki,Ii,Pi,Mi,Ri,My],encapsulation:2})}});export{W as n,J as t};
@@ -1 +1 @@
1
- import{A as I,R as Kr,Vn as ok,_r as wt,er as sk,ln as f,zt as X}from"./chunk-BU6WXUxF.js";import{n as u,t as f$1}from"./chunk-D0yJpook.js";var c;var y=f(()=>{Kr();sk();f$1();Kr();c=class s{toast=I(u);cliStatus=wt(null);running=wt(new Set);status=this.cliStatus.asReadonly();pending=this.running.asReadonly();async loadStatus(){this.cliStatus.set(await window.electron.compose.status())}async up(t){await this.run(t,`up`)}async down(t){await this.run(t,`down`)}async recreate(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await window.electron.compose.recreate(t,n);return e.ok?this.toast.success(ok().compose.recreateDone(n)):this.toast.error(e.problem),e.ok}finally{this.release(t)}}async run(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await(n===`up`?window.electron.compose.up(t):window.electron.compose.down(t));if(e.ok){let r=ok().compose;this.toast.success(n===`up`?r.upDone(t):r.downDone(t))}else this.toast.error(e.problem)}finally{this.release(t)}}release(t){this.running.update(n=>{let e=new Set(n);return e.delete(t),e})}static ɵfac=function(n){return new(n||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,c as t};
1
+ import{A as I,R as Kr,Vn as ok,_r as wt,er as sk,ln as f,zt as X}from"./chunk-CQJfJJJO.js";import{n as u,t as f$1}from"./chunk-B417lX5i.js";var c;var y=f(()=>{Kr();sk();f$1();Kr();c=class s{toast=I(u);cliStatus=wt(null);running=wt(new Set);status=this.cliStatus.asReadonly();pending=this.running.asReadonly();async loadStatus(){this.cliStatus.set(await window.electron.compose.status())}async up(t){await this.run(t,`up`)}async down(t){await this.run(t,`down`)}async recreate(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await window.electron.compose.recreate(t,n);return e.ok?this.toast.success(ok().compose.recreateDone(n)):this.toast.error(e.problem),e.ok}finally{this.release(t)}}async run(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await(n===`up`?window.electron.compose.up(t):window.electron.compose.down(t));if(e.ok){let r=ok().compose;this.toast.success(n===`up`?r.upDone(t):r.downDone(t))}else this.toast.error(e.problem)}finally{this.release(t)}}release(t){this.running.update(n=>{let e=new Set(n);return e.delete(t),e})}static ɵfac=function(n){return new(n||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,c as t};
@@ -1 +1 @@
1
- import{A as I,Mn as lk,Pt as W,R as Kr,S as G,Vn as ok,W as Lt,_r as wt,er as sk,ln as f,lr as ve,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u,t as f$1}from"./chunk-D0yJpook.js";import{i as h,r as d}from"./chunk-Dc53d1I5.js";var w;var B=f(()=>{Kr();h();lk();f$1();sk();Kr();w=class l{toast=I(u);items=wt([]);sizeByName=wt({});busy=wt(!1);sizesBusy=wt(!1);loadProblem=wt(null);running=wt(new Set);loading=this.busy.asReadonly();loadingSizes=this.sizesBusy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();volumes=Lt(()=>{let s=this.sizeByName();return this.items().map(e=>G(W({},e),{sizeBytes:s[e.name]??null}))});totalBytes=Lt(()=>this.volumes().reduce((s,e)=>s+(e.sizeBytes??0),0));unusedCount=Lt(()=>this.items().filter(s=>s.inUseBy===0).length);constructor(){I(ve).onDestroy(window.electron.events.subscribe(s=>{s.includes(`volume`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.volumes.list()),this.loadProblem.set(null)}catch(s){this.loadProblem.set(eH(s))}finally{this.busy.set(!1)}this.loadSizes()}async loadSizes(){this.sizesBusy.set(!0);try{this.sizeByName.set(await window.electron.volumes.sizes())}catch{}finally{this.sizesBusy.set(!1)}}async create(s){let e;try{let t=await window.electron.volumes.create(s);e=t.ok?null:t.problem}catch(t){e=eH(t)}return e===null&&(this.toast.success(ok().volumes.created(s.name)),await this.refresh()),e}async remove(s,e){this.running.update(t=>new Set(t).add(s));try{let t=await window.electron.volumes.remove(s,e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}await this.refresh()}async removeMany(s,e){await Promise.all(s.map(t=>this.remove(t,e)))}async prune(s){this.busy.set(!0);try{let e=await window.electron.volumes.prune(s);e.ok?this.toast.success(e.removed===0?ok().common.nothingToPrune:ok().volumes.pruned(e.removed,d(e.reclaimedBytes))):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}async backup(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.backup(s);e.ok?e.savedTo!==null&&this.toast.success(ok().volumes.backedUp(s,e.savedTo)):this.toast.error(e.problem)})}async restore(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.restore(s);e.ok?e.restoredFrom!==null&&this.toast.success(ok().volumes.restored(e.restoredFrom,s)):this.toast.error(e.problem)}),await this.loadSizes()}async whilePending(s,e){this.running.update(t=>new Set(t).add(s));try{await e()}catch(t){this.toast.error(eH(t))}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}}static ɵfac=function(e){return new(e||l)};static ɵprov=X({token:l,factory:l.ɵfac,providedIn:`root`})}});export{w as n,B as t};
1
+ import{A as I,Mn as lk,Pt as W,R as Kr,S as G,Vn as ok,W as Lt,_r as wt,er as sk,ln as f,lr as ve,sn as eH,zt as X}from"./chunk-CQJfJJJO.js";import{n as u,t as f$1}from"./chunk-B417lX5i.js";import{i as h,r as d}from"./chunk-CJj93ZID.js";var w;var B=f(()=>{Kr();h();lk();f$1();sk();Kr();w=class l{toast=I(u);items=wt([]);sizeByName=wt({});busy=wt(!1);sizesBusy=wt(!1);loadProblem=wt(null);running=wt(new Set);loading=this.busy.asReadonly();loadingSizes=this.sizesBusy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();volumes=Lt(()=>{let s=this.sizeByName();return this.items().map(e=>G(W({},e),{sizeBytes:s[e.name]??null}))});totalBytes=Lt(()=>this.volumes().reduce((s,e)=>s+(e.sizeBytes??0),0));unusedCount=Lt(()=>this.items().filter(s=>s.inUseBy===0).length);constructor(){I(ve).onDestroy(window.electron.events.subscribe(s=>{s.includes(`volume`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.volumes.list()),this.loadProblem.set(null)}catch(s){this.loadProblem.set(eH(s))}finally{this.busy.set(!1)}this.loadSizes()}async loadSizes(){this.sizesBusy.set(!0);try{this.sizeByName.set(await window.electron.volumes.sizes())}catch{}finally{this.sizesBusy.set(!1)}}async create(s){let e;try{let t=await window.electron.volumes.create(s);e=t.ok?null:t.problem}catch(t){e=eH(t)}return e===null&&(this.toast.success(ok().volumes.created(s.name)),await this.refresh()),e}async remove(s,e){this.running.update(t=>new Set(t).add(s));try{let t=await window.electron.volumes.remove(s,e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}await this.refresh()}async removeMany(s,e){await Promise.all(s.map(t=>this.remove(t,e)))}async prune(s){this.busy.set(!0);try{let e=await window.electron.volumes.prune(s);e.ok?this.toast.success(e.removed===0?ok().common.nothingToPrune:ok().volumes.pruned(e.removed,d(e.reclaimedBytes))):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}async backup(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.backup(s);e.ok?e.savedTo!==null&&this.toast.success(ok().volumes.backedUp(s,e.savedTo)):this.toast.error(e.problem)})}async restore(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.restore(s);e.ok?e.restoredFrom!==null&&this.toast.success(ok().volumes.restored(e.restoredFrom,s)):this.toast.error(e.problem)}),await this.loadSizes()}async whilePending(s,e){this.running.update(t=>new Set(t).add(s));try{await e()}catch(t){this.toast.error(eH(t))}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}}static ɵfac=function(e){return new(e||l)};static ɵprov=X({token:l,factory:l.ɵfac,providedIn:`root`})}});export{w as n,B as t};
@@ -1 +1 @@
1
- import{$n as sg,A as I$1,Cn as hj,Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,H as Li,I as Jm,Jt as ag,O as HE,On as kc,R as Kr,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,_t as SS,a as Ar,ar as tg,cn as ec,ct as Qm,dr as vj,er as sk,gt as SE,hr as wc,ln as f,o as BE,r as Ac,t as $C,tt as Od,un as fS,ut as RE}from"./chunk-BU6WXUxF.js";import{F as tn,u as Me}from"./chunk-C0CE-ryM.js";function U(t,n){return this.trackKey()(n)}function W(t,n){t&1&&Gm(0,`col`,1)}function X(t,n){if(t&1&&Gm(0,`col`),t&2){let e=n.$implicit;sg(`width`,e.width??null)}}function Y(t,n){if(t&1){let e=RE();Li(0,`th`,4)(1,`input`,6),Jm(`change`,function(){Od(e);return Ld(HE().toggleAll())}),Nc()()}if(t&2){let e=HE();ec(),Wm(`checked`,e.allSelected())(`indeterminate`,e.someSelected()),zr(`aria-label`,e.allSelected()?e.t().clearSelection:e.t().selectAll)}}function Z(t,n){if(t&1&&(Li(0,`th`,7),fS(1),Nc()),t&2){let e=n.$implicit;ag(`text-right`,e.align===`right`),ec(),Ac(` `,e.label,` `)}}function ee(t,n){if(t&1&&(Li(0,`tr`,8)(1,`td`,10),Qm(2,11),Nc()()),t&2){let e=HE().$implicit,a=HE();ec(),zr(`colspan`,a.columnCount()),ec(),Wm(`ngTemplateOutlet`,a.groupHeader().template)(`ngTemplateOutletContext`,SS(3,I,e))}}function te(t,n){if(t&1){let e=RE();Li(0,`td`,10)(1,`input`,13),Jm(`change`,function(){Od(e);let d=HE().$implicit,$=HE(2);return Ld($.toggleOne($.trackKey()(d)))}),Nc()()}if(t&2){let e=HE().$implicit,a=HE(2);ec(),Wm(`checked`,a.selected().has(a.trackKey()(e))),zr(`aria-label`,a.t().select(a.trackKey()(e)))}}function ne(t,n){if(t&1&&(Li(0,`td`,10),Qm(1,11),Nc()),t&2){let e=n.$implicit,a=HE().$implicit,d=HE(2);ag(`text-right`,e.align===`right`),ec(),Wm(`ngTemplateOutlet`,d.cellFor(e.key))(`ngTemplateOutletContext`,SS(4,I,a))}}function ae(t,n){if(t&1&&(Li(0,`tr`,9),SE(1,te,2,2,`td`,10),kc(2,ne,2,6,`td`,12,_),Nc()),t&2){let e=HE(2);ec(),kE(e.selectable()?1:-1),ec(),Tc(e.columns())}}function ie(t,n){if(t&1&&(SE(0,ee,3,5,`tr`,8),kc(1,ae,4,1,`tr`,9,U,!0)),t&2){let e=n.$implicit;kE(HE().showHeaders()?0:-1),ec(),Tc(e.rows)}}function le(t,n){if(t&1&&(Li(0,`tr`)(1,`td`,14),fS(2),Nc()()),t&2){let e=HE();ec(),zr(`colspan`,e.columnCount()),ec(),Ac(` `,e.emptyMessage()??e.t().empty,` `)}}var I;var _;var x;var h;var z;var oe=f(()=>{Me();Kr();sk();Kr();I=t=>({$implicit:t}),_=(t,n)=>n.key;x=class t{appCell=jc.required();template=I$1(Ar);static ɵfac=function(e){return new(e||t)};static ɵdir=$C({type:t,selectors:[[`ng-template`,`appCell`,``]],inputs:{appCell:[1,`appCell`]}})},h=class t{template=I$1(Ar);static ɵfac=function(e){return new(e||t)};static ɵdir=$C({type:t,selectors:[[`ng-template`,`appGroupHeader`,``]]})},z=class t{columns=jc.required();rows=jc.required();trackKey=jc.required();selectable=jc(!0);emptyMessage=jc(null);selected=mj(new Set);groups=jc(null);cells=vj(x);groupHeader=hj(h);t=Lt(()=>ok().shell.dataTable);blocks=Lt(()=>this.groups()??[{key:``,rows:this.rows()}]);showHeaders=Lt(()=>this.groups()!==null&&this.groupHeader()!==void 0);isEmpty=Lt(()=>this.blocks().length===0||!this.showHeaders()&&this.rows().length===0);cellsByKey=Lt(()=>new Map(this.cells().map(n=>[n.appCell(),n.template])));columnCount=Lt(()=>this.columns().length+(this.selectable()?1:0));allSelected=Lt(()=>this.rows().length>0&&this.selected().size===this.rows().length);someSelected=Lt(()=>this.selected().size>0&&!this.allSelected());cellFor(n){return this.cellsByKey().get(n)??null}toggleAll(){this.selected.set(this.allSelected()?new Set:new Set(this.rows().map(n=>this.trackKey()(n))))}toggleOne(n){let e=new Set(this.selected());e.delete(n)||e.add(n),this.selected.set(e)}static ɵfac=function(e){return new(e||t)};static ɵcmp=wc({type:t,selectors:[[`app-data-table`]],contentQueries:function(e,a,d){e&1&&tg(d,a.cells,x,4)(d,a.groupHeader,h,5),e&2&&BE(2)},inputs:{columns:[1,`columns`],rows:[1,`rows`],trackKey:[1,`trackKey`],selectable:[1,`selectable`],emptyMessage:[1,`emptyMessage`],selected:[1,`selected`],groups:[1,`groups`]},outputs:{selected:`selectedChange`},decls:14,vars:3,consts:[[1,`w-full`,`table-fixed`,`border-collapse`,`text-[13px]`],[1,`w-10`],[3,`width`],[1,`border-b`,`border-ink-700`,`text-left`,`text-ink-400`],[1,`px-3`,`py-2`],[`scope`,`col`,1,`truncate`,`px-3`,`py-2`,`font-medium`,3,`text-right`],[`type`,`checkbox`,1,`mx-focus`,`accent-accent`,3,`change`,`checked`,`indeterminate`],[`scope`,`col`,1,`truncate`,`px-3`,`py-2`,`font-medium`],[1,`border-b`,`border-ink-800`,`bg-ink-850`],[1,`border-b`,`border-ink-800`,`transition-colors`,`hover:bg-ink-850`],[1,`px-3`,`py-1.5`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`px-3`,`py-1.5`,3,`text-right`],[`type`,`checkbox`,1,`mx-focus`,`accent-accent`,3,`change`,`checked`],[1,`px-3`,`py-10`,`text-center`,`text-ink-400`]],template:function(e,a){e&1&&(Li(0,`table`,0)(1,`colgroup`),SE(2,W,1,0,`col`,1),kc(3,X,1,2,`col`,2,_),Nc(),Li(5,`thead`)(6,`tr`,3),SE(7,Y,2,3,`th`,4),kc(8,Z,2,3,`th`,5,_),Nc()(),Li(10,`tbody`),kc(11,ie,3,1,null,null,_),SE(13,le,3,2,`tr`),Nc()()),e&2&&(ec(2),kE(a.selectable()?2:-1),ec(),Tc(a.columns()),ec(4),kE(a.selectable()?7:-1),ec(),Tc(a.columns()),ec(3),Tc(a.blocks()),ec(2),kE(a.isEmpty()?13:-1))},dependencies:[tn],encapsulation:2})}});export{z as i,oe as n,x as r,h as t};
1
+ import{$n as sg,A as I$1,Cn as hj,Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,H as Li,I as Jm,Jt as ag,O as HE,On as kc,R as Kr,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,_t as SS,a as Ar,ar as tg,cn as ec,ct as Qm,dr as vj,er as sk,gt as SE,hr as wc,ln as f,o as BE,r as Ac,t as $C,tt as Od,un as fS,ut as RE}from"./chunk-CQJfJJJO.js";import{F as tn,u as Me}from"./chunk-DNfHCIbw.js";function U(t,n){return this.trackKey()(n)}function W(t,n){t&1&&Gm(0,`col`,1)}function X(t,n){if(t&1&&Gm(0,`col`),t&2){let e=n.$implicit;sg(`width`,e.width??null)}}function Y(t,n){if(t&1){let e=RE();Li(0,`th`,4)(1,`input`,6),Jm(`change`,function(){Od(e);return Ld(HE().toggleAll())}),Nc()()}if(t&2){let e=HE();ec(),Wm(`checked`,e.allSelected())(`indeterminate`,e.someSelected()),zr(`aria-label`,e.allSelected()?e.t().clearSelection:e.t().selectAll)}}function Z(t,n){if(t&1&&(Li(0,`th`,7),fS(1),Nc()),t&2){let e=n.$implicit;ag(`text-right`,e.align===`right`),ec(),Ac(` `,e.label,` `)}}function ee(t,n){if(t&1&&(Li(0,`tr`,8)(1,`td`,10),Qm(2,11),Nc()()),t&2){let e=HE().$implicit,a=HE();ec(),zr(`colspan`,a.columnCount()),ec(),Wm(`ngTemplateOutlet`,a.groupHeader().template)(`ngTemplateOutletContext`,SS(3,I,e))}}function te(t,n){if(t&1){let e=RE();Li(0,`td`,10)(1,`input`,13),Jm(`change`,function(){Od(e);let d=HE().$implicit,$=HE(2);return Ld($.toggleOne($.trackKey()(d)))}),Nc()()}if(t&2){let e=HE().$implicit,a=HE(2);ec(),Wm(`checked`,a.selected().has(a.trackKey()(e))),zr(`aria-label`,a.t().select(a.trackKey()(e)))}}function ne(t,n){if(t&1&&(Li(0,`td`,10),Qm(1,11),Nc()),t&2){let e=n.$implicit,a=HE().$implicit,d=HE(2);ag(`text-right`,e.align===`right`),ec(),Wm(`ngTemplateOutlet`,d.cellFor(e.key))(`ngTemplateOutletContext`,SS(4,I,a))}}function ae(t,n){if(t&1&&(Li(0,`tr`,9),SE(1,te,2,2,`td`,10),kc(2,ne,2,6,`td`,12,_),Nc()),t&2){let e=HE(2);ec(),kE(e.selectable()?1:-1),ec(),Tc(e.columns())}}function ie(t,n){if(t&1&&(SE(0,ee,3,5,`tr`,8),kc(1,ae,4,1,`tr`,9,U,!0)),t&2){let e=n.$implicit;kE(HE().showHeaders()?0:-1),ec(),Tc(e.rows)}}function le(t,n){if(t&1&&(Li(0,`tr`)(1,`td`,14),fS(2),Nc()()),t&2){let e=HE();ec(),zr(`colspan`,e.columnCount()),ec(),Ac(` `,e.emptyMessage()??e.t().empty,` `)}}var I;var _;var x;var h;var z;var oe=f(()=>{Me();Kr();sk();Kr();I=t=>({$implicit:t}),_=(t,n)=>n.key;x=class t{appCell=jc.required();template=I$1(Ar);static ɵfac=function(e){return new(e||t)};static ɵdir=$C({type:t,selectors:[[`ng-template`,`appCell`,``]],inputs:{appCell:[1,`appCell`]}})},h=class t{template=I$1(Ar);static ɵfac=function(e){return new(e||t)};static ɵdir=$C({type:t,selectors:[[`ng-template`,`appGroupHeader`,``]]})},z=class t{columns=jc.required();rows=jc.required();trackKey=jc.required();selectable=jc(!0);emptyMessage=jc(null);selected=mj(new Set);groups=jc(null);cells=vj(x);groupHeader=hj(h);t=Lt(()=>ok().shell.dataTable);blocks=Lt(()=>this.groups()??[{key:``,rows:this.rows()}]);showHeaders=Lt(()=>this.groups()!==null&&this.groupHeader()!==void 0);isEmpty=Lt(()=>this.blocks().length===0||!this.showHeaders()&&this.rows().length===0);cellsByKey=Lt(()=>new Map(this.cells().map(n=>[n.appCell(),n.template])));columnCount=Lt(()=>this.columns().length+(this.selectable()?1:0));allSelected=Lt(()=>this.rows().length>0&&this.selected().size===this.rows().length);someSelected=Lt(()=>this.selected().size>0&&!this.allSelected());cellFor(n){return this.cellsByKey().get(n)??null}toggleAll(){this.selected.set(this.allSelected()?new Set:new Set(this.rows().map(n=>this.trackKey()(n))))}toggleOne(n){let e=new Set(this.selected());e.delete(n)||e.add(n),this.selected.set(e)}static ɵfac=function(e){return new(e||t)};static ɵcmp=wc({type:t,selectors:[[`app-data-table`]],contentQueries:function(e,a,d){e&1&&tg(d,a.cells,x,4)(d,a.groupHeader,h,5),e&2&&BE(2)},inputs:{columns:[1,`columns`],rows:[1,`rows`],trackKey:[1,`trackKey`],selectable:[1,`selectable`],emptyMessage:[1,`emptyMessage`],selected:[1,`selected`],groups:[1,`groups`]},outputs:{selected:`selectedChange`},decls:14,vars:3,consts:[[1,`w-full`,`table-fixed`,`border-collapse`,`text-[13px]`],[1,`w-10`],[3,`width`],[1,`border-b`,`border-ink-700`,`text-left`,`text-ink-400`],[1,`px-3`,`py-2`],[`scope`,`col`,1,`truncate`,`px-3`,`py-2`,`font-medium`,3,`text-right`],[`type`,`checkbox`,1,`mx-focus`,`accent-accent`,3,`change`,`checked`,`indeterminate`],[`scope`,`col`,1,`truncate`,`px-3`,`py-2`,`font-medium`],[1,`border-b`,`border-ink-800`,`bg-ink-850`],[1,`border-b`,`border-ink-800`,`transition-colors`,`hover:bg-ink-850`],[1,`px-3`,`py-1.5`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`px-3`,`py-1.5`,3,`text-right`],[`type`,`checkbox`,1,`mx-focus`,`accent-accent`,3,`change`,`checked`],[1,`px-3`,`py-10`,`text-center`,`text-ink-400`]],template:function(e,a){e&1&&(Li(0,`table`,0)(1,`colgroup`),SE(2,W,1,0,`col`,1),kc(3,X,1,2,`col`,2,_),Nc(),Li(5,`thead`)(6,`tr`,3),SE(7,Y,2,3,`th`,4),kc(8,Z,2,3,`th`,5,_),Nc()(),Li(10,`tbody`),kc(11,ie,3,1,null,null,_),SE(13,le,3,2,`tr`),Nc()()),e&2&&(ec(2),kE(a.selectable()?2:-1),ec(),Tc(a.columns()),ec(4),kE(a.selectable()?7:-1),ec(),Tc(a.columns()),ec(3),Tc(a.blocks()),ec(2),kE(a.isEmpty()?13:-1))},dependencies:[tn],encapsulation:2})}});export{z as i,oe as n,x as r,h as t};
@@ -1 +1 @@
1
- import{ln as f$1}from"./chunk-BU6WXUxF.js";function g(a,t){return a===0?`stopped`:a===t?`running`:`partial`}function f(a){let t=new Map;for(let n of a){if(n.composeProject===null)continue;let o=t.get(n.composeProject);o===void 0?t.set(n.composeProject,[n]):o.push(n)}let c=[];for(let[n,o]of t){let i=new Map;for(let e of o){let r=e.composeService??e.name,s=i.get(r);s===void 0?i.set(r,[e]):s.push(e)}let l=[...i.entries()].map(([e,r])=>({name:e,containers:[...r].sort((s,u)=>s.name.localeCompare(u.name))})).sort((e,r)=>e.name.localeCompare(r.name)),m=o.filter(e=>e.state===`running`).length,p=o.find(e=>e.composeWorkingDir!==null);c.push({name:n,workingDir:p?.composeWorkingDir??null,configFiles:p?.composeConfigFiles??[],services:l,containerIds:o.map(e=>e.id),total:o.length,running:m,state:g(m,o.length)})}return c.sort((n,o)=>n.name.localeCompare(o.name))}var y=f$1(()=>{});export{y as n,f as t};
1
+ import{ln as f$1}from"./chunk-CQJfJJJO.js";function g(a,t){return a===0?`stopped`:a===t?`running`:`partial`}function f(a){let t=new Map;for(let n of a){if(n.composeProject===null)continue;let o=t.get(n.composeProject);o===void 0?t.set(n.composeProject,[n]):o.push(n)}let c=[];for(let[n,o]of t){let i=new Map;for(let e of o){let r=e.composeService??e.name,s=i.get(r);s===void 0?i.set(r,[e]):s.push(e)}let l=[...i.entries()].map(([e,r])=>({name:e,containers:[...r].sort((s,u)=>s.name.localeCompare(u.name))})).sort((e,r)=>e.name.localeCompare(r.name)),m=o.filter(e=>e.state===`running`).length,p=o.find(e=>e.composeWorkingDir!==null);c.push({name:n,workingDir:p?.composeWorkingDir??null,configFiles:p?.composeConfigFiles??[],services:l,containerIds:o.map(e=>e.id),total:o.length,running:m,state:g(m,o.length)})}return c.sort((n,o)=>n.name.localeCompare(o.name))}var y=f$1(()=>{});export{y as n,f as t};
@@ -0,0 +1 @@
1
+ import{A as I,Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,G as M,Gn as pg,H as Li,I as Jm,J as My,Kn as pj,L as Km,Mn as lk,N as Ij,O as HE,On as kc,Pt as W$1,R as Kr,S as G,T as Gm,Tn as jC,Tr as zr,V as Ld,Vn as ok,W as Lt$1,X as Nc,Zn as rf,_ as Dj,_r as wt,at as Pr,b as Ej,cn as ec,d as CS,er as sk,gt as SE,hr as wc,in as dk,it as PS,ln as f,lr as ve$1,r as Ac,sn as eH,t as $C,tt as Od,un as fS,ut as RE,wn as ik,wt as Tg,xt as TE,z as LD}from"./chunk-CQJfJJJO.js";import{D as ko,E as jo,I as ts,L as xo,N as sr,T as jn,a as Go,f as Ro,g as Uo,r as Bo,s as Jo,t as $o,z as zo}from"./chunk-DNfHCIbw.js";import{n as he$1,t as W$2}from"./chunk-n7jRjd3_.js";import{r as g,t as L}from"./chunk-Ou7gEgt7.js";function Ft(e){let n=I(ie);return Lt$1(()=>e?.()??n())}var ie;var Pt=f(()=>{Kr();ie=new M(`RDX_DIRECTION`,{providedIn:`root`,factory:()=>Lt$1(()=>`ltr`)})});function Kt(){return I(St,{optional:!0,self:!0})}function Bt(e){return{provide:St,useFactory:e}}function Wt(e,n){let t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}function de(e){return[...e].filter(n=>n.element.isConnected).sort((n,t)=>Wt(n.element,t.element))}function le(e){let n=new Set;for(let t=1;t<e.length;t+=1){let i=ue(e[t-1],e[t]);i&&n.add(i)}return n}function ue(e,n){let t=e.parentElement;for(;t&&!t.contains(n);)t=t.parentElement;return t}function ce(e){let n=new Set;for(let t of e){for(let i=0;i<t.addedNodes.length;i+=1)if(n.has(t.addedNodes[i]))return!0;for(let i=0;i<t.removedNodes.length;i+=1)n.add(t.removedNodes[i])}for(let t of n)if(t.isConnected)return!0;return!1}function he(e,n){return re.some(t=>!n.includes(t)&&e.getModifierState(t))}function At(e){if(!(e instanceof HTMLElement))return!1;if(e.tagName===`TEXTAREA`)return!0;if(e.tagName!==`INPUT`)return!1;try{return e.selectionStart!=null}catch{return!1}}function zt(e,n){let t=n===`rtl`?Bo:jo,i=n===`rtl`?jo:Bo;return{forwardKeys:e===`horizontal`?[t]:e===`vertical`?[ko]:[t,ko],backwardKeys:e===`horizontal`?[i]:e===`vertical`?[$o]:[i,$o]}}function me(e,n,t,i){let{forwardKeys:o,backwardKeys:s}=zt(t,i),a=n.selectionStart,l=n.selectionEnd,r=n.value??``;return!!(a==null||l==null||e.shiftKey||a!==l||!s.includes(e.key)&&a<r.length||!o.includes(e.key)&&a>0)}function Lt(e,n){return n<0||n>=e.length}function Vt(e,n){return ot(e,{startingIndex:-1,disabledIndices:n})}function pe(e,n){return ot(e,{startingIndex:e.length,decrement:!0,disabledIndices:n})}function ot(e,n={}){let{startingIndex:t=-1,decrement:i=!1,disabledIndices:o}=n,s=i?-1:1;for(let a=t+s;a>=0&&a<e.length;a+=s)if(!$t(e,a,o))return a;return-1}function $t(e,n,t){if(t?.includes(n))return!0;let i=e[n];return i?!ge(i)||i.matches(`:disabled`)?!0:t===void 0&&(i.hasAttribute(`disabled`)||i.getAttribute(`aria-disabled`)===`true`):!1}function fe(e){return e===null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function ge(e){if(!e||!e.isConnected)return!1;if(typeof Element<`u`&&!(e instanceof Element))return!0;let n;try{n=getComputedStyle(e)}catch{return!0}return n.visibility!==`hidden`&&n.visibility!==`collapse`}function be(e,n,t,i){if(!e||!n||typeof e.scrollTo!=`function`)return;let o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight,a=e.scrollLeft,l=e.scrollTop;if(o&&i!==`vertical`){let r=Ot(e,n,`left`),d=J(e),p=J(n);t===`ltr`&&(r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:r-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(a=r-p.scrollMarginLeft-d.scrollPaddingLeft)),t===`rtl`&&(r-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?a=r-p.scrollMarginLeft-d.scrollPaddingLeft:r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(s&&i!==`horizontal`){let r=Ot(e,n,`top`),d=J(e),p=J(n);r-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?l=r-p.scrollMarginTop-d.scrollPaddingTop:r+n.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(l=r+n.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:a,top:l,behavior:`auto`})}function Ot(e,n,t){let i=t===`left`?`offsetLeft`:`offsetTop`,o=0,s=n;for(;s?.offsetParent&&(o+=s[i],s.offsetParent!==e);)s=s.offsetParent;return o}function J(e){let n=getComputedStyle(e);return{scrollMarginTop:parseFloat(n.scrollMarginTop)||0,scrollMarginRight:parseFloat(n.scrollMarginRight)||0,scrollMarginBottom:parseFloat(n.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(n.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(n.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(n.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(n.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(n.scrollPaddingLeft)||0}}var St;var se;var jt;var ae;var re;var ve;var st;var xe;var W;var O;var ye;var at;var Ie;var z;var Z;var rt=f(()=>{Kr();Kr();sr();Pt();St=new M(`RdxCompositeItemOwner`);se=`data-composite-item-active`,jt=new Set([$o,ko,Bo,jo]),ae=new Set([...jt,Go,Uo]),re=[`Shift`,`Control`,`Alt`,`Meta`];ve=()=>{let e=I(W);return{listElement:e.elementRef.nativeElement,items:e.items,itemMap:e.itemMap,registerItem:n=>e.registerItem(n),indexOf:n=>e.indexOf(n)}},[st,xe]=xo(`RdxCompositeListContext`,`utils/composite`),W=(()=>{class e{constructor(){this.elementRef=I(Pr),this.registrations=new Map,this.registrationTick=wt(0),this.reorderTick=wt(0),this.onMapChange=pj(),this.items=Lt$1(()=>(this.reorderTick(),this.registrationTick(),de([...this.registrations.values()]))),this.indexMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,o)}),t}),this.itemMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,G(W$1({},i.metadata()??{}),{index:o}))}),t}),rf(()=>{this.onMapChange.emit(this.itemMap())}),this.observeItemReordering()}observeItemReordering(){typeof MutationObserver==`function`&&rf(t=>{let i=this.items().map(a=>a.element);if(i.length<2)return;let o=le(i);if(o.size===0)return;let s=new MutationObserver(a=>{if(!ce(a))return;let l=null;for(let r of i)if(r.isConnected){if(l&&Wt(l,r)>0){s.disconnect(),this.reorderTick.update(d=>d+1);return}l=r}});o.forEach(a=>s.observe(a,{childList:!0})),t(()=>s.disconnect())})}registerItem(t){return this.registrations.set(t.element,t),this.registrationTick.update(i=>i+1),()=>{this.registrations.get(t.element)===t&&(this.registrations.delete(t.element),this.registrationTick.update(i=>i+1))}}indexOf(t){return this.indexMap().get(t)??-1}elements(){return this.items().map(t=>t.element)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeList`,``]],outputs:{onMapChange:`onMapChange`},exportAs:[`rdxCompositeList`],features:[CS([xe(ve)])]})}}return e})(),O=(()=>{class e{constructor(){this.owner=Kt(),this.injectedListContext=this.owner?null:st(!0),this.elementRef=I(Pr),this.hasRendered=wt(!1),this.listContext=Lt$1(()=>this.owner?this.owner.listContext():this.injectedListContext),this.metadataInput=jc(void 0,{alias:`metadata`}),this._metadata=PS(()=>this.metadataInput()),this.index=Lt$1(()=>this.listContext()?.indexOf(this.elementRef.nativeElement)??-1),this.inListElement=Lt$1(()=>this.isInListElement(this.listContext())),LD(()=>{this.hasRendered.set(!0)}),rf(t=>{let i=this.listContext();if(!i||!this.hasRendered()||!this.isInListElement(i))return;let o=this.elementRef.nativeElement;t(Tg(()=>i.registerItem({element:o,metadata:this._metadata.asReadonly()})))})}setMetadata(t){this._metadata.set(t)}isInListElement(t){return!!t&&t.listElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeListItem`,``]],inputs:{metadataInput:[1,`metadata`,`metadataInput`]},exportAs:[`rdxCompositeListItem`]})}}return e})(),ye=()=>{let e=I(z);return{rootElement:e.elementRef.nativeElement,highlightedIndex:e.highlightedIndex.asReadonly(),highlightItemOnHover:e.highlightItemOnHover,orientation:e.orientation,dir:e.dir,isIndexDisabled:n=>e.isIndexDisabled(n),setHighlightedIndex:(n,t)=>e.setHighlightedIndex(n,t),relayKeyboardEvent:n=>e.relayKeyboardEvent(n)}},[at,Ie]=xo(`RdxCompositeRootContext`,`utils/composite`),z=(()=>{class e{constructor(){this.elementRef=I(Pr),this.compositeList=I(W,{self:!0}),this.hasSetInitialIndex=!1,this.orientationInput=jc(`both`,{alias:`orientation`}),this._orientation=PS(()=>this.orientationInput()),this.orientation=this._orientation.asReadonly(),this.dirInput=jc(void 0,{alias:`dir`}),this.effectiveDir=Ft(this.dirInput),this._dir=PS(()=>this.effectiveDir()),this.dir=this._dir.asReadonly(),this.loopFocusInput=jc(!0,{alias:`loopFocus`,transform:Dj}),this._loopFocus=PS(()=>this.loopFocusInput()),this.loopFocus=this._loopFocus.asReadonly(),this.enableHomeAndEndKeysInput=jc(!1,{alias:`enableHomeAndEndKeys`,transform:Dj}),this._enableHomeAndEndKeys=PS(()=>this.enableHomeAndEndKeysInput()),this.enableHomeAndEndKeys=this._enableHomeAndEndKeys.asReadonly(),this.disabledIndicesInput=jc(void 0,{alias:`disabledIndices`}),this._disabledIndices=PS(()=>this.disabledIndicesInput()),this.disabledIndices=this._disabledIndices.asReadonly(),this.modifierKeysInput=jc([],{alias:`modifierKeys`}),this._modifierKeys=PS(()=>this.modifierKeysInput()),this.modifierKeys=this._modifierKeys.asReadonly(),this.highlightItemOnHover=jc(!1,{transform:Dj}),this.stopEventPropagation=jc(!0,{transform:Dj}),this.highlightedIndex=mj(0),this.onHighlightedIndexChange=pj(),this.onMapChange=pj(),this.items=this.compositeList.items,this.itemMap=this.compositeList.itemMap,rf(()=>{let t=this.items();if(t.length!==0){if(!this.hasSetInitialIndex){this.hasSetInitialIndex=!0;let i=t.findIndex(o=>o.element.hasAttribute(se));if(i!==-1){this.setHighlightedIndex(i,!0);return}this.moveHighlightOffDisabledItem();return}this.disabledIndices()!=null&&this.moveHighlightOffDisabledItem()}}),rf(()=>{this.onMapChange.emit(this.itemMap())})}moveHighlightOffDisabledItem(){if(!this.isIndexDisabled(this.highlightedIndex()))return;let t=this.elements(),i=Vt(t,this.disabledIndices());Lt(t,i)||this.setHighlightedIndex(i)}indexOf(t){return this.compositeList.indexOf(t)}setOrientation(t){this._orientation.set(t)}setLoopFocus(t){this._loopFocus.set(t)}setDir(t){this._dir.set(t)}setEnableHomeAndEndKeys(t){this._enableHomeAndEndKeys.set(t)}setDisabledIndices(t){this._disabledIndices.set(t)}setModifierKeys(t){this._modifierKeys.set(t)}isIndexDisabled(t){return $t(this.elements(),t,this.disabledIndices())}setHighlightedIndex(t,i=!1){this.highlightedIndex()!==t&&(this.highlightedIndex.set(t),this.onHighlightedIndexChange.emit(t)),i&&be(this.elementRef.nativeElement,this.elements()[t],this.dir(),this.orientation())}relayKeyboardEvent(t){this.handleCompositeKeydown(t,!0)}handleKeydown(t){this.handleCompositeKeydown(t,!1)}handleFocusIn(t){let i=t.target;At(i)&&i.setSelectionRange(0,i.value.length)}handleCompositeKeydown(t,i){if(!(this.enableHomeAndEndKeys()?ae:jt).has(t.key)||he(t,this.modifierKeys()))return;let s=t.target,a=this.elementRef.nativeElement;if(!i&&s instanceof HTMLElement){let d=s.closest(`[rdxCompositeRoot]`);if(d&&d!==a)return}if(At(s)&&!fe(s))try{if(me(t,s,this.orientation(),this.dir()))return}catch{return}let l=this.elements();if(l.length===0)return;let r=this.getNextIndex(t,l);r===this.highlightedIndex()||Lt(l,r)||(this.stopEventPropagation()&&t.stopPropagation(),t.preventDefault(),this.setHighlightedIndex(r,!0),queueMicrotask(()=>{this.elements()[r]?.focus()}))}getNextIndex(t,i){let o=this.highlightedIndex(),s=Vt(i,this.disabledIndices()),a=pe(i,this.disabledIndices());if(this.enableHomeAndEndKeys()){if(t.key===`Home`)return s;if(t.key===`End`)return a}let{forwardKeys:l,backwardKeys:r}=zt(this.orientation(),this.dir()),d=l.includes(t.key),p=r.includes(t.key);if(!d&&!p)return o;let E=p,Xt=E?s:a,Yt=E?a:s;return this.loopFocus()&&o===Xt?Yt:ot(i,{startingIndex:o,decrement:E,disabledIndices:this.disabledIndices()})}elements(){return this.compositeList.elements()}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeRoot`,``]],hostBindings:function(i,o){i&1&&Jm(`keydown`,function(a){return o.handleKeydown(a)})(`focusin`,function(a){return o.handleFocusIn(a)})},inputs:{orientationInput:[1,`orientation`,`orientationInput`],dirInput:[1,`dir`,`dirInput`],loopFocusInput:[1,`loopFocus`,`loopFocusInput`],enableHomeAndEndKeysInput:[1,`enableHomeAndEndKeys`,`enableHomeAndEndKeysInput`],disabledIndicesInput:[1,`disabledIndices`,`disabledIndicesInput`],modifierKeysInput:[1,`modifierKeys`,`modifierKeysInput`],highlightItemOnHover:[1,`highlightItemOnHover`],stopEventPropagation:[1,`stopEventPropagation`],highlightedIndex:[1,`highlightedIndex`]},outputs:{highlightedIndex:`highlightedIndexChange`,onHighlightedIndexChange:`onHighlightedIndexChange`,onMapChange:`onMapChange`},exportAs:[`rdxCompositeRoot`],features:[CS([Ie(ye)]),jC([W])]})}}return e})(),Z=(()=>{class e{constructor(){this.owner=Kt(),this.injectedRootContext=this.owner?null:at(!0),this.listItem=I(O,{self:!0}),this.elementRef=I(Pr),this.rootContext=Lt$1(()=>this.owner?this.owner.rootContext():this.injectedRootContext),this.index=this.listItem.index,this.tabIndex=Lt$1(()=>{let t=this.rootContext();if(!this.isInRootElement(t))return null;let i=this.index();return i!==-1&&t.highlightedIndex()===i&&!t.isIndexDisabled(i)?0:-1})}setMetadata(t){this.listItem.setMetadata(t)}handleFocus(){let t=this.rootContext(),i=this.index();i!==-1&&this.isInRootElement(t)&&t.setHighlightedIndex(i)}handleMouseMove(t){if(Jo(t))return;let i=this.rootContext(),o=this.index();!this.isInRootElement(i)||o===-1||!i.highlightItemOnHover()||i.highlightedIndex()===o||i.isIndexDisabled(o)||this.elementRef.nativeElement.focus()}isInRootElement(t){return!!t&&t.rootElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeItem`,``]],hostVars:1,hostBindings:function(i,o){i&1&&Jm(`focus`,function(){return o.handleFocus()})(`mousemove`,function(a){return o.handleMouseMove(a)}),i&2&&zr(`tabindex`,o.tabIndex())},exportAs:[`rdxCompositeItem`],features:[jC([{directive:O,inputs:[`metadata`,`metadata`]}])]})}}return e})()});function qt(e,n){return`${e}-tab-${n}`}function Ut(e,n){return`${e}-panel-${n}`}function De(e){return typeof e.disabled==`boolean`&&typeof e.id==`string`&&Object.prototype.hasOwnProperty.call(e,`value`)}function Te(e,n){for(let t of e.values())if(t.value===n)return t}function Ne(e){for(let n of e.values())if(!n.disabled)return n.value}function ke(e,n,t,i){if(e==null||n==null)return`none`;let o=null,s=null,a=-1,l=-1;for(let[p,E]of i.entries())if(E.value===e&&(o=p,a=E.index),E.value===n&&(s=p,l=E.index),o&&s)break;if(!o||!s||a===l)return Fe(e,n,t);let r=o.getBoundingClientRect(),d=s.getBoundingClientRect();return t===`horizontal`?d.left<r.left?`left`:d.left>r.left||l>a?`right`:`left`:d.top<r.top?`up`:d.top>r.top||l>a?`down`:`up`}function Fe(e,n,t){return e!==n&&typeof e==`number`&&typeof n==`number`||e!==n&&typeof e==`string`&&typeof n==`string`?t===`horizontal`?n>e?`right`:`left`:n>e?`down`:`up`:`none`}function Ae(){return Bt(Pe)}var tt;var Me;var fi;var Re;var _e;var Ee;var we;var Pe;var gi;var Le=f(()=>{Kr();Kr();sr();rt();rt();g();[tt,Me]=xo(`RdxTabsRootContext`,`components/tabs`);fi=(()=>{class e{constructor(){this.rootContext=tt(),this.elementRef=I(Pr),this.compositeRoot=I(z,{self:!0}),this.compositeRootContext=at(),this.compositeListContext=st(),this.activateOnFocus=jc(!1,{transform:Dj}),this.loopFocus=jc(!0,{transform:Dj}),this.tabMap=Lt$1(()=>{let i=new Map;return this.compositeRoot.itemMap().forEach((o,s)=>{De(o)&&i.set(s,o)}),i}),this.tabMetadata=Lt$1(()=>Array.from(this.tabMap().values())),this.disabledIndices=Lt$1(()=>this.tabMetadata().filter(i=>i.disabled).map(i=>i.index)),this.activeIndex=Lt$1(()=>{let i=this.rootContext.value();return this.tabMetadata().find(s=>s.value===i)?.index??-1});let t=this.rootContext.registerTabList(this.elementRef.nativeElement,this.compositeRootContext,this.compositeListContext);I(ve$1).onDestroy(t),this.compositeRoot.setEnableHomeAndEndKeys(!0),this.compositeRoot.setDisabledIndices([]),rf(()=>{this.compositeRoot.setOrientation(this.rootContext.orientation()),this.compositeRoot.setLoopFocus(this.loopFocus())}),rf(()=>{this.rootContext.setTabMap(this.tabMap())}),rf(()=>{let i=this.activeIndex();if(i===-1)return;let o=this.elementRef.nativeElement,s=o.ownerDocument.activeElement;if(!(s&&o.contains(s))){if(this.disabledIndices().includes(i)){let a=this.tabMetadata().find(l=>!l.disabled)?.index;a!==void 0&&this.compositeRoot.setHighlightedIndex(a);return}this.compositeRoot.setHighlightedIndex(i)}}),rf(()=>this.rootContext.setActivateOnFocus(this.activateOnFocus()))}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsList`,``]],hostAttrs:[`role`,`tablist`],hostVars:3,hostBindings:function(i,o){i&2&&zr(`aria-orientation`,o.rootContext.orientation()===`vertical`?`vertical`:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())},inputs:{activateOnFocus:[1,`activateOnFocus`],loopFocus:[1,`loopFocus`]},exportAs:[`rdxTabsList`],features:[jC([z])]})}}return e})();Re=()=>({present:I(_e).present}),_e=(()=>{class e{constructor(){this.elementRef=I(Pr),this.listItem=I(O,{self:!0}),this.rootContext=tt(),this.value=jc.required(),this.keepMounted=jc(!1,{transform:Dj}),this.transition=ts(()=>{}),this.transitionStatus=this.transition.status,this.panelId=Lt$1(()=>Ut(this.rootContext.baseId,this.value())),this.tabId=Lt$1(()=>{let i=this.value();for(let o of this.rootContext.tabMap().values())if(o.value===i)return o.id;return qt(this.rootContext.baseId,i)}),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.hasPresence=wt(!1),this.present=Lt$1(()=>this.keepMounted()||this.active()),this.hidden=Lt$1(()=>!this.active()&&this.transitionStatus()!==`ending`&&(!this.hasPresence()||this.keepMounted())),this.index=this.listItem.index,this.previousActive=!1,this.isFirstRun=!0;let t=this.transition.registerElement(this.elementRef.nativeElement);I(ve$1).onDestroy(t),rf(()=>{this.listItem.setMetadata({id:this.panelId(),value:this.value()})}),rf(()=>{let i=this.active();if(this.isFirstRun){this.isFirstRun=!1,this.previousActive=i;return}i!==this.previousActive&&(this.previousActive=i,Tg(()=>this.transition.start(i)))})}markHasPresence(){this.hasPresence.set(!0)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsPanel`,``]],hostAttrs:[`role`,`tabpanel`],hostVars:10,hostBindings:function(i,o){i&2&&(Km(`hidden`,o.hidden()),zr(`id`,o.panelId())(`tabindex`,o.active()?0:-1)(`aria-labelledby`,o.tabId())(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-index`,o.index())(`data-hidden`,o.active()?void 0:``)(`data-starting-style`,o.transitionStatus()===`starting`?``:void 0)(`data-ending-style`,o.transitionStatus()===`ending`?``:void 0))},inputs:{value:[1,`value`],keepMounted:[1,`keepMounted`]},exportAs:[`rdxTabsPanel`],features:[CS([L(Re)]),jC([O])]})}}return e})(),Ee=()=>{let e=I(we);return{baseId:e.baseId,value:e.value,orientation:e.orientation,activationDirection:e.activationDirection.asReadonly(),activateOnFocus:e.activateOnFocus.asReadonly(),tabListElement:e.tabListElement.asReadonly(),tabMap:e.tabMap.asReadonly(),tabCompositeRoot:e.tabCompositeRoot.asReadonly(),tabCompositeList:e.tabCompositeList.asReadonly(),setValue:(n,t,i)=>e.setValue(n,t,i),setActivateOnFocus:n=>e.activateOnFocus.set(n),registerTabList:(n,t,i)=>e.registerTabList(n,t,i),setTabMap:n=>e.tabMap.set(n)}},we=(()=>{class e{constructor(){this.baseId=jn(`rdx-tabs-`),this.value=mj(),this.defaultValue=jc(void 0),this.orientation=jc(`horizontal`),this.onValueChange=pj(),this.activateOnFocus=wt(!1),this.tabListElement=wt(null),this.tabMap=wt(new Map),this.tabCompositeRoot=wt(null),this.tabCompositeList=wt(null),this.activationDirection=wt(`none`),this.externallyControlled=wt(!1),this.hasObservedValue=!1,this.internalValueCommit=!1,this.hasAppliedDefaultValue=!1,this.shouldNotifyInitialValueChange=!0,this.shouldHonorDisabledDefaultValue=!1,this.didRegisterTabs=!1,rf(()=>{let t=this.value();if(this.internalValueCommit){this.internalValueCommit=!1,this.hasObservedValue=!0,this.previousObservedValue=t;return}if(!this.hasObservedValue){this.hasObservedValue=!0,this.previousObservedValue=t,t!==void 0&&this.externallyControlled.set(!0);return}t!==this.previousObservedValue&&(this.externallyControlled.set(!0),this.previousObservedValue=t)}),rf(()=>{if(this.hasAppliedDefaultValue||Tg(this.value)!==void 0)return;let t=this.defaultValue(),i=t!==void 0;this.hasAppliedDefaultValue=!0,this.initialDefaultValue=t??0,this.shouldNotifyInitialValueChange=!i,this.shouldHonorDisabledDefaultValue=i,Tg(()=>this.commitValue(this.initialDefaultValue))}),rf(()=>{let t=this.tabMap(),i=this.value();if(this.externallyControlled())return;if(t.size===0){this.didRegisterTabs&&i!==null&&!this.lastKnownTabElement?.isConnected&&Tg(()=>this.commitAutomaticValueChange(null,`missing`));return}this.didRegisterTabs=!0,this.lastKnownTabElement=t.keys().next().value;let o=Te(t,i),s=Ne(t),a=o?.disabled,l=o==null&&i!==null;if(!a&&i===this.initialDefaultValue&&(this.shouldHonorDisabledDefaultValue=!1),this.shouldHonorDisabledDefaultValue&&a&&i===this.initialDefaultValue)return;let r=this.shouldNotifyInitialValueChange;if(a||l){let d=s??null;if(i===d){this.shouldNotifyInitialValueChange=!1;return}let p=`missing`;r?p=`initial`:a&&(p=`disabled`),Tg(()=>this.commitAutomaticValueChange(d,p));return}r&&o!=null&&(Tg(()=>this.notifyAutomaticValueChange(i,`initial`)),this.shouldNotifyInitialValueChange=!1)})}setValue(t,i,o=`none`){let s=this.value();if(s===t)return;let a=i?.currentTarget instanceof HTMLElement?i.currentTarget:void 0,{eventDetails:l}=zo(o,i??new Event(`tabs.value-change`),a),r=l,d=ke(s,t,this.orientation(),this.tabMap());r.activationDirection=d,this.onValueChange.emit({value:t,eventDetails:r}),!r.isCanceled()&&(this.activationDirection.set(d),this.commitValue(t))}registerTabList(t,i,o){return this.tabListElement.set(t),this.tabCompositeRoot.set(i),this.tabCompositeList.set(o),()=>{this.tabCompositeRoot()!==i||this.tabCompositeList()!==o||(this.tabListElement.set(null),this.tabCompositeRoot.set(null),this.tabCompositeList.set(null),this.activateOnFocus.set(!1))}}commitValue(t){this.internalValueCommit=!0,this.value.set(t)}commitAutomaticValueChange(t,i){this.activationDirection.set(`none`),this.commitValue(t),this.notifyAutomaticValueChange(t,i),this.shouldNotifyInitialValueChange=!1}notifyAutomaticValueChange(t,i){if(t===void 0)return;let{eventDetails:o}=zo(i,new Event(`tabs.value-change`)),s=o;s.activationDirection=`none`,this.onValueChange.emit({value:t,eventDetails:s})}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsRoot`,``]],hostVars:2,hostBindings:function(i,o){i&2&&zr(`data-orientation`,o.orientation())(`data-activation-direction`,o.activationDirection())},inputs:{value:[1,`value`],defaultValue:[1,`defaultValue`],orientation:[1,`orientation`]},outputs:{value:`valueChange`,onValueChange:`onValueChange`},exportAs:[`rdxTabsRoot`],features:[CS([Me(Ee)]),jC([W])]})}}return e})();Pe=()=>{let e=tt();return{rootContext:e.tabCompositeRoot,listContext:e.tabCompositeList}};gi=(()=>{class e{constructor(){this.rootContext=tt(),this.compositeItem=I(Z,{self:!0}),this.elementRef=I(Pr),this.value=jc.required(),this.disabled=jc(!1,{transform:Dj}),this.nativeButton=jc(!0,{transform:Dj}),this.id=jc(void 0),this.tabId=Lt$1(()=>this.id()??qt(this.rootContext.baseId,this.value())),this.panelId=Lt$1(()=>Ut(this.rootContext.baseId,this.value())),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.isPressing=!1,this.isMainButton=!1,Ej()&&Ij(()=>{let t=this.rootContext.tabCompositeList();t&&!t.listElement.contains(this.elementRef.nativeElement)&&Ro(`tabs/tab-outside-list`,'`rdxTabsTab` is rendered outside its `rdxTabsList`, so it gets no roving tabindex, arrow keys cannot reach it, and its `role="tab"` sits outside the `role="tablist"`. Move the tab inside the list, or project it there with `<ng-content>`.',`components/tabs`)}),rf(()=>{this.compositeItem.setMetadata({disabled:this.disabled(),id:this.tabId(),value:this.value()})})}onClick(t){this.active()||this.disabled()||this.rootContext.setValue(this.value(),t,`none`)}onKeyDown(t){!this.disabled()&&(t.key===` `||t.key===`Enter`)&&this.rootContext.setValue(this.value(),t,`none`)}onPointerDown(t){if(this.active()||this.disabled())return;this.isPressing=!0,this.isMainButton=t.button===0;let i=t.currentTarget instanceof HTMLElement?t.currentTarget.ownerDocument:document;i.addEventListener(`pointerup`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`pointercancel`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`blur`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0})}onFocus(t){this.active()||this.disabled()||this.rootContext.activateOnFocus()&&(!this.isPressing||this.isMainButton)&&this.rootContext.setValue(this.value(),t,`none`)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsTab`,``]],hostAttrs:[`role`,`tab`],hostVars:11,hostBindings:function(i,o){i&1&&Jm(`click`,function(a){return o.onClick(a)})(`keydown`,function(a){return o.onKeyDown(a)})(`pointerdown`,function(a){return o.onPointerDown(a)})(`focus`,function(a){return o.onFocus(a)}),i&2&&zr(`type`,o.nativeButton()?`button`:void 0)(`id`,o.tabId())(`aria-selected`,o.active())(`aria-controls`,o.panelId())(`aria-disabled`,o.disabled()?`true`:void 0)(`disabled`,null)(`data-composite-item-active`,o.active()?``:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-active`,o.active()?``:void 0)(`data-disabled`,o.disabled()?``:void 0)},inputs:{value:[1,`value`],disabled:[1,`disabled`],nativeButton:[1,`nativeButton`],id:[1,`id`]},exportAs:[`rdxTabsTab`],features:[CS([Ae()]),jC([Z])]})}}return e})()});function Ve(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introHost)}}function Oe(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introContainer)}}function He(e,n){if(e&1&&SE(0,Ve,2,1,`p`,8)(1,Oe,2,1,`p`,8),e&2)kE(HE().containerId()===null?0:1)}function Se(e,n){if(e&1&&(Li(0,`p`,9),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function Ke(e,n){if(e&1&&Gm(0,`app-answer-text`,10),e&2){let t=HE().$implicit;Wm(`text`,t.text)}}function Be(e,n){if(e&1&&(Li(0,`p`,11),Gm(1,`app-icon`,15),fS(2),Nc()),e&2){let t=HE().$implicit;ec(),Wm(`size`,12),ec(),Ac(` `,t.label,` `)}}function je(e,n){if(e&1&&(Li(0,`pre`,17),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.proposal.command)}}function We(e,n){if(e&1&&(Li(0,`span`,21),fS(1),Nc()),e&2){let t=HE(2).$implicit,i=HE();ec(),pg(t.proposal.kind===`command`?i.t().onPrompt:i.t().done)}}function ze(e,n){if(e&1&&(Li(0,`span`,22),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.problem)}}function $e(e,n){if(e&1){let t=RE();Li(0,`div`,12)(1,`p`,16),fS(2),Nc(),SE(3,je,2,1,`pre`,17),Li(4,`div`,18)(5,`button`,19),Jm(`click`,function(){Od(t);let o=HE(),s=o.$implicit,a=o.$index;return Ld(HE().carryOut(a,s.proposal))}),Gm(6,`app-icon`,20),fS(7),Nc(),SE(8,We,2,1,`span`,21)(9,ze,2,1,`span`,22),Nc()()}if(e&2){let t=HE().$implicit,i=HE();ec(2),pg(t.proposal.reason),ec(),kE(t.proposal.kind===`command`?3:-1),ec(2),Wm(`disabled`,t.state===`busy`||t.state===`done`&&t.proposal.kind!==`command`),ec(),Wm(`name`,i.proposalIcon(t.proposal))(`size`,14),ec(),Ac(` `,i.proposalLabel(t.proposal),` `),ec(),kE(t.state===`done`?8:t.state===`failed`?9:-1)}}function qe(e,n){if(e&1&&(Li(0,`p`,13),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function Ue(e,n){if(e&1&&(Li(0,`p`,14),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),Ac(` `,t.problem,` `)}}function Qe(e,n){if(e&1&&SE(0,Se,2,1,`p`,9)(1,Ke,1,1,`app-answer-text`,10)(2,Be,3,2,`p`,11)(3,$e,10,7,`div`,12)(4,qe,2,1,`p`,13)(5,Ue,2,1,`p`,14),e&2){let t,i=n.$implicit;kE((t=i.kind)===`question`?0:t===`answer`?1:t===`tool`?2:t===`proposal`?3:t===`usage`?4:t===`error`?5:-1)}}function Xe(e,n){if(e&1&&(Li(0,`p`,2),fS(1),Nc()),e&2){let t=HE();ec(),pg(t.t().thinking)}}function dt(e){return e.toLocaleString(ik())}var Qt;var Ye=f(()=>{Kr();lk();he$1();dk();sk();Kr();Qt=class e{containerId=jc(null);commandChosen=pj();entries=wt([]);busy=wt(!1);draft=wt(``);t=Lt$1(()=>ok().containers.assistant);defaultQuestion=Lt$1(()=>this.containerId()===null?this.t().defaultHostQuestion:this.t().defaultQuestion);conversationId=null;unsubscribe=null;destroyed=!1;constructor(){I(ve$1).onDestroy(()=>{this.destroyed=!0,this.unsubscribe?.(),this.conversationId!==null&&window.electron.assistant.close(this.conversationId)})}async submit(n){n.preventDefault();let t=this.draft().trim()||(this.entries().length===0?this.defaultQuestion():``);if(!(t===``||this.busy())){this.draft.set(``),this.busy.set(!0),this.append({kind:`question`,text:t});try{let i=await this.conversation();await window.electron.assistant.ask(i,t)}catch(i){this.append({kind:`error`,problem:eH(i)})}finally{this.busy.set(!1)}}}proposalLabel(n){let t=this.t();return n.kind===`command`?t.putInTerminal:n.kind===`compose`?t.composeUp(n.project):t[n.action](n.containerName)}proposalIcon(n){return n.kind===`command`?`terminal`:n.kind===`compose`?`play`:{start:`play`,stop:`stop`,restart:`refresh`}[n.action]}async carryOut(n,t){if(t.kind===`command`){this.commandChosen.emit(t.command),this.updateProposal(n,{state:`done`});return}this.updateProposal(n,{state:`busy`});try{let i=t.kind===`compose`?await window.electron.compose.up(t.project):await window.electron.containers.action(t.action,t.containerId);this.updateProposal(n,i.ok?{state:`done`}:{state:`failed`,problem:i.problem})}catch(i){this.updateProposal(n,{state:`failed`,problem:eH(i)})}}async conversation(){if(this.conversationId!==null)return this.conversationId;let n=await window.electron.assistant.start(this.containerId());if(this.destroyed)throw window.electron.assistant.close(n),new Error(this.t().panelClosed);return this.conversationId=n,this.unsubscribe=window.electron.assistant.onEvent(n,t=>this.receive(t)),n}receive(n){switch(n.type){case`text`:this.entries.update(t=>{let i=t.at(-1);return i?.kind===`answer`?[...t.slice(0,-1),{kind:`answer`,text:i.text+n.text}]:n.text.trim()===``?t:[...t,{kind:`answer`,text:n.text}]});break;case`tool`:this.append({kind:`tool`,label:n.label});break;case`proposal`:this.append({kind:`proposal`,proposal:n.proposal,state:`open`});break;case`done`:this.append({kind:`usage`,text:this.t().usage(dt(n.inputTokens),dt(n.cachedTokens),dt(n.outputTokens))});break;case`error`:this.append({kind:`error`,problem:n.problem});break}}append(n){this.entries.update(t=>[...t,n])}updateProposal(n,t){this.entries.update(i=>i.map((o,s)=>s===n&&o.kind===`proposal`?W$1(W$1({},o),t):o))}static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-assistant-view`]],hostAttrs:[1,`flex`,`h-full`,`flex-col`],inputs:{containerId:[1,`containerId`]},outputs:{commandChosen:`commandChosen`},decls:13,vars:9,consts:[[`data-testid`,`assistant-log`,1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`py-4`],[1,`max-w-3xl`,`space-y-3`],[1,`text-[12px]`,`text-ink-500`],[1,`flex`,`shrink-0`,`gap-2`,`border-t`,`border-ink-700`,`px-6`,`py-3`,3,`submit`],[`for`,`assistant-question`,1,`sr-only`],[`id`,`assistant-question`,`type`,`text`,`autocomplete`,`off`,1,`mx-focus`,`min-w-0`,`flex-1`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-1.5`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`,`disabled`],[`type`,`submit`,`data-testid`,`assistant-ask`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`sparkle`,3,`size`],[1,`max-w-2xl`,`text-[13px]`,`text-ink-400`],[1,`rounded-md`,`bg-ink-800`,`px-3`,`py-2`,`text-[13px]`,`text-ink-100`],[`data-testid`,`assistant-answer`,1,`text-[13px]`,`leading-relaxed`,`text-ink-200`,3,`text`],[`data-testid`,`assistant-tool`,1,`flex`,`items-center`,`gap-1.5`,`text-[12px]`,`text-ink-500`],[`data-testid`,`assistant-proposal`,1,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[`data-testid`,`assistant-usage`,1,`text-[11px]`,`text-ink-600`],[`data-testid`,`assistant-error`,1,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[`name`,`search`,3,`size`],[1,`text-[12px]`,`text-ink-400`],[1,`mt-2`,`overflow-x-auto`,`rounded`,`bg-ink-900`,`px-2`,`py-1`,`font-mono`,`text-[12px]`,`text-ink-100`],[1,`mt-2`,`flex`,`items-center`,`gap-2`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[3,`name`,`size`],[1,`text-[12px]`,`text-ok`],[1,`text-[12px]`,`text-danger`]],template:function(t,i){t&1&&(Li(0,`div`,0),SE(1,He,2,1),Li(2,`div`,1),kc(3,Qe,6,1,null,null,TE),SE(5,Xe,2,1,`p`,2),Nc()(),Li(6,`form`,3),Jm(`submit`,function(s){return i.submit(s)}),Li(7,`label`,4),fS(8),Nc(),Li(9,`input`,5),Jm(`input`,function(s){return i.draft.set(s.target.value)}),Nc(),Li(10,`button`,6),Gm(11,`app-icon`,7),fS(12),Nc()()),t&2&&(ec(),kE(i.entries().length===0?1:-1),ec(2),Tc(i.entries()),ec(2),kE(i.busy()?5:-1),ec(3),pg(i.t().questionLabel),ec(),Wm(`placeholder`,i.entries().length===0?i.defaultQuestion():i.t().followUp)(`value`,i.draft())(`disabled`,i.busy()),ec(),Wm(`disabled`,i.busy()),ec(),Wm(`size`,14),ec(),Ac(` `,i.t().ask,` `))},dependencies:[W$2,My],encapsulation:2})}});export{fi as a,_e as i,Qt as n,gi as o,Ye as r,we as s,Le as t};
@@ -1 +1 @@
1
- import{A as I,At as Uw,B as LE,Cr as yc,En as jc,Fn as mj,G as M,Hn as on$1,I as Jm,Kn as pj,Ln as nf,Lt as Ws,Nt as Vr,Pt as W,Q as Nn$1,R as Kr,Tr as zr,W as Lt$1,Zn as rf,_ as Dj,_r as wt$1,at as Pr,b as Ej,d as CS,et as OC,ft as Rc,hn as ge,ht as S,it as PS,jn as lf,k as Ho$1,ln as f,lr as ve,m as Cw,mn as gb,n as $e,nn as br,rr as te$1,rt as PE,t as $C,tn as bj,tr as sw,vn as gl,w as Gi,wt as Tg,yr as xm,yt as Se$1,z as LD,zt as X}from"./chunk-BU6WXUxF.js";function G(){return tt}function Lt(e){tt??=e}var tt;var be;var ue;var nt;var Ee=f(()=>{Kr();Kr();tt=null;be=class{},ue=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(nt),providedIn:`platform`})}return e})(),nt=(()=>{class e extends ue{_location;_history;_doc=I(br);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,t,!1),()=>r.removeEventListener(`popstate`,t)}onHashChange(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,t,!1),()=>r.removeEventListener(`hashchange`,t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>new e,providedIn:`platform`})}return e})()});function ot(e,n){return e?n?e.endsWith(`/`)?n.startsWith(`/`)?e+n.slice(1):e+n:n.startsWith(`/`)?e+n:`${e}/${n}`:e:n}function rt(e){let n=e.search(/#|\?|$/);return e[n-1]===`/`?e.slice(0,n-1)+e.slice(n):e}function L(e){return e&&e[0]!==`?`?`?${e}`:e}function jt(){return new st($e(le))}function $t(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===``||[`/`,`;`,`?`,`#`].includes(t[0])?t:n}function it(e){return e.replace(/\/index\.html$/,``)}function Ut(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var le;var kt;var Bt;var st;var at=f(()=>{Kr();Kr();Ws();Ee();le=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(Bt),providedIn:`root`})}return e})(),kt=new M(``),Bt=(()=>{class e extends le{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(br).location?.origin??``}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ot(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static ɵfac=function(r){return new(r||e)($e(ue),$e(kt,8))};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}return e})(),st=(()=>{class e{_subject=new ge;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ut(rt(it(r))),this._locationStrategy.onPopState(i=>{let o={url:this.path(!0),pop:!0,state:i.state,type:i.type};i.hasUAVisualTransition&&(o.hasUAVisualTransition=!0),this._subject.next(o)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=``){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash($t(this._basePath,it(t)))}prepareExternalUrl(t){return t&&t[0]!==`/`&&(t=`/`+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r=``,i=null){this._locationStrategy.pushState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r=``,i=null){this._locationStrategy.replaceState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t=``,r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=L;static joinWithSlash=ot;static stripTrailingSlash=rt;static ɵfac=function(r){return new(r||e)($e(le))};static ɵprov=X({token:e,factory:()=>jt(),providedIn:`root`})}return e})()});function q(e,n){let t=LE(e),r=t[PE.NumberSymbols][n];if(typeof r>`u`){if(n===F.CurrencyDecimal)return t[PE.NumberSymbols][F.Decimal];if(n===F.CurrencyGroup)return t[PE.NumberSymbols][F.Group]}return r}function lt(e,n){return LE(e)[PE.NumberFormats][n]}function Kt(e,n,t,r,i,o,s=!1){let a=``,g=!1;if(!isFinite(e))a=q(t,Number.isNaN(e)?F.NaN:F.Infinity);else{let c=Qt(e);s&&(c=Jt(c));let f=n.minInt,u=n.minFrac,d=n.maxFrac;if(o){let p=o.match(Yt);if(p===null)throw new S(2306,!1);let M=p[1],D=p[3],v=p[5];M!=null&&(f=Ae(M)),D!=null&&(u=Ae(D)),v!=null?d=Ae(v):D!=null&&u>d&&(d=u);let H=100;if(f>H||u>H||d>H)throw new S(2306,!1)}en(c,u,d);let l=c.digits,m=c.integerLen,y=c.exponent,S$1=[];for(g=l.every(p=>!p);m<f;m++)l.unshift(0);for(;m<0;m++)l.unshift(0);m>0?S$1=l.splice(m,l.length):(S$1=l,l=[0]);let C=[];for(l.length>=n.lgSize&&C.unshift(l.splice(-n.lgSize,l.length).join(``));l.length>n.gSize;)C.unshift(l.splice(-n.gSize,l.length).join(``));l.length&&C.unshift(l.join(``)),a=C.join(q(t,r)),S$1.length&&(a+=q(t,i)+S$1.join(``)),y&&(a+=q(t,F.Exponential)+`+`+y)}return e<0&&!g?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function ct(e,n,t){return Kt(e,Xt(lt(n,Fe.Decimal),q(n,F.MinusSign)),n,F.Group,F.Decimal,t)}function Xt(e,n=`-`){let t={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},r=e.split(qt),i=r[0],o=r[1],s=i.indexOf(ce)!==-1?i.split(ce):[i.substring(0,i.lastIndexOf(ee)+1),i.substring(i.lastIndexOf(ee)+1)],a=s[0],g=s[1]||``;t.posPre=a.substring(0,a.indexOf(we));for(let f=0;f<g.length;f++){let u=g.charAt(f);u===ee?t.minFrac=t.maxFrac=f+1:u===we?t.maxFrac=f+1:t.posSuf+=u}let c=a.split(Zt);if(t.gSize=c[1]?c[1].length:0,t.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let f=i.length-t.posPre.length-t.posSuf.length,u=o.indexOf(we);t.negPre=o.substring(0,u).replace(/'/g,``),t.negSuf=o.slice(u+f).replace(/'/g,``)}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function Jt(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function Qt(e){let n=Math.abs(e)+``,t=0,r,i,o,s,a;for((i=n.indexOf(ce))>-1&&(n=n.replace(ce,``)),(o=n.search(/e/i))>0?(i<0&&(i=o),i+=+n.slice(o+1),n=n.substring(0,o)):i<0&&(i=n.length),o=0;n.charAt(o)===ee;o++);if(o===(a=n.length))r=[0],i=1;else{for(a--;n.charAt(a)===ee;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(n.charAt(o))}return i>ut&&(r=r.splice(0,ut-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}function en(e,n,t){if(n>t)throw new S(2307,!1);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(n,i),t),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let u=s;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let u=1;u<s;u++)r[u]=0}if(a>=5)if(s-1<0){for(let u=0;u>s;u--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let g=o!==0,c=n+e.integerLen,f=r.reduceRight(function(u,d,l,m){return d=d+u,m[l]=d<10?d:d-10,g&&(m[l]===0&&l>=c?m.pop():g=!1),d>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Ae(e){let n=parseInt(e);if(isNaN(n))throw new S(2305,!1);return n}function nn(e,n){return new S(2100,!1)}function on(e){return!(e==null||e===``||e!==e)}function sn(e){if(typeof e==`string`&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!=`number`)throw new S(2309,!1);return e}var Fe;var F;var Yt;var ut;var ce;var ee;var qt;var Zt;var we;var tn;var rn;var dt=f(()=>{Kr();Kr();Fe=(function(e){return e[e.Decimal=0]=`Decimal`,e[e.Percent=1]=`Percent`,e[e.Currency=2]=`Currency`,e[e.Scientific=3]=`Scientific`,e})(Fe||{}),F={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ut=22,ce=`.`,ee=`0`,qt=`;`,Zt=`,`,we=`#`;tn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=I(Se$1);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static ɵfac=function(r){return new(r||e)(Vr(Gi))};static ɵdir=$C({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Cw]})}return e})();rn=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,i){if(!on(t))return null;i||=this._locale;try{return ct(sn(t),i,r)}catch(o){throw nn(e,o.message)}}static ɵfac=function(r){return new(r||e)(Vr(Rc,16))};static ɵpipe=OC({name:`number`,type:e,pure:!0})}return e})()});function an(e,n){n=encodeURIComponent(n);for(let t of e.split(`;`)){let r=t.indexOf(`=`),[i,o]=r==-1?[t,``]:[t.slice(0,r),t.slice(r+1)];if(i.trim()!==n)continue;let s=o;try{s=decodeURIComponent(o)}catch{}return s.length>1&&s[0]===`"`&&s[s.length-1]===`"`&&(s=s.slice(1,-1)),s}return null}var ft=f(()=>{});function Se(e){return e===ln}var ln;var Me=f(()=>{at();dt();Ee();Kr();ft();ln=`browser`});function fn(){let e=G()?G().getUserAgent():``;return/android (\d+)/.test(e.toLowerCase())}function gn(e){return e==null||mn(e)===0}function mn(e){return e==null?null:Array.isArray(e)||typeof e==`string`?e.length:e instanceof Set?e.size:null}function yn(e){return gn(e.value)?{required:!0}:null}function gt(e){return null}function yt(e){return e!=null}function Dn(e){return yc(e)?on$1(e):e}function Dt(e){let n={};return e.forEach(t=>{n=t!=null?W(W({},n),t):n}),Object.keys(n).length===0?null:n}function vt(e,n){return n.map(t=>t(e))}function vn(e){return!e.validate}function Ct(e){return e.map(n=>vn(n)?n:t=>n.validate(t))}function Cn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return Dt(vt(t,n))}}function _n(e){return e!=null?Cn(Ct(e)):null}function bn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return gb(vt(t,n).map(Dn)).pipe(Nn$1(Dt))}}function En(e){return e!=null?bn(Ct(e)):null}function wn(e){return e.tagName===`INPUT`||e.tagName===`SELECT`||e.tagName===`TEXTAREA`}function An(e,n,t,r){switch(t){case`name`:e.setAttribute(n,t,r);break;case`disabled`:case`readonly`:case`required`:r?e.setAttribute(n,t,``):e.removeAttribute(n,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:r!==void 0?e.setAttribute(n,t,r.toString()):e.removeAttribute(n,t);break}}function Mn(e){return Object.getPrototypeOf(e.constructor)===cn}function In(e,n){if(!n)return null;let t,r,i;return n.forEach(o=>{o.constructor===pt?t=o:Mn(o)?r=o:i=o}),i||r||t||null}var mt;var cn;var Oe;var dn;var hn;var pt;var pn;var Ie;var Ne;var de;var Ve;var Fn;var Sn;var _t;var fe;var bt=f(()=>{Kr();Kr();Ws();lf();Me();mt=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,r){this._renderer=t,this._elementRef=r}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty(`disabled`,t)}static ɵfac=function(r){return new(r||e)(Vr(gl),Vr(Pr))};static ɵdir=$C({type:e})}return e})(),cn=(()=>{class e extends mt{static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=$C({type:e,features:[xm]})}return e})(),Oe=new M(``),dn={provide:Oe,useExisting:Ho$1(()=>pt),multi:!0};hn=new M(``),pt=(()=>{class e extends mt{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode??=!fn()}writeValue(t){let r=t??``;this.setProperty(`value`,r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static ɵfac=function(r){return new(r||e)(Vr(gl),Vr(Pr),Vr(hn,8))};static ɵdir=$C({type:e,selectors:[[`input`,`formControlName`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`formControl`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControl`,``,3,`ngNoCva`,``],[`input`,`ngModel`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`ngModel`,``,3,`ngNoCva`,``],[``,`ngDefaultControl`,``]],hostBindings:function(r,i){r&1&&Jm(`input`,function(s){return i._handleInput(s.target.value)})(`blur`,function(){return i.onTouched()})(`compositionstart`,function(){return i._compositionStart()})(`compositionend`,function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[CS([dn]),xm]})}return e})();pn=new M(``);Ie=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_n(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=En(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},Ne=class{},de=class extends Ne{source;constructor(n){super(),this.source=n}};Ve=class{kind;context;control;message;constructor({kind:n,context:t,control:r}){this.kind=n,this.context=t,this.control=r}},Fn=(()=>{class e{_validator=gt;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):gt,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static ɵfac=function(r){return new(r||e)};static ɵdir=$C({type:e,features:[Cw]})}return e})(),Sn={provide:pn,useExisting:Ho$1(()=>_t),multi:!0},_t=(()=>{class e extends Fn{required;inputName=`required`;normalizeInput=Dj;createValidator=t=>yn;enabled(t){return t}static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=$C({type:e,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(r,i){r&2&&zr(`required`,i._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[CS([Sn]),xm]})}return e})();fe=class extends Ie{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(n){this.userOnReset=n,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=In(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(n,t,r){super(),this.injector=n,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ve)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let n=this.injector?.get(bj);if(!this.control||!n)return;let t=n.markForCheck.bind(n);this.subscription=new te$1,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(n){!n.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!n.customControl||(this.isCustomControlBased=!0,n.listenToCustomControlModel(i=>{this.control?.markAsDirty(),this.control?.setValue(i,{emitModelToViewChange:!1}),this.viewToModelUpdate(i)}),n.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=wn(n.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof _t))}ngControlUpdate(n,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,n.setCustomControlModelInput(r.value)),this.bindControlProperty(n,i,`touched`,r.touched),this.bindControlProperty(n,i,`dirty`,r.dirty),this.bindControlProperty(n,i,`valid`,r.valid),this.bindControlProperty(n,i,`invalid`,r.invalid),this.bindControlProperty(n,i,`pending`,r.pending),this.bindControlProperty(n,i,`disabled`,r.disabled),this.shouldBindRequired&&this.bindControlProperty(n,i,`required`,this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);n.setInputOnDirectives(`errors`,s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(n,t,r,i){if(t[r]===i)return;t[r]=i;let o=n.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r===`disabled`||r===`required`)&&this.renderer&&An(this.renderer,n.nativeElement,r,i)}_convertErrors(n){if(n===null)return[];let t=this.control;return Object.entries(n).map(([r,i])=>new Ve({context:i,kind:r,control:t}))}setParseErrorSource(n){if(n===void 0)return;let t=null,r=Lt$1(()=>{let i=n();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>t).bind(this),rf(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(n){this.parseErrorsValidator&&(n?.removeValidators(this.parseErrorsValidator),n?.updateValueAndValidity({emitEvent:!1}))}}});function Nn(e){return{provide:Oe,useExisting:Ho$1(()=>e),multi:!0}}function To(){return I(Vn)}function On(e){return e?Object.entries(e).map(([n,t])=>{let r=typeof t==`string`?t:t&&typeof t==`object`&&typeof t.message==`string`?t.message:void 0;return r===void 0?{kind:n}:{kind:n,message:r}}):[]}function Tn(){let e=I(Se$1),n=I(ve),t=wt$1(!1,{debugName:`RdxNgControlState.connected`}),r=wt$1(void 0,{debugName:`RdxNgControlState.name`}),i=wt$1(void 0,{debugName:`RdxNgControlState.value`}),o=wt$1(!1,{debugName:`RdxNgControlState.valid`}),s=wt$1(!1,{debugName:`RdxNgControlState.invalid`}),a=wt$1(!1,{debugName:`RdxNgControlState.pending`}),g=wt$1(!1,{debugName:`RdxNgControlState.disabled`}),c=wt$1(null,{debugName:`RdxNgControlState.rawErrors`}),f=Lt$1(()=>On(c()),{debugName:`RdxNgControlState.errors`}),u=wt$1(!1,{debugName:`RdxNgControlState.dirty`}),d=wt$1(!1,{debugName:`RdxNgControlState.touched`}),l=!1,m,y;return queueMicrotask(()=>{if(l)return;let C=e.get(fe,null,{self:!0,optional:!0}),p=C?.control;if(!p||typeof p.events?.subscribe!=`function`)return;y=v=>p.reset(v);let M=()=>{r.set(C.name==null?void 0:String(C.name)),i.set(p.value),o.set(p.valid),s.set(p.invalid),a.set(p.pending),g.set(p.disabled),c.set(p.errors),u.set(p.dirty),d.set(p.touched)};M();let D=p.events.subscribe(M);m=()=>D.unsubscribe(),t.set(!0)}),n.onDestroy(()=>{l=!0,m?.()}),{connected:t.asReadonly(),name:r.asReadonly(),value:i.asReadonly(),valid:o.asReadonly(),invalid:s.asReadonly(),pending:a.asReadonly(),disabled:g.asReadonly(),errors:f,dirty:u.asReadonly(),touched:d.asReadonly(),reset:C=>y?(y(C),!0):!1}}function It(e){return`${Rn}/${e}.md`}function Nt(e,n,t){return`[rdx:${e}] ${n}${t?` See ${It(t)}`:``}`}function Ro(e,n,t){!Ej()||Et.has(e)||(Et.add(e),console.warn(Nt(e,n,t)))}function k(e,n,t){throw new Error(Nt(e,n,t))}function xo(e,n){let t=`${e.replace(/\s*Context$/,``)}Context`,r=new M(t);return[(s=!1)=>{let a=I(r,{optional:!0});if(a==null&&!s){let g=n?` See ${It(n)} for the required part hierarchy.`:``;throw new Error(`No \`${t}\` found. This part must be placed inside the directive that provides \`${t}\` (usually the primitive's root).${g}`)}return a},s=>({provide:r,useFactory:s})]}function jn(e){return I(Bn).getId(e)}function $n(e){let n=wt$1(!1),t=Lt$1(()=>{let s=e.errors()??[],a=e.ngControlState?.connected()?e.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=Lt$1(()=>e.invalid()||t().length>0||!!(e.ngControlState?.connected()&&e.ngControlState.invalid())),i=Lt$1(()=>(e.pending?.()??!1)||!!(e.ngControlState?.connected()&&e.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:Lt$1(()=>i()?null:r()?!1:e.ngControlState?.connected()&&e.ngControlState.disabled()?null:!0),errorsState:t,touchedState:Lt$1(()=>e.ngControlState?.connected()?e.ngControlState.touched():e.touched()),dirtyState:Lt$1(()=>e.ngControlState?.connected()?e.ngControlState.dirty():e.dirty()||n()),markDirty:()=>n.set(!0),markAsTouched:()=>{e.cva?.markAsTouched(),e.touched.set(!0),e.touch.emit()},resetInteractionState:()=>{e.touched.set(!1),n.set(!1)},resetDirtyState:()=>n.set(!1)}}function zo(e,n,t){let r=!1,i=!1,o=!1;return{eventDetails:{reason:e,event:n,trigger:t,cancel:()=>{r=!0},isCanceled:()=>r,allowPropagation:()=>{i=!0},get isPropagationAllowed(){return i},preventUnmountOnClose:()=>{o=!0}},shouldPreventUnmountOnClose:()=>o}}function Ot(){let e=new Map;return{emit(n,t){let r=e.get(n);if(r)for(let i of[...r])i(t)},on(n,t){let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)},off(n,t){e.get(n)?.delete(t)}}}function Hn(){return[{provide:K,useFactory:()=>new K},{provide:Tt,useExisting:K}]}function zn(e){return e.context?.open()??!1}function Wo(){return{provide:xe,useFactory:()=>I(xe,{optional:!0,skipSelf:!0})??new Re}}function Yo(e){return{provide:xt,useFactory:e}}function Wn(e){return e!==null&&typeof e.nodeType==`number`}function Zo(e){return new Le(e)}function Zn(e){return`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}function Ko(e,n,t){let r=e.ownerDocument,i=t.marker??qn,o=null,s=()=>{o?.remove(),o=null},a=rf(()=>{let g=t.isOpen(),c=t.shouldRender();if(c&&!o){o=r.createElement(`div`),o.setAttribute(`role`,`presentation`),o.setAttribute(i,``),o.style.position=`fixed`,o.style.inset=`0px`,o.style.userSelect=`none`,o.style.webkitUserSelect=`none`;let f=t.cutout?.()??null;f&&(o.style.clipPath=Zn(f.getBoundingClientRect())),e.parentElement?.insertBefore(o,e)}else c||s();o&&(o.style.pointerEvents=t.passThrough?.()?`none`:``,g?o.removeAttribute(`inert`):o.setAttribute(`inert`,``))},{injector:n});n.get(ve).onDestroy(()=>{a.destroy(),s()})}function Kn(e){let{maxTouchPoints:n,webkitBackdropFilter:t}=e,r=e.userAgent.toLowerCase(),i=e.platform.toLowerCase(),o=t,s=!o&&r.includes(`firefox`),a=!o&&r.includes(`chrom`),g=/^i(os$|p)/.test(i)||i===`macintel`&&n>1||/ip(ad|hone|od)/.test(r),c=i===`android`||r.includes(`android`),f=!g&&i.startsWith(`mac`),u=i.startsWith(`win`),d=!c&&/^(linux|chrome os)/.test(i),l=f||g;return{engine:{webkit:o,gecko:s,blink:a},os:{ios:g,android:c,mac:f,windows:u,linux:d,apple:l},screenReader:{voiceOver:l},env:{jsdom:/jsdom|happydom/.test(r)}}}function Xn(){let e=typeof navigator>`u`?void 0:navigator;return{userAgent:e?.userAgent??``,platform:e?.platform??``,maxTouchPoints:e?.maxTouchPoints??0,webkitBackdropFilter:typeof CSS<`u`&&CSS.supports?.(`-webkit-backdrop-filter:none`)===!0}}function Xo(e=document){let n=e.activeElement;if(n==null)return null;for(;n!=null&&n.shadowRoot!=null&&n.shadowRoot.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Jo(e){return Be.engine.webkit&&e.movementX===0&&e.movementY===0}function Qo(e){let n=I(Pr).nativeElement,t=n.ownerDocument,r=I(ve);if(!t||!Se(I(sw)))return Jn;let i=[],o,s=[],a=!1,g=!0,c=!1,f=()=>{let l=e.form(),m=l?t.getElementById(l):typeof n.closest==`function`?n.closest(`form`):n.parentElement?.closest(`form`);return m?.localName===`form`?m:null},u=()=>{e.syncNativeControl?.();let l=e.name(),m=e.form(),y=e.disabled(),S=e.hasNativeControl?.()??!1,C=e.value&&e.serialize?e.serialize(e.value()):[];if(!c)return;let M=!!(l&&e.serialize&&!S)?C.length:0;for(;i.length>M;)i.pop()?.remove();for(;i.length<M;){let D=t.createElement(`input`);D.type=`hidden`;let v=i.at(-1);n.parentNode?.insertBefore(D,v?v.nextSibling:n.nextSibling),i.push(D)}for(let D=0;D<i.length;D++){let v=i[D];v.name=l,v.value=C[D],v.disabled=y,m?v.setAttribute(`form`,m):v.removeAttribute(`form`),v.hasAttribute(`data-rdx-native-form-control`)||(v.defaultValue=s[D]??C[D],v.setAttribute(`data-rdx-native-form-control`,``))}};rf(()=>{!a&&e.defaultValue&&(o=e.defaultValue(),s=e.serialize?e.serialize(o):[],a=!0)}),rf(u),LD(()=>{c=!0,Tg(u)});let d=l=>{l.target!==f()||!e.onReset||!a||queueMicrotask(()=>{g&&!l.defaultPrevented&&Tg(()=>e.onReset(o))})};return t.addEventListener(`reset`,d,!0),r.onDestroy(()=>{g=!1,t.removeEventListener(`reset`,d,!0);for(let l of i)l.remove()}),{ownerForm:f,sync:u,requestSubmit:()=>{Tg(u),f()?.requestSubmit()}}}function je(e){let n=e.ownerDocument.defaultView;if(!n)return!1;let{overflow:t,overflowX:r,overflowY:i,display:o}=n.getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&![`inline`,`contents`].includes(o)}function Qn(e){let n=e.defaultView;return n?n.innerWidth-e.documentElement.clientWidth>0:!1}function er(e){if(!e.defaultView||typeof CSS>`u`||!CSS.supports||!CSS.supports(`scrollbar-gutter`,`stable`))return!1;let t=e.documentElement,r=je(t)?t:e.body,i=r.style.overflowY,o=t.style.scrollbarGutter;t.style.scrollbarGutter=`stable`,r.style.overflowY=`scroll`;let s=r.offsetWidth;r.style.overflowY=`hidden`;let a=r.offsetWidth;return r.style.overflowY=i,t.style.scrollbarGutter=o,s===a}function tr(e){let n=e.documentElement,t=je(n)?n:e.body,r={overflowX:t.style.overflowX,overflowY:t.style.overflowY};return t.style.overflowX=`hidden`,t.style.overflowY=`hidden`,()=>{t.style.overflowX=r.overflowX,t.style.overflowY=r.overflowY}}function nr(e){let n=e.documentElement,t=e.body,r=e.defaultView;if(!r)return()=>{};if(Be.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};let i=0,o=0,s=!1,a={},g={},c=``,f=0,u=()=>{let m=r.getComputedStyle(n),y=r.getComputedStyle(t),C=(m.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;i=n.scrollTop,o=n.scrollLeft,a={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},c=n.style.scrollBehavior,g={position:t.style.position,height:t.style.height,width:t.style.width,boxSizing:t.style.boxSizing,overflowY:t.style.overflowY,overflowX:t.style.overflowX,scrollBehavior:t.style.scrollBehavior};let p=n.scrollHeight>n.clientHeight,M=n.scrollWidth>n.clientWidth,D=m.overflowY===`scroll`||y.overflowY===`scroll`,v=m.overflowX===`scroll`||y.overflowX===`scroll`,H=Math.max(0,r.innerWidth-t.clientWidth),$e=Math.max(0,r.innerHeight-t.clientHeight),Ue=(parseFloat(y.marginTop)||0)+(parseFloat(y.marginBottom)||0),Ge=(parseFloat(y.marginLeft)||0)+(parseFloat(y.marginRight)||0),He=je(n)?n:t;if(s=er(e),s){n.style.scrollbarGutter=C,He.style.overflowY=`hidden`,He.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:C,overflowY:`hidden`,overflowX:`hidden`}),(p||D)&&(n.style.overflowY=`scroll`),(M||v)&&(n.style.overflowX=`scroll`),Object.assign(t.style,{position:`relative`,height:Ue||$e?`calc(100dvh - ${Ue+$e}px)`:`100dvh`,width:Ge||H?`calc(100vw - ${Ge+H}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),t.scrollTop=i,t.scrollLeft=o,n.style.scrollBehavior=`unset`},d=()=>{Object.assign(n.style,a),Object.assign(t.style,g),s||(n.scrollTop=i,n.scrollLeft=o,n.style.scrollBehavior=c)},l=()=>{d(),f=r.requestAnimationFrame(u)};return u(),r.addEventListener(`resize`,l),()=>{f&&r.cancelAnimationFrame(f),d(),r.removeEventListener(`resize`,l)}}function rr(e){let n=Ft.get(e);return n||(n=new ke(e),Ft.set(e,n)),n}function es(e,n={}){let t=I(br),r=Se(I(sw)),i=null,o=null,s=()=>{i?.(),i=null,o=null};rf(()=>{if(!r)return;let a=n.referenceElement?.()?.ownerDocument??t;e()?(!i||o!==a)&&(s(),i=rr(a).acquire(),o=a):i&&s()}),r&&I(ve).onDestroy(s)}function ts(e){let n=I(Se$1),t=I(ve),r=wt$1(void 0),i,o,s,a=0,g=()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),o!==void 0&&(clearTimeout(o),o=void 0)},c=(u,d)=>{d===a&&(g(),r.set(void 0),t.destroyed||e(u))},f=(u,d)=>{let l=i,m=l?or(l):0;if(!l||m===0){c(u,d);return}let y=typeof l.getAnimations==`function`?l.getAnimations():[];o=setTimeout(()=>c(u,d),m+ir),y.length!==0&&Promise.all(y.map(S=>S.finished.catch(()=>{}))).then(()=>c(u,d))};return t.onDestroy(g),{status:r.asReadonly(),registerElement:u=>(i=u,()=>{i===u&&(i=void 0)}),start:u=>{let d=++a;g(),r.set(u?`starting`:`ending`),LD(()=>{t.destroyed||d!==a||(u?s=requestAnimationFrame(()=>{s=void 0,!(t.destroyed||d!==a)&&(r.set(void 0),f(u,d))}):f(u,d))},{injector:n})}}}function or(e){let n=getComputedStyle(e);return Math.max(St(n.transitionDuration,n.transitionDelay),St(n.animationDuration,n.animationDelay))}function St(e,n){let t=e.split(`,`).map(Mt),r=n.split(`,`).map(Mt);return t.reduce((i,o,s)=>Math.max(i,o+r[s%r.length]),0)}function Mt(e){let n=e.trim(),t=Number.parseFloat(n);return Number.isFinite(t)?n.endsWith(`ms`)?t:t*1e3:0}var Vn;var Rn;var Et;var xn;var Vt;var Pn;var Ln;var kn;var ko;var Bo;var jo;var $o;var Uo;var Go;var wt;var Bn;var Un;var Ho;var Gn;var K;var Tt;var te;var Rt;var Te;var Z;var Re;var xe;var xt;var qo;var Pe;var Yn;var Le;var qn;var Be;var Jn;var At;var ke;var Ft;var ir;var sr=f(()=>{Kr();Kr();bt();Me();Vn=(()=>{class e{constructor(){this.valueInput=jc(void 0,{alias:`value`}),this.disabledInput=jc(!1,{alias:`disabled`,transform:Dj}),this.valueChange=pj(),this._value=PS(()=>this.valueInput()),this.value=this._value.asReadonly(),this._disabled=PS(()=>this.disabledInput()),this.disabled=this._disabled.asReadonly()}writeValue(t){Tg(()=>this._value.set(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled.set(t)}setValue(t){this._value.set(t),this.valueChange.emit(t),this.onChange?.(t)}markAsTouched(){this.onTouched?.()}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[CS([Nn(e)])]})}}return e})();Rn=`https://radix-ng.com`;Et=new Set;xn=[`day`,`month`,`year`],Vt=[`hour`,`minute`,`second`,`dayPeriod`],Pn=[`literal`,`timeZoneName`],Ln=[...xn,...Vt],[...Vt],kn=[...Ln,...Pn],kn.filter(e=>e!==`literal`),ko=`ArrowDown`,Bo=`ArrowLeft`,jo=`ArrowRight`,$o=`ArrowUp`,Uo=`End`,Go=`Home`,wt=new Map,Bn=(()=>{class e{constructor(){this.appId=I(nf)}getId(t){let r=this.appId===`ng`?t:t+this.appId,i=wt.get(r)??0;return wt.set(r,i+1),`${r}${i}`}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}}return e})();Un=new M(`RdxFieldValidity`),Ho=(()=>{class e{constructor(){this.invalid=jc(!1,{transform:Dj}),this.pending=jc(!1,{transform:Dj}),this.touched=mj(!1),this.dirty=jc(!1,{transform:Dj}),this.errors=jc([]),this.touch=pj(),this.ngControlState=Tn(),this.formUi=$n({invalid:this.invalid,pending:this.pending,errors:this.errors,touched:this.touched,touch:this.touch,dirty:this.dirty,ngControlState:this.ngControlState,cva:this.formUiTouchTarget()}),this.validationErrors=this.formUi.errorsState,this.fieldValidity=I(Un,{optional:!0}),this.displayValid=Lt$1(()=>this.fieldValidity?this.fieldValidity():this.formUi.validState()),rf(()=>{if(this.ngControlState.connected()){this.touched.set(this.ngControlState.touched()),this.ngControlState.dirty()||this.formUi.resetDirtyState?.();return}this.dirty()||this.formUi.resetDirtyState?.()},{debugName:`RdxFormUiControlBase.syncInteractionState`})}formUiTouchTarget(){return null}resetNgControl(t){return this.ngControlState.reset(t)}reset(){this.formUi.resetInteractionState?.()}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,inputs:{invalid:[1,`invalid`],pending:[1,`pending`],touched:[1,`touched`],dirty:[1,`dirty`],errors:[1,`errors`]},outputs:{touched:`touchedChange`,touch:`touch`}})}}return e})();Gn=`utils/floating-tree`,K=class{constructor(){this._state=wt$1({status:`pending`}),this.status=Lt$1(()=>this._state().status),this.tree=Lt$1(()=>{let n=this._state();return n.status===`registered`?n.tree:null}),this.node=Lt$1(()=>{let n=this._state();return n.status===`registered`?n.node:null})}register(n,t){t.tree!==n&&k(`floating/registration-mismatch`,`register(tree, node): node.tree must equal tree. Node "${t.id}" belongs to a different tree.`,Gn),this._state.set({status:`registered`,tree:n,node:t})}markDetached(){this._state.set({status:`detached`})}clear(){this._state.set({status:`pending`})}},Tt=new M(`RdxFloatingRegistration`);te=new WeakMap,Rt=Symbol(`RdxFloatingNode`),Te=class{constructor(n,t,r,i,o){this.id=t,n!==Rt&&k(`floating/direct-node-construction`,`RdxFloatingNode is created only by RdxFloatingTree.register().`,Z),this.tree=r,te.set(this,{parent:i,context:o})}get parent(){return te.get(this).parent}get context(){return te.get(this).context}},Z=`utils/floating-tree`;Re=class{constructor(){this.events=Ot(),this.nodeSet=new Set,this.childrenOf=new Map}register(n){this.assertRegisterableParent(n.parent),Ej()&&this.assertContextDocument(n.context,this.nearestContext(n.parent));let t=new Te(Rt,n.id,this,n.parent,n.context);return this.nodeSet.add(t),this.addToChildrenOf(n.parent,t),t}unregister(n){Ej()&&this.assertOwnedNode(n),this.nodeSet.delete(n),this.removeFromChildrenOf(n.parent,n)}setContext(n,t){if(this.assertOwnedNode(n),Ej()&&t!==null){this.assertContextDocument(t,this.nearestContext(n.parent));for(let r of this.descendantContexts(n))this.assertContextDocument(t,r)}te.get(n).context=t}setParent(n,t){if(this.assertOwnedNode(n),this.assertRegisterableParent(t),n.parent===t)return;for(let i=t;i!==null&&this.nodeSet.has(i);i=i.parent)i===n&&k(`floating/parent-cycle`,`Reparenting node "${n.id}" under "${t?.id}" creates an ancestry cycle.`,Z);Ej()&&this.assertSubtreeDocuments(n,t);let r=n.parent;te.get(n).parent=t,this.removeFromChildrenOf(r,n),this.addToChildrenOf(t,n)}children(n,t={}){Ej()&&this.assertOwnedNode(n);let r=t.onlyOpen??!0,i=[],o=s=>{for(let a of this.directChildren(s))(!r||zn(a))&&i.push(a),o(a)};return o(n),i}ancestors(n){Ej()&&this.assertOwnedNode(n);let t=[];for(let r=n.parent;r!==null&&this.nodeSet.has(r);r=r.parent)t.push(r);return t}get all(){return[...this.nodeSet]}directChildren(n){return this.childrenOf.get(n)??[]}addToChildrenOf(n,t){let r=this.childrenOf.get(n);r||(r=[],this.childrenOf.set(n,r)),r.push(t)}removeFromChildrenOf(n,t){let r=this.childrenOf.get(n);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&this.childrenOf.delete(n)}nearestContext(n){for(let t=n;t!==null&&this.nodeSet.has(t);t=t.parent)if(t.context!==null)return t.context;return null}descendantContexts(n){return this.children(n,{onlyOpen:!1}).map(t=>t.context).filter(t=>t!==null)}assertSubtreeDocuments(n,t){let r=this.nearestContext(t);this.assertContextDocument(n.context,r);for(let i of this.descendantContexts(n))this.assertContextDocument(i,r)}isRegistered(n){return this.nodeSet.has(n)}assertOwnedNode(n){(n.tree!==this||!this.nodeSet.has(n))&&k(`floating/foreign-node`,`This node does not belong to this tree (or was already unregistered).`,Z)}assertRegisterableParent(n){n!==null&&(n.tree!==this&&k(`floating/cross-tree-parent`,`A floating node parent must belong to the same tree.`,Z),this.nodeSet.has(n)||k(`floating/unregistered-parent`,`A floating node parent must be currently registered in the tree.`,Z))}assertContextDocument(n,t){n!==null&&t!==null&&n.ownerDocument!==t.ownerDocument&&k(`floating/cross-document-parent`,`A floating node must share the same ownerDocument as its ancestry/subtree.`,Z)}},xe=new M(`RdxFloatingTree`);xt=new M(`RdxFloatingRootContext`);qo=(()=>{class e{constructor(){this.externalTree=jc(null),this.parentOverride=jc({kind:`inherit`}),this.selfReg=I(K),this.parentReg=I(Tt,{optional:!0,skipSelf:!0}),this.ambientTree=I(xe,{optional:!0}),this.rootContext=I(xt,{optional:!0}),this.nodeId=jn(`rdx-floating-node-`),this.node=this.selfReg.node,this.status=this.selfReg.status,this.tree=this.selfReg.tree,rf(t=>{let r=this.parentOverride();if(r.kind===`inherit`&&this.parentReg?.status()===`pending`)return;let i=r.kind===`node`?r.parent:r.kind===`root`?null:this.parentReg?.node()??null,o=(r.kind===`node`?r.parent.tree:null)??this.externalTree()??this.parentReg?.tree()??this.ambientTree;if(!o){this.selfReg.markDetached();return}let s=o.register({id:this.nodeId,parent:i,context:this.rootContext});this.selfReg.register(o,s),t(()=>{o.unregister(s),this.selfReg.clear()})})}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[CS([Hn()])]})}}return e})(),Pe=class{constructor(){this.elements=new Set}add(n){this.elements.add(n)}delete(n){this.elements.delete(n)}hasElement(n){return n!==null&&this.elements.has(n)}hasMatchingElement(n){if(!n)return!1;for(let t of this.elements)if(t.contains(n))return!0;return!1}contains(n){return this.hasElement(n)?!0:this.hasMatchingElement(Wn(n)?n:null)}};Yn=`utils/floating-tree`,Le=class{constructor(n){this.triggers=new Pe,this.events=Ot(),this.floatingElementRef=null,this.referenceElementRef=null,this.floatingElementsRef=new Set,this.ownerDocument=n.ownerDocument,this.open=n.open??(()=>!1),n.floatingElement!==void 0&&this.setFloatingElement(n.floatingElement),n.referenceElement!==void 0&&this.setReferenceElement(n.referenceElement)}get floatingElement(){return this.floatingElementRef}get referenceElement(){return this.referenceElementRef}get floatingElements(){return this.floatingElementsRef}setFloatingElement(n){this.assertSameDocument(n),this.floatingElementRef&&this.floatingElementsRef.delete(this.floatingElementRef),this.floatingElementRef=n,n&&this.floatingElementsRef.add(n)}addFloatingElement(n){this.assertSameDocument(n),this.floatingElementsRef.add(n)}removeFloatingElement(n){this.floatingElementsRef.delete(n)}setReferenceElement(n){this.assertSameDocument(n),this.referenceElementRef=n}assertSameDocument(n){Ej()&&n!==null&&n.ownerDocument!==this.ownerDocument&&k(`floating/cross-document-element`,`A floating element must share its root context's ownerDocument.`,Yn)}};qn=`data-rdx-internal-backdrop`;Be=Kn(Xn());Jn={ownerForm:()=>null,sync:()=>{},requestSubmit:()=>{}};At=`data-rdx-scroll-locked`;ke=class{constructor(n){this.doc=n,this.lockCount=0,this.restore=null,this.release=()=>{this.lockCount!==0&&(this.lockCount-=1,this.lockCount===0&&this.restore&&(this.restore(),this.restore=null))}}acquire(){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.lock(),this.release}lock(){let n=this.doc.documentElement,t=this.doc.defaultView,r=t?t.getComputedStyle(n).overflowY:``;if(r===`hidden`||r===`clip`)this.restore=()=>{};else{let s=Be.os.ios||!Qn(this.doc)?tr(this.doc):nr(this.doc);this.restore=s}n.setAttribute(At,``);let i=this.restore;this.restore=()=>{i(),n.removeAttribute(At)}}},Ft=new WeakMap;ir=50});export{or as A,be as C,ko as D,jo as E,tn as F,ts as I,xo as L,rn as M,sr as N,le as O,st as P,xt as R,an as S,jn as T,Vn as _,Go as a,Yo as b,Ko as c,Qo as d,Ro as f,Uo as g,Tt as h,G as i,qo as j,ln as k,Lt as l,To as m,Be as n,Ho as o,Se as p,Bo as r,Jo as s,$o as t,Me as u,Wo as v,es as w,Zo as x,Xo as y,zo as z};
1
+ import{A as I,At as Uw,B as LE,Cr as yc,En as jc,Fn as mj,G as M,Hn as on$1,I as Jm,Kn as pj,Ln as nf,Lt as Ws,Nt as Vr,Pt as W,Q as Nn$1,R as Kr,Tr as zr,W as Lt$1,Zn as rf,_ as Dj,_r as wt$1,at as Pr,b as Ej,d as CS,et as OC,ft as Rc,hn as ge,ht as S,it as PS,jn as lf,k as Ho$1,ln as f,lr as ve,m as Cw,mn as gb,n as $e,nn as br,rr as te$1,rt as PE,t as $C,tn as bj,tr as sw,vn as gl,w as Gi,wt as Tg,yr as xm,yt as Se$1,z as LD,zt as X}from"./chunk-CQJfJJJO.js";function G(){return tt}function Lt(e){tt??=e}var tt;var be;var ue;var nt;var Ee=f(()=>{Kr();Kr();tt=null;be=class{},ue=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(nt),providedIn:`platform`})}return e})(),nt=(()=>{class e extends ue{_location;_history;_doc=I(br);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,t,!1),()=>r.removeEventListener(`popstate`,t)}onHashChange(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,t,!1),()=>r.removeEventListener(`hashchange`,t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>new e,providedIn:`platform`})}return e})()});function ot(e,n){return e?n?e.endsWith(`/`)?n.startsWith(`/`)?e+n.slice(1):e+n:n.startsWith(`/`)?e+n:`${e}/${n}`:e:n}function rt(e){let n=e.search(/#|\?|$/);return e[n-1]===`/`?e.slice(0,n-1)+e.slice(n):e}function L(e){return e&&e[0]!==`?`?`?${e}`:e}function jt(){return new st($e(le))}function $t(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===``||[`/`,`;`,`?`,`#`].includes(t[0])?t:n}function it(e){return e.replace(/\/index\.html$/,``)}function Ut(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var le;var kt;var Bt;var st;var at=f(()=>{Kr();Kr();Ws();Ee();le=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(Bt),providedIn:`root`})}return e})(),kt=new M(``),Bt=(()=>{class e extends le{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(br).location?.origin??``}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ot(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static ɵfac=function(r){return new(r||e)($e(ue),$e(kt,8))};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}return e})(),st=(()=>{class e{_subject=new ge;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ut(rt(it(r))),this._locationStrategy.onPopState(i=>{let o={url:this.path(!0),pop:!0,state:i.state,type:i.type};i.hasUAVisualTransition&&(o.hasUAVisualTransition=!0),this._subject.next(o)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=``){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash($t(this._basePath,it(t)))}prepareExternalUrl(t){return t&&t[0]!==`/`&&(t=`/`+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r=``,i=null){this._locationStrategy.pushState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r=``,i=null){this._locationStrategy.replaceState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t=``,r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=L;static joinWithSlash=ot;static stripTrailingSlash=rt;static ɵfac=function(r){return new(r||e)($e(le))};static ɵprov=X({token:e,factory:()=>jt(),providedIn:`root`})}return e})()});function q(e,n){let t=LE(e),r=t[PE.NumberSymbols][n];if(typeof r>`u`){if(n===F.CurrencyDecimal)return t[PE.NumberSymbols][F.Decimal];if(n===F.CurrencyGroup)return t[PE.NumberSymbols][F.Group]}return r}function lt(e,n){return LE(e)[PE.NumberFormats][n]}function Kt(e,n,t,r,i,o,s=!1){let a=``,g=!1;if(!isFinite(e))a=q(t,Number.isNaN(e)?F.NaN:F.Infinity);else{let c=Qt(e);s&&(c=Jt(c));let f=n.minInt,u=n.minFrac,d=n.maxFrac;if(o){let p=o.match(Yt);if(p===null)throw new S(2306,!1);let M=p[1],D=p[3],v=p[5];M!=null&&(f=Ae(M)),D!=null&&(u=Ae(D)),v!=null?d=Ae(v):D!=null&&u>d&&(d=u);let H=100;if(f>H||u>H||d>H)throw new S(2306,!1)}en(c,u,d);let l=c.digits,m=c.integerLen,y=c.exponent,S$1=[];for(g=l.every(p=>!p);m<f;m++)l.unshift(0);for(;m<0;m++)l.unshift(0);m>0?S$1=l.splice(m,l.length):(S$1=l,l=[0]);let C=[];for(l.length>=n.lgSize&&C.unshift(l.splice(-n.lgSize,l.length).join(``));l.length>n.gSize;)C.unshift(l.splice(-n.gSize,l.length).join(``));l.length&&C.unshift(l.join(``)),a=C.join(q(t,r)),S$1.length&&(a+=q(t,i)+S$1.join(``)),y&&(a+=q(t,F.Exponential)+`+`+y)}return e<0&&!g?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function ct(e,n,t){return Kt(e,Xt(lt(n,Fe.Decimal),q(n,F.MinusSign)),n,F.Group,F.Decimal,t)}function Xt(e,n=`-`){let t={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},r=e.split(qt),i=r[0],o=r[1],s=i.indexOf(ce)!==-1?i.split(ce):[i.substring(0,i.lastIndexOf(ee)+1),i.substring(i.lastIndexOf(ee)+1)],a=s[0],g=s[1]||``;t.posPre=a.substring(0,a.indexOf(we));for(let f=0;f<g.length;f++){let u=g.charAt(f);u===ee?t.minFrac=t.maxFrac=f+1:u===we?t.maxFrac=f+1:t.posSuf+=u}let c=a.split(Zt);if(t.gSize=c[1]?c[1].length:0,t.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let f=i.length-t.posPre.length-t.posSuf.length,u=o.indexOf(we);t.negPre=o.substring(0,u).replace(/'/g,``),t.negSuf=o.slice(u+f).replace(/'/g,``)}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function Jt(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function Qt(e){let n=Math.abs(e)+``,t=0,r,i,o,s,a;for((i=n.indexOf(ce))>-1&&(n=n.replace(ce,``)),(o=n.search(/e/i))>0?(i<0&&(i=o),i+=+n.slice(o+1),n=n.substring(0,o)):i<0&&(i=n.length),o=0;n.charAt(o)===ee;o++);if(o===(a=n.length))r=[0],i=1;else{for(a--;n.charAt(a)===ee;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(n.charAt(o))}return i>ut&&(r=r.splice(0,ut-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}function en(e,n,t){if(n>t)throw new S(2307,!1);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(n,i),t),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let u=s;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let u=1;u<s;u++)r[u]=0}if(a>=5)if(s-1<0){for(let u=0;u>s;u--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let g=o!==0,c=n+e.integerLen,f=r.reduceRight(function(u,d,l,m){return d=d+u,m[l]=d<10?d:d-10,g&&(m[l]===0&&l>=c?m.pop():g=!1),d>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Ae(e){let n=parseInt(e);if(isNaN(n))throw new S(2305,!1);return n}function nn(e,n){return new S(2100,!1)}function on(e){return!(e==null||e===``||e!==e)}function sn(e){if(typeof e==`string`&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!=`number`)throw new S(2309,!1);return e}var Fe;var F;var Yt;var ut;var ce;var ee;var qt;var Zt;var we;var tn;var rn;var dt=f(()=>{Kr();Kr();Fe=(function(e){return e[e.Decimal=0]=`Decimal`,e[e.Percent=1]=`Percent`,e[e.Currency=2]=`Currency`,e[e.Scientific=3]=`Scientific`,e})(Fe||{}),F={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ut=22,ce=`.`,ee=`0`,qt=`;`,Zt=`,`,we=`#`;tn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=I(Se$1);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static ɵfac=function(r){return new(r||e)(Vr(Gi))};static ɵdir=$C({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Cw]})}return e})();rn=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,i){if(!on(t))return null;i||=this._locale;try{return ct(sn(t),i,r)}catch(o){throw nn(e,o.message)}}static ɵfac=function(r){return new(r||e)(Vr(Rc,16))};static ɵpipe=OC({name:`number`,type:e,pure:!0})}return e})()});function an(e,n){n=encodeURIComponent(n);for(let t of e.split(`;`)){let r=t.indexOf(`=`),[i,o]=r==-1?[t,``]:[t.slice(0,r),t.slice(r+1)];if(i.trim()!==n)continue;let s=o;try{s=decodeURIComponent(o)}catch{}return s.length>1&&s[0]===`"`&&s[s.length-1]===`"`&&(s=s.slice(1,-1)),s}return null}var ft=f(()=>{});function Se(e){return e===ln}var ln;var Me=f(()=>{at();dt();Ee();Kr();ft();ln=`browser`});function fn(){let e=G()?G().getUserAgent():``;return/android (\d+)/.test(e.toLowerCase())}function gn(e){return e==null||mn(e)===0}function mn(e){return e==null?null:Array.isArray(e)||typeof e==`string`?e.length:e instanceof Set?e.size:null}function yn(e){return gn(e.value)?{required:!0}:null}function gt(e){return null}function yt(e){return e!=null}function Dn(e){return yc(e)?on$1(e):e}function Dt(e){let n={};return e.forEach(t=>{n=t!=null?W(W({},n),t):n}),Object.keys(n).length===0?null:n}function vt(e,n){return n.map(t=>t(e))}function vn(e){return!e.validate}function Ct(e){return e.map(n=>vn(n)?n:t=>n.validate(t))}function Cn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return Dt(vt(t,n))}}function _n(e){return e!=null?Cn(Ct(e)):null}function bn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return gb(vt(t,n).map(Dn)).pipe(Nn$1(Dt))}}function En(e){return e!=null?bn(Ct(e)):null}function wn(e){return e.tagName===`INPUT`||e.tagName===`SELECT`||e.tagName===`TEXTAREA`}function An(e,n,t,r){switch(t){case`name`:e.setAttribute(n,t,r);break;case`disabled`:case`readonly`:case`required`:r?e.setAttribute(n,t,``):e.removeAttribute(n,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:r!==void 0?e.setAttribute(n,t,r.toString()):e.removeAttribute(n,t);break}}function Mn(e){return Object.getPrototypeOf(e.constructor)===cn}function In(e,n){if(!n)return null;let t,r,i;return n.forEach(o=>{o.constructor===pt?t=o:Mn(o)?r=o:i=o}),i||r||t||null}var mt;var cn;var Oe;var dn;var hn;var pt;var pn;var Ie;var Ne;var de;var Ve;var Fn;var Sn;var _t;var fe;var bt=f(()=>{Kr();Kr();Ws();lf();Me();mt=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,r){this._renderer=t,this._elementRef=r}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty(`disabled`,t)}static ɵfac=function(r){return new(r||e)(Vr(gl),Vr(Pr))};static ɵdir=$C({type:e})}return e})(),cn=(()=>{class e extends mt{static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=$C({type:e,features:[xm]})}return e})(),Oe=new M(``),dn={provide:Oe,useExisting:Ho$1(()=>pt),multi:!0};hn=new M(``),pt=(()=>{class e extends mt{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode??=!fn()}writeValue(t){let r=t??``;this.setProperty(`value`,r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static ɵfac=function(r){return new(r||e)(Vr(gl),Vr(Pr),Vr(hn,8))};static ɵdir=$C({type:e,selectors:[[`input`,`formControlName`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`formControl`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControl`,``,3,`ngNoCva`,``],[`input`,`ngModel`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`ngModel`,``,3,`ngNoCva`,``],[``,`ngDefaultControl`,``]],hostBindings:function(r,i){r&1&&Jm(`input`,function(s){return i._handleInput(s.target.value)})(`blur`,function(){return i.onTouched()})(`compositionstart`,function(){return i._compositionStart()})(`compositionend`,function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[CS([dn]),xm]})}return e})();pn=new M(``);Ie=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_n(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=En(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},Ne=class{},de=class extends Ne{source;constructor(n){super(),this.source=n}};Ve=class{kind;context;control;message;constructor({kind:n,context:t,control:r}){this.kind=n,this.context=t,this.control=r}},Fn=(()=>{class e{_validator=gt;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):gt,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static ɵfac=function(r){return new(r||e)};static ɵdir=$C({type:e,features:[Cw]})}return e})(),Sn={provide:pn,useExisting:Ho$1(()=>_t),multi:!0},_t=(()=>{class e extends Fn{required;inputName=`required`;normalizeInput=Dj;createValidator=t=>yn;enabled(t){return t}static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=$C({type:e,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(r,i){r&2&&zr(`required`,i._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[CS([Sn]),xm]})}return e})();fe=class extends Ie{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(n){this.userOnReset=n,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=In(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(n,t,r){super(),this.injector=n,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ve)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let n=this.injector?.get(bj);if(!this.control||!n)return;let t=n.markForCheck.bind(n);this.subscription=new te$1,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(n){!n.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!n.customControl||(this.isCustomControlBased=!0,n.listenToCustomControlModel(i=>{this.control?.markAsDirty(),this.control?.setValue(i,{emitModelToViewChange:!1}),this.viewToModelUpdate(i)}),n.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=wn(n.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof _t))}ngControlUpdate(n,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,n.setCustomControlModelInput(r.value)),this.bindControlProperty(n,i,`touched`,r.touched),this.bindControlProperty(n,i,`dirty`,r.dirty),this.bindControlProperty(n,i,`valid`,r.valid),this.bindControlProperty(n,i,`invalid`,r.invalid),this.bindControlProperty(n,i,`pending`,r.pending),this.bindControlProperty(n,i,`disabled`,r.disabled),this.shouldBindRequired&&this.bindControlProperty(n,i,`required`,this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);n.setInputOnDirectives(`errors`,s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(n,t,r,i){if(t[r]===i)return;t[r]=i;let o=n.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r===`disabled`||r===`required`)&&this.renderer&&An(this.renderer,n.nativeElement,r,i)}_convertErrors(n){if(n===null)return[];let t=this.control;return Object.entries(n).map(([r,i])=>new Ve({context:i,kind:r,control:t}))}setParseErrorSource(n){if(n===void 0)return;let t=null,r=Lt$1(()=>{let i=n();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>t).bind(this),rf(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(n){this.parseErrorsValidator&&(n?.removeValidators(this.parseErrorsValidator),n?.updateValueAndValidity({emitEvent:!1}))}}});function Nn(e){return{provide:Oe,useExisting:Ho$1(()=>e),multi:!0}}function To(){return I(Vn)}function On(e){return e?Object.entries(e).map(([n,t])=>{let r=typeof t==`string`?t:t&&typeof t==`object`&&typeof t.message==`string`?t.message:void 0;return r===void 0?{kind:n}:{kind:n,message:r}}):[]}function Tn(){let e=I(Se$1),n=I(ve),t=wt$1(!1,{debugName:`RdxNgControlState.connected`}),r=wt$1(void 0,{debugName:`RdxNgControlState.name`}),i=wt$1(void 0,{debugName:`RdxNgControlState.value`}),o=wt$1(!1,{debugName:`RdxNgControlState.valid`}),s=wt$1(!1,{debugName:`RdxNgControlState.invalid`}),a=wt$1(!1,{debugName:`RdxNgControlState.pending`}),g=wt$1(!1,{debugName:`RdxNgControlState.disabled`}),c=wt$1(null,{debugName:`RdxNgControlState.rawErrors`}),f=Lt$1(()=>On(c()),{debugName:`RdxNgControlState.errors`}),u=wt$1(!1,{debugName:`RdxNgControlState.dirty`}),d=wt$1(!1,{debugName:`RdxNgControlState.touched`}),l=!1,m,y;return queueMicrotask(()=>{if(l)return;let C=e.get(fe,null,{self:!0,optional:!0}),p=C?.control;if(!p||typeof p.events?.subscribe!=`function`)return;y=v=>p.reset(v);let M=()=>{r.set(C.name==null?void 0:String(C.name)),i.set(p.value),o.set(p.valid),s.set(p.invalid),a.set(p.pending),g.set(p.disabled),c.set(p.errors),u.set(p.dirty),d.set(p.touched)};M();let D=p.events.subscribe(M);m=()=>D.unsubscribe(),t.set(!0)}),n.onDestroy(()=>{l=!0,m?.()}),{connected:t.asReadonly(),name:r.asReadonly(),value:i.asReadonly(),valid:o.asReadonly(),invalid:s.asReadonly(),pending:a.asReadonly(),disabled:g.asReadonly(),errors:f,dirty:u.asReadonly(),touched:d.asReadonly(),reset:C=>y?(y(C),!0):!1}}function It(e){return`${Rn}/${e}.md`}function Nt(e,n,t){return`[rdx:${e}] ${n}${t?` See ${It(t)}`:``}`}function Ro(e,n,t){!Ej()||Et.has(e)||(Et.add(e),console.warn(Nt(e,n,t)))}function k(e,n,t){throw new Error(Nt(e,n,t))}function xo(e,n){let t=`${e.replace(/\s*Context$/,``)}Context`,r=new M(t);return[(s=!1)=>{let a=I(r,{optional:!0});if(a==null&&!s){let g=n?` See ${It(n)} for the required part hierarchy.`:``;throw new Error(`No \`${t}\` found. This part must be placed inside the directive that provides \`${t}\` (usually the primitive's root).${g}`)}return a},s=>({provide:r,useFactory:s})]}function jn(e){return I(Bn).getId(e)}function $n(e){let n=wt$1(!1),t=Lt$1(()=>{let s=e.errors()??[],a=e.ngControlState?.connected()?e.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=Lt$1(()=>e.invalid()||t().length>0||!!(e.ngControlState?.connected()&&e.ngControlState.invalid())),i=Lt$1(()=>(e.pending?.()??!1)||!!(e.ngControlState?.connected()&&e.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:Lt$1(()=>i()?null:r()?!1:e.ngControlState?.connected()&&e.ngControlState.disabled()?null:!0),errorsState:t,touchedState:Lt$1(()=>e.ngControlState?.connected()?e.ngControlState.touched():e.touched()),dirtyState:Lt$1(()=>e.ngControlState?.connected()?e.ngControlState.dirty():e.dirty()||n()),markDirty:()=>n.set(!0),markAsTouched:()=>{e.cva?.markAsTouched(),e.touched.set(!0),e.touch.emit()},resetInteractionState:()=>{e.touched.set(!1),n.set(!1)},resetDirtyState:()=>n.set(!1)}}function zo(e,n,t){let r=!1,i=!1,o=!1;return{eventDetails:{reason:e,event:n,trigger:t,cancel:()=>{r=!0},isCanceled:()=>r,allowPropagation:()=>{i=!0},get isPropagationAllowed(){return i},preventUnmountOnClose:()=>{o=!0}},shouldPreventUnmountOnClose:()=>o}}function Ot(){let e=new Map;return{emit(n,t){let r=e.get(n);if(r)for(let i of[...r])i(t)},on(n,t){let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)},off(n,t){e.get(n)?.delete(t)}}}function Hn(){return[{provide:K,useFactory:()=>new K},{provide:Tt,useExisting:K}]}function zn(e){return e.context?.open()??!1}function Wo(){return{provide:xe,useFactory:()=>I(xe,{optional:!0,skipSelf:!0})??new Re}}function Yo(e){return{provide:xt,useFactory:e}}function Wn(e){return e!==null&&typeof e.nodeType==`number`}function Zo(e){return new Le(e)}function Zn(e){return`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}function Ko(e,n,t){let r=e.ownerDocument,i=t.marker??qn,o=null,s=()=>{o?.remove(),o=null},a=rf(()=>{let g=t.isOpen(),c=t.shouldRender();if(c&&!o){o=r.createElement(`div`),o.setAttribute(`role`,`presentation`),o.setAttribute(i,``),o.style.position=`fixed`,o.style.inset=`0px`,o.style.userSelect=`none`,o.style.webkitUserSelect=`none`;let f=t.cutout?.()??null;f&&(o.style.clipPath=Zn(f.getBoundingClientRect())),e.parentElement?.insertBefore(o,e)}else c||s();o&&(o.style.pointerEvents=t.passThrough?.()?`none`:``,g?o.removeAttribute(`inert`):o.setAttribute(`inert`,``))},{injector:n});n.get(ve).onDestroy(()=>{a.destroy(),s()})}function Kn(e){let{maxTouchPoints:n,webkitBackdropFilter:t}=e,r=e.userAgent.toLowerCase(),i=e.platform.toLowerCase(),o=t,s=!o&&r.includes(`firefox`),a=!o&&r.includes(`chrom`),g=/^i(os$|p)/.test(i)||i===`macintel`&&n>1||/ip(ad|hone|od)/.test(r),c=i===`android`||r.includes(`android`),f=!g&&i.startsWith(`mac`),u=i.startsWith(`win`),d=!c&&/^(linux|chrome os)/.test(i),l=f||g;return{engine:{webkit:o,gecko:s,blink:a},os:{ios:g,android:c,mac:f,windows:u,linux:d,apple:l},screenReader:{voiceOver:l},env:{jsdom:/jsdom|happydom/.test(r)}}}function Xn(){let e=typeof navigator>`u`?void 0:navigator;return{userAgent:e?.userAgent??``,platform:e?.platform??``,maxTouchPoints:e?.maxTouchPoints??0,webkitBackdropFilter:typeof CSS<`u`&&CSS.supports?.(`-webkit-backdrop-filter:none`)===!0}}function Xo(e=document){let n=e.activeElement;if(n==null)return null;for(;n!=null&&n.shadowRoot!=null&&n.shadowRoot.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Jo(e){return Be.engine.webkit&&e.movementX===0&&e.movementY===0}function Qo(e){let n=I(Pr).nativeElement,t=n.ownerDocument,r=I(ve);if(!t||!Se(I(sw)))return Jn;let i=[],o,s=[],a=!1,g=!0,c=!1,f=()=>{let l=e.form(),m=l?t.getElementById(l):typeof n.closest==`function`?n.closest(`form`):n.parentElement?.closest(`form`);return m?.localName===`form`?m:null},u=()=>{e.syncNativeControl?.();let l=e.name(),m=e.form(),y=e.disabled(),S=e.hasNativeControl?.()??!1,C=e.value&&e.serialize?e.serialize(e.value()):[];if(!c)return;let M=!!(l&&e.serialize&&!S)?C.length:0;for(;i.length>M;)i.pop()?.remove();for(;i.length<M;){let D=t.createElement(`input`);D.type=`hidden`;let v=i.at(-1);n.parentNode?.insertBefore(D,v?v.nextSibling:n.nextSibling),i.push(D)}for(let D=0;D<i.length;D++){let v=i[D];v.name=l,v.value=C[D],v.disabled=y,m?v.setAttribute(`form`,m):v.removeAttribute(`form`),v.hasAttribute(`data-rdx-native-form-control`)||(v.defaultValue=s[D]??C[D],v.setAttribute(`data-rdx-native-form-control`,``))}};rf(()=>{!a&&e.defaultValue&&(o=e.defaultValue(),s=e.serialize?e.serialize(o):[],a=!0)}),rf(u),LD(()=>{c=!0,Tg(u)});let d=l=>{l.target!==f()||!e.onReset||!a||queueMicrotask(()=>{g&&!l.defaultPrevented&&Tg(()=>e.onReset(o))})};return t.addEventListener(`reset`,d,!0),r.onDestroy(()=>{g=!1,t.removeEventListener(`reset`,d,!0);for(let l of i)l.remove()}),{ownerForm:f,sync:u,requestSubmit:()=>{Tg(u),f()?.requestSubmit()}}}function je(e){let n=e.ownerDocument.defaultView;if(!n)return!1;let{overflow:t,overflowX:r,overflowY:i,display:o}=n.getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&![`inline`,`contents`].includes(o)}function Qn(e){let n=e.defaultView;return n?n.innerWidth-e.documentElement.clientWidth>0:!1}function er(e){if(!e.defaultView||typeof CSS>`u`||!CSS.supports||!CSS.supports(`scrollbar-gutter`,`stable`))return!1;let t=e.documentElement,r=je(t)?t:e.body,i=r.style.overflowY,o=t.style.scrollbarGutter;t.style.scrollbarGutter=`stable`,r.style.overflowY=`scroll`;let s=r.offsetWidth;r.style.overflowY=`hidden`;let a=r.offsetWidth;return r.style.overflowY=i,t.style.scrollbarGutter=o,s===a}function tr(e){let n=e.documentElement,t=je(n)?n:e.body,r={overflowX:t.style.overflowX,overflowY:t.style.overflowY};return t.style.overflowX=`hidden`,t.style.overflowY=`hidden`,()=>{t.style.overflowX=r.overflowX,t.style.overflowY=r.overflowY}}function nr(e){let n=e.documentElement,t=e.body,r=e.defaultView;if(!r)return()=>{};if(Be.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};let i=0,o=0,s=!1,a={},g={},c=``,f=0,u=()=>{let m=r.getComputedStyle(n),y=r.getComputedStyle(t),C=(m.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;i=n.scrollTop,o=n.scrollLeft,a={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},c=n.style.scrollBehavior,g={position:t.style.position,height:t.style.height,width:t.style.width,boxSizing:t.style.boxSizing,overflowY:t.style.overflowY,overflowX:t.style.overflowX,scrollBehavior:t.style.scrollBehavior};let p=n.scrollHeight>n.clientHeight,M=n.scrollWidth>n.clientWidth,D=m.overflowY===`scroll`||y.overflowY===`scroll`,v=m.overflowX===`scroll`||y.overflowX===`scroll`,H=Math.max(0,r.innerWidth-t.clientWidth),$e=Math.max(0,r.innerHeight-t.clientHeight),Ue=(parseFloat(y.marginTop)||0)+(parseFloat(y.marginBottom)||0),Ge=(parseFloat(y.marginLeft)||0)+(parseFloat(y.marginRight)||0),He=je(n)?n:t;if(s=er(e),s){n.style.scrollbarGutter=C,He.style.overflowY=`hidden`,He.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:C,overflowY:`hidden`,overflowX:`hidden`}),(p||D)&&(n.style.overflowY=`scroll`),(M||v)&&(n.style.overflowX=`scroll`),Object.assign(t.style,{position:`relative`,height:Ue||$e?`calc(100dvh - ${Ue+$e}px)`:`100dvh`,width:Ge||H?`calc(100vw - ${Ge+H}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),t.scrollTop=i,t.scrollLeft=o,n.style.scrollBehavior=`unset`},d=()=>{Object.assign(n.style,a),Object.assign(t.style,g),s||(n.scrollTop=i,n.scrollLeft=o,n.style.scrollBehavior=c)},l=()=>{d(),f=r.requestAnimationFrame(u)};return u(),r.addEventListener(`resize`,l),()=>{f&&r.cancelAnimationFrame(f),d(),r.removeEventListener(`resize`,l)}}function rr(e){let n=Ft.get(e);return n||(n=new ke(e),Ft.set(e,n)),n}function es(e,n={}){let t=I(br),r=Se(I(sw)),i=null,o=null,s=()=>{i?.(),i=null,o=null};rf(()=>{if(!r)return;let a=n.referenceElement?.()?.ownerDocument??t;e()?(!i||o!==a)&&(s(),i=rr(a).acquire(),o=a):i&&s()}),r&&I(ve).onDestroy(s)}function ts(e){let n=I(Se$1),t=I(ve),r=wt$1(void 0),i,o,s,a=0,g=()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),o!==void 0&&(clearTimeout(o),o=void 0)},c=(u,d)=>{d===a&&(g(),r.set(void 0),t.destroyed||e(u))},f=(u,d)=>{let l=i,m=l?or(l):0;if(!l||m===0){c(u,d);return}let y=typeof l.getAnimations==`function`?l.getAnimations():[];o=setTimeout(()=>c(u,d),m+ir),y.length!==0&&Promise.all(y.map(S=>S.finished.catch(()=>{}))).then(()=>c(u,d))};return t.onDestroy(g),{status:r.asReadonly(),registerElement:u=>(i=u,()=>{i===u&&(i=void 0)}),start:u=>{let d=++a;g(),r.set(u?`starting`:`ending`),LD(()=>{t.destroyed||d!==a||(u?s=requestAnimationFrame(()=>{s=void 0,!(t.destroyed||d!==a)&&(r.set(void 0),f(u,d))}):f(u,d))},{injector:n})}}}function or(e){let n=getComputedStyle(e);return Math.max(St(n.transitionDuration,n.transitionDelay),St(n.animationDuration,n.animationDelay))}function St(e,n){let t=e.split(`,`).map(Mt),r=n.split(`,`).map(Mt);return t.reduce((i,o,s)=>Math.max(i,o+r[s%r.length]),0)}function Mt(e){let n=e.trim(),t=Number.parseFloat(n);return Number.isFinite(t)?n.endsWith(`ms`)?t:t*1e3:0}var Vn;var Rn;var Et;var xn;var Vt;var Pn;var Ln;var kn;var ko;var Bo;var jo;var $o;var Uo;var Go;var wt;var Bn;var Un;var Ho;var Gn;var K;var Tt;var te;var Rt;var Te;var Z;var Re;var xe;var xt;var qo;var Pe;var Yn;var Le;var qn;var Be;var Jn;var At;var ke;var Ft;var ir;var sr=f(()=>{Kr();Kr();bt();Me();Vn=(()=>{class e{constructor(){this.valueInput=jc(void 0,{alias:`value`}),this.disabledInput=jc(!1,{alias:`disabled`,transform:Dj}),this.valueChange=pj(),this._value=PS(()=>this.valueInput()),this.value=this._value.asReadonly(),this._disabled=PS(()=>this.disabledInput()),this.disabled=this._disabled.asReadonly()}writeValue(t){Tg(()=>this._value.set(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled.set(t)}setValue(t){this._value.set(t),this.valueChange.emit(t),this.onChange?.(t)}markAsTouched(){this.onTouched?.()}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[CS([Nn(e)])]})}}return e})();Rn=`https://radix-ng.com`;Et=new Set;xn=[`day`,`month`,`year`],Vt=[`hour`,`minute`,`second`,`dayPeriod`],Pn=[`literal`,`timeZoneName`],Ln=[...xn,...Vt],[...Vt],kn=[...Ln,...Pn],kn.filter(e=>e!==`literal`),ko=`ArrowDown`,Bo=`ArrowLeft`,jo=`ArrowRight`,$o=`ArrowUp`,Uo=`End`,Go=`Home`,wt=new Map,Bn=(()=>{class e{constructor(){this.appId=I(nf)}getId(t){let r=this.appId===`ng`?t:t+this.appId,i=wt.get(r)??0;return wt.set(r,i+1),`${r}${i}`}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}}return e})();Un=new M(`RdxFieldValidity`),Ho=(()=>{class e{constructor(){this.invalid=jc(!1,{transform:Dj}),this.pending=jc(!1,{transform:Dj}),this.touched=mj(!1),this.dirty=jc(!1,{transform:Dj}),this.errors=jc([]),this.touch=pj(),this.ngControlState=Tn(),this.formUi=$n({invalid:this.invalid,pending:this.pending,errors:this.errors,touched:this.touched,touch:this.touch,dirty:this.dirty,ngControlState:this.ngControlState,cva:this.formUiTouchTarget()}),this.validationErrors=this.formUi.errorsState,this.fieldValidity=I(Un,{optional:!0}),this.displayValid=Lt$1(()=>this.fieldValidity?this.fieldValidity():this.formUi.validState()),rf(()=>{if(this.ngControlState.connected()){this.touched.set(this.ngControlState.touched()),this.ngControlState.dirty()||this.formUi.resetDirtyState?.();return}this.dirty()||this.formUi.resetDirtyState?.()},{debugName:`RdxFormUiControlBase.syncInteractionState`})}formUiTouchTarget(){return null}resetNgControl(t){return this.ngControlState.reset(t)}reset(){this.formUi.resetInteractionState?.()}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,inputs:{invalid:[1,`invalid`],pending:[1,`pending`],touched:[1,`touched`],dirty:[1,`dirty`],errors:[1,`errors`]},outputs:{touched:`touchedChange`,touch:`touch`}})}}return e})();Gn=`utils/floating-tree`,K=class{constructor(){this._state=wt$1({status:`pending`}),this.status=Lt$1(()=>this._state().status),this.tree=Lt$1(()=>{let n=this._state();return n.status===`registered`?n.tree:null}),this.node=Lt$1(()=>{let n=this._state();return n.status===`registered`?n.node:null})}register(n,t){t.tree!==n&&k(`floating/registration-mismatch`,`register(tree, node): node.tree must equal tree. Node "${t.id}" belongs to a different tree.`,Gn),this._state.set({status:`registered`,tree:n,node:t})}markDetached(){this._state.set({status:`detached`})}clear(){this._state.set({status:`pending`})}},Tt=new M(`RdxFloatingRegistration`);te=new WeakMap,Rt=Symbol(`RdxFloatingNode`),Te=class{constructor(n,t,r,i,o){this.id=t,n!==Rt&&k(`floating/direct-node-construction`,`RdxFloatingNode is created only by RdxFloatingTree.register().`,Z),this.tree=r,te.set(this,{parent:i,context:o})}get parent(){return te.get(this).parent}get context(){return te.get(this).context}},Z=`utils/floating-tree`;Re=class{constructor(){this.events=Ot(),this.nodeSet=new Set,this.childrenOf=new Map}register(n){this.assertRegisterableParent(n.parent),Ej()&&this.assertContextDocument(n.context,this.nearestContext(n.parent));let t=new Te(Rt,n.id,this,n.parent,n.context);return this.nodeSet.add(t),this.addToChildrenOf(n.parent,t),t}unregister(n){Ej()&&this.assertOwnedNode(n),this.nodeSet.delete(n),this.removeFromChildrenOf(n.parent,n)}setContext(n,t){if(this.assertOwnedNode(n),Ej()&&t!==null){this.assertContextDocument(t,this.nearestContext(n.parent));for(let r of this.descendantContexts(n))this.assertContextDocument(t,r)}te.get(n).context=t}setParent(n,t){if(this.assertOwnedNode(n),this.assertRegisterableParent(t),n.parent===t)return;for(let i=t;i!==null&&this.nodeSet.has(i);i=i.parent)i===n&&k(`floating/parent-cycle`,`Reparenting node "${n.id}" under "${t?.id}" creates an ancestry cycle.`,Z);Ej()&&this.assertSubtreeDocuments(n,t);let r=n.parent;te.get(n).parent=t,this.removeFromChildrenOf(r,n),this.addToChildrenOf(t,n)}children(n,t={}){Ej()&&this.assertOwnedNode(n);let r=t.onlyOpen??!0,i=[],o=s=>{for(let a of this.directChildren(s))(!r||zn(a))&&i.push(a),o(a)};return o(n),i}ancestors(n){Ej()&&this.assertOwnedNode(n);let t=[];for(let r=n.parent;r!==null&&this.nodeSet.has(r);r=r.parent)t.push(r);return t}get all(){return[...this.nodeSet]}directChildren(n){return this.childrenOf.get(n)??[]}addToChildrenOf(n,t){let r=this.childrenOf.get(n);r||(r=[],this.childrenOf.set(n,r)),r.push(t)}removeFromChildrenOf(n,t){let r=this.childrenOf.get(n);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&this.childrenOf.delete(n)}nearestContext(n){for(let t=n;t!==null&&this.nodeSet.has(t);t=t.parent)if(t.context!==null)return t.context;return null}descendantContexts(n){return this.children(n,{onlyOpen:!1}).map(t=>t.context).filter(t=>t!==null)}assertSubtreeDocuments(n,t){let r=this.nearestContext(t);this.assertContextDocument(n.context,r);for(let i of this.descendantContexts(n))this.assertContextDocument(i,r)}isRegistered(n){return this.nodeSet.has(n)}assertOwnedNode(n){(n.tree!==this||!this.nodeSet.has(n))&&k(`floating/foreign-node`,`This node does not belong to this tree (or was already unregistered).`,Z)}assertRegisterableParent(n){n!==null&&(n.tree!==this&&k(`floating/cross-tree-parent`,`A floating node parent must belong to the same tree.`,Z),this.nodeSet.has(n)||k(`floating/unregistered-parent`,`A floating node parent must be currently registered in the tree.`,Z))}assertContextDocument(n,t){n!==null&&t!==null&&n.ownerDocument!==t.ownerDocument&&k(`floating/cross-document-parent`,`A floating node must share the same ownerDocument as its ancestry/subtree.`,Z)}},xe=new M(`RdxFloatingTree`);xt=new M(`RdxFloatingRootContext`);qo=(()=>{class e{constructor(){this.externalTree=jc(null),this.parentOverride=jc({kind:`inherit`}),this.selfReg=I(K),this.parentReg=I(Tt,{optional:!0,skipSelf:!0}),this.ambientTree=I(xe,{optional:!0}),this.rootContext=I(xt,{optional:!0}),this.nodeId=jn(`rdx-floating-node-`),this.node=this.selfReg.node,this.status=this.selfReg.status,this.tree=this.selfReg.tree,rf(t=>{let r=this.parentOverride();if(r.kind===`inherit`&&this.parentReg?.status()===`pending`)return;let i=r.kind===`node`?r.parent:r.kind===`root`?null:this.parentReg?.node()??null,o=(r.kind===`node`?r.parent.tree:null)??this.externalTree()??this.parentReg?.tree()??this.ambientTree;if(!o){this.selfReg.markDetached();return}let s=o.register({id:this.nodeId,parent:i,context:this.rootContext});this.selfReg.register(o,s),t(()=>{o.unregister(s),this.selfReg.clear()})})}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[CS([Hn()])]})}}return e})(),Pe=class{constructor(){this.elements=new Set}add(n){this.elements.add(n)}delete(n){this.elements.delete(n)}hasElement(n){return n!==null&&this.elements.has(n)}hasMatchingElement(n){if(!n)return!1;for(let t of this.elements)if(t.contains(n))return!0;return!1}contains(n){return this.hasElement(n)?!0:this.hasMatchingElement(Wn(n)?n:null)}};Yn=`utils/floating-tree`,Le=class{constructor(n){this.triggers=new Pe,this.events=Ot(),this.floatingElementRef=null,this.referenceElementRef=null,this.floatingElementsRef=new Set,this.ownerDocument=n.ownerDocument,this.open=n.open??(()=>!1),n.floatingElement!==void 0&&this.setFloatingElement(n.floatingElement),n.referenceElement!==void 0&&this.setReferenceElement(n.referenceElement)}get floatingElement(){return this.floatingElementRef}get referenceElement(){return this.referenceElementRef}get floatingElements(){return this.floatingElementsRef}setFloatingElement(n){this.assertSameDocument(n),this.floatingElementRef&&this.floatingElementsRef.delete(this.floatingElementRef),this.floatingElementRef=n,n&&this.floatingElementsRef.add(n)}addFloatingElement(n){this.assertSameDocument(n),this.floatingElementsRef.add(n)}removeFloatingElement(n){this.floatingElementsRef.delete(n)}setReferenceElement(n){this.assertSameDocument(n),this.referenceElementRef=n}assertSameDocument(n){Ej()&&n!==null&&n.ownerDocument!==this.ownerDocument&&k(`floating/cross-document-element`,`A floating element must share its root context's ownerDocument.`,Yn)}};qn=`data-rdx-internal-backdrop`;Be=Kn(Xn());Jn={ownerForm:()=>null,sync:()=>{},requestSubmit:()=>{}};At=`data-rdx-scroll-locked`;ke=class{constructor(n){this.doc=n,this.lockCount=0,this.restore=null,this.release=()=>{this.lockCount!==0&&(this.lockCount-=1,this.lockCount===0&&this.restore&&(this.restore(),this.restore=null))}}acquire(){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.lock(),this.release}lock(){let n=this.doc.documentElement,t=this.doc.defaultView,r=t?t.getComputedStyle(n).overflowY:``;if(r===`hidden`||r===`clip`)this.restore=()=>{};else{let s=Be.os.ios||!Qn(this.doc)?tr(this.doc):nr(this.doc);this.restore=s}n.setAttribute(At,``);let i=this.restore;this.restore=()=>{i(),n.removeAttribute(At)}}},Ft=new WeakMap;ir=50});export{or as A,be as C,ko as D,jo as E,tn as F,ts as I,xo as L,rn as M,sr as N,le as O,st as P,xt as R,an as S,jn as T,Vn as _,Go as a,Yo as b,Ko as c,Qo as d,Ro as f,Uo as g,Tt as h,G as i,qo as j,ln as k,Lt as l,To as m,Be as n,Ho as o,Se as p,Bo as r,Jo as s,$o as t,Me as u,Wo as v,es as w,Zo as x,Xo as y,zo as z};
@@ -1 +1 @@
1
- import{A as I,Mn as lk,R as Kr,W as Lt,_r as wt,ln as f,lr as ve,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u$1,t as f$1}from"./chunk-D0yJpook.js";var u;var v=f(()=>{Kr();lk();f$1();Kr();u=class o{toast=I(u$1);items=wt([]);measurements=wt(new Map);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);containers=this.items.asReadonly();stats=this.measurements.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();runningIds=Lt(()=>this.items().filter(e=>e.state===`running`).map(e=>e.id),{equal:(e,n)=>e.length===n.length&&e.every((t,a)=>t===n[a])});constructor(){let e=I(ve);e.onDestroy(window.electron.events.subscribe(n=>{n.includes(`container`)&&this.refresh()})),e.onDestroy(window.electron.containers.onStats(n=>this.applyStats(n)))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.containers.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}watchStats(e){window.electron.containers.watchStats(e)}async run(e,n){this.running.update(t=>new Set(t).add(n));try{let t=await window.electron.containers.action(e,n);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let a=new Set(t);return a.delete(n),a})}}async runMany(e,n){await Promise.all(n.map(t=>this.run(e,t)))}applyStats(e){let n=new Map(this.measurements());for(let t of e)n.set(t.id,t);this.measurements.set(n)}static ɵfac=function(n){return new(n||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{v as n,u as t};
1
+ import{A as I,Mn as lk,R as Kr,W as Lt,_r as wt,ln as f,lr as ve,sn as eH,zt as X}from"./chunk-CQJfJJJO.js";import{n as u$1,t as f$1}from"./chunk-B417lX5i.js";var u;var v=f(()=>{Kr();lk();f$1();Kr();u=class o{toast=I(u$1);items=wt([]);measurements=wt(new Map);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);containers=this.items.asReadonly();stats=this.measurements.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();runningIds=Lt(()=>this.items().filter(e=>e.state===`running`).map(e=>e.id),{equal:(e,n)=>e.length===n.length&&e.every((t,a)=>t===n[a])});constructor(){let e=I(ve);e.onDestroy(window.electron.events.subscribe(n=>{n.includes(`container`)&&this.refresh()})),e.onDestroy(window.electron.containers.onStats(n=>this.applyStats(n)))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.containers.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}watchStats(e){window.electron.containers.watchStats(e)}async run(e,n){this.running.update(t=>new Set(t).add(n));try{let t=await window.electron.containers.action(e,n);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let a=new Set(t);return a.delete(n),a})}}async runMany(e,n){await Promise.all(n.map(t=>this.run(e,t)))}applyStats(e){let n=new Map(this.measurements());for(let t of e)n.set(t.id,t);this.measurements.set(n)}static ɵfac=function(n){return new(n||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{v as n,u as t};
@@ -1 +1 @@
1
- import{Dn as kE,En as jc,It as Wr,R as Kr,cn as ec,gt as SE,hr as wc,ln as f,qn as qr,r as Ac,un as fS}from"./chunk-BU6WXUxF.js";function y(e,n){e&1&&(qr(0,`p`,0),fS(1),Wr()),e&2&&(ec(),Ac(` `,n,` `))}var u;var x=f(()=>{Kr();Kr();u=class e{problem=jc(null);static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-page-messages`]],inputs:{problem:[1,`problem`]},decls:1,vars:1,consts:[[1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`]],template:function(t,b){if(t&1&&SE(0,y,2,1,`p`,0),t&2){let a;kE((a=b.problem())?0:-1,a)}},encapsulation:2})}});export{x as n,u as t};
1
+ import{Dn as kE,En as jc,It as Wr,R as Kr,cn as ec,gt as SE,hr as wc,ln as f,qn as qr,r as Ac,un as fS}from"./chunk-CQJfJJJO.js";function y(e,n){e&1&&(qr(0,`p`,0),fS(1),Wr()),e&2&&(ec(),Ac(` `,n,` `))}var u;var x=f(()=>{Kr();Kr();u=class e{problem=jc(null);static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-page-messages`]],inputs:{problem:[1,`problem`]},decls:1,vars:1,consts:[[1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`]],template:function(t,b){if(t&1&&SE(0,y,2,1,`p`,0),t&2){let a;kE((a=b.problem())?0:-1,a)}},encapsulation:2})}});export{x as n,u as t};
@@ -1,4 +1,4 @@
1
- import{A as I,Dn as kE,En as jc,Ft as Wm,Gn as pg,H as Li$1,I as Jm,J as My,Mn as lk,O as HE,Pt as W$1,Qn as rg,R as Kr$1,T as Gm,V as Ld,Vn as ok,W as Lt$1,X as Nc,Zn as rf,_n as gj,_r as wt$1,cn as ec,er as sk,gt as SE,hr as wc$1,in as dk,ln as f,lr as ve$1,o as BE,r as Ac,sn as eH,tt as Od,un as fS,ut as RE}from"./chunk-BU6WXUxF.js";import{i as u,t as a}from"./chunk-DoJ0-JEW.js";var lo;var co;var er;var tr=f(()=>{lo=2,co=1,er=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue(`height`)),r=Math.max(0,parseInt(i.getPropertyValue(`width`))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue(`padding-top`)),bottom:parseInt(n.getPropertyValue(`padding-bottom`)),right:parseInt(n.getPropertyValue(`padding-right`)),left:parseInt(n.getPropertyValue(`padding-left`))},h=o.top+o.bottom,l=o.right+o.left,a=s-h,d=r-l-t;return{cols:Math.max(lo,Math.floor(d/e.css.cell.width)),rows:Math.max(co,Math.floor(a/e.css.cell.height))}}}});function fo(e){return e.replace(/\r?\n/g,`\r`)}function po(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function go(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function vo(e,t,i,s){if(e.stopPropagation(),e.clipboardData)an(e.clipboardData.getData(`text/plain`),t,i,s)}function an(e,t,i,s){e=fo(e),e=po(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=``}function hn(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex=`1000`,t.focus()}function rr(e,t,i,s,r){hn(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function qe(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function fi(e,t=0,i=e.length){let s=``;for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}function wo(e){return e[Yi]||[]}function se(e){if(Ri.has(e))return Ri.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error(`@IServiceName-decorator can only be used to decorate a parameter`);bo(t,i,r)};return t._id=e,Ri.set(e,t),t}function bo(e,t,i){t[nr]===t?t[Yi].push({id:e,index:i}):(t[Yi]=[{id:e,index:i}],t[nr]=t)}function ko(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{A as I,Dn as kE,En as jc,Ft as Wm,Gn as pg,H as Li$1,I as Jm,J as My,Mn as lk,O as HE,Pt as W$1,Qn as rg,R as Kr$1,T as Gm,V as Ld,Vn as ok,W as Lt$1,X as Nc,Zn as rf,_n as gj,_r as wt$1,cn as ec,er as sk,gt as SE,hr as wc$1,in as dk,ln as f,lr as ve$1,o as BE,r as Ac,sn as eH,tt as Od,un as fS,ut as RE}from"./chunk-CQJfJJJO.js";import{i as u,t as a}from"./chunk-BKqokLUJ.js";var lo;var co;var er;var tr=f(()=>{lo=2,co=1,er=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue(`height`)),r=Math.max(0,parseInt(i.getPropertyValue(`width`))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue(`padding-top`)),bottom:parseInt(n.getPropertyValue(`padding-bottom`)),right:parseInt(n.getPropertyValue(`padding-right`)),left:parseInt(n.getPropertyValue(`padding-left`))},h=o.top+o.bottom,l=o.right+o.left,a=s-h,d=r-l-t;return{cols:Math.max(lo,Math.floor(d/e.css.cell.width)),rows:Math.max(co,Math.floor(a/e.css.cell.height))}}}});function fo(e){return e.replace(/\r?\n/g,`\r`)}function po(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function go(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function vo(e,t,i,s){if(e.stopPropagation(),e.clipboardData)an(e.clipboardData.getData(`text/plain`),t,i,s)}function an(e,t,i,s){e=fo(e),e=po(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=``}function hn(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex=`1000`,t.focus()}function rr(e,t,i,s,r){hn(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function qe(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function fi(e,t=0,i=e.length){let s=``;for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}function wo(e){return e[Yi]||[]}function se(e){if(Ri.has(e))return Ri.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error(`@IServiceName-decorator can only be used to decorate a parameter`);bo(t,i,r)};return t._id=e,Ri.set(e,t),t}function bo(e,t,i){t[nr]===t?t[Yi].push({id:e,index:i}):(t[Yi]=[{id:e,index:i}],t[nr]=t)}function ko(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}function jt(e){Bo(e)||Do.onUnexpectedError(e)}function Bo(e){return e instanceof Ro?!0:e instanceof Error&&e.name===ji&&e.message===ji}function Mo(e){return e?new Error(`Illegal argument: ${e}`):new Error(`Illegal argument`)}function ue(e,t=0){return e[e.length-(1+t)]}function Lo(e,t){return(i,s)=>t(e(i),e(s))}function To(e,t){let i=Object.create(null);for(let s of e){let r=t(s),n=i[r];n||(n=i[r]=[]),n.push(s)}return i}function Oo(e,t){let i=this,s=!1,r;return function(){if(s)return r;if(s=!0,t)try{r=e.apply(i,arguments)}finally{t()}else r=e.apply(i,arguments);return r}}function Ho(e){tt=e}function gi(e){return tt?.trackDisposable(e),e}function vi(e){tt?.markAsDisposed(e)}function Mt(e,t){tt?.setParent(e,t)}function Wo(e,t){if(tt)for(let i of e)tt.setParent(i,t)}function cr(e){return tt?.markAsSingleton(e),e}function it(e){if(wn.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(s){t.push(s)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function zo(...e){let t=W(()=>it(e));return Wo(e,t),t}function W(e){let t=gi({dispose:Oo(()=>{vi(t),e()})});return t}function ta(e,t,i){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,i)}function ia(e){return Ls.INSTANCE.getZoomFactor(e)}function sa(){return Qt}function wa(e){if(e.charCode){let i=String.fromCharCode(e.charCode).toUpperCase();return Ln.fromString(i)}let t=e.keyCode;if(t===3)return 7;if(ns)switch(t){case 59:return 85;case 60:if(da)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Re)return 57;break}else if(Zt&&(Re&&t===93||!Re&&t===92))return 57;return va[t]||0}function xa(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if(t.origin!==`null`&&i.origin!==`null`&&t.origin!==i.origin)return null}catch{return null}return e.parent}function Pa(e){return 55296<=e&&e<=56319}function wr(e){return 56320<=e&&e<=57343}function Ta(e,t){return(e-55296<<10)+(t-56320)+65536}function Aa(e){return Os(e,0)}function Os(e,t){switch(typeof e){case`object`:return e===null?Ae(349,t):Array.isArray(e)?Ia(e,t):Na(e,t);case`string`:return An(e,t);case`boolean`:return Oa(e,t);case`number`:return Ae(e,t);case`undefined`:return Ae(937,t);default:return Ae(617,t)}}function Ae(e,t){return(t<<5)-t+e|0}function Oa(e,t){return Ae(e?433:863,t)}function An(e,t){t=Ae(149417,t);for(let i=0,s=e.length;i<s;i++)t=Ae(e.charCodeAt(i),t);return t}function Ia(e,t){return t=Ae(104579,t),e.reduce((i,s)=>Os(s,i),t)}function Na(e,t){return t=Ae(181387,t),Object.keys(e).sort().reduce((i,s)=>(i=An(s,i),Os(e[s],i)),t)}function Ai(e,t,i=32){let s=i-t,r=~((1<<s)-1);return(e<<t|(r&e)>>>s)>>>0}function br(e,t=0,i=e.byteLength,s=0){for(let r=0;r<i;r++)e[t+r]=s}function Ha(e,t,i=`0`){for(;e.length<t;)e=i+e;return e}function pt(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(i=>i.toString(16).padStart(2,`0`)).join(``):Ha((e>>>0).toString(16),t/4)}function B(e,t,i,s){return new Fa(e,t,i,s)}function $a(e,t){return function(i){return t(new yt(e,i))}}function Ka(e){return function(t){return e(new os(t))}}function Va(e){let t=e.getBoundingClientRect(),i=ye(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function In(e,t,i,...s){let r=Ya.exec(t);if(!r)throw new Error(`Bad use of emmet`);let n=r[1]||`div`,o;return e!==`http://www.w3.org/1999/xhtml`?o=document.createElementNS(e,n):o=document.createElement(n),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g,` `).trim()),i&&Object.entries(i).forEach(([h,l])=>{typeof l>`u`||(/^on\w+$/.test(h)?o[h]=l:h===`selected`?l&&o.setAttribute(h,`true`):o.setAttribute(h,l))}),o.append(...s),o}function Xa(e,t,...i){return In(`http://www.w3.org/1999/xhtml`,e,t,...i)}function _e(e){return typeof e==`number`?`${e}px`:e}function Rt(e){return new ja(e)}function Ga(e,t,i){let s=null,r=null;if(typeof i.value==`function`?(s=`value`,r=i.value,r.length!==0&&console.warn(`Memoize should only be used in functions with zero parameters`)):typeof i.get==`function`&&(s=`get`,r=i.get),!r)throw new Error(`not supported`);let n=`$memoize$${t}`;i[s]=function(...o){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,o)}),this[n]}}function Ii(e,t){let i=t-e;return function(s){return e+i*sh(s)}}function th(e,t,i){return function(s){return s<i?e(s/i):t((s-i)/(1-i))}}function ih(e){return Math.pow(e,3)}function sh(e){return 1-ih(1-e)}function uh(e){let t={lazyRender:typeof e.lazyRender<`u`?e.lazyRender:!1,className:typeof e.className<`u`?e.className:``,useShadows:typeof e.useShadows<`u`?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<`u`?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<`u`?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<`u`?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<`u`?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<`u`?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<`u`?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<`u`?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<`u`?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<`u`?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<`u`?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<`u`?e.listenOnDomNode:null,horizontal:typeof e.horizontal<`u`?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<`u`?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<`u`?e.horizontalHasArrows:!1,vertical:typeof e.vertical<`u`?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<`u`?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<`u`?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<`u`?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<`u`?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<`u`?e.verticalSliderSize:t.verticalScrollbarSize,Re&&(t.className+=` mac`),t}function Je(e){let t=e.toString(16);return t.length<2?`0`+t:t}function Pe(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function gh(e){return 57508<=e&&e<=57558}function vh(e){return 9472<=e&&e<=9631}function mh(e){return gh(e)||vh(e)}function Sh(){return{css:{canvas:qt(),cell:qt()},device:{canvas:qt(),cell:qt(),char:{width:0,height:0,left:0,top:0}}}}function qt(){return{width:0,height:0}}function Lr(e,t,i){for(;e.length<i;)e=t+e;return e}function yh(){return new bh}function Ns(e,t,i){let s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue(`padding-left`)),o=parseInt(r.getPropertyValue(`padding-top`));return[t.clientX-s.left-n,t.clientY-s.top-o]}function Rh(e,t,i,s,r,n,o,h,l){if(!n)return;let a=Ns(e,t,i);if(a)return a[0]=Math.ceil((a[0]+(l?o/2:0))/o),a[1]=Math.ceil(a[1]/h),a[0]=Math.min(Math.max(a[0],1),s+(l?1:0)),a[1]=Math.min(Math.max(a[1],1),r),a}function Ph(){if(!Un)return 0;let e=It.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}function Wh(e,t,i,s){let r=i.buffer.x,n=i.buffer.y;if(!i.buffer.hasScrollback)return $h(r,n,e,t,i,s)+Si(n,t,i,s)+Kh(r,n,e,t,i,s);let o;if(n===t)return o=r>e?`D`:`C`,Pt(Math.abs(r-e),Lt(o,s));o=n>t?`D`:`C`;let h=Math.abs(n-t);return Pt(Fh(n>t?e:r,i)+(h-1)*i.cols+1+zh(n>t?r:e,i),Lt(o,s))}function zh(e,t){return e-1}function Fh(e,t){return t.cols-e}function $h(e,t,i,s,r,n){return Si(t,s,r,n).length===0?``:Pt(jn(e,t,e,t-st(t,r),!1,r).length,Lt(`D`,n))}function Si(e,t,i,s){let r=e-st(e,i),n=t-st(t,i);return Pt(Math.abs(r-n)-Uh(e,t,i),Lt(Xn(e,t),s))}function Kh(e,t,i,s,r,n){let o;Si(t,s,r,n).length>0?o=s-st(s,r):o=t;let h=s,l=qh(e,t,i,s,r,n);return Pt(jn(e,o,i,h,l===`C`,r).length,Lt(l,n))}function Uh(e,t,i){let s=0,r=e-st(e,i),n=t-st(t,i);for(let o=0;o<Math.abs(r-n);o++){let h=Xn(e,t)===`A`?-1:1;i.buffer.lines.get(r+h*o)?.isWrapped&&s++}return s}function st(e,t){let i=0,s=t.buffer.lines.get(e),r=s?.isWrapped;for(;r&&e>=0&&e<t.rows;)i++,s=t.buffer.lines.get(--e),r=s?.isWrapped;return i}function qh(e,t,i,s,r,n){let o;return Si(i,s,r,n).length>0?o=s-st(s,r):o=t,e<i&&o<=s||e>=i&&o<s?`C`:`D`}function Xn(e,t){return e>t?`A`:`B`}function jn(e,t,i,s,r,n){let o=e,h=t,l=``;for(;(o!==i||h!==s)&&h>=0&&h<n.buffer.lines.length;)o+=r?1:-1,r&&o>n.cols-1?(l+=n.buffer.translateBufferLineToString(h,!1,e,o),o=0,e=0,h++):!r&&o<0&&(l+=n.buffer.translateBufferLineToString(h,!1,0,e+1),o=n.cols-1,e=o,h--);return l+n.buffer.translateBufferLineToString(h,!1,e,o)}function Lt(e,t){let i=t?`O`:`[`;return g.ESC+i+e}function Pt(e,t){e=Math.floor(e);let i=``;for(let s=0;s<e;s++)i+=t;return i}function Tr(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}function N(e,t){if(e!==void 0)try{return K.toColor(e)}catch{}return t}function rl(e,t,i,s,r,n){let o=[];for(let h=0;h<e.length-1;h++){let l=h,a=e.get(++l);if(!a.isWrapped)continue;let d=[e.get(h)];for(;l<e.length&&a.isWrapped;)d.push(a),a=e.get(++l);if(!n&&s>=h&&s<l){h+=d.length-1;continue}let c=0,u=Tt(d,c,t),f=1,_=0;for(;f<d.length;){let C=Tt(d,f,t),D=C-_,I=i-u,L=Math.min(D,I);d[c].copyCellsFrom(d[f],_,u,L,!1),u+=L,u===i&&(c++,u=0),_+=L,_===C&&(f++,_=0),u===0&&c!==0&&d[c-1].getWidth(i-1)===2&&(d[c].copyCellsFrom(d[c-1],i-1,u++,1,!1),d[c-1].setCell(i-1,r))}d[c].replaceCells(u,i,r);let p=0;for(let C=d.length-1;C>0&&(C>c||d[C].getTrimmedLength()===0);C--)p++;p>0&&(o.push(h+d.length-p),o.push(p)),h+=d.length-1}return o}function nl(e,t){let i=[],s=0,r=t[s],n=0;for(let o=0;o<e.length;o++)if(r===o){let h=t[++s];e.onDeleteEmitter.fire({index:o-n,amount:h}),o+=h-1,n+=h,r=t[++s]}else i.push(o);return{layout:i,countRemoved:n}}function ol(e,t){let i=[];for(let s=0;s<t.length;s++)i.push(e.get(t[s]));for(let s=0;s<i.length;s++)e.set(s,i[s]);e.length=t.length}function al(e,t,i){let s=[],r=e.map((l,a)=>Tt(e,a,t)).reduce((l,a)=>l+a),n=0,o=0,h=0;for(;h<r;){if(r-h<i){s.push(r-h);break}n+=i;let l=Tt(e,o,t);n>l&&(n-=l,o++);let a=e[o].getWidth(n-1)===2;a&&n--;let d=a?i-1:i;s.push(d),h+=d}return s}function Tt(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();let s=!e[t].hasContent(i-1)&&e[t].getWidth(i-1)===1,r=e[t+1].getWidth(0)===2;return s&&r?i-1:i}function ul(e){return e===`block`||e===`underline`||e===`bar`}function Et(e,t=5){if(typeof e!=`object`)return e;let i=Array.isArray(e)?[]:{};for(let s in e)i[s]=t<=1?e[s]:e[s]&&Et(e[s],t-1);return i}function zi(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(i|=64,i|=e.action):(i|=e.button&3,e.button&4&&(i|=64),e.button&8&&(i|=128),e.action===32?i|=32:e.action===0&&!t&&(i|=3)),i}function pl(e,t){let i=0,s=t.length-1,r;if(e<t[0][0]||e>t[s][1])return!1;for(;s>=i;)if(r=i+s>>1,e>t[r][1])i=r+1;else if(e<t[r][0])s=r-1;else return!0;return!1}function qr(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&t&&(i.isWrapped=t[3]!==0&&t[3]!==32)}function Yr(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf(`rgb:`)===0){t=t.slice(4);let i=kl.exec(t);if(i){let s=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/s*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/s*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/s*255)]}}else if(t.indexOf(`#`)===0&&(t=t.slice(1),xl.exec(t)&&[3,6,9,12].includes(t.length))){let i=t.length/3,s=[0,0,0];for(let r=0;r<3;++r){let n=parseInt(t.slice(i*r,i*r+i),16);s[r]=i===1?n<<4:i===2?n:i===3?n>>4:n>>8}return s}}function Ki(e,t){let i=e.toString(16),s=i.length<2?`0`+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}function El(e,t=16){let[i,s,r]=e;return`rgb:${Ki(i,t)}/${Ki(s,t)}/${Ki(r,t)}`}function jr(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}function Zr(e){return 0<=e&&e<256}function Al(e,t,i,s){let r={type:0,cancel:!1,key:void 0},n=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key===`UIKeyInputUpArrow`?t?r.key=g.ESC+`OA`:r.key=g.ESC+`[A`:e.key===`UIKeyInputLeftArrow`?t?r.key=g.ESC+`OD`:r.key=g.ESC+`[D`:e.key===`UIKeyInputRightArrow`?t?r.key=g.ESC+`OC`:r.key=g.ESC+`[C`:e.key===`UIKeyInputDownArrow`&&(t?r.key=g.ESC+`OB`:r.key=g.ESC+`[B`);break;case 8:r.key=e.ctrlKey?`\b`:g.DEL,e.altKey&&(r.key=g.ESC+r.key);break;case 9:if(e.shiftKey){r.key=g.ESC+`[Z`;break}r.key=g.HT,r.cancel=!0;break;case 13:r.key=e.altKey?g.ESC+g.CR:g.CR,r.cancel=!0;break;case 27:r.key=g.ESC,e.altKey&&(r.key=g.ESC+g.ESC),r.cancel=!0;break;case 37:if(e.metaKey)break;n?r.key=g.ESC+`[1;`+(n+1)+`D`:t?r.key=g.ESC+`OD`:r.key=g.ESC+`[D`;break;case 39:if(e.metaKey)break;n?r.key=g.ESC+`[1;`+(n+1)+`C`:t?r.key=g.ESC+`OC`:r.key=g.ESC+`[C`;break;case 38:if(e.metaKey)break;n?r.key=g.ESC+`[1;`+(n+1)+`A`:t?r.key=g.ESC+`OA`:r.key=g.ESC+`[A`;break;case 40:if(e.metaKey)break;n?r.key=g.ESC+`[1;`+(n+1)+`B`:t?r.key=g.ESC+`OB`:r.key=g.ESC+`[B`;break;case 45:!e.shiftKey&&!e.ctrlKey&&(r.key=g.ESC+`[2~`);break;case 46:n?r.key=g.ESC+`[3;`+(n+1)+`~`:r.key=g.ESC+`[3~`;break;case 36:n?r.key=g.ESC+`[1;`+(n+1)+`H`:t?r.key=g.ESC+`OH`:r.key=g.ESC+`[H`;break;case 35:n?r.key=g.ESC+`[1;`+(n+1)+`F`:t?r.key=g.ESC+`OF`:r.key=g.ESC+`[F`;break;case 33:e.shiftKey?r.type=2:e.ctrlKey?r.key=g.ESC+`[5;`+(n+1)+`~`:r.key=g.ESC+`[5~`;break;case 34:e.shiftKey?r.type=3:e.ctrlKey?r.key=g.ESC+`[6;`+(n+1)+`~`:r.key=g.ESC+`[6~`;break;case 112:n?r.key=g.ESC+`[1;`+(n+1)+`P`:r.key=g.ESC+`OP`;break;case 113:n?r.key=g.ESC+`[1;`+(n+1)+`Q`:r.key=g.ESC+`OQ`;break;case 114:n?r.key=g.ESC+`[1;`+(n+1)+`R`:r.key=g.ESC+`OR`;break;case 115:n?r.key=g.ESC+`[1;`+(n+1)+`S`:r.key=g.ESC+`OS`;break;case 116:n?r.key=g.ESC+`[15;`+(n+1)+`~`:r.key=g.ESC+`[15~`;break;case 117:n?r.key=g.ESC+`[17;`+(n+1)+`~`:r.key=g.ESC+`[17~`;break;case 118:n?r.key=g.ESC+`[18;`+(n+1)+`~`:r.key=g.ESC+`[18~`;break;case 119:n?r.key=g.ESC+`[19;`+(n+1)+`~`:r.key=g.ESC+`[19~`;break;case 120:n?r.key=g.ESC+`[20;`+(n+1)+`~`:r.key=g.ESC+`[20~`;break;case 121:n?r.key=g.ESC+`[21;`+(n+1)+`~`:r.key=g.ESC+`[21~`;break;case 122:n?r.key=g.ESC+`[23;`+(n+1)+`~`:r.key=g.ESC+`[23~`;break;case 123:n?r.key=g.ESC+`[24;`+(n+1)+`~`:r.key=g.ESC+`[24~`;break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?r.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?r.key=g.NUL:e.keyCode>=51&&e.keyCode<=55?r.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?r.key=g.DEL:e.keyCode===219?r.key=g.ESC:e.keyCode===220?r.key=g.FS:e.keyCode===221&&(r.key=g.GS);else if((!i||s)&&e.altKey&&!e.metaKey){let o=Tl[e.keyCode]?.[e.shiftKey?1:0];if(o)r.key=g.ESC+o;else if(e.keyCode>=65&&e.keyCode<=90){let h=e.ctrlKey?e.keyCode-64:e.keyCode+32,l=String.fromCharCode(h);e.shiftKey&&(l=l.toUpperCase()),r.key=g.ESC+l}else if(e.keyCode===32)r.key=g.ESC+(e.ctrlKey?g.NUL:` `);else if(e.key===`Dead`&&e.code.startsWith(`Key`)){let h=e.code.slice(3,4);e.shiftKey||(h=h.toLowerCase()),r.key=g.ESC+h,r.cancel=!0}}else i&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(r.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?r.key=e.key:e.key&&e.ctrlKey&&(e.key===`_`&&(r.key=g.US),e.key===`@`&&(r.key=g.NUL));break}return r}function zl(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}function $l(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var on;var _o;var uo;var q;var y;var ir;var qi;var sr;var Vi;var mo;var So;var ln;var Ve;var At;var ni;var we;var nr;var Yi;var Ri;var ce;var un;var rt;var yo;var Rs;var fn;var de;var pn;var Co;var Ot;var Xi;var pi;var Ie;var Ms;var Ne;var xo;var gn;var lt;var vn;var Eo;var Do;var ji;var Ro;var or;var Ji;var Sn;var Po;var ar;var Ao;var wn;var Io;var tt;var No;var Fo;var Ye;var R;var ht;var ge;var Qi;var $;var dr;var $o;var Ko;var Uo;var _r;var qo;var oe;var ts;var Vo;var ur;var Yo;var Xo;var ss;var jo;var Go;var Jo;var Gt;var Zo;var Qo;var Jt;var v;var ea;var rs;var Ls;var ct;var ns;var Zt;var Ps;var En;var Qt;var at;var oi;var ai;var Bt;var Dn;var Bn;var ei;var Te;var Oe;var pe;var Rn;var ca;var Mn;var Re;var da;var Li;var _a;var Me;var Fe;var ua;var fa;var ga;var $e;var Ts;var Pi;var pr;var gr;var va;var Ln;var ma;var Sa;var ba;var ya;var Ca;var ka;var os;var vr;var Ea;var yt;var mr;var Tn;var Da;var Ba;var As;var Ra;var La;var Sr;var Wa;var fc;var ye;var pc;var gc;var vc;var yr;var mc;var Sc;var za;var wc;var bc;var Fa;var Cr;var hi;var qa;var Oi;var kr;var Q;var Ya;var ja;var Nn;var Be;var Ct;var Ja;var Is;var xr;var Za;var Qa;var eh;var Er;var Dr;var rh;var nh;var Hn;var Wn;var oh;var ah;var hh;var Br;var Rr;var lh;var cs;var ch;var dh;var _h;var ds;var _s;var fh;var Ee;var Ke;var gt;var li;var g;var ii;var zn;var us;var ee;var te;var ie;var U;var Mr;var X;var H;var K;var le;var si;var ph;var ci;var fs;var wh;var bh;var Ni;var ve;var Vt;var Pr;var vt;var Yt;var Ch;var ps;var gs;var Fn;var kh;var xh;var Eh;var Dh;var Bh;var vs;var Mh;var $n;var mi;var It;var Nt;var Kn;var Lh;var Un;var di;var Th;var Ah;var qn;var Hs;var Vn;var Yn;var Oh;var Ih;var _i;var Nh;var ms;var Hh;var Vh;var Hi;var Yh;var Xh;var jh;var Gh;var Jh;var Ss;var Ar;var Or;var j;var Ze;var kt;var Ir;var Nr;var mt;var Zh;var ws;var Qh;var el;var tl;var il;var bs;var Hr;var M;var Y;var Xt;var Wi;var xt;var hl;var ll;var J;var Qe;var Wr;var zr;var cl;var Zn;var Qn;var ys;var ot;var dl;var _l;var Fr;var $r;var Cs;var Kr;var Fi;var Ur;var ks;var $i;var fl;var G;var gl;var et;var vl;var St;var ml;var eo;var wt;var Sl;var fe;var bt;var wl;var Dt;var Vr;var bl;var Se;var yl;var Cl;var kl;var xl;var Dl;var Ue;var Xr;var Gr;var Jr;var Bl;var Es;var Rl;var Qr;var Ml;var Ll;var Ds;var en;var Pl;var Tl;var V;var Ol;var Ui;var tn;var Il;var Nl;var Hl;var Wl;var sn;var rn;var ui;var Bs;var Fl;var Kl;var Ul;var nn;var ql;var Vl;var Yl;var Xl;var De;var to;var io=f(()=>{on=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,uo=(e,t)=>{for(var i in t)on(e,i,{get:t[i],enumerable:!0})},q=(e,t,i,s)=>{for(var r=s>1?void 0:s?_o(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&on(t,i,r),r},y=(e,t)=>(i,s)=>t(i,s,e),ir=`Terminal input`,qi={get:()=>ir,set:e=>ir=e},sr=`Too much output to announce, navigate to rows manually to read`,Vi={get:()=>sr,set:e=>sr=e};mo=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let n=e.charCodeAt(r++);56320<=n&&n<=57343?t[s++]=(this._interim-55296)*1024+n-56320+65536:(t[s++]=this._interim,t[s++]=n),this._interim=0}for(let n=r;n<i;++n){let o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return this._interim=o,s;let h=e.charCodeAt(n);56320<=h&&h<=57343?t[s++]=(o-55296)*1024+h-56320+65536:(t[s++]=o,t[s++]=h);continue}o!==65279&&(t[s++]=o)}return s}},So=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r,n,o,h,l=0,a=0;if(this.interim[0]){let u=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let _=0,p;for(;(p=this.interim[++_]&63)&&_<4;)f<<=6,f|=p;let C=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,D=C-_;for(;a<D;){if(a>=i)return 0;if(p=e[a++],(p&192)!==128){a--,u=!0;break}else this.interim[_++]=p,f<<=6,f|=p&63}u||(C===2?f<128?a--:t[s++]=f:C===3?f<2048||f>=55296&&f<=57343||f===65279||(t[s++]=f):f<65536||f>1114111||(t[s++]=f)),this.interim.fill(0)}let d=i-4,c=a;for(;c<i;){for(;c<d&&!((r=e[c])&128)&&!((n=e[c+1])&128)&&!((o=e[c+2])&128)&&!((h=e[c+3])&128);)t[s++]=r,t[s++]=n,t[s++]=o,t[s++]=h,c+=4;if(r=e[c++],r<128)t[s++]=r;else if((r&224)===192){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(l=(r&31)<<6|n&63,l<128){c--;continue}t[s++]=l}else if((r&240)===224){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(l=(r&15)<<12|(n&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[s++]=l}else if((r&248)===240){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,s;if(h=e[c++],(h&192)!==128){c--;continue}if(l=(r&7)<<18|(n&63)<<12|(o&63)<<6|h&63,l<65536||l>1114111)continue;t[s++]=l}}return s}},ln=``,Ve=` `,At=class cn{constructor(){this.fg=0,this.bg=0,this.extended=new ni}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new cn;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},ni=class dn{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new dn(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},we=class _n extends At{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new ni,this.combinedData=``}static fromCharData(t){let i=new _n;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?qe(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let s=t[1].charCodeAt(0);if(55296<=s&&s<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(s-55296)*1024+r-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},nr=`di$target`,Yi=`di$dependencies`,Ri=new Map;ce=se(`BufferService`),un=se(`CoreMouseService`),rt=se(`CoreService`),yo=se(`CharsetService`),Rs=se(`InstantiationService`),fn=se(`LogService`),de=se(`OptionsService`),pn=se(`OscLinkService`),Co=se(`UnicodeService`),Ot=se(`DecorationService`),Xi=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let s=[],r=this._optionsService.rawOptions.linkHandler,n=new we,o=i.getTrimmedLength(),h=-1,l=-1,a=!1;for(let d=0;d<o;d++)if(!(l===-1&&!i.hasContent(d))){if(i.loadCell(d,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=d,h=n.extended.urlId;continue}else a=n.extended.urlId!==h;else l!==-1&&(a=!0);if(a||l!==-1&&d===o-1){let c=this._oscLinkService.getLinkData(h)?.uri;if(c){let u={start:{x:l+1,y:e},end:{x:d+(!a&&d===o-1?1:0),y:e}},f=!1;if(!r?.allowNonHttpProtocols)try{let _=new URL(c);[`http:`,`https:`].includes(_.protocol)||(f=!0)}catch{f=!0}f||s.push({text:c,range:u,activate:(_,p)=>r?r.activate(_,p,u):ko(_,p),hover:(_,p)=>r?.hover?.(_,p,u),leave:(_,p)=>r?.leave?.(_,p,u)})}a=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=d,h=n.extended.urlId):(l=-1,h=-1)}}t(s)}};Xi=q([y(0,ce),y(1,de),y(2,pn)],Xi);pi=se(`CharSizeService`),Ie=se(`CoreBrowserService`),Ms=se(`MouseService`),Ne=se(`RenderService`),xo=se(`SelectionService`),gn=se(`CharacterJoinerService`),lt=se(`ThemeService`),vn=se(`LinkProviderService`),Eo=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?or.isErrorNoTelemetry(e)?new or(e.message+`
4
4
 
@@ -1 +1 @@
1
- import{En as jc,In as nS,Jt as ag,R as Kr,Tr as zr,W as Lt,hr as wc,ln as f}from"./chunk-BU6WXUxF.js";var a;var c;var u=f(()=>{Kr();Kr();a={running:`bg-ok shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-ok)_28%,transparent)]`,paused:`bg-halt`,restarting:`bg-halt`,partial:`bg-halt`,dead:`bg-danger`,created:`border-2 border-ink-400`,removing:`border-2 border-ink-400`,exited:`bg-stopped`,stopped:`bg-stopped`},c=class s{state=jc.required();size=jc(`sm`);look=Lt(()=>this.state()in a?a[this.state()]:a.created);static ɵfac=function(e){return new(e||s)};static ɵcmp=wc({type:s,selectors:[[`app-state-dot`]],hostAttrs:[1,`block`,`shrink-0`,`rounded-full`],hostVars:7,hostBindings:function(e,t){e&2&&(zr(`data-state`,t.state()),nS(t.look()),ag(`size-2`,t.size()===`sm`)(`size-3`,t.size()===`md`))},inputs:{state:[1,`state`],size:[1,`size`]},decls:0,vars:0,template:function(e,t){},encapsulation:2})}});export{u as n,c as t};
1
+ import{En as jc,In as nS,Jt as ag,R as Kr,Tr as zr,W as Lt,hr as wc,ln as f}from"./chunk-CQJfJJJO.js";var a;var c;var u=f(()=>{Kr();Kr();a={running:`bg-ok shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-ok)_28%,transparent)]`,paused:`bg-halt`,restarting:`bg-halt`,partial:`bg-halt`,dead:`bg-danger`,created:`border-2 border-ink-400`,removing:`border-2 border-ink-400`,exited:`bg-stopped`,stopped:`bg-stopped`},c=class s{state=jc.required();size=jc(`sm`);look=Lt(()=>this.state()in a?a[this.state()]:a.created);static ɵfac=function(e){return new(e||s)};static ɵcmp=wc({type:s,selectors:[[`app-state-dot`]],hostAttrs:[1,`block`,`shrink-0`,`rounded-full`],hostVars:7,hostBindings:function(e,t){e&2&&(zr(`data-state`,t.state()),nS(t.look()),ag(`size-2`,t.size()===`sm`)(`size-3`,t.size()===`md`))},inputs:{state:[1,`state`],size:[1,`size`]},decls:0,vars:0,template:function(e,t){},encapsulation:2})}});export{u as n,c as t};
@@ -1 +1 @@
1
- import{ln as f}from"./chunk-BU6WXUxF.js";function i(e,r,t){e.navigate([],{relativeTo:r,queryParams:{[t]:null},queryParamsHandling:`merge`,replaceUrl:!0})}var o=f(()=>{});export{o as n,i as t};
1
+ import{ln as f}from"./chunk-CQJfJJJO.js";function i(e,r,t){e.navigate([],{relativeTo:r,queryParams:{[t]:null},queryParamsHandling:`merge`,replaceUrl:!0})}var o=f(()=>{});export{o as n,i as t};
@@ -1 +1 @@
1
- import{G as M,R as Kr,Zn as rf,ln as f$1,z as LD}from"./chunk-BU6WXUxF.js";import{A as or,N as sr}from"./chunk-C0CE-ryM.js";function L(r){return{provide:v,useFactory:r}}var p;var N;var f;var v;var g=f$1(()=>{Kr();sr();p={mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}},N=50,f=class{constructor(e){this.host=e,this.nodes=[],this.prevAnimationNames=new WeakMap,this.pendingExits=new Set,this.removeListeners=null,this.closeTimestamp=0,this.exitVersion=0,this.waapiPending=!1,this.safetyTimer=null,this.prevPresent=e.present(),this.state=this.prevPresent?`mounted`:`unmounted`,this.prevPresent&&this.mount(),rf(()=>{let i=e.present();i!==this.prevPresent&&(this.prevPresent=i,i?this.send(`MOUNT`):e.isBrowser?(this.closeTimestamp=this.now(),LD(()=>this.evaluateExit(),{injector:e.injector})):this.send(`UNMOUNT`))},{injector:e.injector,debugName:`PresenceMachine.present`})}dispose(){this.unmount()}evaluateExit(){if(this.state!==`mounted`||this.host.present())return;this.pendingExits.clear();for(let i of this.nodes){let t=getComputedStyle(i),n=t.animationName||`none`,s=this.prevAnimationNames.get(i)??`none`;n!==`none`&&t.display!==`none`&&s!==n&&this.pendingExits.add(i)}let e=this.collectExitAnimations();if(this.pendingExits.size===0&&e.length===0){this.send(`UNMOUNT`);return}if(this.send(`ANIMATION_OUT`),e.length>0){this.waapiPending=!0;let i=this.exitVersion;Promise.all(e.map(t=>t.finished.catch(()=>{}))).then(()=>this.finishExit(i)),this.armSafetyNet(i,e)}}collectExitAnimations(){if(!this.host.isBrowser)return[];let e=[];for(let i of this.nodes)if(typeof i.getAnimations==`function`)for(let t of i.getAnimations({subtree:!0})){let n=t.startTime===null||Number(t.startTime)>=this.closeTimestamp;(t.playState===`running`||t.pending)&&n&&e.push(t)}return e}armSafetyNet(e,i){let t=new Set(this.nodes);for(let s of i){let o=s.effect?.target;o instanceof HTMLElement&&t.add(o)}let n=0;for(let s of t)n=Math.max(n,or(s));this.clearSafetyNet(),this.safetyTimer=setTimeout(()=>this.finishExit(e),n+N)}finishExit(e){e===this.exitVersion&&(this.waapiPending=!1,this.clearSafetyNet(),this.send(`ANIMATION_END`))}clearSafetyNet(){this.safetyTimer!==null&&(clearTimeout(this.safetyTimer),this.safetyTimer=null)}send(e){let i=p[this.state][e];if(!(i===void 0||i===this.state))if(this.state=i,i===`mounted`)if(this.exitVersion++,this.waapiPending=!1,this.clearSafetyNet(),this.nodes.length>0){this.pendingExits.clear();for(let t of this.nodes)this.prevAnimationNames.set(t,this.getAnimationName(t))}else this.mount();else i===`unmounted`&&(this.exitVersion++,this.unmount())}mount(){if(this.nodes=this.host.mountView(),this.host.isBrowser&&this.nodes.length>0){for(let e of this.nodes)this.prevAnimationNames.set(e,this.getAnimationName(e));this.addAnimationListeners()}}unmount(){this.removeListeners?.(),this.removeListeners=null,this.clearSafetyNet(),this.waapiPending=!1,this.host.destroyView(),this.nodes=[],this.pendingExits.clear()}addAnimationListeners(){let e=t=>{let n=t.target;this.nodes.includes(n)&&this.prevAnimationNames.set(n,this.getAnimationName(n))},i=t=>{let n=t.target;this.nodes.includes(n)&&this.getAnimationName(n).includes(t.animationName)&&(this.pendingExits.delete(n),!this.waapiPending&&this.pendingExits.size===0&&this.finishExit(this.exitVersion))};for(let t of this.nodes)t.addEventListener(`animationstart`,e),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i);this.removeListeners=()=>{for(let t of this.nodes)t.removeEventListener(`animationstart`,e),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}getAnimationName(e){return(this.host.isBrowser?getComputedStyle(e).animationName:``)||`none`}now(){let e=typeof document<`u`?document.timeline?.currentTime:null;return typeof e==`number`?e:Number(e??0)}},v=new M(`RdxPresenceContext`)});export{v as i,f as n,g as r,L as t};
1
+ import{G as M,R as Kr,Zn as rf,ln as f$1,z as LD}from"./chunk-CQJfJJJO.js";import{A as or,N as sr}from"./chunk-DNfHCIbw.js";function L(r){return{provide:v,useFactory:r}}var p;var N;var f;var v;var g=f$1(()=>{Kr();sr();p={mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}},N=50,f=class{constructor(e){this.host=e,this.nodes=[],this.prevAnimationNames=new WeakMap,this.pendingExits=new Set,this.removeListeners=null,this.closeTimestamp=0,this.exitVersion=0,this.waapiPending=!1,this.safetyTimer=null,this.prevPresent=e.present(),this.state=this.prevPresent?`mounted`:`unmounted`,this.prevPresent&&this.mount(),rf(()=>{let i=e.present();i!==this.prevPresent&&(this.prevPresent=i,i?this.send(`MOUNT`):e.isBrowser?(this.closeTimestamp=this.now(),LD(()=>this.evaluateExit(),{injector:e.injector})):this.send(`UNMOUNT`))},{injector:e.injector,debugName:`PresenceMachine.present`})}dispose(){this.unmount()}evaluateExit(){if(this.state!==`mounted`||this.host.present())return;this.pendingExits.clear();for(let i of this.nodes){let t=getComputedStyle(i),n=t.animationName||`none`,s=this.prevAnimationNames.get(i)??`none`;n!==`none`&&t.display!==`none`&&s!==n&&this.pendingExits.add(i)}let e=this.collectExitAnimations();if(this.pendingExits.size===0&&e.length===0){this.send(`UNMOUNT`);return}if(this.send(`ANIMATION_OUT`),e.length>0){this.waapiPending=!0;let i=this.exitVersion;Promise.all(e.map(t=>t.finished.catch(()=>{}))).then(()=>this.finishExit(i)),this.armSafetyNet(i,e)}}collectExitAnimations(){if(!this.host.isBrowser)return[];let e=[];for(let i of this.nodes)if(typeof i.getAnimations==`function`)for(let t of i.getAnimations({subtree:!0})){let n=t.startTime===null||Number(t.startTime)>=this.closeTimestamp;(t.playState===`running`||t.pending)&&n&&e.push(t)}return e}armSafetyNet(e,i){let t=new Set(this.nodes);for(let s of i){let o=s.effect?.target;o instanceof HTMLElement&&t.add(o)}let n=0;for(let s of t)n=Math.max(n,or(s));this.clearSafetyNet(),this.safetyTimer=setTimeout(()=>this.finishExit(e),n+N)}finishExit(e){e===this.exitVersion&&(this.waapiPending=!1,this.clearSafetyNet(),this.send(`ANIMATION_END`))}clearSafetyNet(){this.safetyTimer!==null&&(clearTimeout(this.safetyTimer),this.safetyTimer=null)}send(e){let i=p[this.state][e];if(!(i===void 0||i===this.state))if(this.state=i,i===`mounted`)if(this.exitVersion++,this.waapiPending=!1,this.clearSafetyNet(),this.nodes.length>0){this.pendingExits.clear();for(let t of this.nodes)this.prevAnimationNames.set(t,this.getAnimationName(t))}else this.mount();else i===`unmounted`&&(this.exitVersion++,this.unmount())}mount(){if(this.nodes=this.host.mountView(),this.host.isBrowser&&this.nodes.length>0){for(let e of this.nodes)this.prevAnimationNames.set(e,this.getAnimationName(e));this.addAnimationListeners()}}unmount(){this.removeListeners?.(),this.removeListeners=null,this.clearSafetyNet(),this.waapiPending=!1,this.host.destroyView(),this.nodes=[],this.pendingExits.clear()}addAnimationListeners(){let e=t=>{let n=t.target;this.nodes.includes(n)&&this.prevAnimationNames.set(n,this.getAnimationName(n))},i=t=>{let n=t.target;this.nodes.includes(n)&&this.getAnimationName(n).includes(t.animationName)&&(this.pendingExits.delete(n),!this.waapiPending&&this.pendingExits.size===0&&this.finishExit(this.exitVersion))};for(let t of this.nodes)t.addEventListener(`animationstart`,e),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i);this.removeListeners=()=>{for(let t of this.nodes)t.removeEventListener(`animationstart`,e),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}getAnimationName(e){return(this.host.isBrowser?getComputedStyle(e).animationName:``)||`none`}now(){let e=typeof document<`u`?document.timeline?.currentTime:null;return typeof e==`number`?e:Number(e??0)}},v=new M(`RdxPresenceContext`)});export{v as i,f as n,g as r,L as t};
@@ -1 +1 @@
1
- import{R as Kr,_r as wt,ln as f,zt as X}from"./chunk-BU6WXUxF.js";function g(s){try{return localStorage.getItem(u+s)}catch{return null}}function o(s,n){try{localStorage.setItem(u+s,n)}catch{}}function y(s){try{localStorage.removeItem(u+s)}catch{}}function b(s){if(s===null)return new Set;try{let n=JSON.parse(s);return new Set(Array.isArray(n)?n.filter(r=>typeof r==`string`):[])}catch{return new Set}}function v(s){if(s===null)return new Map;try{let n=JSON.parse(s);if(!Array.isArray(n))return new Map;let r=n.filter(t=>Array.isArray(t)&&t.length===2&&typeof t[0]==`string`&&typeof t[1]==`string`);return new Map(r)}catch{return new Map}}var u;var p;var M=f(()=>{Kr();Kr();u=`mx.pref.`;p=class s{flags=new Map;sets=new Map;maps=new Map;choices=new Map;flag(n,r=!1){let t=this.flags.get(n);if(t!==void 0)return t;let i=g(n),e=wt(i===null?r:i===`true`),f=e.set.bind(e);return e.set=l=>{f(l),o(n,String(l))},e.update=l=>e.set(l(e())),this.flags.set(n,e),e}names(n){let r=this.sets.get(n);if(r!==void 0)return r;let t=wt(b(g(n))),i=t.set.bind(t);return t.set=e=>{i(e),o(n,JSON.stringify([...e]))},t.update=e=>t.set(e(t())),this.sets.set(n,t),t}entries(n){let r=this.maps.get(n);if(r!==void 0)return r;let t=wt(v(g(n))),i=t.set.bind(t);return t.set=e=>{i(e),o(n,JSON.stringify([...e]))},t.update=e=>t.set(e(t())),this.maps.set(n,t),t}choice(n){let r=this.choices.get(n);if(r!==void 0)return r;let t=wt(g(n)),i=t.set.bind(t);return t.set=e=>{i(e),e===null?y(n):o(n,e)},t.update=e=>t.set(e(t())),this.choices.set(n,t),t}static ɵfac=function(r){return new(r||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{p as n,M as t};
1
+ import{R as Kr,_r as wt,ln as f,zt as X}from"./chunk-CQJfJJJO.js";function g(s){try{return localStorage.getItem(u+s)}catch{return null}}function o(s,n){try{localStorage.setItem(u+s,n)}catch{}}function y(s){try{localStorage.removeItem(u+s)}catch{}}function b(s){if(s===null)return new Set;try{let n=JSON.parse(s);return new Set(Array.isArray(n)?n.filter(r=>typeof r==`string`):[])}catch{return new Set}}function v(s){if(s===null)return new Map;try{let n=JSON.parse(s);if(!Array.isArray(n))return new Map;let r=n.filter(t=>Array.isArray(t)&&t.length===2&&typeof t[0]==`string`&&typeof t[1]==`string`);return new Map(r)}catch{return new Map}}var u;var p;var M=f(()=>{Kr();Kr();u=`mx.pref.`;p=class s{flags=new Map;sets=new Map;maps=new Map;choices=new Map;flag(n,r=!1){let t=this.flags.get(n);if(t!==void 0)return t;let i=g(n),e=wt(i===null?r:i===`true`),f=e.set.bind(e);return e.set=l=>{f(l),o(n,String(l))},e.update=l=>e.set(l(e())),this.flags.set(n,e),e}names(n){let r=this.sets.get(n);if(r!==void 0)return r;let t=wt(b(g(n))),i=t.set.bind(t);return t.set=e=>{i(e),o(n,JSON.stringify([...e]))},t.update=e=>t.set(e(t())),this.sets.set(n,t),t}entries(n){let r=this.maps.get(n);if(r!==void 0)return r;let t=wt(v(g(n))),i=t.set.bind(t);return t.set=e=>{i(e),o(n,JSON.stringify([...e]))},t.update=e=>t.set(e(t())),this.maps.set(n,t),t}choice(n){let r=this.choices.get(n);if(r!==void 0)return r;let t=wt(g(n)),i=t.set.bind(t);return t.set=e=>{i(e),e===null?y(n):o(n,e)},t.update=e=>t.set(e(t())),this.choices.set(n,t),t}static ɵfac=function(r){return new(r||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{p as n,M as t};
@@ -0,0 +1,5 @@
1
+ import{Ct as Tc,Dn as kE,En as jc,Ft as Wm,Gn as pg,Gt as _S,H as Li,I as Jm,J as My,Kt as _m,O as HE,On as kc,R as Kr,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,_r as wt,_t as SS,cn as ec,ct as Qm,er as sk,gt as SE,hr as wc,in as dk,ln as f,r as Ac,tt as Od,un as fS,ut as RE,wr as zE,xt as TE}from"./chunk-CQJfJJJO.js";import{F as tn,u as Me}from"./chunk-DNfHCIbw.js";function $(e){let n=[],t=0;for(let i of e.matchAll(ie))i.index>t&&n.push({kind:`text`,text:e.slice(t,i.index)}),n.push(i[1]===void 0?{kind:`bold`,text:i[2]??i[3]??``}:{kind:`code`,text:i[1]}),t=i.index+i[0].length;return t<e.length&&n.push({kind:`text`,text:e.slice(t)}),n}function Q(e){let n=e.replace(/\r\n?/g,`
2
+ `).split(`
3
+ `),t=[],i=[],o=null,a=()=>{i.length>0&&(t.push({kind:`paragraph`,inlines:$(i.join(`
4
+ `))}),i=[]),o!==null&&(t.push({kind:`list`,ordered:o.ordered,items:o.items.map($)}),o=null)};for(let p=0;p<n.length;p+=1){let d=n[p]??``,v=ee.exec(d);if(v!==null){a();let b=v[1]??"```",N=[];for(p+=1;p<n.length&&!oe(n[p]??``,b);)N.push(n[p]??``),p+=1;t.push({kind:`code`,language:v[2]??``,text:N.join(`
5
+ `)});continue}if(d.trim()===``){a();continue}let E=te.exec(d);if(E!==null){a(),t.push({kind:`heading`,inlines:$(E[1]??``)});continue}let F=ne.exec(d);if(F!==null){let b=/\d/.test(F[1]??``);(i.length>0||o!==null&&o.ordered!==b)&&a(),o??={ordered:b,items:[]},o.items.push(F[2]??``);continue}if(o!==null&&/^\s/.test(d)&&o.items.length>0){o.items[o.items.length-1]+=` ${d.trim()}`;continue}o!==null&&a(),i.push(d)}return a(),t}function oe(e,n){let t=e.trim();return t.length>=n.length&&[...t].every(i=>i===n[0])}var ee;var te;var ne;var ie;var U=f(()=>{ee=/^ {0,3}(`{3,}|~{3,})\s*([\w+#.-]*)\s*$/,te=/^ {0,3}#{1,6}\s+(.*?)\s*#*\s*$/,ne=/^ {0,3}([-*+]|\d{1,3}[.)])\s+(.*)$/,ie=/`([^`\n]+)`|\*\*([^*\n]+?)\*\*|__([^_\n]+?)__/g});function re(e,n){if(e&1&&(Li(0,`strong`,1),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function ae(e,n){if(e&1&&(Li(0,`code`,2),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function le(e,n){if(e&1&&fS(0),e&2){let t=HE().$implicit;Ac(` `,t.text,` `)}}function ce(e,n){if(e&1&&SE(0,re,2,1,`strong`,1)(1,ae,2,1,`code`,2)(2,le,1,1),e&2){let t,i=n.$implicit;kE((t=i.kind)===`bold`?0:t===`code`?1:2)}}function se(e,n){if(e&1&&kc(0,ce,3,1,null,null,TE),e&2){let t=n.$implicit;Tc(t)}}function pe(e,n){e&1&&Qm(0)}function de(e,n){if(e&1&&(Li(0,`p`,3),_m(1,pe,1,0,`ng-container`,5),Nc()),e&2){let t=HE().$implicit;HE();let i=zE(1);ec(),Wm(`ngTemplateOutlet`,i)(`ngTemplateOutletContext`,SS(2,I,t.inlines))}}function me(e,n){e&1&&Qm(0)}function _e(e,n){if(e&1&&(Li(0,`p`,1),_m(1,me,1,0,`ng-container`,5),Nc()),e&2){let t=HE().$implicit;HE();let i=zE(1);ec(),Wm(`ngTemplateOutlet`,i)(`ngTemplateOutletContext`,SS(2,I,t.inlines))}}function xe(e,n){e&1&&Qm(0)}function ue(e,n){if(e&1&&(Li(0,`li`),_m(1,xe,1,0,`ng-container`,5),Nc()),e&2){let t=n.$implicit,i=HE(4),o=zE(1);ec(),Wm(`ngTemplateOutlet`,o)(`ngTemplateOutletContext`,SS(2,I,i.asInlines(t)))}}function ye(e,n){if(e&1&&(Li(0,`ol`,6),kc(1,ue,2,4,`li`,null,TE),Nc()),e&2){let t=HE(2).$implicit;ec(),Tc(t.items)}}function ge(e,n){e&1&&Qm(0)}function fe(e,n){if(e&1&&(Li(0,`li`),_m(1,ge,1,0,`ng-container`,5),Nc()),e&2){let t=n.$implicit,i=HE(4),o=zE(1);ec(),Wm(`ngTemplateOutlet`,o)(`ngTemplateOutletContext`,SS(2,I,i.asInlines(t)))}}function Ce(e,n){if(e&1&&(Li(0,`ul`,7),kc(1,fe,2,4,`li`,null,TE),Nc()),e&2){let t=HE(2).$implicit;ec(),Tc(t.items)}}function Te(e,n){if(e&1&&SE(0,ye,3,0,`ol`,6)(1,Ce,3,0,`ul`,7),e&2){let t=HE().$implicit;kE(t.ordered?0:1)}}function be(e,n){if(e&1){let t=RE();Li(0,`div`,4)(1,`pre`,8),fS(2),Nc(),Li(3,`button`,9),Jm(`click`,function(){Od(t);let o=HE(),a=o.$implicit,p=o.$index;return Ld(HE().copy(p,a.text))}),Gm(4,`app-icon`,10),Nc()()}if(e&2){let t=HE(),i=t.$implicit,o=t.$index,a=HE();ec(2),pg(i.text),ec(),Wm(`title`,a.copiedIndex()===o?a.common().copied:a.common().copy),zr(`aria-label`,a.copiedIndex()===o?a.common().copied:a.common().copy),ec(),Wm(`name`,a.copiedIndex()===o?`check`:`copy`)(`size`,13)}}function ke(e,n){if(e&1&&SE(0,de,2,4,`p`,3)(1,_e,2,4,`p`,1)(2,Te,2,1)(3,be,5,5,`div`,4),e&2){let t,i=n.$implicit;kE((t=i.kind)===`paragraph`?0:t===`heading`?1:t===`list`?2:t===`code`?3:-1)}}var I;var W;var he=f(()=>{Me();Kr();U();sk();dk();Kr();I=e=>({$implicit:e});W=class e{text=jc.required();blocks=Lt(()=>Q(this.text()));common=Lt(()=>ok().common);copiedIndex=wt(null);asInlines(n){return n}async copy(n,t){try{await navigator.clipboard.writeText(t),this.copiedIndex.set(n),setTimeout(()=>this.copiedIndex.update(i=>i===n?null:i),1500)}catch{}}static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-answer-text`]],hostAttrs:[1,`block`,`space-y-2`],inputs:{text:[1,`text`]},decls:4,vars:0,consts:[[`line`,``],[1,`font-semibold`,`text-ink-100`],[1,`rounded`,`bg-ink-800`,`px-1`,`py-px`,`font-mono`,`text-[0.92em]`,`text-ink-100`],[1,`whitespace-pre-line`],[`data-testid`,`answer-code`,1,`relative`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`list-decimal`,`space-y-0.5`,`pl-5`],[1,`list-disc`,`space-y-0.5`,`pl-5`],[1,`overflow-x-auto`,`rounded-md`,`bg-ink-900`,`py-1.5`,`pr-9`,`pl-2`,`font-mono`,`text-[12px]`,`leading-snug`,`text-ink-100`],[`type`,`button`,`data-testid`,`answer-copy`,1,`mx-focus`,`absolute`,`top-1`,`right-1`,`rounded`,`p-1`,`text-ink-400`,`hover:bg-ink-800`,`hover:text-ink-100`,3,`click`,`title`],[3,`name`,`size`]],template:function(t,i){t&1&&(_m(0,se,2,0,`ng-template`,null,0,_S),kc(2,ke,4,1,null,null,TE)),t&2&&(ec(2),Tc(i.blocks()))},dependencies:[My,tn],encapsulation:2})}});export{he as n,W as t};