@duplicati/ngclient 0.0.84 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-25GEPULG.js +1 -0
- package/{chunk-DNDOALN6.js → chunk-2D7EACVA.js} +1 -1
- package/chunk-3BNXVXL5.js +1 -0
- package/{chunk-3YTSQTLM.js → chunk-3CXMAX4S.js} +1 -1
- package/{chunk-DURFGYD7.js → chunk-3T23UBO4.js} +1 -1
- package/{chunk-WWJFELTU.js → chunk-453FQ4EQ.js} +1 -1
- package/{chunk-C5EHOW7U.js → chunk-4RXMJUN5.js} +1 -1
- package/{chunk-DALX7AMG.js → chunk-5JYSV4UD.js} +1 -1
- package/chunk-5KNWZI2J.js +3 -0
- package/chunk-5OX72VKG.js +1 -0
- package/{chunk-GJSG762N.js → chunk-5XP5TOQE.js} +1 -1
- package/chunk-7CDKTUA7.js +6 -0
- package/chunk-AM4I6XHR.js +1 -0
- package/{chunk-W4MEGIZH.js → chunk-AUVMOLMG.js} +1 -1
- package/{chunk-BRMUJELY.js → chunk-BIVRH4JH.js} +1 -1
- package/{chunk-RTVM3BJK.js → chunk-BRWHKZV2.js} +1 -1
- package/{chunk-L5D4JLN3.js → chunk-C2JCNHTZ.js} +1 -1
- package/chunk-CDH4KG7H.js +1 -0
- package/{chunk-7LP2EQ7M.js → chunk-CKQFBLHP.js} +1 -1
- package/chunk-CLJTLGUH.js +1 -0
- package/chunk-DJD73EPX.js +1 -0
- package/{chunk-77PHTQYN.js → chunk-F4QKO25T.js} +1 -1
- package/chunk-FDQ7IWYZ.js +1 -0
- package/{chunk-KXU2UTG4.js → chunk-G3LEXMG4.js} +1 -1
- package/{chunk-KIB4MYBL.js → chunk-G76GVTZW.js} +1 -1
- package/{chunk-4YHGG4LR.js → chunk-GLM4XFEI.js} +1 -1
- package/chunk-GMW5Y454.js +1 -0
- package/{chunk-UI6ZWFOT.js → chunk-GUJTHKVP.js} +1 -1
- package/{chunk-KH7GOUWD.js → chunk-GWK5ZGTC.js} +1 -1
- package/chunk-H3MGI3SF.js +1 -0
- package/chunk-IOCSGWZ3.js +1 -0
- package/chunk-JJOXLPZI.js +1 -0
- package/{chunk-4A4CWPH7.js → chunk-K3LOA2DX.js} +1 -1
- package/chunk-KD4DXWHW.js +1 -0
- package/{chunk-YOP6HOXH.js → chunk-KDCTRSPO.js} +1 -1
- package/chunk-KL4KTR4Z.js +1 -0
- package/chunk-KTUAPEOD.js +1 -0
- package/chunk-LVA7V7CT.js +1 -0
- package/chunk-M5PD5WBV.js +1 -0
- package/{chunk-NBBSISDC.js → chunk-MHTKXCYS.js} +1 -1
- package/chunk-N7DO2BHU.js +1 -0
- package/chunk-N7MNI34K.js +1 -0
- package/{chunk-AFQ6FL3D.js → chunk-O4ZJY3TF.js} +1 -1
- package/chunk-ODIN2IGP.js +1 -0
- package/chunk-OEVX57MC.js +1 -0
- package/{chunk-VAAQUFLX.js → chunk-Q3SDBZEH.js} +1 -1
- package/{chunk-4IO6Y7PY.js → chunk-RZ4FUSBJ.js} +1 -1
- package/{chunk-RSXKKDD4.js → chunk-SK5UJPNU.js} +1 -1
- package/{chunk-ZWADJ4OM.js → chunk-SXPBIWPS.js} +1 -1
- package/{chunk-PPRHD3ZV.js → chunk-UIOTKB6J.js} +1 -1
- package/{chunk-2AYDM3FG.js → chunk-UJMJKY2E.js} +1 -1
- package/{chunk-7LJ7CTKL.js → chunk-UK7OJJ5S.js} +1 -1
- package/{chunk-UZM3TLJO.js → chunk-UUNZQKSW.js} +1 -1
- package/{chunk-AXHB6A4N.js → chunk-W3VTD2H4.js} +1 -1
- package/{chunk-MCLDJCPW.js → chunk-W4YAOQRI.js} +1 -1
- package/chunk-W7Y2VKMS.js +6 -0
- package/{chunk-7LRQSKYZ.js → chunk-WJQN3BOF.js} +1 -1
- package/{chunk-7IRVNC4S.js → chunk-WYTHNCNI.js} +1 -1
- package/{chunk-XRL6GPXW.js → chunk-Z4U4LDKL.js} +1 -1
- package/{chunk-YA3PYBIG.js → chunk-Z55AE6ZP.js} +1 -1
- package/{chunk-NNUHZ2L7.js → chunk-ZHFVGIIO.js} +1 -1
- package/{chunk-2M52SFS6.js → chunk-ZSSQBIRK.js} +6 -6
- package/chunk-ZZPLRWQP.js +1 -0
- package/index.html +2 -2
- package/{main-SOHQOOGR.js → main-QHLXX2KA.js} +1 -1
- package/package.json +1 -1
- package/styles-EJ7NNNKB.css +1 -0
- package/chunk-34SHHWMR.js +0 -6
- package/chunk-6KER52JR.js +0 -1
- package/chunk-6RMLOIRD.js +0 -1
- package/chunk-7DD5DAWU.js +0 -1
- package/chunk-BGBEOEU2.js +0 -1
- package/chunk-BKSXG3Z5.js +0 -1
- package/chunk-C52XP2RC.js +0 -1
- package/chunk-D6NUBCKD.js +0 -1
- package/chunk-DL6QZSL6.js +0 -1
- package/chunk-FUH4327W.js +0 -1
- package/chunk-H2DNOMMP.js +0 -1
- package/chunk-LJ3ULEOG.js +0 -1
- package/chunk-MADB4EX7.js +0 -1
- package/chunk-MEFACGK4.js +0 -6
- package/chunk-ODDKCMXA.js +0 -1
- package/chunk-P724RQTD.js +0 -1
- package/chunk-PN3DBUJI.js +0 -1
- package/chunk-PNJEVGID.js +0 -1
- package/chunk-R2HH6TYJ.js +0 -1
- package/chunk-RAUCDBVO.js +0 -1
- package/chunk-RCPMSNTW.js +0 -1
- package/chunk-RE4L7JTP.js +0 -1
- package/chunk-RLYI2YCZ.js +0 -3
- package/chunk-TZYGTULV.js +0 -1
- package/chunk-XKAASYKO.js +0 -1
- package/styles-5VTLDYYE.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ne}from"./chunk-WJQN3BOF.js";import{b as ie,d as oe,g as ae,i as se,r as h}from"./chunk-5OX72VKG.js";import{a as te}from"./chunk-ZZPLRWQP.js";import{b as A}from"./chunk-UIOTKB6J.js";import{a as le,b as _e,e as re,g as pe,i as F,l as ue,o as ce,p as Se,r as de}from"./chunk-CDH4KG7H.js";import{pa as ee}from"./chunk-WYTHNCNI.js";import{a as Te}from"./chunk-2D7EACVA.js";import{Ab as l,Bb as R,C as g,Fb as V,Jc as G,Lb as I,Mb as k,Nb as p,Pa as _,Qb as j,Rb as u,Sb as C,W as c,ba as x,ca as z,cb as E,ec as O,fb as X,gc as q,hb as L,hc as Z,ic as J,jc as f,kc as P,lc as N,na as D,qb as m,sa as r,sb as S,uc as B,vb as v,vc as Y,wb as H,wc as Q,xb as K,yb as W,zb as s}from"./chunk-ZSSQBIRK.js";var y=class a{#e=c(Te);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=X({name:"appRelativeTime",type:a,pure:!0})};function Ae(a,n){if(a&1){let t=V();s(0,"spk-radio",10),u("click",function(){let i=x(t).$implicit,o=C();return z(o.pauseOption.set(i.value))}),O(1),l()}if(a&2){let t=n.$implicit,e=C();S("active",e.pauseOption()===t.value),_(),q(" ",t.label," ")}}var fe=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],b=class a{#e=c(A);pauseOptions=r(fe);closed=D();isSubmitting=r(!1);pauseTransfers=r(!1);pauseOption=r(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let o;return o=$localize` Update settings `,[n,t,e,i,o,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",5)(1,"h3"),p(2,0),l()(),s(3,"div",6)(4,"div",7),K(5,Ae,2,3,"spk-radio",8,H),l(),s(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),l(),s(10,"spk-alert",11),p(11,2),l()()(),s(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),l(),s(15,"button",14),u("click",function(){return e.submit()}),p(16,4),l()()),t&2&&(_(5),W(e.pauseOptions()),_(3),S("active",e.pauseTransfers()),_(7),S("loader",e.isSubmitting()))},dependencies:[h,Se,F,_e],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var Pe=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],$={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},ge=Object.entries($).reduce((a,[n,t])=>(a[t]=n,a),{}),M=class a{#e=c(A);closed=D();isSubmitting=r(!1);sizeOptions=r(Pe);maxUploadActive=r(!1);maxDownloadActive=r(!1);maxUpload=r(0);maxDownload=r(0);maxUploadUnit=r("MByte/s");maxDownloadUnit=r("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",o=e[1]??"",d=t[2]??"MB",T=e[2]??"MB",Ce=i===""?10:parseInt(i),Oe=o===""?10:parseInt(o);this.maxUploadUnit.set(ge[d]+"/s"),this.maxDownloadUnit.set(ge[T]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(o!==""),this.maxUpload.set(Ce),this.maxDownload.set(Oe)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${$[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${$[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:16,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let o;o=$localize`Cancel`;let d;return d=$localize` Update settings `,[n,t,e,i,o,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",6)(1,"h3"),p(2,0),l()(),s(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),l(),s(8,"spk-form-field")(9,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxUpload,o)||(e.maxUpload=o),o}),l()(),s(10,"spk-select-new",12)(11,"input",13),N("ngModelChange",function(o){return P(e.maxUploadUnit,o)||(e.maxUploadUnit=o),o}),l()()(),s(12,"div",9)(13,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(14,2),l(),s(15,"spk-form-field")(16,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxDownload,o)||(e.maxDownload=o),o}),l()(),s(17,"spk-select-new",12)(18,"input",13),N("ngModelChange",function(o){return P(e.maxDownloadUnit,o)||(e.maxDownloadUnit=o),o}),l()()(),s(19,"p"),p(20,3),l()()(),s(21,"footer",14)(22,"button",15),u("click",function(){return e.closed.emit(!1)}),p(23,4),l(),s(24,"button",16),u("click",function(){return e.submit()}),p(25,5),l()()),t&2&&(_(6),S("active",e.maxUploadActive()),_(3),f("ngModel",e.maxUpload),m("disabled",!e.maxUploadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxUploadUnit),_(2),S("active",e.maxDownloadActive()),_(3),f("ngModel",e.maxDownload),m("disabled",!e.maxDownloadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxDownloadUnit),_(6),S("loader",e.isSubmitting()))},dependencies:[h,ie,se,oe,ae,ue,F,de],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ne(a,n){if(a&1&&(s(0,"div"),O(1),l(),R(2,"spk-progress-bar",8)),a&2){let t=C();_(),Z("",t.statusData().actionText," - ",t.statusData().statusText,""),_(),m("value",t.statusData().progress*100)}}function Me(a,n){if(a&1&&(s(0,"div",5),O(1),B(2,"appRelativeTime"),B(3,"date"),l()),a&2){let t,e=C();_(),J(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Y(2,3,e.nextBackup().time)," at ",Q(3,5,e.nextBackup().time,"shortTime")," ")}}function De(a,n){a&1&&(s(0,"div",5),p(1,1),l())}function Re(a,n){a&1&&(s(0,"div",5),p(1,2),l())}function Ie(a,n){a&1&&(I(0,0,1),R(1,"spk-icon"),k())}function ke(a,n){a&1&&(I(0,0,2),R(1,"spk-icon"),k())}var Ee=new Date,w=class a{#e=c(A);#t=c(ne);#n=c(re);#i=c(te);minsAgo=Ee.setMinutes(Ee.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=G(()=>this.serverState()?.ProgramState==="Running");isResuming=r(!1);nextBackup=G(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(M,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(b,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(g(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-status-bar"]],decls:14,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=j(n);let t;t=$localize`No scheduled tasks`;let e;return e=$localize`Loading...`,[n,t,e,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(s(0,"div",3)(1,"div",4),L(2,Ne,3,3)(3,Me,4,8,"div",5)(4,De,2,0,"div",5)(5,Re,2,0,"div",5),l(),s(6,"div",6)(7,"button",7),u("click",function(){return e.pauseResume()}),I(8,0),L(9,Ie,2,0)(10,ke,2,0),k(),l(),s(11,"button",7),u("click",function(){return e.openThrottleSettingsDialog()}),s(12,"spk-icon"),O(13,"speedometer"),l()()()()),t&2){let i;_(2),v((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),_(5),S("loader",e.isResuming()),_(2),v(e.isRunning()?9:10)}},dependencies:[ce,y,ee,le,pe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as Wt}from"./chunk-2M52SFS6.js";import{d as _t,e as Yt}from"./chunk-C6Q5SG76.js";var Ot=_t((Nt,Ht)=>{"use strict";(function(o,t){typeof Nt=="object"&&typeof Ht<"u"?Ht.exports=t():typeof define=="function"&&define.amd?define(t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=t()})(Nt,function(){"use strict";var o=1e3,t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",c="day",h="week",l="month",_="quarter",D="year",v="date",Y="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var d=["th","st","nd","rd"],a=m%100;return"["+m+(d[(a-20)%10]||d[a]||d[0])+"]"}},E=function(m,d,a){var f=String(m);return!f||f.length>=d?m:""+Array(d+1-f.length).join(a)+m},L={s:E,z:function(m){var d=-m.utcOffset(),a=Math.abs(d),f=Math.floor(a/60),u=a%60;return(d<=0?"+":"-")+E(f,2,"0")+":"+E(u,2,"0")},m:function m(d,a){if(d.date()<a.date())return-m(a,d);var f=12*(a.year()-d.year())+(a.month()-d.month()),u=d.clone().add(f,l),M=a-u<0,$=d.clone().add(f+(M?-1:1),l);return+(-(f+(a-u)/(M?u-$:$-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:l,y:D,w:h,d:c,D:v,h:i,m:s,s:n,ms:r,Q:_}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},S="en",C={};C[S]=k;var W="$isDayjsObject",Z=function(m){return m instanceof Mt||!(!m||!m[W])},mt=function m(d,a,f){var u;if(!d)return S;if(typeof d=="string"){var M=d.toLowerCase();C[M]&&(u=M),a&&(C[M]=a,u=M);var $=d.split("-");if(!u&&$.length>1)return m($[0])}else{var g=d.name;C[g]=d,u=g}return!f&&u&&(S=u),u||!f&&S},w=function(m,d){if(Z(m))return m.clone();var a=typeof d=="object"?d:{};return a.date=m,a.args=arguments,new Mt(a)},y=L;y.l=mt,y.i=Z,y.w=function(m,d){return w(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var Mt=function(){function m(a){this.$L=mt(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[W]=!0}var d=m.prototype;return d.parse=function(a){this.$d=function(f){var u=f.date,M=f.utc;if(u===null)return new Date(NaN);if(y.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var $=u.match(N);if($){var g=$[2]-1||0,O=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(u)}(a),this.init()},d.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return this.$d.toString()!==Y},d.isSame=function(a,f){var u=w(a);return this.startOf(f)<=u&&u<=this.endOf(f)},d.isAfter=function(a,f){return w(a)<this.startOf(f)},d.isBefore=function(a,f){return this.endOf(f)<w(a)},d.$g=function(a,f,u){return y.u(a)?this[f]:this.set(u,a)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(a,f){var u=this,M=!!y.u(f)||f,$=y.p(a),g=function(X,b){var G=y.w(u.$u?Date.UTC(u.$y,b,X):new Date(u.$y,b,X),u);return M?G:G.endOf(c)},O=function(X,b){return y.w(u.toDate()[X].apply(u.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(b)),u)},T=this.$W,A=this.$M,j=this.$D,nt="set"+(this.$u?"UTC":"");switch($){case D:return M?g(1,0):g(31,11);case l:return M?g(1,A):g(0,A+1);case h:var Q=this.$locale().weekStart||0,at=(T<Q?T+7:T)-Q;return g(M?j-at:j+(6-at),A);case c:case v:return O(nt+"Hours",0);case i:return O(nt+"Minutes",1);case s:return O(nt+"Seconds",2);case n:return O(nt+"Milliseconds",3);default:return this.clone()}},d.endOf=function(a){return this.startOf(a,!1)},d.$set=function(a,f){var u,M=y.p(a),$="set"+(this.$u?"UTC":""),g=(u={},u[c]=$+"Date",u[v]=$+"Date",u[l]=$+"Month",u[D]=$+"FullYear",u[i]=$+"Hours",u[s]=$+"Minutes",u[n]=$+"Seconds",u[r]=$+"Milliseconds",u)[M],O=M===c?this.$D+(f-this.$W):f;if(M===l||M===D){var T=this.clone().set(v,1);T.$d[g](O),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](O);return this.init(),this},d.set=function(a,f){return this.clone().$set(a,f)},d.get=function(a){return this[y.p(a)]()},d.add=function(a,f){var u,M=this;a=Number(a);var $=y.p(f),g=function(A){var j=w(M);return y.w(j.date(j.date()+Math.round(A*a)),M)};if($===l)return this.set(l,this.$M+a);if($===D)return this.set(D,this.$y+a);if($===c)return g(1);if($===h)return g(7);var O=(u={},u[s]=t,u[i]=e,u[n]=o,u)[$]||1,T=this.$d.getTime()+a*O;return y.w(T,this)},d.subtract=function(a,f){return this.add(-1*a,f)},d.format=function(a){var f=this,u=this.$locale();if(!this.isValid())return u.invalidDate||Y;var M=a||"YYYY-MM-DDTHH:mm:ssZ",$=y.z(this),g=this.$H,O=this.$m,T=this.$M,A=u.weekdays,j=u.months,nt=u.meridiem,Q=function(b,G,ot,$t){return b&&(b[G]||b(f,M))||ot[G].slice(0,$t)},at=function(b){return y.s(g%12||12,b,"0")},X=nt||function(b,G,ot){var $t=b<12?"AM":"PM";return ot?$t.toLowerCase():$t};return M.replace(U,function(b,G){return G||function(ot){switch(ot){case"YY":return String(f.$y).slice(-2);case"YYYY":return y.s(f.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return Q(u.monthsShort,T,j,3);case"MMMM":return Q(j,T);case"D":return f.$D;case"DD":return y.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return Q(u.weekdaysMin,f.$W,A,2);case"ddd":return Q(u.weekdaysShort,f.$W,A,3);case"dddd":return A[f.$W];case"H":return String(g);case"HH":return y.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,O,!0);case"A":return X(g,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(f.$s);case"ss":return y.s(f.$s,2,"0");case"SSS":return y.s(f.$ms,3,"0");case"Z":return $}return null}(b)||$.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(a,f,u){var M,$=this,g=y.p(f),O=w(a),T=(O.utcOffset()-this.utcOffset())*t,A=this-O,j=function(){return y.m($,O)};switch(g){case D:M=j()/12;break;case l:M=j();break;case _:M=j()/3;break;case h:M=(A-T)/6048e5;break;case c:M=(A-T)/864e5;break;case i:M=A/e;break;case s:M=A/t;break;case n:M=A/o;break;default:M=A}return u?M:y.a(M)},d.daysInMonth=function(){return this.endOf(l).$D},d.$locale=function(){return C[this.$L]},d.locale=function(a,f){if(!a)return this.$L;var u=this.clone(),M=mt(a,f,!0);return M&&(u.$L=M),u},d.clone=function(){return y.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},m}(),Ut=Mt.prototype;return w.prototype=Ut,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",c],["$M",l],["$y",D],["$D",v]].forEach(function(m){Ut[m[1]]=function(d){return this.$g(d,m[0],m[1])}}),w.extend=function(m,d){return m.$i||(m(d,Mt,w),m.$i=!0),w},w.locale=mt,w.isDayjs=Z,w.unix=function(m){return w(1e3*m)},w.en=C[S],w.Ls=C,w.p={},w})});var ne=_t((Et,bt)=>{"use strict";(function(o,t){typeof Et=="object"&&typeof bt<"u"?bt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_da=t(o.dayjs)})(Et,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(n){return n+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};return e.default.locale(r,null,!0),r})});var se=_t((kt,jt)=>{"use strict";(function(o,t){typeof kt=="object"&&typeof jt<"u"?jt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_de=t(o.dayjs)})(kt,function(o){"use strict";function t(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var e=t(o),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(i,c,h){var l=r[h];return Array.isArray(l)&&(l=l[c?0:1]),l.replace("%d",i)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(i){return i+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return e.default.locale(s,null,!0),s})});var ie=_t((xt,Ft)=>{"use strict";(function(o,t){typeof xt=="object"&&typeof Ft<"u"?Ft.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_fr=t(o.dayjs)})(xt,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(n){return""+n+(n===1?"er":"")}};return e.default.locale(r,null,!0),r})});var Jt=60,Rt=Jt*60,Pt=Rt*24,ce=Pt*7,J=1e3,q=Jt*J,K=Rt*J,tt=Pt*J,vt=ce*J,ut="millisecond",R="second",P="minute",z="hour",x="day",st="week",H="month",St="quarter",F="year",B="date",zt="YYYY-MM-DDTHH:mm:ssZ",Lt="Invalid Date",Vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var Zt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var Tt=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},fe=function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+Tt(n,2,"0")+":"+Tt(s,2,"0")},he=function o(t,e){if(t.date()<e.date())return-o(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,H),s=e-n<0,i=t.clone().add(r+(s?-1:1),H);return+(-(r+(e-n)/(s?n-i:i-n))||0)},le=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},me=function(t){var e={M:H,y:F,w:st,d:x,D:B,h:z,m:P,s:R,ms:ut,Q:St};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},Me=function(t){return t===void 0},Gt={s:Tt,z:fe,m:he,a:le,p:me,u:Me};var dt="en",et={};et[dt]=Zt;var qt="$isDayjsObject",It=function(t){return t instanceof Dt||!!(t&&t[qt])},pt=function o(t,e,r){var n;if(!t)return dt;if(typeof t=="string"){var s=t.toLowerCase();et[s]&&(n=s),e&&(et[s]=e,n=s);var i=t.split("-");if(!n&&i.length>1)return o(i[0])}else{var c=t.name;et[c]=t,n=c}return!r&&n&&(dt=n),n||!r&&dt},I=function(t,e){if(It(t))return t.clone();var r=typeof e=="object"?e:{};return r.date=t,r.args=arguments,new Dt(r)},$e=function(t,e){return I(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},p=Gt;p.l=pt;p.i=It;p.w=$e;var _e=function(t){var e=t.date,r=t.utc;if(e===null)return new Date(NaN);if(p.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var n=e.match(Vt);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)},Dt=function(){function o(e){this.$L=pt(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[qt]=!0}var t=o.prototype;return t.parse=function(r){this.$d=_e(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return p},t.isValid=function(){return this.$d.toString()!==Lt},t.isSame=function(r,n){var s=I(r);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(r,n){return I(r)<this.startOf(n)},t.isBefore=function(r,n){return this.endOf(n)<I(r)},t.$g=function(r,n,s){return p.u(r)?this[n]:this.set(s,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,n){var s=this,i=p.u(n)?!0:n,c=p.p(r),h=function(E,L){var S=p.w(s.$u?Date.UTC(s.$y,L,E):new Date(s.$y,L,E),s);return i?S:S.endOf(x)},l=function(E,L){var S=[0,0,0,0],C=[23,59,59,999];return p.w(s.toDate()[E].apply(s.toDate("s"),(i?S:C).slice(L)),s)},_=this.$W,D=this.$M,v=this.$D,Y="set"+(this.$u?"UTC":"");switch(c){case F:return i?h(1,0):h(31,11);case H:return i?h(1,D):h(0,D+1);case st:{var N=this.$locale().weekStart||0,U=(_<N?_+7:_)-N;return h(i?v-U:v+(6-U),D)}case x:case B:return l(Y+"Hours",0);case z:return l(Y+"Minutes",1);case P:return l(Y+"Seconds",2);case R:return l(Y+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,n){var s,i=p.p(r),c="set"+(this.$u?"UTC":""),h=(s={},s[x]=c+"Date",s[B]=c+"Date",s[H]=c+"Month",s[F]=c+"FullYear",s[z]=c+"Hours",s[P]=c+"Minutes",s[R]=c+"Seconds",s[ut]=c+"Milliseconds",s)[i],l=i===x?this.$D+(n-this.$W):n;if(i===H||i===F){var _=this.clone().set(B,1);_.$d[h](l),_.init(),this.$d=_.set(B,Math.min(this.$D,_.daysInMonth())).$d}else h&&this.$d[h](l);return this.init(),this},t.set=function(r,n){return this.clone().$set(r,n)},t.get=function(r){return this[p.p(r)]()},t.add=function(r,n){var s=this,i;r=Number(r);var c=p.p(n),h=function(v){var Y=I(s);return p.w(Y.date(Y.date()+Math.round(v*r)),s)};if(c===H)return this.set(H,this.$M+r);if(c===F)return this.set(F,this.$y+r);if(c===x)return h(1);if(c===st)return h(7);var l=(i={},i[P]=q,i[z]=K,i[R]=J,i)[c]||1,_=this.$d.getTime()+r*l;return p.w(_,this)},t.subtract=function(r,n){return this.add(r*-1,n)},t.format=function(r){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Lt;var i=r||zt,c=p.z(this),h=this.$H,l=this.$m,_=this.$M,D=s.weekdays,v=s.months,Y=s.meridiem,N=function(S,C,W,Z){return S&&(S[C]||S(n,i))||W[C].slice(0,Z)},U=function(S){return p.s(h%12||12,S,"0")},k=Y||function(L,S,C){var W=L<12?"AM":"PM";return C?W.toLowerCase():W},E=function(S){switch(S){case"YY":return String(n.$y).slice(-2);case"YYYY":return p.s(n.$y,4,"0");case"M":return _+1;case"MM":return p.s(_+1,2,"0");case"MMM":return N(s.monthsShort,_,v,3);case"MMMM":return N(v,_);case"D":return n.$D;case"DD":return p.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return N(s.weekdaysMin,n.$W,D,2);case"ddd":return N(s.weekdaysShort,n.$W,D,3);case"dddd":return D[n.$W];case"H":return String(h);case"HH":return p.s(h,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return k(h,l,!0);case"A":return k(h,l,!1);case"m":return String(l);case"mm":return p.s(l,2,"0");case"s":return String(n.$s);case"ss":return p.s(n.$s,2,"0");case"SSS":return p.s(n.$ms,3,"0");case"Z":return c;default:break}return null};return i.replace(yt,function(L,S){return S||E(L)||c.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,n,s){var i=this,c=p.p(n),h=I(r),l=(h.utcOffset()-this.utcOffset())*q,_=this-h,D=function(){return p.m(i,h)},v;switch(c){case F:v=D()/12;break;case H:v=D();break;case St:v=D()/3;break;case st:v=(_-l)/vt;break;case x:v=(_-l)/tt;break;case z:v=_/K;break;case P:v=_/q;break;case R:v=_/J;break;default:v=_;break}return s?v:p.a(v)},t.daysInMonth=function(){return this.endOf(H).$D},t.$locale=function(){return et[this.$L]},t.locale=function(r,n){if(!r)return this.$L;var s=this.clone(),i=pt(r,n,!0);return i&&(s.$L=i),s},t.clone=function(){return p.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},o}(),Bt=Dt.prototype;I.prototype=Bt;[["$ms",ut],["$s",R],["$m",P],["$H",z],["$W",x],["$M",H],["$y",F],["$D",B]].forEach(function(o){Bt[o[1]]=function(t){return this.$g(t,o[0],o[1])}});I.extend=function(o,t){return o.$i||(o(t,Dt,I),o.$i=!0),I};I.locale=pt;I.isDayjs=It;I.unix=function(o){return I(o*1e3)};I.en=et[dt];I.Ls=et;I.p={};var ct=I;var Ct=tt*365,At=Ct/12,ve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ft={years:Ct,months:At,days:tt,hours:K,minutes:q,seconds:J,milliseconds:1,weeks:vt},gt=function(t){return t instanceof te},Xt,V,lt=function(t,e,r){return new te(t,r,e.$l)},ht=function(t){return V.p(t)+"s"},Kt=function(t){return t<0},rt=function(t){return Kt(t)?Math.ceil(t):Math.floor(t)},Se=function(t){return Math.abs(t)},it=function(t,e){return t?Kt(t)?{negative:!0,format:""+Se(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},te=function(){function o(e,r,n){var s=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return lt(e*ft[ht(r)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(l){s.$d[ht(l)]=e[l]}),this.calMilliseconds(),this;if(typeof e=="string"){var i=e.match(ve);if(i){var c=i.slice(2),h=c.map(function(l){return l!=null?Number(l):0});return this.$d.years=h[0],this.$d.months=h[1],this.$d.weeks=h[2],this.$d.days=h[3],this.$d.hours=h[4],this.$d.minutes=h[5],this.$d.seconds=h[6],this.calMilliseconds(),this}}return this}var t=o.prototype;return t.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(r.$d[s]||0)*ft[s]},0)},t.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=rt(r/Ct),r%=Ct,this.$d.months=rt(r/At),r%=At,this.$d.days=rt(r/tt),r%=tt,this.$d.hours=rt(r/K),r%=K,this.$d.minutes=rt(r/q),r%=q,this.$d.seconds=rt(r/J),r%=J,this.$d.milliseconds=r},t.toISOString=function(){var r=it(this.$d.years,"Y"),n=it(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=it(s,"D"),c=it(this.$d.hours,"H"),h=it(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(l*1e3)/1e3);var _=it(l,"S"),D=r.negative||n.negative||i.negative||c.negative||h.negative||_.negative,v=c.format||h.format||_.format?"T":"",Y=D?"-":"",N=Y+"P"+r.format+n.format+i.format+v+c.format+h.format+_.format;return N==="P"||N==="-P"?"P0D":N},t.toJSON=function(){return this.toISOString()},t.format=function(r){var n=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:V.s(this.$d.years,2,"0"),YYYY:V.s(this.$d.years,4,"0"),M:this.$d.months,MM:V.s(this.$d.months,2,"0"),D:this.$d.days,DD:V.s(this.$d.days,2,"0"),H:this.$d.hours,HH:V.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:V.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:V.s(this.$d.seconds,2,"0"),SSS:V.s(this.$d.milliseconds,3,"0")};return n.replace(yt,function(i,c){return c||String(s[i])})},t.as=function(r){return this.$ms/ft[ht(r)]},t.get=function(r){var n=this.$ms,s=ht(r);return s==="milliseconds"?n%=1e3:s==="weeks"?n=rt(n/ft[s]):n=this.$d[s],n||0},t.add=function(r,n,s){var i;return n?i=r*ft[ht(n)]:gt(r)?i=r.$ms:i=lt(r,this).$ms,lt(this.$ms+i*(s?-1:1),this)},t.subtract=function(r,n){return this.add(r,n,!0)},t.locale=function(r){var n=this.clone();return n.$l=r,n},t.clone=function(){return lt(this.$ms,this)},t.humanize=function(r){return Xt().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},o}(),Qt=function(t,e,r){return t.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")},ee=function(o,t,e){Xt=e,V=e().$utils(),e.duration=function(s,i){var c=e.locale();return lt(s,{$l:c},i)},e.isDuration=gt;var r=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,i){return gt(s)?Qt(this,s,1):r.bind(this)(s,i)},t.prototype.subtract=function(s,i){return gt(s)?Qt(this,s,-1):n.bind(this)(s,i)}};var re=function(o,t,e){o=o||{};var r=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};e.en.relativeTime=n,r.fromToBase=function(c,h,l,_,D){for(var v=l.$locale().relativeTime||n,Y=o.thresholds||[{l:"s",r:44,d:R},{l:"m",r:89},{l:"mm",r:44,d:P},{l:"h",r:89},{l:"hh",r:21,d:z},{l:"d",r:35},{l:"dd",r:25,d:x},{l:"M",r:45},{l:"MM",r:10,d:H},{l:"y",r:17},{l:"yy",d:F}],N=Y.length,U,k,E,L=0;L<N;L+=1){var S=Y[L];S.d&&(U=_?e(c).diff(l,S.d,!0):l.diff(c,S.d,!0));var C=(o.rounding||Math.round)(Math.abs(U));if(E=U>0,C<=S.r||!S.r){C<=1&&L>0&&(S=Y[L-1]);var W=v[S.l];D&&(C=D(""+C)),typeof W=="string"?k=W.replace("%d",C):k=W(C,h,S.l,E);break}}if(h)return k;var Z=E?v.future:v.past;return typeof Z=="function"?Z(k):Z.replace("%s",k)};function s(c,h,l,_){return r.fromToBase(c,h,l,_)}r.to=function(c,h){return s(c,h,this,!0)},r.from=function(c,h){return s(c,h,this)};var i=function(h){return h.$u?e.utc():e()};r.toNow=function(c){return this.to(i(this),c)},r.fromNow=function(c){return this.from(i(this),c)}};var ae=Yt(ne()),oe=Yt(se()),ue=Yt(ie()),de={da:ae.default,de:oe.default,fr:ue.default};var ye=new Wt("Dayjs"),ke={provide:ye,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return ct.extend(re),ct.extend(ee),ct.locale(de[t]),ct}};export{ye as a,ke as b};
|
|
1
|
+
import{T as Wt}from"./chunk-ZSSQBIRK.js";import{d as _t,e as Yt}from"./chunk-C6Q5SG76.js";var Ot=_t((Nt,Ht)=>{"use strict";(function(o,t){typeof Nt=="object"&&typeof Ht<"u"?Ht.exports=t():typeof define=="function"&&define.amd?define(t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=t()})(Nt,function(){"use strict";var o=1e3,t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",c="day",h="week",l="month",_="quarter",D="year",v="date",Y="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var d=["th","st","nd","rd"],a=m%100;return"["+m+(d[(a-20)%10]||d[a]||d[0])+"]"}},E=function(m,d,a){var f=String(m);return!f||f.length>=d?m:""+Array(d+1-f.length).join(a)+m},L={s:E,z:function(m){var d=-m.utcOffset(),a=Math.abs(d),f=Math.floor(a/60),u=a%60;return(d<=0?"+":"-")+E(f,2,"0")+":"+E(u,2,"0")},m:function m(d,a){if(d.date()<a.date())return-m(a,d);var f=12*(a.year()-d.year())+(a.month()-d.month()),u=d.clone().add(f,l),M=a-u<0,$=d.clone().add(f+(M?-1:1),l);return+(-(f+(a-u)/(M?u-$:$-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:l,y:D,w:h,d:c,D:v,h:i,m:s,s:n,ms:r,Q:_}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},S="en",C={};C[S]=k;var W="$isDayjsObject",Z=function(m){return m instanceof Mt||!(!m||!m[W])},mt=function m(d,a,f){var u;if(!d)return S;if(typeof d=="string"){var M=d.toLowerCase();C[M]&&(u=M),a&&(C[M]=a,u=M);var $=d.split("-");if(!u&&$.length>1)return m($[0])}else{var g=d.name;C[g]=d,u=g}return!f&&u&&(S=u),u||!f&&S},w=function(m,d){if(Z(m))return m.clone();var a=typeof d=="object"?d:{};return a.date=m,a.args=arguments,new Mt(a)},y=L;y.l=mt,y.i=Z,y.w=function(m,d){return w(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var Mt=function(){function m(a){this.$L=mt(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[W]=!0}var d=m.prototype;return d.parse=function(a){this.$d=function(f){var u=f.date,M=f.utc;if(u===null)return new Date(NaN);if(y.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var $=u.match(N);if($){var g=$[2]-1||0,O=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(u)}(a),this.init()},d.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return this.$d.toString()!==Y},d.isSame=function(a,f){var u=w(a);return this.startOf(f)<=u&&u<=this.endOf(f)},d.isAfter=function(a,f){return w(a)<this.startOf(f)},d.isBefore=function(a,f){return this.endOf(f)<w(a)},d.$g=function(a,f,u){return y.u(a)?this[f]:this.set(u,a)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(a,f){var u=this,M=!!y.u(f)||f,$=y.p(a),g=function(X,b){var G=y.w(u.$u?Date.UTC(u.$y,b,X):new Date(u.$y,b,X),u);return M?G:G.endOf(c)},O=function(X,b){return y.w(u.toDate()[X].apply(u.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(b)),u)},T=this.$W,A=this.$M,j=this.$D,nt="set"+(this.$u?"UTC":"");switch($){case D:return M?g(1,0):g(31,11);case l:return M?g(1,A):g(0,A+1);case h:var Q=this.$locale().weekStart||0,at=(T<Q?T+7:T)-Q;return g(M?j-at:j+(6-at),A);case c:case v:return O(nt+"Hours",0);case i:return O(nt+"Minutes",1);case s:return O(nt+"Seconds",2);case n:return O(nt+"Milliseconds",3);default:return this.clone()}},d.endOf=function(a){return this.startOf(a,!1)},d.$set=function(a,f){var u,M=y.p(a),$="set"+(this.$u?"UTC":""),g=(u={},u[c]=$+"Date",u[v]=$+"Date",u[l]=$+"Month",u[D]=$+"FullYear",u[i]=$+"Hours",u[s]=$+"Minutes",u[n]=$+"Seconds",u[r]=$+"Milliseconds",u)[M],O=M===c?this.$D+(f-this.$W):f;if(M===l||M===D){var T=this.clone().set(v,1);T.$d[g](O),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](O);return this.init(),this},d.set=function(a,f){return this.clone().$set(a,f)},d.get=function(a){return this[y.p(a)]()},d.add=function(a,f){var u,M=this;a=Number(a);var $=y.p(f),g=function(A){var j=w(M);return y.w(j.date(j.date()+Math.round(A*a)),M)};if($===l)return this.set(l,this.$M+a);if($===D)return this.set(D,this.$y+a);if($===c)return g(1);if($===h)return g(7);var O=(u={},u[s]=t,u[i]=e,u[n]=o,u)[$]||1,T=this.$d.getTime()+a*O;return y.w(T,this)},d.subtract=function(a,f){return this.add(-1*a,f)},d.format=function(a){var f=this,u=this.$locale();if(!this.isValid())return u.invalidDate||Y;var M=a||"YYYY-MM-DDTHH:mm:ssZ",$=y.z(this),g=this.$H,O=this.$m,T=this.$M,A=u.weekdays,j=u.months,nt=u.meridiem,Q=function(b,G,ot,$t){return b&&(b[G]||b(f,M))||ot[G].slice(0,$t)},at=function(b){return y.s(g%12||12,b,"0")},X=nt||function(b,G,ot){var $t=b<12?"AM":"PM";return ot?$t.toLowerCase():$t};return M.replace(U,function(b,G){return G||function(ot){switch(ot){case"YY":return String(f.$y).slice(-2);case"YYYY":return y.s(f.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return Q(u.monthsShort,T,j,3);case"MMMM":return Q(j,T);case"D":return f.$D;case"DD":return y.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return Q(u.weekdaysMin,f.$W,A,2);case"ddd":return Q(u.weekdaysShort,f.$W,A,3);case"dddd":return A[f.$W];case"H":return String(g);case"HH":return y.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,O,!0);case"A":return X(g,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(f.$s);case"ss":return y.s(f.$s,2,"0");case"SSS":return y.s(f.$ms,3,"0");case"Z":return $}return null}(b)||$.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(a,f,u){var M,$=this,g=y.p(f),O=w(a),T=(O.utcOffset()-this.utcOffset())*t,A=this-O,j=function(){return y.m($,O)};switch(g){case D:M=j()/12;break;case l:M=j();break;case _:M=j()/3;break;case h:M=(A-T)/6048e5;break;case c:M=(A-T)/864e5;break;case i:M=A/e;break;case s:M=A/t;break;case n:M=A/o;break;default:M=A}return u?M:y.a(M)},d.daysInMonth=function(){return this.endOf(l).$D},d.$locale=function(){return C[this.$L]},d.locale=function(a,f){if(!a)return this.$L;var u=this.clone(),M=mt(a,f,!0);return M&&(u.$L=M),u},d.clone=function(){return y.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},m}(),Ut=Mt.prototype;return w.prototype=Ut,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",c],["$M",l],["$y",D],["$D",v]].forEach(function(m){Ut[m[1]]=function(d){return this.$g(d,m[0],m[1])}}),w.extend=function(m,d){return m.$i||(m(d,Mt,w),m.$i=!0),w},w.locale=mt,w.isDayjs=Z,w.unix=function(m){return w(1e3*m)},w.en=C[S],w.Ls=C,w.p={},w})});var ne=_t((Et,bt)=>{"use strict";(function(o,t){typeof Et=="object"&&typeof bt<"u"?bt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_da=t(o.dayjs)})(Et,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(n){return n+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};return e.default.locale(r,null,!0),r})});var se=_t((kt,jt)=>{"use strict";(function(o,t){typeof kt=="object"&&typeof jt<"u"?jt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_de=t(o.dayjs)})(kt,function(o){"use strict";function t(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var e=t(o),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(i,c,h){var l=r[h];return Array.isArray(l)&&(l=l[c?0:1]),l.replace("%d",i)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(i){return i+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return e.default.locale(s,null,!0),s})});var ie=_t((xt,Ft)=>{"use strict";(function(o,t){typeof xt=="object"&&typeof Ft<"u"?Ft.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_fr=t(o.dayjs)})(xt,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(n){return""+n+(n===1?"er":"")}};return e.default.locale(r,null,!0),r})});var Jt=60,Rt=Jt*60,Pt=Rt*24,ce=Pt*7,J=1e3,q=Jt*J,K=Rt*J,tt=Pt*J,vt=ce*J,ut="millisecond",R="second",P="minute",z="hour",x="day",st="week",H="month",St="quarter",F="year",B="date",zt="YYYY-MM-DDTHH:mm:ssZ",Lt="Invalid Date",Vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var Zt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var Tt=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},fe=function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+Tt(n,2,"0")+":"+Tt(s,2,"0")},he=function o(t,e){if(t.date()<e.date())return-o(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,H),s=e-n<0,i=t.clone().add(r+(s?-1:1),H);return+(-(r+(e-n)/(s?n-i:i-n))||0)},le=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},me=function(t){var e={M:H,y:F,w:st,d:x,D:B,h:z,m:P,s:R,ms:ut,Q:St};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},Me=function(t){return t===void 0},Gt={s:Tt,z:fe,m:he,a:le,p:me,u:Me};var dt="en",et={};et[dt]=Zt;var qt="$isDayjsObject",It=function(t){return t instanceof Dt||!!(t&&t[qt])},pt=function o(t,e,r){var n;if(!t)return dt;if(typeof t=="string"){var s=t.toLowerCase();et[s]&&(n=s),e&&(et[s]=e,n=s);var i=t.split("-");if(!n&&i.length>1)return o(i[0])}else{var c=t.name;et[c]=t,n=c}return!r&&n&&(dt=n),n||!r&&dt},I=function(t,e){if(It(t))return t.clone();var r=typeof e=="object"?e:{};return r.date=t,r.args=arguments,new Dt(r)},$e=function(t,e){return I(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},p=Gt;p.l=pt;p.i=It;p.w=$e;var _e=function(t){var e=t.date,r=t.utc;if(e===null)return new Date(NaN);if(p.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var n=e.match(Vt);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)},Dt=function(){function o(e){this.$L=pt(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[qt]=!0}var t=o.prototype;return t.parse=function(r){this.$d=_e(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return p},t.isValid=function(){return this.$d.toString()!==Lt},t.isSame=function(r,n){var s=I(r);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(r,n){return I(r)<this.startOf(n)},t.isBefore=function(r,n){return this.endOf(n)<I(r)},t.$g=function(r,n,s){return p.u(r)?this[n]:this.set(s,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,n){var s=this,i=p.u(n)?!0:n,c=p.p(r),h=function(E,L){var S=p.w(s.$u?Date.UTC(s.$y,L,E):new Date(s.$y,L,E),s);return i?S:S.endOf(x)},l=function(E,L){var S=[0,0,0,0],C=[23,59,59,999];return p.w(s.toDate()[E].apply(s.toDate("s"),(i?S:C).slice(L)),s)},_=this.$W,D=this.$M,v=this.$D,Y="set"+(this.$u?"UTC":"");switch(c){case F:return i?h(1,0):h(31,11);case H:return i?h(1,D):h(0,D+1);case st:{var N=this.$locale().weekStart||0,U=(_<N?_+7:_)-N;return h(i?v-U:v+(6-U),D)}case x:case B:return l(Y+"Hours",0);case z:return l(Y+"Minutes",1);case P:return l(Y+"Seconds",2);case R:return l(Y+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,n){var s,i=p.p(r),c="set"+(this.$u?"UTC":""),h=(s={},s[x]=c+"Date",s[B]=c+"Date",s[H]=c+"Month",s[F]=c+"FullYear",s[z]=c+"Hours",s[P]=c+"Minutes",s[R]=c+"Seconds",s[ut]=c+"Milliseconds",s)[i],l=i===x?this.$D+(n-this.$W):n;if(i===H||i===F){var _=this.clone().set(B,1);_.$d[h](l),_.init(),this.$d=_.set(B,Math.min(this.$D,_.daysInMonth())).$d}else h&&this.$d[h](l);return this.init(),this},t.set=function(r,n){return this.clone().$set(r,n)},t.get=function(r){return this[p.p(r)]()},t.add=function(r,n){var s=this,i;r=Number(r);var c=p.p(n),h=function(v){var Y=I(s);return p.w(Y.date(Y.date()+Math.round(v*r)),s)};if(c===H)return this.set(H,this.$M+r);if(c===F)return this.set(F,this.$y+r);if(c===x)return h(1);if(c===st)return h(7);var l=(i={},i[P]=q,i[z]=K,i[R]=J,i)[c]||1,_=this.$d.getTime()+r*l;return p.w(_,this)},t.subtract=function(r,n){return this.add(r*-1,n)},t.format=function(r){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Lt;var i=r||zt,c=p.z(this),h=this.$H,l=this.$m,_=this.$M,D=s.weekdays,v=s.months,Y=s.meridiem,N=function(S,C,W,Z){return S&&(S[C]||S(n,i))||W[C].slice(0,Z)},U=function(S){return p.s(h%12||12,S,"0")},k=Y||function(L,S,C){var W=L<12?"AM":"PM";return C?W.toLowerCase():W},E=function(S){switch(S){case"YY":return String(n.$y).slice(-2);case"YYYY":return p.s(n.$y,4,"0");case"M":return _+1;case"MM":return p.s(_+1,2,"0");case"MMM":return N(s.monthsShort,_,v,3);case"MMMM":return N(v,_);case"D":return n.$D;case"DD":return p.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return N(s.weekdaysMin,n.$W,D,2);case"ddd":return N(s.weekdaysShort,n.$W,D,3);case"dddd":return D[n.$W];case"H":return String(h);case"HH":return p.s(h,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return k(h,l,!0);case"A":return k(h,l,!1);case"m":return String(l);case"mm":return p.s(l,2,"0");case"s":return String(n.$s);case"ss":return p.s(n.$s,2,"0");case"SSS":return p.s(n.$ms,3,"0");case"Z":return c;default:break}return null};return i.replace(yt,function(L,S){return S||E(L)||c.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,n,s){var i=this,c=p.p(n),h=I(r),l=(h.utcOffset()-this.utcOffset())*q,_=this-h,D=function(){return p.m(i,h)},v;switch(c){case F:v=D()/12;break;case H:v=D();break;case St:v=D()/3;break;case st:v=(_-l)/vt;break;case x:v=(_-l)/tt;break;case z:v=_/K;break;case P:v=_/q;break;case R:v=_/J;break;default:v=_;break}return s?v:p.a(v)},t.daysInMonth=function(){return this.endOf(H).$D},t.$locale=function(){return et[this.$L]},t.locale=function(r,n){if(!r)return this.$L;var s=this.clone(),i=pt(r,n,!0);return i&&(s.$L=i),s},t.clone=function(){return p.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},o}(),Bt=Dt.prototype;I.prototype=Bt;[["$ms",ut],["$s",R],["$m",P],["$H",z],["$W",x],["$M",H],["$y",F],["$D",B]].forEach(function(o){Bt[o[1]]=function(t){return this.$g(t,o[0],o[1])}});I.extend=function(o,t){return o.$i||(o(t,Dt,I),o.$i=!0),I};I.locale=pt;I.isDayjs=It;I.unix=function(o){return I(o*1e3)};I.en=et[dt];I.Ls=et;I.p={};var ct=I;var Ct=tt*365,At=Ct/12,ve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ft={years:Ct,months:At,days:tt,hours:K,minutes:q,seconds:J,milliseconds:1,weeks:vt},gt=function(t){return t instanceof te},Xt,V,lt=function(t,e,r){return new te(t,r,e.$l)},ht=function(t){return V.p(t)+"s"},Kt=function(t){return t<0},rt=function(t){return Kt(t)?Math.ceil(t):Math.floor(t)},Se=function(t){return Math.abs(t)},it=function(t,e){return t?Kt(t)?{negative:!0,format:""+Se(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},te=function(){function o(e,r,n){var s=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return lt(e*ft[ht(r)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(l){s.$d[ht(l)]=e[l]}),this.calMilliseconds(),this;if(typeof e=="string"){var i=e.match(ve);if(i){var c=i.slice(2),h=c.map(function(l){return l!=null?Number(l):0});return this.$d.years=h[0],this.$d.months=h[1],this.$d.weeks=h[2],this.$d.days=h[3],this.$d.hours=h[4],this.$d.minutes=h[5],this.$d.seconds=h[6],this.calMilliseconds(),this}}return this}var t=o.prototype;return t.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(r.$d[s]||0)*ft[s]},0)},t.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=rt(r/Ct),r%=Ct,this.$d.months=rt(r/At),r%=At,this.$d.days=rt(r/tt),r%=tt,this.$d.hours=rt(r/K),r%=K,this.$d.minutes=rt(r/q),r%=q,this.$d.seconds=rt(r/J),r%=J,this.$d.milliseconds=r},t.toISOString=function(){var r=it(this.$d.years,"Y"),n=it(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=it(s,"D"),c=it(this.$d.hours,"H"),h=it(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(l*1e3)/1e3);var _=it(l,"S"),D=r.negative||n.negative||i.negative||c.negative||h.negative||_.negative,v=c.format||h.format||_.format?"T":"",Y=D?"-":"",N=Y+"P"+r.format+n.format+i.format+v+c.format+h.format+_.format;return N==="P"||N==="-P"?"P0D":N},t.toJSON=function(){return this.toISOString()},t.format=function(r){var n=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:V.s(this.$d.years,2,"0"),YYYY:V.s(this.$d.years,4,"0"),M:this.$d.months,MM:V.s(this.$d.months,2,"0"),D:this.$d.days,DD:V.s(this.$d.days,2,"0"),H:this.$d.hours,HH:V.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:V.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:V.s(this.$d.seconds,2,"0"),SSS:V.s(this.$d.milliseconds,3,"0")};return n.replace(yt,function(i,c){return c||String(s[i])})},t.as=function(r){return this.$ms/ft[ht(r)]},t.get=function(r){var n=this.$ms,s=ht(r);return s==="milliseconds"?n%=1e3:s==="weeks"?n=rt(n/ft[s]):n=this.$d[s],n||0},t.add=function(r,n,s){var i;return n?i=r*ft[ht(n)]:gt(r)?i=r.$ms:i=lt(r,this).$ms,lt(this.$ms+i*(s?-1:1),this)},t.subtract=function(r,n){return this.add(r,n,!0)},t.locale=function(r){var n=this.clone();return n.$l=r,n},t.clone=function(){return lt(this.$ms,this)},t.humanize=function(r){return Xt().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},o}(),Qt=function(t,e,r){return t.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")},ee=function(o,t,e){Xt=e,V=e().$utils(),e.duration=function(s,i){var c=e.locale();return lt(s,{$l:c},i)},e.isDuration=gt;var r=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,i){return gt(s)?Qt(this,s,1):r.bind(this)(s,i)},t.prototype.subtract=function(s,i){return gt(s)?Qt(this,s,-1):n.bind(this)(s,i)}};var re=function(o,t,e){o=o||{};var r=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};e.en.relativeTime=n,r.fromToBase=function(c,h,l,_,D){for(var v=l.$locale().relativeTime||n,Y=o.thresholds||[{l:"s",r:44,d:R},{l:"m",r:89},{l:"mm",r:44,d:P},{l:"h",r:89},{l:"hh",r:21,d:z},{l:"d",r:35},{l:"dd",r:25,d:x},{l:"M",r:45},{l:"MM",r:10,d:H},{l:"y",r:17},{l:"yy",d:F}],N=Y.length,U,k,E,L=0;L<N;L+=1){var S=Y[L];S.d&&(U=_?e(c).diff(l,S.d,!0):l.diff(c,S.d,!0));var C=(o.rounding||Math.round)(Math.abs(U));if(E=U>0,C<=S.r||!S.r){C<=1&&L>0&&(S=Y[L-1]);var W=v[S.l];D&&(C=D(""+C)),typeof W=="string"?k=W.replace("%d",C):k=W(C,h,S.l,E);break}}if(h)return k;var Z=E?v.future:v.past;return typeof Z=="function"?Z(k):Z.replace("%s",k)};function s(c,h,l,_){return r.fromToBase(c,h,l,_)}r.to=function(c,h){return s(c,h,this,!0)},r.from=function(c,h){return s(c,h,this)};var i=function(h){return h.$u?e.utc():e()};r.toNow=function(c){return this.to(i(this),c)},r.fromNow=function(c){return this.from(i(this),c)}};var ae=Yt(ne()),oe=Yt(se()),ue=Yt(ie()),de={da:ae.default,de:oe.default,fr:ue.default};var ye=new Wt("Dayjs"),ke={provide:ye,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return ct.extend(re),ct.extend(ee),ct.locale(de[t]),ct}};export{ye as a,ke as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-AUVMOLMG.js";import{b as N}from"./chunk-UIOTKB6J.js";import{B as o,C as h,Jc as u,M as d,Q as l,W as r,k as c,sa as s,u as f,x as p}from"./chunk-ZSSQBIRK.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as A}from"./chunk-ODIN2IGP.js";import{b as S}from"./chunk-UIOTKB6J.js";import{c as M}from"./chunk-4RXMJUN5.js";import{o as P}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import{Ab as r,Bb as _,C as p,Nb as C,Pa as c,W as o,cb as g,ec as u,fc as E,hb as d,o as l,sa as m,vb as f,zb as i}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as pe}from"./chunk-YOP6HOXH.js";import{q as ue}from"./chunk-XKAASYKO.js";import{b as de}from"./chunk-PPRHD3ZV.js";import{a as he,f as _e,l as fe,m as ge,o as me,x as Ce}from"./chunk-6KER52JR.js";import{ia as ce}from"./chunk-7IRVNC4S.js";import{Ab as ee,Bb as u,Cb as h,Db as te,E as V,Gb as X,Hb as I,Lc as A,Nc as R,Pb as W,Qb as ne,Ra as g,Rb as ie,Tb as k,Ub as p,Vb as re,Wb as L,Y as H,Ya as G,da as N,dc as Q,ea as y,eb as J,ec as oe,fc as K,gc as S,ic as se,jb as x,pa as j,qa as E,sb as q,tb as Y,tc as $,ua as M,ub as T,uc as le,v as U,xb as O,zb as Z,zc as ae}from"./chunk-2M52SFS6.js";import{a as D,b as B}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=s=>({children:s,level:0}),Ee=s=>({$implicit:s}),Oe=(s,t)=>({children:s,level:t}),Se=(s,t)=>t.id;function we(s,t){if(s&1){let e=I();u(0,"spk-button-group")(1,"button",13),k("click",function(){N(e);let r=p();return y(r.pathDiscoveryMethod.set("browse"))}),W(2,4),h(),u(3,"button",13),k("click",function(){N(e);let r=p();return y(r.pathDiscoveryMethod.set("path"))}),W(4,5),h()()}if(s&2){let e=p();g(),T("active",e.pathDiscoveryMethod()==="browse"),g(2),T("active",e.pathDiscoveryMethod()==="path")}}function Fe(s,t){s&1&&te(0,"spk-progress-bar",9)}function Ne(s,t){s&1&&(u(0,"spk-icon",18),S(1,"caret-down"),h(),u(2,"spk-icon",16),S(3,"folder-open"),h())}function ye(s,t){s&1&&(u(0,"spk-icon"),S(1,"file"),h())}function ke(s,t){s&1&&(u(0,"spk-icon",18),S(1,"caret-right"),h(),u(2,"spk-icon",16),S(3,"folder"),h())}function Re(s,t){if(s&1&&x(0,Ne,4,0)(1,ye,2,0,"spk-icon")(2,ke,4,0),s&2){let e=p(2).$implicit;O(e.children.length?0:e.cls==="file"?1:2)}}function Ie(s,t){s&1&&(u(0,"spk-icon",16),S(1,"desktop-tower"),h())}function We(s,t){s&1&&X(0)}function Le(s,t){if(s&1&&x(0,We,1,0,"ng-container",10),s&2){let e=p(2).$implicit,n=p().$implicit;p();let r=K(7);q("ngTemplateOutlet",r)("ngTemplateOutletContext",$(5,Ee,le(2,Oe,e.children,n.level+1)))}}function $e(s,t){if(s&1){let e=I();u(0,"div",14,3),k("click",function(){N(e);let r=p().$implicit,i=p(2);return y(i.toggleNode(r.id,r))}),u(2,"div",15),x(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),h(),u(5,"div",17),k("click",function(r){N(e);let i=p().$implicit,o=p(2);return y(o.toggleSelectedNode(r,i))}),S(6),h()(),x(7,Le,1,7,"ng-container")}if(s&2){let e=p().$implicit,n=p().$implicit,r=p();T("accepted",e.accepted===!0)("active",e.evalState===r.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0),g(2),T("file",e.cls==="file"),g(),O(e.id!=="/"?3:4),g(3),se(" ",e.text," "),g(),O(e.children.length>0?7:-1)}}function Ae(s,t){if(s&1&&x(0,$e,8,17),s&2){let e=t.$implicit,n=p(2);O(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function De(s,t){if(s&1&&(u(0,"spk-list"),Z(1,Ae,1,1,null,null,Se),h()),s&2){let e=t.$implicit;Y("padding-left",e.level*.25,"rem"),g(),ee(e.children)}}function Be(s,t){s&1&&X(0)}function Ve(s,t){if(s&1){let e=I();u(0,"spk-toggle",19),k("click",function(){N(e);let r=p();return y(r._showHiddenNodes.set(!r._showHiddenNodes()))}),W(1,6),h()}if(s&2){let e=p();T("active",e._showHiddenNodes()),g(),ne(e.showFiles()?"files":"folders"),ie(1)}}var Pe=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Pe||{}),z=class s{#t=H(de);#o=H(pe);multiSelect=E(!1);disabled=E(!1);showFiles=E(!1);selectFiles=E(!1);accepts=E(null);startingPath=E(null);rootPath=E(void 0);backupSettings=E(null);pathRefreshTrigger=E(!1);showHiddenNodes=E(!1);hideShortcuts=E(!1);includes=j();excludes=j();_showHiddenNodes=M(!1);treeContainerRef=G("treeContainer");formRef=G("formRef");pathDiscoveryMethod=M("browse");isLoading=M(!1);currentPath=M("/");#e=M(null);treeSearchQuery=M("");treeNodes=M([]);filterGroups=this.#o.filterGroups();isByBackupSettings=A(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=A(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Pe;treeStructure=A(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(c=>c!==""&&c!=="/"),n=structuredClone(e);for(let c=0;c<n.length;c++){let d=n[c].slice(1);if(d.startsWith("{")&&d.endsWith("}")){let m=d.slice(1,-1),f=this.filterGroups?.FilterGroups[m];if(f&&f.length){let P=f.map(v=>`-${v}`);n.splice(c,1,...P)}}}let r=this.searchableTreeNodes(),i=new Map,o=this.rootPath(),_=this.accepts(),l=o?{id:o,resolvedpath:o,text:o,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};_&&(l.accepted=!0),i.set("/",l);for(let c of r){let a=c.id.replace(o??"",""),m=a.includes("\\")?"\\":"/",f=a.split(m).filter(Boolean),P="",v=l;for(let C of f){if(P+="/"+C,!i.has(P)){let w=c.hidden===!0&&t?0:this.#s(n,c.id,c.cls,v),b={id:c.id,isIndeterminate:this.isIndeterminate(n,c.id),evalState:w,parentPath:P,resolvedpath:c.id?.startsWith("%")?c.resolvedpath+"/":P,hidden:c.hidden,text:c.text,cls:c.cls,children:[]};_&&(b.accepted=this.matchAccepts(_,b)),i.set(P,b),v.children.push(b)}v=i.get(P)}}return[l]});#s(t,e,n,r){if(r.evalState===-1)return-2;let i=0,o=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),_=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(o.length===0)return i;for(let l=0;l<o.length;l++){let c=o[l];if(e?.startsWith(c)){i=1;break}}if(_.length===0)return i;for(let l=0;l<_.length;l++){let c=_[l],a=c.slice(1),d=c.startsWith("-")?"exclude":"include",m=e.includes("\\"),f=m?"\\":"/";if((m?a.slice(2):a).startsWith(f)&&a.endsWith(f)){if(n!=="folder")continue;if(e===a){i=d==="include"?1:-1;break}}if(a.startsWith("*")&&a.endsWith(`*${f}`)){if(n!=="folder")continue;let C=a.slice(1,-2);if(C==="")break;if(e?.includes(C+f)){i=d==="include"?1:-1;break}}if(a.startsWith("[.*")&&a.endsWith(`[^\\${f}]*]`)){if(n!=="file")continue;let C=a.slice(3,-7);if(new RegExp(C).test(e)){i=d==="include"?1:-1;break}}if(a.startsWith("[")&&a.endsWith("]")){let C=a.slice(1,-1),w=this.translateCSharpRegex(C);if(new RegExp(`${w}`).test(e)){i=d==="include"?1:-1;break}}if(a.startsWith("*.")){if(n!=="file"||a.replace("*.","").length===0)continue;if(this.#n(e,a,!0)){i=d==="include"?1:-1;break}}if(a==="")continue;if(a===e){i=d==="include"?1:-1;break}if(this.#n(e,a,!0)){i=d==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(r,i,o)=>`(${o})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let r=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${r}${n?"$":""}`).test(t)}showHiddenNodesEffect=R(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=R(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let r="."+e.id.slice(e.id.indexOf("."));return r?n.some(i=>r.endsWith(i)):!1}currentPathEffect=R(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=R(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#p(t)):this.#r(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let r=this.currentPath().split("\0").filter(o=>o!==""&&o!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?r.includes(e.id)?this.currentPath.set(r.filter(o=>o!==e.id).join("\0")):r.some(o=>o.startsWith(i))?this.currentPath.set(r.filter(o=>o!==i).join("\0")):this.currentPath.set([...r,i].join("\0")):r.includes(e.id)?this.currentPath.set(r.filter(o=>o!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(r=>!r.id?.startsWith(e.id)||r.id===e.id)):this.#r(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),n=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),r=n.map(o=>{let _=o.indexOf(":")===1;return o.split(_?"\\":"/").filter(l=>l.includes(".")?!1:l)}),i=[this.rootPath()??"/"];r.forEach(o=>{o.forEach((_,l)=>{let c=o[0].endsWith(":"),a=o.slice(0,l+1).join(c?"\\":"/"),d=a;d.indexOf(":")===-1&&!d.startsWith("%")&&(d="/"+a),i.includes(d)||i.push(d)})}),this.isLoading.set(!0),U([...i.map(o=>this.#i(o))]).pipe(V(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(_=>{let l=o.flatMap(a=>a.map(d=>{let m=d.id,f=m&&m.split("/").filter(Boolean).slice(0,-1).join("/"),v="/"+(m&&m.split("/").filter(Boolean).join("/")),C=n.findIndex(F=>this.multiSelect()?v.startsWith(F):v===F)>-1,w=n.findIndex(F=>F===m)>-1,b=e.findIndex(F=>F===v)>-1;return B(D({},d),{parentPath:f.startsWith("%")?f:"/"+f,isSelected:C&&!b||w})})),c=[...new Map([..._,...l].map(a=>[a.resolvedpath??a.id,a])).values()];return this.#l(),c})}})}#r(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(V(()=>this.isLoading.set(!1))).subscribe({next:n=>{let r=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(o=>o!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")||i.Path.endsWith("\\")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let o=r.map(l=>{let c=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")||l.id.endsWith("\\")?"folder":"file";return B(D({},l),{cls:c,parentPath:e})}),_=[...new Map([...i,...o].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?_.filter(l=>!l.id.startsWith("%")):_})}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(Q(n.treeContainerRef,ve,5),Q(n.formRef,Te,5)),e&2&&oe(2)},hostVars:2,hostBindings:function(e,n){e&2&&T("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(re(xe),x(0,we,5,4,"spk-button-group"),u(1,"div",7),L(2,0,["ngProjectAs","label",5,["label"]]),u(3,"div",8,0),x(5,Fe,1,0,"spk-progress-bar",9)(6,De,3,2,"ng-template",null,1,ae)(8,Be,1,0,"ng-container",10),h(),x(9,Ve,2,3,"spk-toggle",11),h(),u(10,"div",12,2)(12,"spk-form-field"),L(13,1,["ngProjectAs","label",5,["label"]]),L(14,2,["ngProjectAs","input",5,["input"]]),h()()),e&2){let r=K(7);O(n.multiSelect()?-1:0),g(),T("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),T("visualize-accepted",n.accepts()),g(2),O(n.isLoading()?5:-1),g(3),q("ngTemplateOutlet",r)("ngTemplateOutletContext",$(13,Ee,$(11,Me,n.treeStructure()))),g(),O(n.accepts()?-1:9),g(),T("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[_e,Ce,he,fe,ge,me,ce,ue],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-level-20)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{z as a};
|
|
1
|
+
import{a as pe}from"./chunk-KDCTRSPO.js";import{r as ue}from"./chunk-5OX72VKG.js";import{b as de}from"./chunk-UIOTKB6J.js";import{a as he,f as _e,l as fe,m as ge,o as me,w as Ce}from"./chunk-CDH4KG7H.js";import{ia as ce}from"./chunk-WYTHNCNI.js";import{Ab as h,Bb as te,C as V,Eb as X,Fb as I,Jc as A,Lc as R,Nb as W,Ob as ne,Pa as g,Pb as ie,Rb as k,Sb as p,Tb as oe,Ub as L,W as H,Wa as G,ba as N,bc as Q,ca as y,cb as J,cc as re,dc as K,ec as S,gc as se,hb as x,na as j,oa as E,qb as q,rb as Y,rc as $,sa as M,sb as T,sc as le,u as U,vb as O,xb as Z,xc as ae,yb as ee,zb as u}from"./chunk-ZSSQBIRK.js";import{a as D,b as B}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=s=>({children:s,level:0}),Ee=s=>({$implicit:s}),Oe=(s,t)=>({children:s,level:t}),Se=(s,t)=>t.id;function we(s,t){if(s&1){let e=I();u(0,"spk-button-group")(1,"button",13),k("click",function(){N(e);let o=p();return y(o.pathDiscoveryMethod.set("browse"))}),W(2,4),h(),u(3,"button",13),k("click",function(){N(e);let o=p();return y(o.pathDiscoveryMethod.set("path"))}),W(4,5),h()()}if(s&2){let e=p();g(),T("active",e.pathDiscoveryMethod()==="browse"),g(2),T("active",e.pathDiscoveryMethod()==="path")}}function Fe(s,t){s&1&&te(0,"spk-progress-bar",9)}function Ne(s,t){s&1&&(u(0,"spk-icon",18),S(1,"caret-down"),h(),u(2,"spk-icon",16),S(3,"folder-open"),h())}function ye(s,t){s&1&&(u(0,"spk-icon"),S(1,"file"),h())}function ke(s,t){s&1&&(u(0,"spk-icon",18),S(1,"caret-right"),h(),u(2,"spk-icon",16),S(3,"folder"),h())}function Re(s,t){if(s&1&&x(0,Ne,4,0)(1,ye,2,0,"spk-icon")(2,ke,4,0),s&2){let e=p(2).$implicit;O(e.children.length?0:e.cls==="file"?1:2)}}function Ie(s,t){s&1&&(u(0,"spk-icon",16),S(1,"desktop-tower"),h())}function We(s,t){s&1&&X(0)}function Le(s,t){if(s&1&&x(0,We,1,0,"ng-container",10),s&2){let e=p(2).$implicit,n=p().$implicit;p();let o=K(7);q("ngTemplateOutlet",o)("ngTemplateOutletContext",$(5,Ee,le(2,Oe,e.children,n.level+1)))}}function $e(s,t){if(s&1){let e=I();u(0,"div",14,3),k("click",function(){N(e);let o=p().$implicit,i=p(2);return y(i.toggleNode(o.id,o))}),u(2,"div",15),x(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),h(),u(5,"div",17),k("click",function(o){N(e);let i=p().$implicit,r=p(2);return y(r.toggleSelectedNode(o,i))}),S(6),h()(),x(7,Le,1,7,"ng-container")}if(s&2){let e=p().$implicit,n=p().$implicit,o=p();T("accepted",e.accepted===!0)("active",e.evalState===o.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0),g(2),T("file",e.cls==="file"),g(),O(e.id!=="/"?3:4),g(3),se(" ",e.text," "),g(),O(e.children.length>0?7:-1)}}function Ae(s,t){if(s&1&&x(0,$e,8,17),s&2){let e=t.$implicit,n=p(2);O(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function De(s,t){if(s&1&&(u(0,"spk-list"),Z(1,Ae,1,1,null,null,Se),h()),s&2){let e=t.$implicit;Y("padding-left",e.level*.25,"rem"),g(),ee(e.children)}}function Be(s,t){s&1&&X(0)}function Ve(s,t){if(s&1){let e=I();u(0,"spk-toggle",19),k("click",function(){N(e);let o=p();return y(o._showHiddenNodes.set(!o._showHiddenNodes()))}),W(1,6),h()}if(s&2){let e=p();T("active",e._showHiddenNodes()),g(),ne(e.showFiles()?"files":"folders"),ie(1)}}var Pe=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Pe||{}),z=class s{#t=H(de);#r=H(pe);multiSelect=E(!1);disabled=E(!1);showFiles=E(!1);selectFiles=E(!1);accepts=E(null);startingPath=E(null);rootPath=E(void 0);backupSettings=E(null);pathRefreshTrigger=E(!1);showHiddenNodes=E(!1);hideShortcuts=E(!1);includes=j();excludes=j();_showHiddenNodes=M(!1);treeContainerRef=G("treeContainer");formRef=G("formRef");pathDiscoveryMethod=M("browse");isLoading=M(!1);currentPath=M("/");#e=M(null);treeSearchQuery=M("");treeNodes=M([]);filterGroups=this.#r.filterGroups();isByBackupSettings=A(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=A(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Pe;treeStructure=A(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(c=>c!==""&&c!=="/"),n=structuredClone(e);for(let c=0;c<n.length;c++){let d=n[c].slice(1);if(d.startsWith("{")&&d.endsWith("}")){let m=d.slice(1,-1),f=this.filterGroups?.FilterGroups[m];if(f&&f.length){let P=f.map(v=>`-${v}`);n.splice(c,1,...P)}}}let o=this.searchableTreeNodes(),i=new Map,r=this.rootPath(),_=this.accepts(),l=r?{id:r,resolvedpath:r,text:r,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};_&&(l.accepted=!0),i.set("/",l);for(let c of o){let a=c.id.replace(r??"",""),m=a.includes("\\")?"\\":"/",f=a.split(m).filter(Boolean),P="",v=l;for(let C of f){if(P+="/"+C,!i.has(P)){let w=c.hidden===!0&&t?0:this.#s(n,c.id,c.cls,v),b={id:c.id,isIndeterminate:this.isIndeterminate(n,c.id),evalState:w,parentPath:P,resolvedpath:c.id?.startsWith("%")?c.resolvedpath+"/":P,hidden:c.hidden,text:c.text,cls:c.cls,children:[]};_&&(b.accepted=this.matchAccepts(_,b)),i.set(P,b),v.children.push(b)}v=i.get(P)}}return[l]});#s(t,e,n,o){if(o.evalState===-1)return-2;let i=0,r=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),_=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(r.length===0)return i;for(let l=0;l<r.length;l++){let c=r[l];if(e?.startsWith(c)){i=1;break}}if(_.length===0)return i;for(let l=0;l<_.length;l++){let c=_[l],a=c.slice(1),d=c.startsWith("-")?"exclude":"include",m=e.includes("\\"),f=m?"\\":"/";if((m?a.slice(2):a).startsWith(f)&&a.endsWith(f)){if(n!=="folder")continue;if(e===a){i=d==="include"?1:-1;break}}if(a.startsWith("*")&&a.endsWith(`*${f}`)){if(n!=="folder")continue;let C=a.slice(1,-2);if(C==="")break;if(e?.includes(C+f)){i=d==="include"?1:-1;break}}if(a.startsWith("[.*")&&a.endsWith(`[^\\${f}]*]`)){if(n!=="file")continue;let C=a.slice(3,-7);if(new RegExp(C).test(e)){i=d==="include"?1:-1;break}}if(a.startsWith("[")&&a.endsWith("]")){let C=a.slice(1,-1),w=this.translateCSharpRegex(C);if(new RegExp(`${w}`).test(e)){i=d==="include"?1:-1;break}}if(a.startsWith("*.")){if(n!=="file"||a.replace("*.","").length===0)continue;if(this.#n(e,a,!0)){i=d==="include"?1:-1;break}}if(a==="")continue;if(a===e){i=d==="include"?1:-1;break}if(this.#n(e,a,!0)){i=d==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(o,i,r)=>`(${r})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let o=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${o}${n?"$":""}`).test(t)}showHiddenNodesEffect=R(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=R(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let o="."+e.id.slice(e.id.indexOf("."));return o?n.some(i=>o.endsWith(i)):!1}currentPathEffect=R(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=R(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#p(t)):this.#o(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let o=this.currentPath().split("\0").filter(r=>r!==""&&r!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?o.includes(e.id)?this.currentPath.set(o.filter(r=>r!==e.id).join("\0")):o.some(r=>r.startsWith(i))?this.currentPath.set(o.filter(r=>r!==i).join("\0")):this.currentPath.set([...o,i].join("\0")):o.includes(e.id)?this.currentPath.set(o.filter(r=>r!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(o=>!o.id?.startsWith(e.id)||o.id===e.id)):this.#o(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(r=>r.startsWith("-")).map(r=>r.slice(1,-1)),n=t.split("\0").filter(r=>!r.startsWith("-")).filter(Boolean),o=n.map(r=>{let _=r.indexOf(":")===1;return r.split(_?"\\":"/").filter(l=>l.includes(".")?!1:l)}),i=[this.rootPath()??"/"];o.forEach(r=>{r.forEach((_,l)=>{let c=r[0].endsWith(":"),a=r.slice(0,l+1).join(c?"\\":"/"),d=a;d.indexOf(":")===-1&&!d.startsWith("%")&&(d="/"+a),i.includes(d)||i.push(d)})}),this.isLoading.set(!0),U([...i.map(r=>this.#i(r))]).pipe(V(()=>this.isLoading.set(!1))).subscribe({next:r=>{this.treeNodes.update(_=>{let l=r.flatMap(a=>a.map(d=>{let m=d.id,f=m&&m.split("/").filter(Boolean).slice(0,-1).join("/"),v="/"+(m&&m.split("/").filter(Boolean).join("/")),C=n.findIndex(F=>this.multiSelect()?v.startsWith(F):v===F)>-1,w=n.findIndex(F=>F===m)>-1,b=e.findIndex(F=>F===v)>-1;return B(D({},d),{parentPath:f.startsWith("%")?f:"/"+f,isSelected:C&&!b||w})})),c=[...new Map([..._,...l].map(a=>[a.resolvedpath??a.id,a])).values()];return this.#l(),c})}})}#o(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(V(()=>this.isLoading.set(!1))).subscribe({next:n=>{let o=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(r=>r!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")||i.Path.endsWith("\\")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let r=o.map(l=>{let c=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")||l.id.endsWith("\\")?"folder":"file";return B(D({},l),{cls:c,parentPath:e})}),_=[...new Map([...i,...r].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?_.filter(l=>!l.id.startsWith("%")):_})}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(Q(n.treeContainerRef,ve,5),Q(n.formRef,Te,5)),e&2&&re(2)},hostVars:2,hostBindings:function(e,n){e&2&&T("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(oe(xe),x(0,we,5,4,"spk-button-group"),u(1,"div",7),L(2,0,["ngProjectAs","label",5,["label"]]),u(3,"div",8,0),x(5,Fe,1,0,"spk-progress-bar",9)(6,De,3,2,"ng-template",null,1,ae)(8,Be,1,0,"ng-container",10),h(),x(9,Ve,2,3,"spk-toggle",11),h(),u(10,"div",12,2)(12,"spk-form-field"),L(13,1,["ngProjectAs","label",5,["label"]]),L(14,2,["ngProjectAs","input",5,["input"]]),h()()),e&2){let o=K(7);O(n.multiSelect()?-1:0),g(),T("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),T("visualize-accepted",n.accepts()),g(2),O(n.isLoading()?5:-1),g(3),q("ngTemplateOutlet",o)("ngTemplateOutletContext",$(13,Ee,$(11,Me,n.treeStructure()))),g(),O(n.accepts()?-1:9),g(),T("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[_e,Ce,he,fe,ge,me,ce,ue],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-level-20)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(spk-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-CKQFBLHP.js";import{Lc as r,Q as s,W as i,sa as e}from"./chunk-ZSSQBIRK.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ca as j,Ga as le,X as ae,a as k,b as se,c as ie,e as p,za as ce}from"./chunk-7IRVNC4S.js";import{Ca as X,Da as w,Ea as E,Fa as S,Ga as K,Ha as q,Ia as J,Ic as oe,Ja as Q,Ka as ee,La as te,Ma as ne,Na as g,P as y,S as f,Sa as M,Ua as re,V as L,X as c,_ as G,ma as C,na as H,va as Y,wa as N,xa as W,ya as b,za as P}from"./chunk-2M52SFS6.js";import{a as I,b as z}from"./chunk-C6Q5SG76.js";var x=class extends ie{supportsDOMEvents=!0},B=class r extends x{static makeCurrent(){se(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Se();return e==null?null:we(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ae(document.cookie,n)}},T=null;function Se(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function we(r){return new URL(r,document.baseURI).pathname}var Me=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),F=new L(""),me=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(F),c(C))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),_=class{_doc;constructor(n){this._doc=n}manager},A="ng-app-id";function de(r){for(let n of r)n.remove()}function ue(r,n){let e=n.createElement("style");return e.textContent=r,e}function Te(r,n,e,t){let o=r.head?.querySelectorAll(`style[${A}="${n}"],link[${A}="${n}"]`);if(o)for(let s of o)s.removeAttribute(A),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function $(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ge=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=j(s),Te(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ue);t?.forEach(o=>this.addUsage(o,this.external,$))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(de(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])de(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ue(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,$(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(A,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(p),c(N),c(P,8),c(b))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var ve="%COMP%",De=`_nghost-${ve}`,Re=`_ngcontent-${ve}`,Ce=!0,be=new L("",{providedIn:"root",factory:()=>Ce});function Ae(r){return Re.replace(Z,r)}function _e(r){return De.replace(Z,r)}function ye(r,n){return n.map(e=>e.replace(Z,r))}var fe=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,d,u=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.tracingService=l,this.platformIsServer=j(a),this.defaultRenderer=new D(e,i,d,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=z(I({},t),{encapsulation:w.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(t.encapsulation){case w.Emulated:s=new O(d,u,t,this.appId,l,i,a,m,h);break;case w.ShadowDom:return new V(d,u,e,t,i,a,this.nonce,m,h);default:s=new R(d,u,t,l,i,a,m,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(me),c(ge),c(N),c(be),c(p),c(b),c(C),c(P),c(X,8))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),D=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(U[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=U[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=U[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let s=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends D{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,d,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=ye(o.id,l);for(let h of l){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}let m=o.getExternalStyles?.();if(m)for(let h of m){let v=$(h,s);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,a,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=u?ye(u,l):l,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,d,u){let l=o+"-"+t.id;super(n,e,t,s,i,a,d,u,l),this.contentAttr=Ae(l),this.hostAttr=_e(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Oe=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),he=["alt","control","meta","shift"],Ie={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},He=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),he.forEach(u=>{let l=t.indexOf(u);l>-1&&(t.splice(l,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ie[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),he.forEach(i=>{if(i!==o){let a=Le[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();function St(r,n){return oe(I({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:Ue}}function Pe(){B.makeCurrent()}function ke(){return new H}function je(){return Y(document),document}var Ue=[{provide:b,useValue:ce},{provide:W,useValue:Pe,multi:!0},{provide:p,useFactory:je,deps:[]}];var xe=[{provide:G,useValue:"root"},{provide:H,useFactory:ke,deps:[]},{provide:F,useClass:Oe,multi:!0,deps:[p]},{provide:F,useClass:He,multi:!0,deps:[p]},fe,ge,me,{provide:re,useExisting:fe},{provide:le,useClass:Me,deps:[]},[]];var wt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Be=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Fe),o},providedIn:"root"})}return r})(),Fe=(()=>{class r extends Be{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):ne(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):te(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return q(e)}bypassSecurityTrustScript(e){return J(e)}bypassSecurityTrustUrl(e){return Q(e)}bypassSecurityTrustResourceUrl(e){return ee(e)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{St as a,wt as b,Be as c};
|
|
1
|
+
import{Ca as j,Ga as le,X as ae,a as k,b as se,c as ie,e as p,za as ce}from"./chunk-WYTHNCNI.js";import{Aa as X,Ba as w,Ca as E,Da as S,Ea as K,Fa as q,Ga as J,Gc as oe,Ha as Q,Ia as ee,Ja as te,Ka as ne,La as g,N as y,Q as f,Qa as M,Sa as re,T as L,V as c,Y as G,ka as C,la as H,ta as Y,ua as N,va as W,wa as b,xa as P}from"./chunk-ZSSQBIRK.js";import{a as I,b as z}from"./chunk-C6Q5SG76.js";var x=class extends ie{supportsDOMEvents=!0},B=class r extends x{static makeCurrent(){se(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Se();return e==null?null:we(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ae(document.cookie,n)}},T=null;function Se(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function we(r){return new URL(r,document.baseURI).pathname}var Me=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),F=new L(""),me=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(F),c(C))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),_=class{_doc;constructor(n){this._doc=n}manager},A="ng-app-id";function de(r){for(let n of r)n.remove()}function ue(r,n){let e=n.createElement("style");return e.textContent=r,e}function Te(r,n,e,t){let o=r.head?.querySelectorAll(`style[${A}="${n}"],link[${A}="${n}"]`);if(o)for(let s of o)s.removeAttribute(A),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function $(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ge=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=j(s),Te(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ue);t?.forEach(o=>this.addUsage(o,this.external,$))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(de(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])de(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ue(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,$(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(A,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(p),c(N),c(P,8),c(b))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var ve="%COMP%",De=`_nghost-${ve}`,Re=`_ngcontent-${ve}`,Ce=!0,be=new L("",{providedIn:"root",factory:()=>Ce});function Ae(r){return Re.replace(Z,r)}function _e(r){return De.replace(Z,r)}function ye(r,n){return n.map(e=>e.replace(Z,r))}var fe=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,d,u=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.tracingService=l,this.platformIsServer=j(a),this.defaultRenderer=new D(e,i,d,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=z(I({},t),{encapsulation:w.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(t.encapsulation){case w.Emulated:s=new O(d,u,t,this.appId,l,i,a,m,h);break;case w.ShadowDom:return new V(d,u,e,t,i,a,this.nonce,m,h);default:s=new R(d,u,t,l,i,a,m,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(me),c(ge),c(N),c(be),c(p),c(b),c(C),c(P),c(X,8))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),D=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(U[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=U[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=U[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let s=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends D{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,d,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=ye(o.id,l);for(let h of l){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}let m=o.getExternalStyles?.();if(m)for(let h of m){let v=$(h,s);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,a,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=u?ye(u,l):l,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,d,u){let l=o+"-"+t.id;super(n,e,t,s,i,a,d,u,l),this.contentAttr=Ae(l),this.hostAttr=_e(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Oe=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),he=["alt","control","meta","shift"],Ie={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},He=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),he.forEach(u=>{let l=t.indexOf(u);l>-1&&(t.splice(l,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ie[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),he.forEach(i=>{if(i!==o){let a=Le[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();function St(r,n){return oe(I({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:Ue}}function Pe(){B.makeCurrent()}function ke(){return new H}function je(){return Y(document),document}var Ue=[{provide:b,useValue:ce},{provide:W,useValue:Pe,multi:!0},{provide:p,useFactory:je,deps:[]}];var xe=[{provide:G,useValue:"root"},{provide:H,useFactory:ke,deps:[]},{provide:F,useClass:Oe,multi:!0,deps:[p]},{provide:F,useClass:He,multi:!0,deps:[p]},fe,ge,me,{provide:re,useExisting:fe},{provide:le,useClass:Me,deps:[]},[]];var wt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Be=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Fe),o},providedIn:"root"})}return r})(),Fe=(()=>{class r extends Be{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):ne(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):te(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return q(e)}bypassSecurityTrustScript(e){return J(e)}bypassSecurityTrustUrl(e){return Q(e)}bypassSecurityTrustResourceUrl(e){return ee(e)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{St as a,wt as b,Be as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-2D7EACVA.js";import{W as i,fb as s}from"./chunk-ZSSQBIRK.js";var p=class r{#t=i(o);transform(t,...e){if(!t)return"";let n=t.split(".")[0],a=parseInt(n.split(":")[0])??0,m=parseInt(n.split(":")[1])??0,u=parseInt(n.split(":")[2])??0;return this.#t.duration({hours:a,minutes:m,seconds:u}).humanize()}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=s({name:"durationFormat",type:r,pure:!0})};export{p as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as K}from"./chunk-W7Y2VKMS.js";import{a as ye}from"./chunk-3T23UBO4.js";import{a as Ve}from"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import{a as U}from"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import{a as Pe}from"./chunk-25GEPULG.js";import"./chunk-WJQN3BOF.js";import"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import"./chunk-W3VTD2H4.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,l as Fe,m as ge,n as Ne,p as Te,q as Se,s as Me}from"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{a as pe,b as _e}from"./chunk-UIOTKB6J.js";import{a as le,c as re,d as me}from"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as Ee,g as xe,k as ke,l as De,n as Oe,o as Ae,r as Ie,w as $e,x as we}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import{ia as ae}from"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as o,Bb as s,Cb as O,Db as A,Eb as J,Fb as x,Lb as I,Lc as oe,Mb as $,Nb as S,Ob as G,Pa as a,Pb as R,Qb as Q,Rb as k,Sb as m,Vb as N,W as D,Wb as Y,Xb as d,ba as M,ca as E,cb as W,dc as L,ec as p,gc as F,hb as c,pc as ee,qb as _,qc as te,rc as ne,sa as B,sb as Z,sc as ie,vb as C,wb as V,xb as v,xc as b,yb as h,zb as l}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";var ve=()=>[],he=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Le=n=>({$implicit:n});function be(n,i){n&1&&s(0,"spk-progress-bar",18)}function Be(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",47),o()),n&2){let e=i.$implicit,t=i.$index;a(),Y("id","filter-",t,""),_("formControl",e)}}function Ge(n,i){if(n&1){let e=x();I(0,14,1),l(1,"button",48,1),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.addNewOption(r))}),o(),$()}if(n&2){let e=i.$implicit;a(),G(e.name),R(0)}}function Re(n,i){n&1&&J(0)}function Ue(n,i){if(n&1&&c(0,Re,1,0,"ng-container",49),n&2){let e=i.$implicit,t=i.$index;m();let r=L(54);_("ngTemplateOutlet",r)("ngTemplateOutletContext",ne(5,Le,ie(2,he,t,e)))}}function Ke(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function ze(n,i){if(n&1&&(l(0,"app-file-tree",52)(1,"label",57),p(2),c(3,Ke,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Xe(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function qe(n,i){if(n&1&&(l(0,"app-file-tree",53)(1,"label",57),p(2),c(3,Xe,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit,r=m(2);_("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function He(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function je(n,i){n&1&&(l(0,"spk-icon",60),p(1,"link"),o())}function We(n,i){n&1&&(l(0,"spk-icon",60),p(1,"textbox"),o())}function Ze(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,He,3,1,"spk-tooltip",58),o(),s(4,"input",59),c(5,je,2,0,"spk-icon",60)(6,We,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function Je(n,i){if(n&1){let e=x();l(0,"span",64),k("click",function(){M(e);let r=m(2).$implicit,f=m(2);return E(f.oauthStartTokenCreation(r.formViewType))}),p(1,"AuthID"),o()}}function Qe(n,i){n&1&&(l(0,"spk-icon",60),p(1,"password"),o())}function Ye(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye "),o()}}function et(n,i){if(n&1){let e=x();l(0,"spk-icon",65),k("click",function(){M(e);let r=m(2).$implicit;return E(r.formView.showPassword=!r.formView.showPassword)}),p(1," eye-slash "),o()}}function tt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),o(),s(3,"input",61),c(4,Je,2,0,"span",62)(5,Qe,2,0,"spk-icon",60)(6,Ye,2,0,"spk-icon",63)(7,et,2,0,"spk-icon",63),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),_("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function nt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function it(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ot(n,i){if(n&1&&(l(0,"spk-select-new",66)(1,"label",57),p(2),c(3,nt,3,1,"spk-tooltip",58),o(),s(4,"input",59),o(),c(5,it,1,1,"ng-template",null,2,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("inlineSearch",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),d("id","destination-",r.formGroupName,"-",r.index,""),N("formControlName",r.formView.name)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"div",54)(1,"label",57),p(2),c(3,at,3,1,"spk-tooltip",58),o(),l(4,"div",67)(5,"spk-form-field"),s(6,"input",68),l(7,"spk-icon",60),p(8,"resize"),o()(),l(9,"spk-select-new",69),s(10,"input",39),o()()()),n&2){let e,t=m().$implicit,r=m(2);_("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(3),_("options",r.sizeOptions())("inlineSearch",!0)}}function rt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function mt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,rt,3,1,"spk-tooltip",58),o(),s(4,"input",70),l(5,"spk-icon",60),p(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function pt(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function _t(n,i){if(n&1&&(l(0,"spk-toggle",55)(1,"label",57),p(2),c(3,pt,3,1,"spk-tooltip",58),o(),s(4,"input",71),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&p(0),n&2){let e=i.$implicit;F(" ",e," ")}}function ct(n,i){if(n&1&&(l(0,"spk-select-new",72)(1,"label",57),p(2),c(3,st,3,1,"spk-tooltip",58),o(),s(4,"input",73),o(),c(5,dt,1,1,"ng-template",null,3,b)),n&2){let e,t=L(6),r=m().$implicit;_("options",r.formView.options)("selectMultiple",!0)("optionTemplate",t),a(),d("for","destination-",r.formGroupName,"-",r.index,""),a(),F(" ",(e=r.formView.shortDescription)!==null&&e!==void 0?e:r.formView.name," "),a(),C(r.formView.longDescription?3:-1),a(),N("formControlName",r.formView.name)}}function ut(n,i){if(n&1&&(l(0,"spk-tooltip",58)(1,"spk-icon"),p(2,"question"),o()()),n&2){let e=m(2).$implicit;_("message",e.formView.longDescription)}}function Ct(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",57),p(2),c(3,ut,3,1,"spk-tooltip",58),o(),s(4,"input",59),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),F(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ft(n,i){if(n&1){let e=x();l(0,"div",50),O(1,51),c(2,ze,5,14,"app-file-tree",52)(3,qe,5,10,"app-file-tree",53)(4,Ze,7,10,"spk-form-field")(5,tt,8,11,"spk-form-field")(6,ot,7,12)(7,lt,11,11,"div",54)(8,mt,7,9,"spk-form-field")(9,_t,5,9,"spk-toggle",55)(10,ct,7,9)(11,Ct,5,9,"spk-form-field"),A(),l(12,"button",56),k("click",function(){let r=M(e).$implicit,f=m(2);return E(f.removeFormView(r.formView,0))}),l(13,"spk-icon"),p(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),_("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Ft(n,i){if(n&1){let e=x();l(0,"form",19)(1,"spk-select-new",20)(2,"label",21),S(3,5),o(),s(4,"input",22),o(),l(5,"spk-form-field")(6,"label",23),S(7,6),o(),s(8,"textarea",24),o(),l(9,"spk-form-field")(10,"label",25),S(11,7),o(),s(12,"textarea",26),o()(),l(13,"spk-divider"),S(14,8),o(),l(15,"form",19)(16,"spk-form-field")(17,"label",27),S(18,9),o(),s(19,"input",28),o(),l(20,"spk-form-field")(21,"label",29),S(22,10),o(),s(23,"input",30),o(),l(24,"app-toggle-card",31),O(25,32),S(26,11),A(),O(27,33),v(28,Be,2,3,"spk-form-field",null,V),A(),o()(),l(30,"form",19)(31,"div",34)(32,"div",35)(33,"spk-form-field")(34,"label",36),S(35,12),o(),s(36,"input",37),o(),l(37,"spk-select-new",38),s(38,"input",39),o()(),l(39,"p"),I(40,13),s(41,"a",40),$(),o()(),l(42,"app-toggle-card",31),O(43,32),I(44,14),l(45,"spk-menu",41)(46,"button",42),s(47,"spk-icon"),o(),O(48,43),v(49,Ge,3,1,"button",44,V),A(),o(),$(),A(),v(51,Ue,1,7,"ng-container",null,V),o(),c(53,ft,15,2,"ng-template",null,0,b),l(55,"div",45)(56,"button",46),k("click",function(){M(e);let r=m();return E(r.submit())}),I(57,15),s(58,"spk-icon"),$(),o()()()}if(n&2){let e,t=m();_("formGroup",t.baseCmdForm),a(),_("options",(e=t.commandOptions())!==null&&e!==void 0?e:te(13,ve))("inlineSearch",!0),a(14),_("formGroup",t.standardFields),a(9),_("disallowToggle",!0),a(4),h(t.standardFields.controls.filters.controls),a(2),_("formGroup",t.optionsForm),a(7),_("options",t.sizeOptions())("inlineSearch",!0),a(5),_("disallowToggle",!0),a(3),_("searchable",!0),a(4),h(t.nonSelectedOptions()),a(2),h(t.selectedOptions()),a(5),Z("loader",t.isSubmitting()),a(2),G(t.baseCmdForm.value.command),R(57)}}var T=new Se,gt=["Bytes","KB","MB","GB","TB","PB"],z=class n{#e=D(K);#t=D(_e);#n=D(re);#i=D(le);#o=D(pe);#a=U(this.#i.params);commandOptions=U(this.#o.getApiV1Commandline());sizeOptions=B(gt);isSubmitting=B(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",r=i.arguments?.split(`
|
|
2
|
+
`)??[],f=this.standardFields.value,w=f.filters??[],P=[i.command,t,...r,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...w.filter(u=>u).map(u=>u.startsWith("-")?`--exclude=${u?.slice(1)}`:`--include=${u}`),...this.#e.mapFormsToSettings().map(u=>u.Name.startsWith("--")?`${u.Name}=${u.Value}`:`--${u.Name}=${u.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:P}).subscribe(u=>{u.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",u.ID])})}mapBaseCmdToForm(i){let e=i.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:i.Sources?.join(`
|
|
3
|
+
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){this.#e.addOptionToFormGroup(i)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=W({type:n,selectors:[["app-commandline"]],features:[ee([K])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let t;t=$localize`Command`;let r;r=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let w;w=$localize`Advanced options`;let P;P=$localize`Backup ID`;let u;u=$localize`Backup Name`;let X;X=$localize`Filters`;let q;q=$localize`Remote volume size`;let H;H=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#41\uFFFD"}:START_LINK:Read more${"\uFFFD/#41\uFFFD"}:CLOSE_LINK:`;let y;y=$localize` Advanced options ${"\uFFFD#45\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#46\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#48\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_MENU:`,y=Q(y);let j;return j=$localize`${"\uFFFD#58\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#58\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,r,f,w,P,u,X,q,H,y,j,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["placeholder",e,3,"options","inlineSearch"],["type","text","formControlName","unit"],["href","#",1,"spk-primary"],[3,"searchable"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],[3,"options","inlineSearch"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(e,t){e&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",16)(3,"button",17),I(4,4),s(5,"spk-icon"),$(),o()(),c(6,be,1,0,"spk-progress-bar",18)(7,Ft,59,14),o()),e&2&&(a(6),C(t.finishedLoading()?7:6))},dependencies:[Pe,ye,Ve,Me,Ce,de,fe,se,ce,ue,Fe,ge,Te,Ne,ae,me,De,Oe,xe,$e,ke,we,Ie,Ae,Ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as oe}from"./chunk-WYTHNCNI.js";import{Dc as Me,Hc as Ae,Jc as O,Kc as m,N as B,P as h,Q as ie,R as U,Rb as D,T as C,Ta as L,Ua as s,W as Ve,aa as S,db as $,ea as b,eb as l,f as _e,ga as De,gb as u,j as ve,ja as V,jb as be,o as ye,pa as H,pc as f,sa as N,sb as re,u as Ce}from"./chunk-ZSSQBIRK.js";import{a as d,b as p}from"./chunk-C6Q5SG76.js";var Pe=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(s(L),s(H))};static \u0275dir=l({type:n})}return n})(),T=(()=>{class n extends Pe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,features:[u]})}return n})(),y=new C(""),rt={provide:y,useExisting:h(()=>ot),multi:!0},ot=(()=>{class n extends T{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[f([rt]),u]})}return n})(),st={provide:y,useExisting:h(()=>ke),multi:!0};function at(){let n=oe()?oe().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var lt=new C(""),ke=(()=>{class n extends Pe{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!at())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(s(L),s(H),s(lt,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&D("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[f([st]),u]})}return n})();function _(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function Ge(n){return n!=null&&typeof n.length=="number"}var F=new C(""),w=new C(""),ut=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ee=class{static min(t){return dt(t)}static max(t){return ct(t)}static required(t){return ht(t)}static requiredTrue(t){return ft(t)}static email(t){return pt(t)}static minLength(t){return gt(t)}static maxLength(t){return mt(t)}static pattern(t){return _t(t)}static nullValidator(t){return Re(t)}static compose(t){return Le(t)}static composeAsync(t){return We(t)}};function dt(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function ct(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function ht(n){return _(n.value)?{required:!0}:null}function ft(n){return n.value===!0?null:{required:!0}}function pt(n){return _(n.value)||ut.test(n.value)?null:{email:!0}}function gt(n){return t=>_(t.value)||!Ge(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function mt(n){return t=>Ge(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function _t(n){if(!n)return Re;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(_(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Re(n){return null}function Te(n){return n!=null}function je(n){return be(n)?ve(n):n}function Be(n){let t={};return n.forEach(e=>{t=e!=null?d(d({},t),e):t}),Object.keys(t).length===0?null:t}function Ue(n,t){return t.map(e=>e(n))}function vt(n){return!n.validate}function He(n){return n.map(t=>vt(t)?t:e=>t.validate(e))}function Le(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){return Be(Ue(e,t))}}function $e(n){return n!=null?Le(He(n)):null}function We(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){let i=Ue(e,t).map(je);return Ce(i).pipe(ye(Be))}}function qe(n){return n!=null?We(He(n)):null}function Fe(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ze(n){return n._rawValidators}function Ze(n){return n._rawAsyncValidators}function se(n){return n?Array.isArray(n)?n:[n]:[]}function q(n,t){return Array.isArray(n)?n.includes(t):n===t}function we(n,t){let e=se(t);return se(n).forEach(r=>{q(e,r)||e.push(r)}),e}function Ie(n,t){return se(t).filter(e=>!q(n,e))}var z=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(t){this._rawValidators=t||[],this._composedValidatorFn=$e(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends z{name;get formDirective(){return null}get path(){return null}},g=class extends z{_parent=null;name=null;valueAccessor=null},Z=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},yt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},pn=p(d({},yt),{"[class.ng-submitted]":"isSubmitted"}),gn=(()=>{class n extends Z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(g,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[u]})}return n})(),mn=(()=>{class n extends Z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[u]})}return n})();var x="VALID",W="INVALID",M="PENDING",P="DISABLED",v=class{},X=class extends v{value;source;constructor(t,e){super(),this.value=t,this.source=e}},k=class extends v{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends v{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},A=class extends v{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends v{source;constructor(t){super(),this.source=t}},le=class extends v{source;constructor(t){super(),this.source=t}};function ce(n){return(te(n)?n.validators:n)||null}function Ct(n){return Array.isArray(n)?$e(n):n||null}function he(n,t){return(te(t)?t.asyncValidators:n)||null}function Vt(n){return Array.isArray(n)?qe(n):n||null}function te(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Xe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new B(1e3,"");if(!i[e])throw new B(1001,"")}function Ye(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new B(1002,"")})}var E=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}_status=O(()=>this.statusReactive());statusReactive=N(void 0);get valid(){return this.status===x}get invalid(){return this.status===W}get pending(){return this.status==M}get disabled(){return this.status===P}get enabled(){return this.status!==P}errors;get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}_pristine=O(()=>this.pristineReactive());pristineReactive=N(!0);get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}_touched=O(()=>this.touchedReactive());touchedReactive=N(!1);get untouched(){return!this.touched}_events=new _e;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(we(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ie(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ie(t,this._rawAsyncValidators))}hasValidator(t){return q(this._rawValidators,t)}hasAsyncValidator(t){return q(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new G(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new k(!0,i))}markAsPending(t={}){this.status=M;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new A(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(p(d({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(p(d({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new X(this.value,i)),this._events.next(new A(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(i=>{i.enable(p(d({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===M)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new X(this.value,e)),this._events.next(new A(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(p(d({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=M,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=je(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new A(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?W:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(M)?M:this._anyControlsHaveStatus(W)?W:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){te(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ct(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Vt(this._rawAsyncValidators)}},Y=class extends E{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Ye(this,!0,t),Object.keys(t).forEach(i=>{Xe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends Y{};var I=new C("",{providedIn:"root",factory:()=>j}),j="always";function ne(n,t){return[...t.path,n]}function K(n,t,e=j){fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),bt(n,t),At(n,t),Mt(n,t),Dt(n,t)}function J(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),ee(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Q(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Dt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function fe(n,t){let e=ze(n);t.validator!==null?n.setValidators(Fe(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Ze(n);t.asyncValidator!==null?n.setAsyncValidators(Fe(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();Q(t._rawValidators,r),Q(t._rawAsyncValidators,r)}function ee(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=ze(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=Ze(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return Q(t._rawValidators,i),Q(t._rawAsyncValidators,i),e}function bt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Ke(n,t)})}function Mt(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Ke(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function Ke(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function At(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Et(n,t){n==null,fe(n,t)}function Ft(n,t){return ee(n,t)}function pe(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function wt(n){return Object.getPrototypeOf(n.constructor)===T}function It(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ge(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===ke?e=o:wt(o)?i=o:r=o}),r||i||e||null}function St(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Se(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ne(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var R=class extends E{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ce(e),he(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),te(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ne(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Se(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Se(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ne(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Nt=n=>n instanceof R,Ot=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[u]})}return n})();var xt={provide:g,useExisting:h(()=>Pt)},Oe=Promise.resolve(),Pt=(()=>{class n extends g{_changeDetectorRef;callSetDisabledState;control=new R;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,i,r,o,a,it){super(),this._changeDetectorRef=a,this.callSetDisabledState=it,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){K(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Oe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Ae(i);Oe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ne(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(s(c,9),s(F,10),s(w,10),s(y,10),s(Me,8),s(I,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[f([xt]),u,S]})}return n})(),vn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),kt={provide:y,useExisting:h(()=>Gt),multi:!0},Gt=(()=>{class n extends T{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&D("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[f([kt]),u]})}return n})(),Rt={provide:y,useExisting:h(()=>jt),multi:!0};var Tt=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:!1}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),jt=(()=>{class n extends T{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=Ve(I,{optional:!0})??j;constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o}ngOnInit(){this._control=this._injector.get(g),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||n)(s(L),s(H),s(Tt),s(De))};static \u0275dir=l({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[f([Rt]),u]})}return n})(),Bt={provide:y,useExisting:h(()=>Ut),multi:!0},Ut=(()=>{class n extends T{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(a){return r.onChange(a.target.value)})("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[f([Bt]),u]})}return n})(),me=new C(""),Ht={provide:g,useExisting:h(()=>Lt)},Lt=(()=>{class n extends g{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ge(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&J(i,this,!1),K(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pe(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&J(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(s(F,10),s(w,10),s(y,10),s(me,8),s(I,8))};static \u0275dir=l({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[f([Ht]),u,S]})}return n})(),$t={provide:c,useExisting:h(()=>Je)},Je=(()=>{class n extends c{callSetDisabledState;get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=O(()=>this._submittedReactive());_submittedReactive=N(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new V;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ee(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return K(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){J(e.control||null,e,!1),St(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),It(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(J(i||null,e),Nt(r)&&(K(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Et(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Ft(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){fe(this.form,this),this._oldForm&&ee(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(s(F,10),s(w,10),s(I,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&D("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[f([$t]),u,S]})}return n})(),Wt={provide:c,useExisting:h(()=>Qe)},Qe=(()=>{class n extends Ot{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(F,10),s(w,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[f([Wt]),u]})}return n})(),qt={provide:c,useExisting:h(()=>et)},et=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(F,10),s(w,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[f([qt]),u]})}return n})();function tt(n){return!(n instanceof Qe)&&!(n instanceof Je)&&!(n instanceof et)}var zt={provide:g,useExisting:h(()=>Zt)},Zt=(()=>{class n extends g{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,o)}ngOnChanges(e){this._added||this._setUpControl(),pe(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(s(c,13),s(F,10),s(w,10),s(y,10),s(me,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[f([zt]),u,S]})}return n})();var nt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=$({type:n});static \u0275inj=U({})}return n})(),de=class extends E{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Ye(this,!1,t),t.forEach((i,r)=>{Xe(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function xe(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var yn=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return xe(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Y(r,o)}record(e,i=null){let r=this._reduceControls(e);return new ue(r,i)}control(e,i,r){let o={};return this.useNonNullable?(xe(i)?o=i:(o.validators=i,o.asyncValidators=r),new R(e,p(d({},o),{nonNullable:!0}))):new R(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new de(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof R)return e;if(e instanceof E)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Cn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:I,useValue:e.callSetDisabledState??j}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=$({type:n});static \u0275inj=U({imports:[nt]})}return n})(),Vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:me,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:I,useValue:e.callSetDisabledState??j}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=$({type:n});static \u0275inj=U({imports:[nt]})}return n})();export{ot as a,ke as b,Ee as c,gn as d,mn as e,R as f,Pt as g,vn as h,Gt as i,jt as j,Ut as k,Lt as l,Je as m,Qe as n,et as o,Zt as p,yn as q,Cn as r,Vn as s};
|