@duplicati/ngclient 0.0.25 → 0.0.26
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-26IRMVIY.js +2 -0
- package/chunk-2PUTRWRI.js +1 -0
- package/{chunk-2TLPGRQA.js → chunk-2SYB6ABM.js} +1 -1
- package/chunk-47O5BYLZ.js +1 -0
- package/chunk-4Y76KESB.js +2 -0
- package/chunk-5X5UJ7CP.js +1 -0
- package/chunk-6TFXXYVK.js +1 -0
- package/chunk-7O44NQO3.js +1 -0
- package/{chunk-647BVHNL.js → chunk-AIQQJSGP.js} +1 -1
- package/chunk-B7SRENJI.js +1 -0
- package/chunk-BR45PK72.js +1 -0
- package/{chunk-E6PE2QMZ.js → chunk-BVTTY2FQ.js} +1 -1
- package/chunk-C4S5PKAB.js +1 -0
- package/chunk-C5O62M3L.js +6 -0
- package/chunk-CGWELGPM.js +1 -0
- package/{chunk-QQ7JWBVZ.js → chunk-D2HTMQIW.js} +1 -1
- package/chunk-DESW2TCQ.js +1 -0
- package/chunk-DOGZZDWG.js +1 -0
- package/chunk-EPVXOSHI.js +1 -0
- package/chunk-FAAAWY76.js +1 -0
- package/chunk-FWNXTY54.js +1 -0
- package/chunk-GAJ43GZE.js +1 -0
- package/chunk-GWGOC52B.js +1 -0
- package/chunk-HH2EA6LF.js +1 -0
- package/chunk-KZLQWBL3.js +1 -0
- package/chunk-L7M2MTRL.js +1 -0
- package/chunk-LUAN4O53.js +1 -0
- package/chunk-MFLGWG77.js +1 -0
- package/chunk-MHCUWVA2.js +1 -0
- package/chunk-MSQ7LZTH.js +1 -0
- package/chunk-PD6257G7.js +1 -0
- package/chunk-QL753AWG.js +1 -0
- package/chunk-QNP3LI3Y.js +1 -0
- package/chunk-RJDP2FPE.js +7 -0
- package/chunk-RMZR2OAY.js +1 -0
- package/chunk-SDVRKDZS.js +1 -0
- package/{chunk-KM4HDQ4D.js → chunk-T6ENXWPD.js} +1 -1
- package/chunk-TLFDZKKI.js +1 -0
- package/chunk-UGZKHGQT.js +1 -0
- package/chunk-UMY3Y7LR.js +1 -0
- package/chunk-UPIWGO32.js +1 -0
- package/chunk-UVZO552H.js +1 -0
- package/chunk-VAAI6C2V.js +1 -0
- package/chunk-VJACGH6X.js +1 -0
- package/chunk-WHYVZMAC.js +1 -0
- package/chunk-WV3AOW4R.js +1 -0
- package/chunk-ZAREJJZA.js +1 -0
- package/chunk-ZVT4YXH5.js +1 -0
- package/index.html +3 -3
- package/main-HBZS5ADV.js +1 -0
- package/package.json +1 -1
- package/styles-JDUV6AV5.css +1 -0
- package/chunk-2WWTJWN7.js +0 -1
- package/chunk-43IGTI7W.js +0 -1
- package/chunk-4X4FROQQ.js +0 -1
- package/chunk-56SGMJT3.js +0 -1
- package/chunk-67F45CIQ.js +0 -1
- package/chunk-6SKK76PT.js +0 -1
- package/chunk-7TGAK2FS.js +0 -6
- package/chunk-7UN5GSLX.js +0 -1
- package/chunk-ANRVMVA2.js +0 -7
- package/chunk-B7BKD6BW.js +0 -1
- package/chunk-CYXH6TL7.js +0 -1
- package/chunk-D4OIIBBT.js +0 -1
- package/chunk-D5XBMU7U.js +0 -1
- package/chunk-DC5NQO2Y.js +0 -1
- package/chunk-EF6PZOYI.js +0 -1
- package/chunk-EUKWBJHZ.js +0 -1
- package/chunk-JBKTYIJI.js +0 -1
- package/chunk-KJNFJK32.js +0 -1
- package/chunk-KMTWZOSJ.js +0 -1
- package/chunk-KOPVATUY.js +0 -1
- package/chunk-KOXLMQOL.js +0 -1
- package/chunk-LKYD5PU5.js +0 -1
- package/chunk-LSSI4MGJ.js +0 -1
- package/chunk-MW756ZMH.js +0 -1
- package/chunk-ND2MJYUF.js +0 -1
- package/chunk-NNYK7AHA.js +0 -1
- package/chunk-OGV5E7WV.js +0 -1
- package/chunk-OLXQO3ZT.js +0 -1
- package/chunk-OUZOHOAK.js +0 -2
- package/chunk-OYOFQEI3.js +0 -1
- package/chunk-PBQATFTG.js +0 -1
- package/chunk-QM3Q3TUI.js +0 -1
- package/chunk-RH4RL6FL.js +0 -1
- package/chunk-RPNE5OZL.js +0 -1
- package/chunk-TUN6QDZQ.js +0 -2
- package/chunk-UAAHGB26.js +0 -1
- package/chunk-UXD4TQLV.js +0 -1
- package/chunk-WCMY57ZO.js +0 -1
- package/chunk-WVXHNI46.js +0 -1
- package/chunk-XCCXG27R.js +0 -1
- package/chunk-ZO7IMOR6.js +0 -1
- package/main-B5HGTFQ3.js +0 -1
- package/styles-LL6J7JBI.css +0 -1
package/chunk-KMTWZOSJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-TUN6QDZQ.js";import{$,$a as u,Ab as g,O as H,P as d,Q as re,R as L,Ra as o,T as D,Ua as E,Vb as h,W as De,Xa as N,aa as l,fc as Ae,g as ve,ha as W,k as ye,kb as se,la as b,na as be,p as Ce,pc as O,qa as A,qc as m,v as Ve,wa as M}from"./chunk-ANRVMVA2.js";import{a as c,b as p}from"./chunk-7CGTOI24.js";var xe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M))}}static{this.\u0275dir=l({type:i})}}return i})(),S=(()=>{class i extends xe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),C=new D(""),at={provide:C,useExisting:d(()=>lt),multi:!0},lt=(()=>{class i extends S{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[h([at]),u]})}}return i})(),ut={provide:C,useExisting:d(()=>Pe),multi:!0};function ct(){let i=oe()?oe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var dt=new D(""),Pe=(()=>{class i extends xe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let n=e??"";this.setProperty("value",n)}_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{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(dt,8))}}static{this.\u0275dir=l({type:i,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(n,r){n&1&&g("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)})},features:[h([ut]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ke(i){return i!=null&&typeof i.length=="number"}var R=new D(""),T=new D(""),ht=/^(?=.{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])?)*$/,Me=class{static min(t){return ft(t)}static max(t){return pt(t)}static required(t){return gt(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return Ge(t)}static compose(t){return He(t)}static composeAsync(t){return $e(t)}};function ft(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function pt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function gt(i){return _(i.value)?{required:!0}:null}function mt(i){return i.value===!0?null:{required:!0}}function _t(i){return _(i.value)||ht.test(i.value)?null:{email:!0}}function vt(i){return t=>_(t.value)||!ke(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function yt(i){return t=>ke(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function Ct(i){if(!i)return Ge;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ge(i){return null}function Re(i){return i!=null}function Te(i){return Ae(i)?ye(i):i}function je(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function Be(i,t){return t.map(e=>e(i))}function Vt(i){return!i.validate}function Ue(i){return i.map(t=>Vt(t)?t:e=>t.validate(e))}function He(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){return je(Be(e,t))}}function Le(i){return i!=null?He(Ue(i)):null}function $e(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){let n=Be(e,t).map(Te);return Ve(n).pipe(Ce(je))}}function We(i){return i!=null?$e(Ue(i)):null}function Ee(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function qe(i){return i._rawValidators}function ze(i){return i._rawAsyncValidators}function ae(i){return i?Array.isArray(i)?i:[i]:[]}function Z(i,t){return Array.isArray(i)?i.includes(t):i===t}function Fe(i,t){let e=ae(t);return ae(i).forEach(r=>{Z(e,r)||e.push(r)}),e}function we(i,t){return ae(t).filter(e=>!Z(i,e))}var X=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Le(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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}},f=class extends X{get formDirective(){return null}get path(){return null}},v=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Y=class{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}},Dt={"[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"},vi=p(c({},Dt),{"[class.ng-submitted]":"isSubmitted"}),yi=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(v,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&se("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)},features:[u]})}}return i})(),Ci=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(f,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&se("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)},features:[u]})}}return i})();var x="VALID",q="INVALID",F="PENDING",P="DISABLED",y=class{},K=class extends y{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends y{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends y{constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends y{constructor(t,e){super(),this.status=t,this.source=e}},le=class extends y{constructor(t){super(),this.source=t}},ue=class extends y{constructor(t){super(),this.source=t}};function fe(i){return(ie(i)?i.validators:i)||null}function bt(i){return Array.isArray(i)?Le(i):i||null}function pe(i,t){return(ie(t)?t.asyncValidators:i)||null}function At(i){return Array.isArray(i)?We(i):i||null}function ie(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new H(1e3,"");if(!n[e])throw new H(1001,"")}function Xe(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new H(1002,"")})}var I=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ve,this.events=this._events.asObservable(),this._onDisabledChange=[],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))}get valid(){return this.status===x}get invalid(){return this.status===q}get pending(){return this.status==F}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}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(Fe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(we(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}hasValidator(t){return Z(this._rawValidators,t)}hasAsyncValidator(t){return Z(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}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 n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}markAsPending(t={}){this.status=F;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new w(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(p(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(p(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,n)),this._events.next(new w(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(p(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!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 n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===F)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,e)),this._events.next(new w(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(p(c({},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=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Te(this.asyncValidator(this));this._asyncValidationSubscription=n.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((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.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,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(q)?q: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 n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,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)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ie(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=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}},J=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.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,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Xe(this,!0,t),Object.keys(t).forEach(n=>{Ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.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,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_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 ce=class extends J{};var j=new D("CallSetDisabledState",{providedIn:"root",factory:()=>B}),B="always";function ge(i,t){return[...t.path,i]}function de(i,t,e=B){me(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),Et(i,t),wt(i,t),Ft(i,t),Mt(i,t)}function Q(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),te(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ee(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Mt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function me(i,t){let e=qe(i);t.validator!==null?i.setValidators(Ee(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=ze(i);t.asyncValidator!==null?i.setAsyncValidators(Ee(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ee(t._rawValidators,r),ee(t._rawAsyncValidators,r)}function te(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=ze(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return ee(t._rawValidators,n),ee(t._rawAsyncValidators,n),e}function Et(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Ye(i,t)})}function Ft(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Ye(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Ye(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function wt(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function It(i,t){i==null,me(i,t)}function St(i,t){return te(i,t)}function Ke(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Nt(i){return Object.getPrototypeOf(i.constructor)===S}function Ot(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Je(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===Pe?e=s:Nt(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Se(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var z=class extends I{constructor(t=null,e,n){super(fe(e),pe(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Se(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(n=>n(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){Ie(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ie(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){Se(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 Pt=i=>i instanceof z,kt=(()=>{class i extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Di=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:C,useExisting:d(()=>Rt),multi:!0},Rt=(()=>{class i extends S{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[h([Gt]),u]})}}return i})(),Tt={provide:C,useExisting:d(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends S{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=De(j,{optional:!0})??B}ngOnInit(){this._control=this._injector.get(v),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{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(jt),o(be))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[h([Tt]),u]})}}return i})();var _e=new D(""),Ut={provide:v,useExisting:d(()=>Ht)},Ht=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Je(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Q(n,this,!1),de(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ke(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(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{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(C,10),o(_e,8),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h([Ut]),u,W]})}}return i})(),Lt={provide:f,useExisting:d(()=>Qe)},Qe=(()=>{class i extends f{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(te(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 n=this.form.get(e.path);return de(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Q(e.control||null,e,!1),xt(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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Ot(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new le(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 ue(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Q(n||null,e),Pt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);It(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&St(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&te(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([Lt]),u,W]})}}return i})(),$t={provide:f,useExisting:d(()=>et)},et=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[h([$t]),u]})}}return i})(),Wt={provide:f,useExisting:d(()=>tt)},tt=(()=>{class i extends f{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),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 ge(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[h([Wt]),u]})}}return i})();function it(i){return!(i instanceof et)&&!(i instanceof Qe)&&!(i instanceof tt)}var qt={provide:v,useExisting:d(()=>zt)},zt=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Je(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Ke(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 ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10),o(C,10),o(_e,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[h([qt]),u,W]})}}return i})(),Zt={provide:C,useExisting:d(()=>rt),multi:!0};function nt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var rt=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=nt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Zt]),u]})}}return i})(),bi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(nt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(rt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Yt={provide:C,useExisting:d(()=>st),multi:!0};function Ne(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Kt(i){return i.split(":")[0]}var st=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let V=0;V<a.length;V++){let U=a[V],ne=this._getOptionValue(U.value);r.push(ne)}}else{let a=n.options;for(let V=0;V<a.length;V++){let U=a[V];if(U.selected){let ne=this._getOptionValue(U.value);r.push(ne)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Kt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Yt]),u]})}}return i})(),Ai=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(st,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ot=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({})}}return i})(),he=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Xe(this,!1,t),t.forEach((n,r)=>{Ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.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,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_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 Oe(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Mi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Oe(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new J(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ce(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Oe(n)?s=n:(s.validators=n,s.asyncValidators=r),new z(e,p(c({},s),{nonNullable:!0}))):new z(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new he(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof z)return e;if(e instanceof I)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ei=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})(),Fi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:_e,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})();export{lt as a,Pe as b,Me as c,yi as d,Ci as e,z as f,Di as g,Rt as h,Bt as i,Ht as j,Qe as k,et as l,tt as m,zt as n,bi as o,Ai as p,Mi as q,Ei as r,Fi as s};
|
package/chunk-KOPVATUY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a,m as b}from"./chunk-7TGAK2FS.js";import"./chunk-OYOFQEI3.js";import"./chunk-DNHLTHLR.js";import"./chunk-KJNFJK32.js";import"./chunk-RPNE5OZL.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
|
package/chunk-KOXLMQOL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as h}from"./chunk-KJNFJK32.js";import{a as s}from"./chunk-E6PE2QMZ.js";import"./chunk-TUN6QDZQ.js";import{Ob as o,Pb as c,Qa as p,W as g,Wb as m,_ as r,rb as t,sb as n}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var a=class i{#e=g(s);changelog=h(this.#e.getApiV1Changelog());static \u0275fac=function(e){return new(e||i)};static \u0275cmp=r({type:i,selectors:[["app-changelog"]],standalone:!0,features:[m],decls:4,vars:1,template:function(e,u){if(e&1&&(t(0,"h3"),o(1,"Changelog"),n(),t(2,"pre"),o(3),n()),e&2){let l;p(3),c((l=u.changelog())==null?null:l.Changelog)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{a as default};
|
package/chunk-LKYD5PU5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as S}from"./chunk-WVXHNI46.js";import"./chunk-QQ7JWBVZ.js";import"./chunk-OYOFQEI3.js";import"./chunk-KJNFJK32.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import{o as C,s as v}from"./chunk-EF6PZOYI.js";import{H as f,K as k,X as w,Y as g}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ob as p,Qa as s,W as r,Wb as d,Yb as l,_ as u,ib as a,rb as o,sb as n,tb as i}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
package/chunk-LSSI4MGJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as a,h as b,i as c}from"./chunk-7TGAK2FS.js";import"./chunk-OYOFQEI3.js";import"./chunk-DNHLTHLR.js";import"./chunk-KJNFJK32.js";import"./chunk-RPNE5OZL.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
|
package/chunk-MW756ZMH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-RPNE5OZL.js";import"./chunk-E6PE2QMZ.js";import{m as y}from"./chunk-TUN6QDZQ.js";import{$b as c,Ob as o,Pb as f,Qa as p,W as a,Wb as r,_ as m,ac as l,rb as t,sb as n}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var s=class i{#e=a(d);systemInfo=this.#e.systemInfo;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=m({type:i,selectors:[["app-system-info"]],standalone:!0,features:[r],decls:5,vars:3,template:function(e,S){e&1&&(t(0,"h3"),o(1,"System info"),n(),t(2,"pre"),o(3),c(4,"json"),n()),e&2&&(p(3),f(l(4,1,S.systemInfo())))},dependencies:[y],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{s as default};
|
package/chunk-ND2MJYUF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-2TLPGRQA.js";import{a as V,b as O}from"./chunk-E6PE2QMZ.js";import{n as L}from"./chunk-EF6PZOYI.js";import{a as N}from"./chunk-647BVHNL.js";import{$b as E,Bb as h,E as S,L as D,Ob as p,Q as I,Qa as u,Rb as k,W as r,Wb as A,Xa as i,_ as y,ac as R,ba as C,db as _,ib as x,l as b,nb as T,p as B,pc as c,rb as l,rc as v,sb as o,tb as w}from"./chunk-ANRVMVA2.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],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;align-items:center;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{P as a};
|
package/chunk-NNYK7AHA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b,f as c}from"./chunk-7TGAK2FS.js";import"./chunk-OYOFQEI3.js";import"./chunk-DNHLTHLR.js";import"./chunk-KJNFJK32.js";import"./chunk-RPNE5OZL.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
package/chunk-OGV5E7WV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me}from"./chunk-QQ7JWBVZ.js";import{b as se}from"./chunk-KJNFJK32.js";import{a as $}from"./chunk-RPNE5OZL.js";import{a as le}from"./chunk-KM4HDQ4D.js";import{b as W,d as q,e as z,g as j,i as H,k as J,l as K,n as Q,o as X,p as Y,q as Z,r as ee,s as te}from"./chunk-KMTWZOSJ.js";import"./chunk-67F45CIQ.js";import{a as ae}from"./chunk-ND2MJYUF.js";import"./chunk-2TLPGRQA.js";import{a as L}from"./chunk-E6PE2QMZ.js";import{g as ne,k as ie,o as oe,q as re}from"./chunk-EF6PZOYI.js";import"./chunk-TUN6QDZQ.js";import"./chunk-647BVHNL.js";import{Ab as m,Bb as c,Eb as N,K as v,Na as D,Ob as r,Pb as E,Qa as s,Qb as b,W as y,Wb as A,Xa as h,_ as I,c as F,db as O,ia as u,ib as S,ja as d,kb as M,nb as C,ob as x,p as U,pb as T,pc as G,qb as k,rb as n,rc as B,sb as o,tb as p,ub as R,vb as w,xb as _}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new Z,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y($);#e=y(L);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Update channel selection is not implemented yet."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[ee,j,X,Y,W,H,q,z,te,J,Q,K,ae,ne,oe,ie,re],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
|
package/chunk-OLXQO3ZT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y}from"./chunk-6SKK76PT.js";import{b as v,c as S,d as w,e as F,g as L,k as _,n as N,q as k,s as x}from"./chunk-KMTWZOSJ.js";import"./chunk-67F45CIQ.js";import"./chunk-E6PE2QMZ.js";import{a as D,g as M,k as P}from"./chunk-EF6PZOYI.js";import{W as b}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ab as C,E as m,Ob as s,Qa as u,W as i,Wb as h,Xa as c,_ as p,ib as g,kb as d,rb as e,sb as r,tb as f}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
|
package/chunk-OUZOHOAK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as M}from"./chunk-KJNFJK32.js";import{a as b}from"./chunk-E6PE2QMZ.js";import{n as k}from"./chunk-EF6PZOYI.js";import{c as S}from"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{E as p,Ma as c,Ob as h,Qa as g,W as i,Wb as v,Xa as f,_ as m,db as d,ib as u,nb as C,p as l,rb as y,sb as o,tb as r}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(b);isLoading=f(!0);generalInfo=M(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
|
|
2
|
-
`)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[k],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
package/chunk-OYOFQEI3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as ae}from"./chunk-KMTWZOSJ.js";import{a as re}from"./chunk-E6PE2QMZ.js";import{a as I,f as ce,k as de,l as pe,n as ue,t as he}from"./chunk-EF6PZOYI.js";import{k as le}from"./chunk-TUN6QDZQ.js";import{Ab as y,Bb as d,Cb as A,Db as S,E as j,Lb as K,Mb as ne,Nb as Q,Ob as m,Qa as c,Qb as U,W as Y,Wb as B,Xa as T,Ya as R,Yb as D,Zb as oe,_ as N,_a as Z,cc as se,db as _,ia as k,ib as $,ja as M,jb as z,kb as C,nb as b,pb as ee,pc as V,qb as te,rb as r,rc as F,sb as a,tb as ie,ua as L,v as X,va as g,wb as q,xb as E}from"./chunk-ANRVMVA2.js";import{a as P,b as x}from"./chunk-7CGTOI24.js";var be=["treeContainer"],Pe=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],Te=["label","label","input"],ye=(n,t)=>t.id,Se=n=>({children:n,level:0}),ge=n=>({$implicit:n}),we=(n,t)=>({children:n,level:t});function ke(n,t){if(n&1){let e=E();r(0,"spk-button-group")(1,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("browse"))}),m(2," Browser path "),a(),r(3,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("path"))}),m(4," Manually type path "),a()()}if(n&2){let e=d();c(),C("active",e.pathDiscoveryMethod()==="browse"),c(2),C("active",e.pathDiscoveryMethod()==="path")}}function Me(n,t){n&1&&ie(0,"spk-progress-bar",6)}function Fe(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder-open"),a())}function Oe(n,t){n&1&&(r(0,"spk-icon"),m(1,"file"),a())}function Ne(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder"),a())}function Ee(n,t){if(n&1&&_(0,Fe,2,0,"spk-icon",13)(1,Oe,2,0,"spk-icon")(2,Ne,2,0,"spk-icon",13),n&2){let e=d(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ae(n,t){n&1&&(r(0,"spk-icon",13),m(1,"desktop-tower"),a())}function Be(n,t){n&1&&q(0)}function De(n,t){if(n&1&&_(0,Be,1,0,"ng-container",7),n&2){let e=d(2).$implicit,i=d().$implicit;d();let s=Q(7);$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(5,ge,oe(2,we,e.children,i.level+1)))}}function Ve(n,t){if(n&1){let e=E();r(0,"div",11,3),y("click",function(){k(e);let s=d().$implicit,l=d(2);return M(l.toggleNode(s.id,s))}),r(2,"div",12),_(3,Ee,3,1)(4,Ae,2,0,"spk-icon",13),a(),r(5,"div",14),y("click",function(s){k(e);let l=d().$implicit,o=d(2);return M(o.toggleSelectedNode(s,l))}),m(6),a()(),_(7,De,1,7,"ng-container")}if(n&2){let e=d().$implicit;C("accepted",e.accepted===!0)("active",e.isSelected)("open",e.children.length)("usually-hidden",e.hidden),c(3),b(e.id!=="/"?3:4),c(3),U(" ",e.text," "),c(),b(e.children.length>0?7:-1)}}function Ie(n,t){if(n&1&&_(0,Ve,8,11),n&2){let e=t.$implicit,i=d(2);b(e.hidden&&i._showHiddenNodes()||!e.hidden?0:-1)}}function We(n,t){if(n&1&&(r(0,"spk-list"),ee(1,Ie,1,1,null,null,ye),a()),n&2){let e=t.$implicit;z("padding-left",e.level*.5,"rem"),c(),te(e.children)}}function He(n,t){n&1&&q(0)}function je(n,t){if(n&1){let e=E();r(0,"spk-toggle",15),y("click",function(){k(e);let s=d();return M(s._showHiddenNodes.set(!s._showHiddenNodes()))}),m(1),a()}if(n&2){let e=d();C("active",e._showHiddenNodes()),c(),U(" Show hidden ",e.showFiles()?"files":"folders"," ")}}var G=class n{#t=Y(re);multiSelect=g(!1);disabled=g(!1);showFiles=g(!1);selectFiles=g(!1);accepts=g(null);startingPath=g(null);rootPath=g(void 0);backupSettings=g(null);showHiddenNodes=g(!1);includes=L();excludes=L();_showHiddenNodes=T(!1);showHiddenNodesEffect=F(()=>this._showHiddenNodes.set(this.showHiddenNodes()),{allowSignalWrites:!0});treeContainerRef=R("treeContainer");formRef=R("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let t=this.searchableTreeNodes(),e=new Map,i=this.rootPath(),s=this.accepts(),l=i?{id:i,resolvedpath:i,text:i?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};s&&(l.accepted=!0),e.set("/",l);for(let o of t){let p=o.id.replace(i??"","").split("/").filter(Boolean),u="",f=l;for(let O of p){if(u+="/"+O,!e.has(u)){let v={id:o.id,isSelected:o.isSelected,parentPath:u,resolvedpath:o.id?.startsWith("%")?o.resolvedpath+"/":u,hidden:o.hidden,text:o.text,cls:o.cls,children:[]};s&&(v.accepted=this.matchAccepts(s,v)),e.set(u,v),f.children.push(v)}f=e.get(u)}}return[l]});pathDiscoveryMethodEffect=F(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();if(t==="browse"&&e)if(this.multiSelect()){let i=e.value.split("\0");this.treeNodes.update(s=>s.map(l=>x(P({},l),{isSelected:typeof l.id=="string"&&i.includes(l.id)})))}else this.treeNodes.update(i=>i.map(s=>x(P({},s),{isSelected:s.id===e.value})))},{allowSignalWrites:!0});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let i=t.split(",");if(i.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?i.some(l=>s.endsWith(l)):!1}#a(){let t=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");t&&t.length>0&&t[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=F(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=F(()=>{if(this.multiSelect()){let t=this.treeNodes().filter(o=>o.isSelected),e=this.treeNodes().filter(o=>!o.isSelected&&t.some(h=>o.id?.startsWith(h.id))),i=t.filter(o=>!t.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>o.id),s=e.filter(o=>!e.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>`-${o.id}`);this.excludes.emit(s);let l=[...i,...s];this.currentPath.set(l.join("\0"))}else{let t=this.treeNodes().find(i=>i.isSelected),e=t?.resolvedpath;this.currentPath.set(t?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=F(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#o(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")},{allowSignalWrites:!0});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#r(t)):this.#n(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/")return;if(t.stopPropagation(),this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}this.accepts()&&!e.accepted||(this.multiSelect()?this.treeNodes.update(s=>s.map(l=>l.id?.startsWith(e.id)?x(P({},l),{isSelected:!e.isSelected}):l)):this.treeNodes.update(s=>s.map(l=>l.id===e.id?x(P({},l),{isSelected:!e.isSelected}):x(P({},l),{isSelected:!1}))))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(i=>i.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#n(e,t))}#o(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}#s(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#l(t){let e=this.backupSettings(),i={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(i.filter="@"+t),this.#t.getApiV1BackupByIdFiles(i)}#i(t){return this.isByBackupSettings()?this.#l(t):this.#s(t)}#r(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),i=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=i.map(o=>o.split("/").filter(Boolean)),l=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((h,p)=>{let u=o.slice(0,p+1).join("/"),f=u.startsWith("%")?u:"/"+u;l.includes(f)||l.push(f)})}),this.isLoading.set(!0),X([...l.map(o=>this.#i(o))]).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(h=>{let p=o.flatMap(f=>f.map(O=>{let v=O.id,W=v&&v.split("/").filter(Boolean).slice(0,-1).join("/"),H="/"+(v&&v.split("/").filter(Boolean).join("/")),me=i.findIndex(w=>this.multiSelect()?H.startsWith(w):H===w)>-1,fe=i.findIndex(w=>w===v)>-1,_e=e.findIndex(w=>w===H)>-1;return x(P({},O),{parentPath:W.startsWith("%")?W:"/"+W,isSelected:me&&!_e||fe})}));return[...new Map([...h,...p].map(f=>[f.resolvedpath??f.id,f])).values()]})}})}#n(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:i=>{let s=this.isByBackupSettings()?i.Files.map(l=>({text:l.Path.split("/").filter(o=>o!=="").pop(),id:l.Path,cls:l.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:l.Path,hidden:!1})):i;this.treeNodes.update(l=>{let o=s.map(p=>{let u=p.id.startsWith("%")&&p.id.endsWith("%")||p.id.endsWith("/")?"folder":"file";return x(P({},p),{cls:u,parentPath:e,isSelected:(this.multiSelect()&&t?.isSelected)??!1})});return[...new Map([...l,...o].map(p=>[p.resolvedpath??p.id,p])).values()]})}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-file-tree"]],viewQuery:function(e,i){e&1&&(K(i.treeContainerRef,be,5),K(i.formRef,Pe,5)),e&2&&ne(2)},hostVars:2,hostBindings:function(e,i){e&2&&C("disabled",i.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"],showHiddenNodes:[1,"showHiddenNodes"]},outputs:{includes:"includes",excludes:"excludes"},standalone:!0,features:[B],ngContentSelectors:Te,decls:15,vars:15,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[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,"primary","raised","browse-files-toggle",3,"click"]],template:function(e,i){if(e&1&&(A(xe),_(0,ke,5,4,"spk-button-group"),r(1,"div",4),S(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),_(5,Me,1,0,"spk-progress-bar",6)(6,We,3,2,"ng-template",null,1,se)(8,He,1,0,"ng-container",7),a(),_(9,je,2,3,"spk-toggle",8),a(),r(10,"div",9,2)(12,"spk-form-field"),S(13,1,["ngProjectAs","label",5,["label"]]),S(14,2,["ngProjectAs","input",5,["input"]]),a()()),e&2){let s=Q(7);b(i.multiSelect()?-1:0),c(),C("hidden",i.pathDiscoveryMethod()!=="browse"),c(2),C("visualize-accepted",i.accepts()),c(2),b(i.isLoading()?5:-1),c(3),$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(13,ge,D(11,Se,i.treeStructure()))),c(),b(i.accepts()?-1:9),c(),C("hidden",i.pathDiscoveryMethod()!=="path")}},dependencies:[ce,he,I,de,pe,ue,le,ae],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}.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:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-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][_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:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var Le=[[["","title",""]],"*"],Re=["[title]","*"];function $e(n,t){n&1&&m(0,"Title")}function qe(n,t){n&1&&(r(0,"spk-icon"),m(1,"caret-down"),a())}var J=class n{isActive=Z(!1);disallowToggle=g(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&C("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:Re,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(e,i){e&1&&(A(Le),r(0,"h3",0),y("click",function(){return i.disallowToggle()||i.toggle()}),S(1,0,null,$e,1,0),_(3,qe,2,0,"spk-icon"),a(),r(4,"div",1),S(5,1),a()),e&2&&(c(3),b(i.disallowToggle()?-1:3))},dependencies:[I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);padding:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{G as a,J as b};
|
package/chunk-PBQATFTG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-WVXHNI46.js";import"./chunk-QQ7JWBVZ.js";import"./chunk-OYOFQEI3.js";import"./chunk-KJNFJK32.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-QM3Q3TUI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as E,d as B,e as M,g as w,k as A,n as N,q as P,s as T}from"./chunk-KMTWZOSJ.js";import{a as q}from"./chunk-2TLPGRQA.js";import{a as I}from"./chunk-E6PE2QMZ.js";import{a as L,c as R,g as V,k as j,t as G,v as O}from"./chunk-EF6PZOYI.js";import{W as v,X as D}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ab as g,E as b,Ob as n,Qa as m,W as s,Wb as _,Xa as f,Xb as F,_ as h,db as S,ib as d,kb as y,nb as C,rb as i,sb as e,tb as u}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var z=()=>["/"];function H(c,o){c&1&&(i(0,"spk-form-field")(1,"label",13),n(2,"Passphrase"),e(),u(3,"input",14),e())}var p=new P,k=class c{#e=s(R);#t=s(I);#o=s(q);#r=s(v);isImporting=f(!1);isSecureFile=f(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=f(null);onFileDropped(o){let t=o.target?.files?.item(0);if(t){let a=new FileReader;this.isSecureFile.set(t.type!=="application/json"),a.onload=this.#i.bind(this),a.readAsArrayBuffer(t)}}#i(o){let r=o.target?.result;this.importForm.patchValue({config:this.#n(r)})}#n(o){let r=new Uint8Array(o),t=r.byteLength,a="";for(let l=0;l<t;l++)a+=String.fromCharCode(r[l]);return btoa(a)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(b(()=>this.isImporting.set(!1))).subscribe({next:o=>{let r=this.#o.addDraftBackup(o.data);this.#r.navigate(["/backup-draft",r])},error:o=>{this.#e.error(o.message)}})}static \u0275fac=function(r){return new(r||c)};static \u0275cmp=h({type:c,selectors:[["app-import"]],standalone:!0,features:[_],decls:28,vars:7,consts:[[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]],template:function(r,t){r&1&&(i(0,"header")(1,"h3"),n(2," Import backup configuration "),i(3,"div",0)(4,"button",1)(5,"spk-icon"),n(6,"arrow-left"),e(),n(7," Back "),e(),i(8,"button",2),g("click",function(){return t.submit()}),i(9,"spk-icon"),n(10,"download-simple"),e(),n(11," Import "),e()()()(),i(12,"form",3)(13,"spk-form-field",4),g("fileDropped",function(l){return t.onFileDropped(l)}),i(14,"label",5),n(15,"Select a configuration file"),e(),i(16,"input",6),g("change",function(l){return t.onFileDropped(l)}),e(),i(17,"spk-icon",7),n(18,"upload"),e()(),S(19,H,4,0,"spk-form-field"),i(20,"spk-toggle",8)(21,"label",9),n(22,"Import Metadata"),e(),u(23,"input",10),e(),i(24,"spk-toggle",8)(25,"label",11),n(26,"Save now"),e(),u(27,"input",12),e()()),r&2&&(m(4),d("routerLink",F(6,z)),m(4),y("loader",t.isImporting()),d("disabled",t.isImporting()),m(4),d("formGroup",t.importForm),m(7),C(t.isSecureFile()?19:-1))},dependencies:[T,w,E,x,B,M,A,N,D,O,j,L,V,G],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{k as default};
|
package/chunk-RH4RL6FL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-KJNFJK32.js";import{a as u}from"./chunk-E6PE2QMZ.js";import{m as f}from"./chunk-TUN6QDZQ.js";import{$b as m,Ob as n,Pb as l,Qa as p,W as a,Wb as c,_ as s,ac as d,rb as t,sb as i}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var r=class o{#e=a(u);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||o)};static \u0275cmp=s({type:o,selectors:[["app-libraries"]],standalone:!0,features:[c],decls:5,vars:3,template:function(e,C){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),m(4,"json"),i()),e&2&&(p(3),l(d(4,1,C.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
|
package/chunk-RPNE5OZL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-E6PE2QMZ.js";import{E as i,N as r,Q as n,W as a,Xa as o,pc as f}from"./chunk-ANRVMVA2.js";var l=class t{#e=a(c);isLoaded=o(!1);systemInfo=o(null);backendModules=f(()=>this.systemInfo()?.BackendModules??[]);preload(s=!1){let e=this.#e.getApiV1Systeminfo().pipe(r(m=>this.systemInfo.set(m)),i(()=>this.isLoaded.set(!0)));if(s)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{l as a};
|
package/chunk-TUN6QDZQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Aa as te,E as ze,L as Ve,O as ee,Q as b,Ra as Z,T as S,V as A,Va as He,W as C,aa as Ge,ba as we,ca as Ye,d as ye,ea as We,fa as Ze,ha as Ke,k as Ue,l as Ee,lc as qe,p as W,pa as Xe,qa as Je,ra as Fe,w as $e,yb as I,z as je,zb as E}from"./chunk-ANRVMVA2.js";import{a as me}from"./chunk-7CGTOI24.js";var rt=null;function Ce(){return rt}function Dr(e){rt??=e}var Qe=class{};var K=new S(""),_e=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(_t),providedIn:"platform"})}}return e})(),pr=new S(""),_t=(()=>{class e extends _e{constructor(){super(),this._doc=C(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ce().getBaseHref(this._doc)}onPopState(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ie(e,n){if(e.length==0)return n;if(n.length==0)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,t==2?e+n.substring(1):t==1?e+n:e+"/"+n}function et(e){let n=e.match(/#|\?|$/),t=n&&n.index||e.length,r=t-(e[t-1]==="/"?1:0);return e.slice(0,r)+e.slice(t)}function L(e){return e&&e[0]!=="?"?"?"+e:e}var he=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(It),providedIn:"root"})}}return e})(),it=new S(""),It=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ie(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mr=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=Ie(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Rt=(()=>{class e{constructor(t){this._subject=new Je,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ot(et(tt(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash(Pt(this._basePath,tt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static{this.normalizeQueryParams=L}static{this.joinWithSlash=Ie}static{this.stripTrailingSlash=et}static{this.\u0275fac=function(r){return new(r||e)(A(he))}}static{this.\u0275prov=b({token:e,factory:()=>Mt(),providedIn:"root"})}}return e})();function Mt(){return new Rt(A(he))}function Pt(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function tt(e){return e.replace(/\/index.html$/,"")}function Ot(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var v=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(v||{}),f=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(f||{}),T=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(T||{}),x={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Lt(e){return I(e)[E.LocaleId]}function Nt(e,n,t){let r=I(e),i=[r[E.DayPeriodsFormat],r[E.DayPeriodsStandalone]],o=R(i,n);return R(o,t)}function Bt(e,n,t){let r=I(e),i=[r[E.DaysFormat],r[E.DaysStandalone]],o=R(i,n);return R(o,t)}function kt(e,n,t){let r=I(e),i=[r[E.MonthsFormat],r[E.MonthsStandalone]],o=R(i,n);return R(o,t)}function xt(e,n){let r=I(e)[E.Eras];return R(r,n)}function ne(e,n){let t=I(e);return R(t[E.DateFormat],n)}function re(e,n){let t=I(e);return R(t[E.TimeFormat],n)}function ie(e,n){let r=I(e)[E.DateTimeFormat];return R(r,n)}function fe(e,n){let t=I(e),r=t[E.NumberSymbols][n];if(typeof r>"u"){if(n===x.CurrencyDecimal)return t[E.NumberSymbols][x.Decimal];if(n===x.CurrencyGroup)return t[E.NumberSymbols][x.Group]}return r}function st(e){if(!e[E.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[E.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ut(e){let n=I(e);return st(n),(n[E.ExtraData][2]||[]).map(r=>typeof r=="string"?Ae(r):[Ae(r[0]),Ae(r[1])])}function $t(e,n,t){let r=I(e);st(r);let i=[r[E.ExtraData][0],r[E.ExtraData][1]],o=R(i,n)||[];return R(o,t)||[]}function R(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ae(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}var jt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},zt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,N=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(N||{}),l=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(l||{}),c=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(c||{});function Vt(e,n,t,r){let i=qt(e);n=O(t,n)||n;let s=[],u;for(;n;)if(u=zt.exec(n),u){s=s.concat(u.slice(1));let D=s.pop();if(!D)break;n=D}else{s.push(n);break}let a=i.getTimezoneOffset();r&&(a=at(r,a),i=Ht(i,r,!0));let p="";return s.forEach(D=>{let y=Xt(D);p+=y?y(i,t,a):D==="''"?"'":D.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function le(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function O(e,n){let t=Lt(e);if(se[t]??={},se[t][n])return se[t][n];let r="";switch(n){case"shortDate":r=ne(e,T.Short);break;case"mediumDate":r=ne(e,T.Medium);break;case"longDate":r=ne(e,T.Long);break;case"fullDate":r=ne(e,T.Full);break;case"shortTime":r=re(e,T.Short);break;case"mediumTime":r=re(e,T.Medium);break;case"longTime":r=re(e,T.Long);break;case"fullTime":r=re(e,T.Full);break;case"short":let i=O(e,"shortTime"),o=O(e,"shortDate");r=oe(ie(e,T.Short),[i,o]);break;case"medium":let s=O(e,"mediumTime"),u=O(e,"mediumDate");r=oe(ie(e,T.Medium),[s,u]);break;case"long":let a=O(e,"longTime"),p=O(e,"longDate");r=oe(ie(e,T.Long),[a,p]);break;case"full":let D=O(e,"fullTime"),y=O(e,"fullDate");r=oe(ie(e,T.Full),[D,y]);break}return r&&(se[t][n]=r),r}function oe(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function M(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Gt(e,n){return M(e,3).substring(0,n)}function w(e,n,t=0,r=!1,i=!1){return function(o,s){let u=Yt(e,o);if((t>0||u>-t)&&(u+=t),e===l.Hours)u===0&&t===-12&&(u=12);else if(e===l.FractionalSeconds)return Gt(u,n);let a=fe(s,x.MinusSign);return M(u,n,a,r,i)}}function Yt(e,n){switch(e){case l.FullYear:return n.getFullYear();case l.Month:return n.getMonth();case l.Date:return n.getDate();case l.Hours:return n.getHours();case l.Minutes:return n.getMinutes();case l.Seconds:return n.getSeconds();case l.FractionalSeconds:return n.getMilliseconds();case l.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function g(e,n,t=v.Format,r=!1){return function(i,o){return Wt(i,o,e,n,t,r)}}function Wt(e,n,t,r,i,o){switch(t){case c.Months:return kt(n,i,r)[e.getMonth()];case c.Days:return Bt(n,i,r)[e.getDay()];case c.DayPeriods:let s=e.getHours(),u=e.getMinutes();if(o){let p=Ut(n),D=$t(n,i,r),y=p.findIndex(_=>{if(Array.isArray(_)){let[m,P]=_,d=s>=m.hours&&u>=m.minutes,h=s<P.hours||s===P.hours&&u<P.minutes;if(m.hours<P.hours){if(d&&h)return!0}else if(d||h)return!0}else if(_.hours===s&&_.minutes===u)return!0;return!1});if(y!==-1)return D[y]}return Nt(n,i,r)[s<12?0:1];case c.Eras:return xt(n,r)[e.getFullYear()<=0?0:1];default:let a=t;throw new Error(`unexpected translation type ${a}`)}}function ae(e){return function(n,t,r){let i=-1*r,o=fe(t,x.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case N.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case N.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case N.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case N.Extended:return r===0?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var Zt=0,ce=4;function Kt(e){let n=le(e,Zt,1).getDay();return le(e,0,1+(n<=ce?ce:ce+7)-n)}function ot(e){let n=e.getDay(),t=n===0?-3:ce-n;return le(e.getFullYear(),e.getMonth(),e.getDate()+t)}function be(e,n=!1){return function(t,r){let i;if(n){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=ot(t),s=Kt(o.getFullYear()),u=o.getTime()-s.getTime();i=1+Math.round(u/6048e5)}return M(i,e,fe(r,x.MinusSign))}}function ue(e,n=!1){return function(t,r){let o=ot(t).getFullYear();return M(o,e,fe(r,x.MinusSign),n)}}var ve={};function Xt(e){if(ve[e])return ve[e];let n;switch(e){case"G":case"GG":case"GGG":n=g(c.Eras,f.Abbreviated);break;case"GGGG":n=g(c.Eras,f.Wide);break;case"GGGGG":n=g(c.Eras,f.Narrow);break;case"y":n=w(l.FullYear,1,0,!1,!0);break;case"yy":n=w(l.FullYear,2,0,!0,!0);break;case"yyy":n=w(l.FullYear,3,0,!1,!0);break;case"yyyy":n=w(l.FullYear,4,0,!1,!0);break;case"Y":n=ue(1);break;case"YY":n=ue(2,!0);break;case"YYY":n=ue(3);break;case"YYYY":n=ue(4);break;case"M":case"L":n=w(l.Month,1,1);break;case"MM":case"LL":n=w(l.Month,2,1);break;case"MMM":n=g(c.Months,f.Abbreviated);break;case"MMMM":n=g(c.Months,f.Wide);break;case"MMMMM":n=g(c.Months,f.Narrow);break;case"LLL":n=g(c.Months,f.Abbreviated,v.Standalone);break;case"LLLL":n=g(c.Months,f.Wide,v.Standalone);break;case"LLLLL":n=g(c.Months,f.Narrow,v.Standalone);break;case"w":n=be(1);break;case"ww":n=be(2);break;case"W":n=be(1,!0);break;case"d":n=w(l.Date,1);break;case"dd":n=w(l.Date,2);break;case"c":case"cc":n=w(l.Day,1);break;case"ccc":n=g(c.Days,f.Abbreviated,v.Standalone);break;case"cccc":n=g(c.Days,f.Wide,v.Standalone);break;case"ccccc":n=g(c.Days,f.Narrow,v.Standalone);break;case"cccccc":n=g(c.Days,f.Short,v.Standalone);break;case"E":case"EE":case"EEE":n=g(c.Days,f.Abbreviated);break;case"EEEE":n=g(c.Days,f.Wide);break;case"EEEEE":n=g(c.Days,f.Narrow);break;case"EEEEEE":n=g(c.Days,f.Short);break;case"a":case"aa":case"aaa":n=g(c.DayPeriods,f.Abbreviated);break;case"aaaa":n=g(c.DayPeriods,f.Wide);break;case"aaaaa":n=g(c.DayPeriods,f.Narrow);break;case"b":case"bb":case"bbb":n=g(c.DayPeriods,f.Abbreviated,v.Standalone,!0);break;case"bbbb":n=g(c.DayPeriods,f.Wide,v.Standalone,!0);break;case"bbbbb":n=g(c.DayPeriods,f.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":n=g(c.DayPeriods,f.Abbreviated,v.Format,!0);break;case"BBBB":n=g(c.DayPeriods,f.Wide,v.Format,!0);break;case"BBBBB":n=g(c.DayPeriods,f.Narrow,v.Format,!0);break;case"h":n=w(l.Hours,1,-12);break;case"hh":n=w(l.Hours,2,-12);break;case"H":n=w(l.Hours,1);break;case"HH":n=w(l.Hours,2);break;case"m":n=w(l.Minutes,1);break;case"mm":n=w(l.Minutes,2);break;case"s":n=w(l.Seconds,1);break;case"ss":n=w(l.Seconds,2);break;case"S":n=w(l.FractionalSeconds,1);break;case"SS":n=w(l.FractionalSeconds,2);break;case"SSS":n=w(l.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=ae(N.Short);break;case"ZZZZZ":n=ae(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=ae(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=ae(N.Long);break;default:return null}return ve[e]=n,n}function at(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Jt(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function Ht(e,n,t){let r=t?-1:1,i=e.getTimezoneOffset(),o=at(n,i);return Jt(e,r*(o-i))}function qt(e){if(nt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(u=>+u);return le(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(jt))return Qt(r)}let n=new Date(e);if(!nt(n))throw new Error(`Unable to convert "${e}" into a date`);return n}function Qt(e){let n=new Date(0),t=0,r=0,i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,u=Number(e[5]||0)-r,a=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(n,s,u,a,p),n}function nt(e){return e instanceof Date&&!isNaN(e.valueOf())}function ut(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[i,o]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var yr=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(Z(He))}}static{this.\u0275dir=Ge({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ke]})}}return e})();function en(e,n){return new ee(2100,!1)}var tn="mediumDate",nn=new S(""),rn=new S(""),Er=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(t==null||t===""||t!==t)return null;try{let s=r??this.defaultOptions?.dateFormat??tn,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vt(t,s,o||this.locale,u)}catch(s){throw en(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(Z(qe,16),Z(nn,24),Z(rn,24))}}static{this.\u0275pipe=we({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var wr=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=we({name:"json",type:e,pure:!1,standalone:!0})}}return e})();var sn="browser",on="server";function an(e){return e===sn}function un(e){return e===on}var Fr=(()=>{class e{static{this.\u0275prov=b({token:e,providedIn:"root",factory:()=>an(C(te))?new Se(C(K),window):new Te})}}return e})(),Se=class{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let t=cn(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function cn(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Te=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},de=class{};var J=class{},H=class{},B=class e{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
|
|
2
|
-
`).forEach(t=>{let r=t.indexOf(":");if(r>0){let i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let i=(n.op==="a"?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":let o=n.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(u=>o.indexOf(u)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var Me=class{encodeKey(n){return ct(n)}encodeValue(n){return ct(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function dn(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,u]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],a=t.get(s)||[];a.push(u),t.set(s,a)}),t}var hn=/%(\d[a-f0-9])/gi,fn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(e){return encodeURIComponent(e).replace(hn,(n,t)=>fn[t]??n)}function ge(e){return`${e}`}var $=class e{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Me,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=dn(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],i=Array.isArray(r)?r.map(ge):[ge(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(ge(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(ge(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Pe=class{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function gn(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lt(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function dt(e){return typeof Blob<"u"&&e instanceof Blob}function ht(e){return typeof FormData<"u"&&e instanceof FormData}function Dn(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var X=class e{constructor(n,t,r,i){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(gn(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new B,this.context??=new Pe,!this.params)this.params=new $,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let u=t.indexOf("?"),a=u===-1?"?":u<t.length-1?"&":"";this.urlWithParams=t+a+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||lt(this.body)||dt(this.body)||ht(this.body)||Dn(this.body)?this.body:this.body instanceof $?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ht(this.body)?null:dt(this.body)?this.body.type||null:lt(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,u=n.withCredentials??this.withCredentials,a=n.reportProgress??this.reportProgress,p=n.headers||this.headers,D=n.params||this.params,y=n.context??this.context;return n.setHeaders!==void 0&&(p=Object.keys(n.setHeaders).reduce((_,m)=>_.set(m,n.setHeaders[m]),p)),n.setParams&&(D=Object.keys(n.setParams).reduce((_,m)=>_.set(m,n.setParams[m]),D)),new e(t,r,s,{params:D,headers:p,context:y,reportProgress:a,responseType:i,withCredentials:u,transferCache:o})}},j=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(j||{}),q=class{constructor(n,t=200,r="OK"){this.headers=n.headers||new B,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},De=class e extends q{constructor(n={}){super(n),this.type=j.ResponseHeader}clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Q=class e extends q{constructor(n={}){super(n),this.type=j.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},U=class extends q{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},pt=200,pn=204;function Re(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var mn=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof X)o=t;else{let a;i.headers instanceof B?a=i.headers:a=new B(i.headers);let p;i.params&&(i.params instanceof $?p=i.params:p=new $({fromObject:i.params})),o=new X(t,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:p,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=Ee(o).pipe(je(a=>this.handler.handle(a)));if(t instanceof X||i.observe==="events")return s;let u=s.pipe($e(a=>a instanceof Q));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return u.pipe(W(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return u.pipe(W(a=>a.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new $().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Re(i,r))}post(t,r,i={}){return this.request("POST",t,Re(i,r))}put(t,r,i={}){return this.request("PUT",t,Re(i,r))}static{this.\u0275fac=function(r){return new(r||e)(A(J))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),yn=/^\)\]\}',?\n/,En="X-Request-URL";function ft(e){if(e.url)return e.url;let n=En.toLocaleLowerCase();return e.headers.get(n)}var Oe=(()=>{class e{constructor(){this.fetchImpl=C(Le,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=C(Fe)}handle(t){return new ye(r=>{let i=new AbortController;return this.doRequest(t,i.signal,r).then(Ne,o=>r.error(new U({error:o}))),()=>i.abort()})}async doRequest(t,r,i){let o=this.createRequestInit(t),s;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,me({signal:r},o)));wn(m),i.next({type:j.Sent}),s=await m}catch(m){i.error(new U({error:m,status:m.status??0,statusText:m.statusText,url:t.urlWithParams,headers:m.headers}));return}let u=new B(s.headers),a=s.statusText,p=ft(s)??t.urlWithParams,D=s.status,y=null;if(t.reportProgress&&i.next(new De({headers:u,status:D,statusText:a,url:p})),s.body){let m=s.headers.get("content-length"),P=[],d=s.body.getReader(),h=0,k,V,F=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:z,value:Y}=await d.read();if(z)break;if(P.push(Y),h+=Y.length,t.reportProgress){V=t.responseType==="text"?(V??"")+(k??=new TextDecoder).decode(Y,{stream:!0}):void 0;let xe=()=>i.next({type:j.DownloadProgress,total:m?+m:void 0,loaded:h,partialText:V});F?F.run(xe):xe()}}});let G=this.concatChunks(P,h);try{let z=s.headers.get("Content-Type")??"";y=this.parseBody(t,G,z)}catch(z){i.error(new U({error:z,headers:new B(s.headers),status:s.status,statusText:s.statusText,url:ft(s)??t.urlWithParams}));return}}D===0&&(D=y?pt:0),D>=200&&D<300?(i.next(new Q({body:y,headers:u,status:D,statusText:a,url:p})),i.complete()):i.error(new U({error:y,headers:u,status:D,statusText:a,url:p}))}parseBody(t,r,i){switch(t.responseType){case"json":let o=new TextDecoder().decode(r).replace(yn,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let o=t.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){let i=new Uint8Array(r),o=0;for(let s of t)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Le=class{};function Ne(){}function wn(e){e.then(Ne,Ne)}function Fn(e,n){return n(e)}function Cn(e,n,t){return(r,i)=>Ze(t,()=>n(r,o=>e(o,i)))}var Be=new S(""),An=new S(""),bn=new S("",{providedIn:"root",factory:()=>!0});var gt=(()=>{class e extends J{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=C(Xe),this.contributeToStability=C(bn)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Be),...this.injector.get(An,[])]));this.chain=r.reduceRight((i,o)=>Cn(i,o,this.injector),Fn)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(ze(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(A(H),A(We))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();var vn=/^\)\]\}',?\n/;function Sn(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Dt=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new ee(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ue(r.\u0275loadImpl()):Ee(null)).pipe(Ve(()=>new ye(o=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((d,h)=>s.setRequestHeader(d,h.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let d=t.detectContentTypeHeader();d!==null&&s.setRequestHeader("Content-Type",d)}if(t.responseType){let d=t.responseType.toLowerCase();s.responseType=d!=="json"?d:"text"}let u=t.serializeBody(),a=null,p=()=>{if(a!==null)return a;let d=s.statusText||"OK",h=new B(s.getAllResponseHeaders()),k=Sn(s)||t.url;return a=new De({headers:h,status:s.status,statusText:d,url:k}),a},D=()=>{let{headers:d,status:h,statusText:k,url:V}=p(),F=null;h!==pn&&(F=typeof s.response>"u"?s.responseText:s.response),h===0&&(h=F?pt:0);let G=h>=200&&h<300;if(t.responseType==="json"&&typeof F=="string"){let z=F;F=F.replace(vn,"");try{F=F!==""?JSON.parse(F):null}catch(Y){F=z,G&&(G=!1,F={error:Y,text:F})}}G?(o.next(new Q({body:F,headers:d,status:h,statusText:k,url:V||void 0})),o.complete()):o.error(new U({error:F,headers:d,status:h,statusText:k,url:V||void 0}))},y=d=>{let{url:h}=p(),k=new U({error:d,status:s.status||0,statusText:s.statusText||"Unknown Error",url:h||void 0});o.error(k)},_=!1,m=d=>{_||(o.next(p()),_=!0);let h={type:j.DownloadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),t.responseType==="text"&&s.responseText&&(h.partialText=s.responseText),o.next(h)},P=d=>{let h={type:j.UploadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),o.next(h)};return s.addEventListener("load",D),s.addEventListener("error",y),s.addEventListener("timeout",y),s.addEventListener("abort",y),t.reportProgress&&(s.addEventListener("progress",m),u!==null&&s.upload&&s.upload.addEventListener("progress",P)),s.send(u),o.next({type:j.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",D),s.removeEventListener("timeout",y),t.reportProgress&&(s.removeEventListener("progress",m),u!==null&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(A(de))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),mt=new S(""),Tn="XSRF-TOKEN",_n=new S("",{providedIn:"root",factory:()=>Tn}),In="X-XSRF-TOKEN",Rn=new S("",{providedIn:"root",factory:()=>In}),pe=class{},Mn=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ut(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(A(K),A(te),A(_n))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Pn(e,n){let t=e.url.toLowerCase();if(!C(mt)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=C(pe).getToken(),i=C(Rn);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var ke=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ke||{});function yt(e,n){return{\u0275kind:e,\u0275providers:n}}function xr(...e){let n=[mn,Dt,gt,{provide:J,useExisting:gt},{provide:H,useFactory:()=>C(Oe,{optional:!0})??C(Dt)},{provide:Be,useValue:Pn,multi:!0},{provide:mt,useValue:!0},{provide:pe,useClass:Mn}];for(let t of e)n.push(...t.\u0275providers);return Ye(n)}function Ur(e){return yt(ke.Interceptors,e.map(n=>({provide:Be,useValue:n,multi:!0})))}function $r(){return yt(ke.Fetch,[Oe,{provide:H,useExisting:Oe}])}export{Ce as a,Dr as b,Qe as c,K as d,pr as e,he as f,It as g,mr as h,Rt as i,ut as j,yr as k,Er as l,wr as m,sn as n,an as o,un as p,Fr as q,de as r,B as s,Q as t,mn as u,xr as v,Ur as w,$r as x};
|
package/chunk-UAAHGB26.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b,b as J}from"./chunk-DNHLTHLR.js";import{b as W}from"./chunk-KJNFJK32.js";import{a as R,b as j,c as x,d as M,e as O,g as A,k as I,n as L,q as V,s as $}from"./chunk-KMTWZOSJ.js";import{a as Q}from"./chunk-2TLPGRQA.js";import{a as D}from"./chunk-E6PE2QMZ.js";import{a as G,f as U,g as q,k as z,t as H}from"./chunk-EF6PZOYI.js";import{H as P,W as T,X as N}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import{u as B}from"./chunk-TUN6QDZQ.js";import{Ab as f,E as g,L as w,Ob as i,Qa as p,Rb as v,W as s,Wb as _,Xa as d,Xb as F,_ as C,db as S,ib as k,kb as u,nb as E,pc as h,rb as r,sb as n,tb as l}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var Y=()=>["/"];function Z(c,e){c&1&&(r(0,"spk-form-field")(1,"label",9),i(2,"Password"),n(),l(3,"input",10),n(),r(4,"spk-form-field")(5,"label",11),i(6,"Repeat password"),n(),l(7,"input",12),n())}var m=new V,y=class c{#t=s(D);#e=s(P);#o=s(T);#n=s(B);#i=s(Q);isExporting=d(!1);exportType=d("file");exportedCmd=d(null);exportForm=m.group({exportPasswords:m.control(!0),encryption:m.control(!1,[x.required,J()]),password:m.control("",[b(e=>e?.value.encryption,[x.required])]),repeatPassword:m.control("",[b(e=>e?.value.encryption,[x.required])])});exportFormSignal=W(this.exportForm.valueChanges);encryptionFieldSignal=h(()=>this.exportFormSignal()?.encryption??!1);activeBackup=h(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(w(e=>{let a=o=>{let t=Object.entries(o);return t?"?"+t.map(([K,X])=>`${K}=${X}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${a({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),g(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(g(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,a){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=a,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(a){return new(a||c)};static \u0275cmp=C({type:c,selectors:[["app-export"]],standalone:!0,features:[_],decls:31,vars:12,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]],template:function(a,o){if(a&1&&(r(0,"header")(1,"h3"),i(2," Export backup configuration "),r(3,"div",0)(4,"button",1)(5,"spk-icon"),i(6,"arrow-left"),n(),i(7," Back "),n(),r(8,"button",2),f("click",function(){return o.submit()}),r(9,"spk-icon"),i(10,"export"),n(),i(11," Export "),n()()(),r(12,"p"),i(13),n()(),r(14,"form",3)(15,"spk-button-group")(16,"button",4),f("click",function(){return o.exportType.set("cmd")}),r(17,"spk-icon"),i(18,"terminal-window"),n(),i(19," As command line "),n(),r(20,"button",4),f("click",function(){return o.exportType.set("file")}),r(21,"spk-icon"),i(22,"file"),n(),i(23," To file "),n()(),r(24,"spk-toggle",5),i(25," Export passwords "),l(26,"input",6),n(),r(27,"spk-toggle",7),i(28," Encrypt file "),l(29,"input",8),n(),S(30,Z,8,0),n()),a&2){let t;p(4),k("routerLink",F(11,Y)),p(4),u("loading",o.isExporting()),p(5),v("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),p(),k("formGroup",o.exportForm),p(2),u("active",o.exportType()==="cmd"),p(4),u("active",o.exportType()==="file"),p(10),E(o.encryptionFieldSignal()?30:-1)}},dependencies:[$,A,j,R,M,O,I,L,N,U,H,G,z,q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{y as default};
|
package/chunk-UXD4TQLV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as c}from"./chunk-EF6PZOYI.js";import{K as l,X as m,Y as p}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ob as n,Wb as s,_ as a,rb as e,sb as t,tb as u}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
|
package/chunk-WCMY57ZO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as L,b as te,c as ne,d as f,j as re,n as oe,p as P,r as se}from"./chunk-TUN6QDZQ.js";import{Aa as w,Ba as _,Ca as g,Da as v,Ea as G,Fa as Y,Ga as K,Ha as q,Ia as W,Ja as X,Ka as J,La as m,O as y,Pa as M,Q as l,T as O,Ta as Q,V as a,Z as E,da as $,nc as ee,ra as S,sa as I,xa as Z,ya as N,za as z}from"./chunk-ANRVMVA2.js";import{a as b,b as V}from"./chunk-7CGTOI24.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}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=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}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{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={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"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?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,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(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=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[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){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}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{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}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}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\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"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}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="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[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"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(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{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
|
package/chunk-WVXHNI46.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ve}from"./chunk-QQ7JWBVZ.js";import{a as L,b as be}from"./chunk-OYOFQEI3.js";import{b as q}from"./chunk-KJNFJK32.js";import{a as ce,b as V,d as E,e as T,g as P,h as ue,i as de,k as R,n as N,o as fe,p as ge,q as I,s as B}from"./chunk-KMTWZOSJ.js";import{a as O}from"./chunk-E6PE2QMZ.js";import{a as D,g as M,n as he,o as Fe,q as Se,t as Ce}from"./chunk-EF6PZOYI.js";import{H as w,W as C}from"./chunk-2WWTJWN7.js";import{l as _}from"./chunk-TUN6QDZQ.js";import{$b as ae,Ab as S,B as Y,Bb as W,E as j,K as Z,L as ee,Ob as r,Q as te,Qa as c,Rb as se,Vb as le,W as p,Wb as x,Xa as d,_ as k,bc as pe,c as K,db as $,ia as f,ib as u,ja as g,kb as ie,l as Q,nb as J,ob as oe,p as U,pb as ne,pc as me,qb as re,rb as o,sb as n,tb as m,ub as h,v as X,vb as F,xb as y}from"./chunk-ANRVMVA2.js";function Oe(l,t){l&1&&m(0,"spk-progress-bar",3)}function Ve(l,t){if(l&1&&(o(0,"option",10),r(1),ae(2,"date"),n()),l&2){let e=t.$implicit;u("value",e.Version),c(),se("",e.Version,": ",pe(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ee(l,t){if(l&1&&(o(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);u("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Te(l,t){if(l&1&&(o(0,"spk-select",7),m(1,"input",8),h(2,9),ne(3,Ve,3,6,"option",10,oe),F(),n(),$(5,Ee,4,4,"app-file-tree",11)),l&2){let e=W();u("displayFn",e.displayFn()),c(3),re(e.versionOptions()),c(2),J(e.rootPathLoaded()?5:-1)}}var A=new I,ye=()=>A.group({filesToRestore:A.control(""),selectedOption:A.control(null),passphrase:A.control(null)}),z=class l{#t=p(O);#e=p(b);#i=p(C);#o=p(w);#n=p(_);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=me(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=ve([this.selectFilesFormSignal,this.backupId],K(Z([null,null]),ee(([t,e])=>{let i=t?.selectedOption,s=e;if(typeof i!="number"||!s)return Q("/");let a=this.versionOptions()?.find(G=>G.Version===i);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(U(G=>(this.rootPathLoaded.set(!0),G.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let i=t?.find(s=>s.Version?.toString()===e);return i?`${i.Version}: ${this.#n.transform(i.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],standalone:!0,features:[le([_]),x],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.next())}),o(2,"h3",2),r(3,"Select files"),n(),$(4,Oe,1,0,"spk-progress-bar",3)(5,Te,6,2),o(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(i.exit())}),o(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),o(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(u("formGroup",i.selectFilesForm),c(4),J(i.versionOptionsLoading()?4:5))},dependencies:[B,P,fe,ge,V,ue,E,T,R,N,_,L,M,D,Se,he],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(O);backupId=d(null);backup=d(null);selectFilesForm=ye();optionsForm=xe();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,i=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===i.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:i.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:i.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(j(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),X([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(Y(1),j(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([i,s])=>{this.versionOptions.set(s),this.backup.set(i),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=te({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new I,xe=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(w);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],standalone:!0,features:[x],decls:41,vars:6,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.submit())}),o(2,"h3",2),r(3,"Restore options"),n(),o(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),o(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),o(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),o(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),o(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),o(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),o(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),o(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),o(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),o(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(i.goBack())}),o(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),o(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;u("formGroup",i.optionsForm),c(4),u("disallowToggle",!0),c(9),u("disabled",((s=i.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),c(4),u("disallowToggle",!0),c(20),ie("loader",i.isSubmitting())}},dependencies:[B,P,V,ce,de,E,T,R,N,be,L,Ce,Fe,M,D],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{xe as a,H as b,ye as c,z as d,b as e};
|
package/chunk-XCCXG27R.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-647BVHNL.js";import{W as s,ba as i}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var a=class r{#t=s(o);transform(t,...e){if(!t)return"";let n=t.split(".")[0],p=parseInt(n.split(":")[0])??0,u=parseInt(n.split(":")[1])??0,m=parseInt(n.split(":")[2])??0;return this.#t.duration({hours:p,minutes:u,seconds:m}).humanize()}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"durationFormat",type:r,pure:!0,standalone:!0})};export{a as DurationFormatPipe};
|
package/chunk-ZO7IMOR6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-7TGAK2FS.js";import"./chunk-OYOFQEI3.js";import"./chunk-DNHLTHLR.js";import"./chunk-KJNFJK32.js";import"./chunk-RPNE5OZL.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
package/main-B5HGTFQ3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-RPNE5OZL.js";import{a as w}from"./chunk-6SKK76PT.js";import{a as S}from"./chunk-67F45CIQ.js";import{d as Y}from"./chunk-E6PE2QMZ.js";import{c as te}from"./chunk-EF6PZOYI.js";import{H as _,K as Z,W as R,ba as Q,la as X}from"./chunk-2WWTJWN7.js";import{a as q}from"./chunk-WCMY57ZO.js";import{s as K,t as $,v as G,w as z,x as B}from"./chunk-TUN6QDZQ.js";import{b as oe}from"./chunk-647BVHNL.js";import{E as C,J as L,L as j,N as P,Q as h,T as W,W as s,Wb as U,Xa as c,_ as F,d as x,kc as D,m as A,rc as J,tb as H,x as V,y as E}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var ne={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var m=new W("ENVIRONMENT");var I=class o{#o=s(Y);isLoaded=c(!1);webmodules=c(null);preload(e=!1){let t=this.#o.getApiV1Webmodules().pipe(P(n=>this.webmodules.set(n)),C(()=>this.isLoaded.set(!0)));if(e)return t;t.subscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var re=[{path:"",children:[{path:"login",canActivate:[()=>s(w).token()!==null?s(R).navigate(["/"]):!0],loadComponent:()=>import("./chunk-OLXQO3ZT.js")},{path:"logout",loadComponent:()=>import("./chunk-CYXH6TL7.js")},{path:"",canActivate:[()=>V(s(ee).preload(!0),s(I).preload(!0))],loadComponent:()=>import("./chunk-7UN5GSLX.js"),children:[{path:"",loadComponent:()=>import("./chunk-DC5NQO2Y.js")},{path:"add-backup",loadComponent:()=>import("./chunk-43IGTI7W.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-UAAHGB26.js")},{path:"backup/import",loadComponent:()=>import("./chunk-QM3Q3TUI.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-B7BKD6BW.js"),loadChildren:()=>import("./chunk-EUKWBJHZ.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-B7BKD6BW.js"),loadChildren:()=>import("./chunk-EUKWBJHZ.js")},{path:"restore",loadComponent:()=>import("./chunk-56SGMJT3.js")},{path:"restore-flow/:id",loadComponent:()=>import("./chunk-LKYD5PU5.js"),children:[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"select-files",loadComponent:()=>import("./chunk-PBQATFTG.js")},{path:"options",loadComponent:()=>import("./chunk-D5XBMU7U.js")}]},{path:"settings",loadComponent:()=>import("./chunk-OGV5E7WV.js")},{path:"about",loadComponent:()=>import("./chunk-UXD4TQLV.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-OUZOHOAK.js")},{path:"changelog",loadComponent:()=>import("./chunk-KOXLMQOL.js")},{path:"libraries",loadComponent:()=>import("./chunk-RH4RL6FL.js")},{path:"system-info",loadComponent:()=>import("./chunk-MW756ZMH.js")},{path:"logs",loadComponent:()=>import("./chunk-JBKTYIJI.js")}]}]}]}];var M=null,se=(o,e)=>{let t=s(w),n=s(R),p=s(m),i=s(te),l=o;return t.token()&&o.url.startsWith(p.baseUrl)&&(l=o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)})),e(l).pipe(E(r=>{if(i.error(r.message),r.status===401&&!M&&(M=t.refreshToken().pipe(L())),r.status===401)return M.pipe(j(()=>e(o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)}))),E(g=>(n.navigate(["/logout"]),A(()=>g))),C(()=>M=null));let a=`Error Code: ${r.status}, Message: ${r.message}`;return A(()=>({error:r,message:a}))}))};var ce="1.0.0",ie="portal-proxy-client",le=1,T=class o{#o=1e3;#n=s(m);#e=c("disconnected");#l=c(this.#o);#i=c(!1);#r=c(!1);#a=c(null);isConnectedToMachineServer=this.#r.asReadonly();wsState=this.#e.asReadonly();#p=[];#s={};#t=null;#m=new TextDecoder("utf-8");#c=null;#d=J(()=>{let e=this.#i(),t=this.#l(),n=this.#a();if(!n||!e||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(e){let t=Uint8Array.from(atob(e),p=>p.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(e,t){let n=t?.reconnect??!1;this.#t&&this.wsState()==="authenticated"&&!n||(this.#t&&this.wsState()!=="authenticated"&&this.#t.close(),this.#t=new WebSocket(this.#n.machineServerUrl),this.#t.onopen=()=>{this.#e.set("connect"),this.#r.set(!0),this.#i.set(!1),this.#a.set(null)},this.#t.onclose=()=>{this.#e.set("disconnected"),this.#r.set(!1),this.#a.set(e),this.#i.set(!0)},this.#t.onerror=()=>{this.#e.set("error")},this.#t.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let r={token:e,publicKey:"",clientVersion:ce,protocolVersion:le},a=this.createResponse(i,"authportal",r);this.#e.set("welcome"),this.#t?.send(a)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var l=JSON.parse(i.payload??"");if(l.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#e.set("authenticated"),this.#r.set(!0);this.#p.length>0;){let r=this.#p.pop();r&&this.#s[r.messageId]&&this.activateCommand(r)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let r=this.#s[i.messageId];if(r){if(i.errorMessage){r.reject(i.errorMessage);return}else{let a=JSON.parse(i.payload??"");a.body=a?.body==null?null:this.utf8Atob(a.body),r.resolve(a)}delete this.#s[i.messageId],window.clearTimeout(r.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#e.set("disconnected"),this.#r.set(!1)}createResponse(e,t,n){let p={from:ie,to:e.from,type:t,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(p)}sendCommand(e,t,n,p,i,l,r=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,g)=>{let d=crypto.randomUUID(),y={from:ie,to:t,type:"command",messageId:d,payload:JSON.stringify({method:n,path:p,body:i,headers:l})},b={resolve:a,reject:g,timer:window.setTimeout(()=>{let v=this.#s[d];v&&(delete this.#s[d],v.reject("Timeout"))},r)};this.#s[d]=b,this.#r()?this.activateCommand(y):this.#p.push(y)})}activateCommand(e){this.#t?.send(JSON.stringify(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var f=class o{#o=c(null);config=this.#o.asReadonly();parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#e(),this.parentIframeListner=new AbortController,this.#n("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),n=JSON.parse(t);if(!n?.accessToken||!n?.clientId){this.#n("error:invalid-config");return}if(typeof n.clientId!="string"){this.#n("error:invalid-config");return}if(typeof n.accessToken!="string"){this.#n("error:invalid-config");return}console.info("postMessage config set"),this.#o.set(n)}},{signal:this.parentIframeListner.signal})}#n(e){window.parent.postMessage(e,"*")}#e(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#o.set(e)}clearConfig(){this.#o.set(null)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};function me(o){if(typeof o!="string")return null;let t=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...t))}var ae=(o,e)=>{let n=s(f).config(),p=s(m);if(n===null)return e(o);let i=s(T),l=me(o.body),r={};o.headers.keys().forEach(u=>{r[u]=o.headers.get(u)??""});let a=o.headers.get("timeout"),g=a!==null?parseInt(a):p.defaultTimeout,d=i.sendCommand(n.accessToken,n.clientId,o.method,o.url,l,r,g);return new x(u=>{d.then(y=>{let b=new K;r!=null&&Object.keys(r).forEach(N=>{b.set(N,r[N])});let v=new $({body:y.body,status:y.code,statusText:"OK",headers:b});u.next(v),u.complete()})})};var pe={providers:[D(),Q(re,X()),G(B(),z([ae,se])),S,{provide:m,useValue:ne},oe]};var k=class o{#o=s(S);#n=s(_);#e=s(f);sub=null;ngOnInit(){this.#e.fetchConfig(),this.sub=this.#n.queryParams.subscribe(({accessToken:e,clientId:t})=>{e?.length&&t?.length&&this.#e.setConfig({accessToken:e,clientId:t})}),this.#o.clearAllNotCurrentVersion()}ngOnDestroy(){this.sub?.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=F({type:o,selectors:[["app-root"]],standalone:!0,features:[U],decls:1,vars:0,template:function(t,n){t&1&&H(0,"router-outlet")},dependencies:[Z],encapsulation:2})};q(k,pe).catch(o=>console.error(o));
|