@duplicati/ngclient 0.0.164 → 0.0.166
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-25QJ7OWU.js +1 -0
- package/{chunk-2QT6CZNW.js → chunk-2HQTO4LT.js} +1 -1
- package/{chunk-NXROYR6L.js → chunk-3ADKRLYD.js} +1 -1
- package/{chunk-VEON764K.js → chunk-3O255C2R.js} +1 -1
- package/{chunk-K6IL54XE.js → chunk-3VHQLGKM.js} +1 -1
- package/{chunk-SVQCV5AE.js → chunk-4IAJY6E3.js} +1 -1
- package/chunk-4N7O6OWH.js +1 -0
- package/{chunk-JPRQYGHQ.js → chunk-53GUCO6P.js} +1 -1
- package/{chunk-VCLWADQK.js → chunk-53V6KV3I.js} +1 -1
- package/{chunk-E5E5ASXG.js → chunk-5RCKMVGY.js} +1 -1
- package/{chunk-4GY6ZWN5.js → chunk-7WATCQLK.js} +1 -1
- package/chunk-A4HSV37F.js +1 -0
- package/{chunk-7XXYLQEN.js → chunk-AROXMP46.js} +1 -1
- package/{chunk-HVB6ARTT.js → chunk-AUMCM45B.js} +1 -1
- package/{chunk-NME5JWZN.js → chunk-AY4BUZJQ.js} +1 -1
- package/{chunk-X5BOJXMC.js → chunk-BRPGUJ77.js} +1 -1
- package/{chunk-URAI6X74.js → chunk-CMFSS355.js} +1 -1
- package/{chunk-CZRQ3GX6.js → chunk-CMMGGY2S.js} +1 -1
- package/{chunk-35KH4G7Y.js → chunk-CO4VU5IU.js} +1 -1
- package/chunk-DPQEDR6U.js +1 -0
- package/{chunk-XTFTWEJS.js → chunk-E4KSSC6K.js} +1 -1
- package/chunk-EEXKY2IJ.js +1 -0
- package/chunk-EYFKXXER.js +1 -0
- package/chunk-FUPYLAQ6.js +1 -0
- package/chunk-G4Z3JAJB.js +1 -0
- package/{chunk-H3W2UQY2.js → chunk-GGNFAVSC.js} +1 -1
- package/{chunk-QMHLXETS.js → chunk-GHJ4MU3O.js} +1 -1
- package/{chunk-WJDMMKWE.js → chunk-GRPEAINE.js} +1 -1
- package/{chunk-RPJFKWMV.js → chunk-HEST3B3S.js} +1 -1
- package/chunk-HJSCQF6V.js +1 -0
- package/{chunk-465L4ZG5.js → chunk-HKYSIIV5.js} +1 -1
- package/{chunk-AT6BXXSP.js → chunk-HW7A5ZWV.js} +1 -1
- package/{chunk-ISCGGOPN.js → chunk-ILGMXHEE.js} +1 -1
- package/chunk-IMF5BUVN.js +1 -0
- package/{chunk-2CWLIRUP.js → chunk-IQ52IXSC.js} +1 -1
- package/{chunk-2DP4QU4T.js → chunk-J64OAILA.js} +1 -1
- package/{chunk-OHP7HLY2.js → chunk-JGXPFEYZ.js} +1 -1
- package/{chunk-D3LEV6WL.js → chunk-JXLBFHEH.js} +1 -1
- package/chunk-KKLVMIFL.js +1 -0
- package/{chunk-H4H72SDD.js → chunk-KUP2T6AG.js} +1 -1
- package/{chunk-NFIJYWQI.js → chunk-L7WPKNLR.js} +1 -1
- package/{chunk-TBTQMBCJ.js → chunk-LHOHOKP5.js} +1 -1
- package/{chunk-NZDZUPC5.js → chunk-M2BAPEJT.js} +1 -1
- package/{chunk-IKPQDSQK.js → chunk-NA6MTRHY.js} +2 -2
- package/{chunk-Z5W4ULWF.js → chunk-NDZU2O2Q.js} +1 -1
- package/chunk-NLXY47SY.js +1 -0
- package/{chunk-RNWKZDZM.js → chunk-NXJQU7IR.js} +1 -1
- package/{chunk-POJT4MSX.js → chunk-NY63VRAY.js} +1 -1
- package/{chunk-E3KF5SRU.js → chunk-O2M7MRKP.js} +1 -1
- package/{chunk-AWXWGD4T.js → chunk-OQ2HMOSQ.js} +1 -1
- package/{chunk-SXFSAK5L.js → chunk-OVLLX4US.js} +1 -1
- package/{chunk-TC7HZO7D.js → chunk-P7OKMMNZ.js} +1 -1
- package/chunk-POAVE42X.js +1 -0
- package/{chunk-PKK4MIRQ.js → chunk-Q4I4JXKZ.js} +1 -1
- package/chunk-QAY6UFT6.js +1 -0
- package/chunk-QE4NBN5H.js +2 -0
- package/{chunk-QBHHGHBJ.js → chunk-QLUEDPL4.js} +1 -1
- package/{chunk-E6DCTQ34.js → chunk-QOQI2ALM.js} +1 -1
- package/{chunk-5KMPTDRJ.js → chunk-R2N5UWYB.js} +1 -1
- package/chunk-R3F6GIHW.js +1 -0
- package/{chunk-CENUQU54.js → chunk-RRM5OZPV.js} +2 -2
- package/{chunk-ZLLXHZQV.js → chunk-SFSDLKTN.js} +1 -1
- package/{chunk-DY4NXNVS.js → chunk-SHNCRKXQ.js} +1 -1
- package/chunk-SKFITJZT.js +1 -0
- package/{chunk-O5W6EGCB.js → chunk-SNVT3M5C.js} +1 -1
- package/chunk-TPYX7QC7.js +1 -0
- package/{chunk-75C77QFK.js → chunk-ULR2EPP5.js} +1 -1
- package/{chunk-MSASOFXF.js → chunk-V5B247QH.js} +1 -1
- package/{chunk-W2SSWLYM.js → chunk-V7OQKE2Z.js} +1 -1
- package/{chunk-4Z72AON4.js → chunk-VXJJGZ5F.js} +1 -1
- package/{chunk-DQAT6VCF.js → chunk-W7NX3PWJ.js} +1 -1
- package/chunk-WJEUX75A.js +1 -0
- package/{chunk-DF6VTK4B.js → chunk-WKA7CSGA.js} +1 -1
- package/{chunk-D7OP5FPA.js → chunk-WNHQELMC.js} +1 -1
- package/{chunk-J34TTKLN.js → chunk-WPIVIZS6.js} +1 -1
- package/{chunk-4VZNWPWO.js → chunk-X6SJVQXW.js} +1 -1
- package/{chunk-MPQNBRD5.js → chunk-X7XIFHAV.js} +1 -1
- package/{chunk-ATGKEH5N.js → chunk-XUQ74HFK.js} +1 -1
- package/{chunk-2VOU6SHS.js → chunk-Y2LISX47.js} +1 -1
- package/chunk-Y7PHGRGB.js +4 -0
- package/{chunk-Y4GDUNWN.js → chunk-YU5AMM6C.js} +1 -1
- package/{chunk-35ZUPRX7.js → chunk-YWZRYOES.js} +1 -1
- package/{chunk-AE7T2DAH.js → chunk-ZQ56M63S.js} +1 -1
- package/chunk-ZSEZR472.js +1 -0
- package/{chunk-EUVXYJ2O.js → chunk-ZXEF3CNK.js} +1 -1
- package/{chunk-GNJTDWT4.js → chunk-ZZBUNZZO.js} +1 -1
- package/{chunk-GOFRTODH.js → chunk-ZZBZEHXF.js} +1 -1
- package/index.html +2 -2
- package/locale/messages.en.json +3 -0
- package/locale/messages.json +3 -0
- package/main-L5HX5P6R.js +1 -0
- package/package.json +1 -1
- package/styles-5QAJP4BI.css +1 -0
- package/chunk-5RQDJUIT.js +0 -1
- package/chunk-732GPC5D.js +0 -1
- package/chunk-ACZQPL4M.js +0 -1
- package/chunk-EOKEY2WO.js +0 -1
- package/chunk-EVJEPFC6.js +0 -1
- package/chunk-IFCA5KWR.js +0 -1
- package/chunk-LH6XLRJU.js +0 -1
- package/chunk-MCOUCF6F.js +0 -1
- package/chunk-PIMTQKQK.js +0 -1
- package/chunk-RIX6H2ZX.js +0 -1
- package/chunk-TGNUULAU.js +0 -1
- package/chunk-VNGJCKGG.js +0 -1
- package/chunk-W4KOKNGU.js +0 -1
- package/chunk-WZAZENJC.js +0 -1
- package/chunk-X4KK6R3X.js +0 -1
- package/chunk-XKKT2NP5.js +0 -1
- package/chunk-XRI2BFC2.js +0 -2
- package/chunk-XUN5TTJC.js +0 -1
- package/chunk-Z34TVTJN.js +0 -1
- package/chunk-Z4MDYLVI.js +0 -1
- package/chunk-ZBK64QS2.js +0 -4
- package/main-75X3EGHT.js +0 -1
- package/styles-JSM72RCO.css +0 -1
package/chunk-TGNUULAU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Xt,ea as Ai}from"./chunk-NXROYR6L.js";import{$b as D,Ab as Ht,Ac as re,Bb as Bt,Bc as $t,Cb as ge,Cc as mt,Db as E,Dc as Wt,Eb as V,Fb as Ne,Gb as z,Hb as $,Ib as Ae,Lb as Ie,Mb as he,Pc as Gt,Qc as be,Ra as Mi,Rc as F,S as ht,Sa as S,Sc as J,U as ue,Ua as pt,V as Le,W as Ye,Wa as ye,Wc as xe,Xa as A,Xc as O,Y as Ce,Ya as Ei,Yc as fe,Zb as W,Zc as Ti,_ as I,_b as Pe,_c as ne,a as mi,ac as G,ad as qt,ba as Di,bc as b,ca as bi,cb as H,da as Si,db as Ze,ea as j,eb as Y,ed as Ni,fa as U,fc as xi,gb as ie,gc as pe,gd as Yt,hb as Te,hc as De,i as vi,ic as Oi,ja as Xe,jc as se,ka as He,kb as Me,kc as q,la as Be,lc as Vi,m as _i,mb as kt,mc as ve,nc as P,oa as Ft,ob as wi,oc as Ke,pa as T,pc as we,qc as ft,r as Ci,rb as Rt,sa as Qe,sc as jt,ta as je,tc as Ut,ub as Ee,uc as zt,va as K,vc as gt,wc as me,x as yi,xb as R,xc as Q,yb as L,zb as Lt}from"./chunk-ZBK64QS2.js";import{a as X,b as te,c as gi,d as m,e as w,f as x,g as M}from"./chunk-EUDKD2JW.js";var ji=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K))};static \u0275dir=Y({type:i})}return i})(),rt=(()=>{class i extends ji{static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,features:[ie]})}return i})(),Ve=new Ce(""),Vn={provide:Ve,useExisting:ue(()=>Tn),multi:!0},Tn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Vn]),ie]})}return i})(),Nn={provide:Ve,useExisting:ue(()=>Ui),multi:!0};function An(){let i=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var In=new Ce(""),Ui=(()=>{class i extends ji{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!An())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(In,8))};static \u0275dir=Y({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,o){n&1&&W("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[re([Nn]),ie]})}return i})();function Jt(i){return i==null||ei(i)===0}function ei(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Fe=new Ce(""),ke=new Ce(""),Pn=/^(?=.{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])?)*$/,Ii=class{static min(e){return Fn(e)}static max(e){return kn(e)}static required(e){return Rn(e)}static requiredTrue(e){return Ln(e)}static email(e){return Hn(e)}static minLength(e){return Bn(e)}static maxLength(e){return jn(e)}static pattern(e){return Un(e)}static nullValidator(e){return zi()}static compose(e){return Xi(e)}static composeAsync(e){return Qi(e)}};function Fn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function kn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Rn(i){return Jt(i.value)?{required:!0}:null}function Ln(i){return i.value===!0?null:{required:!0}}function Hn(i){return Jt(i.value)||Pn.test(i.value)?null:{email:!0}}function Bn(i){return e=>{let t=e.value?.length??ei(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){return e=>{let t=e.value?.length??ei(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function Un(i){if(!i)return zi;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Jt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function zi(i){return null}function $i(i){return i!=null}function Wi(i){return wi(i)?_i(i):i}function Gi(i){let e={};return i.forEach(t=>{e=t!=null?X(X({},e),t):e}),Object.keys(e).length===0?null:e}function qi(i,e){return e.map(t=>t(i))}function zn(i){return!i.validate}function Yi(i){return i.map(e=>zn(e)?e:t=>e.validate(t))}function Xi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){return Gi(qi(t,e))}}function ti(i){return i!=null?Xi(Yi(i)):null}function Qi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){let n=qi(t,e).map(Wi);return yi(n).pipe(Ci(Gi))}}function ii(i){return i!=null?Qi(Yi(i)):null}function Pi(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Zi(i){return i._rawValidators}function Ki(i){return i._rawAsyncValidators}function Qt(i){return i?Array.isArray(i)?i:[i]:[]}function _t(i,e){return Array.isArray(i)?i.includes(e):i===e}function Fi(i,e){let t=Qt(e);return Qt(i).forEach(o=>{_t(t,o)||t.push(o)}),t}function ki(i,e){return Qt(e).filter(t=>!_t(i,t))}var Ct=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ti(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends Ct{name;get formDirective(){return null}get path(){return null}},_e=class extends Ct{_parent=null;name=null;valueAccessor=null},yt=class{_cd;constructor(e){this._cd=e}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}},$n={"[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"},Lr=te(X({},$n),{"[class.ng-submitted]":"isSubmitted"}),Hr=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(_e,2))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),Br=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(oe,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",vt="INVALID",Ue="PENDING",et="DISABLED",Oe=class{},Dt=class extends Oe{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends Oe{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends Oe{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},ze=class extends Oe{status;source;constructor(e,t){super(),this.status=e,this.source=t}},bt=class extends Oe{source;constructor(e){super(),this.source=e}},St=class extends Oe{source;constructor(e){super(),this.source=e}};function ni(i){return(xt(i)?i.validators:i)||null}function Wn(i){return Array.isArray(i)?ti(i):i||null}function oi(i,e){return(xt(e)?e.asyncValidators:i)||null}function Gn(i){return Array.isArray(i)?ii(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ji(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function en(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var $e=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=F(()=>this.statusReactive());statusReactive=T(void 0);get valid(){return this.status===Je}get invalid(){return this.status===vt}get pending(){return this.status==Ue}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=F(()=>this.pristineReactive());pristineReactive=T(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=F(()=>this.touchedReactive());touchedReactive=T(!1);get untouched(){return!this.touched}_events=new vi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fi(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fi(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ki(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}hasValidator(e){return _t(this._rawValidators,e)}hasAsyncValidator(e){return _t(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=Ue;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ze(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(X({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(X({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,n)),this._events.next(new ze(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(X({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===Ue)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,t)),this._events.next(new ze(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(X({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Wi(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new ze(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(vt)?vt:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gn(this._rawAsyncValidators)}},We=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){en(this,!0,e),Object.keys(e).forEach(n=>{Ji(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Zt=class extends We{};var Re=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Ot(i,e){return[...e.path,i]}function st(i,e,t=at){si(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Yn(i,e),Qn(i,e),Xn(i,e),qn(i,e)}function Mt(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Et(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function qn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function si(i,e){let t=Zi(i);e.validator!==null?i.setValidators(Pi(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ki(i);e.asyncValidator!==null?i.setAsyncValidators(Pi(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Et(e._rawValidators,o),Et(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Zi(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Et(e._rawValidators,n),Et(e._rawAsyncValidators,n),t}function Yn(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&tn(i,e)})}function Xn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&tn(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function tn(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function nn(i,e){i==null,si(i,e)}function Zn(i,e){return wt(i,e)}function ri(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Kn(i){return Object.getPrototypeOf(i.constructor)===rt}function on(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ai(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===Ui?t=s:Kn(s)?n=s:o=s}),o||n||t||null}function Jn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var eo={provide:oe,useExisting:ue(()=>to)},tt=Promise.resolve(),to=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=F(()=>this.submittedReactive());submittedReactive=T(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new We({},ti(t),ii(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new We({});nn(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),on(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new St(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([eo]),ie]})}return i})();function Ri(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Li(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends $e{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ni(t),oi(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Li(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ri(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ri(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Li(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var io=i=>i instanceof ot,no=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,standalone:!1,features:[ie]})}return i})();var oo={provide:_e,useExisting:ue(()=>so)},Hi=Promise.resolve(),so=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,y){super(),this._changeDetectorRef=c,this.callSetDisabledState=y,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ri(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hi.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ni(n);Hi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(A(oe,9),A(Fe,10),A(ke,10),A(Ve,10),A(qt,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([oo]),ie,Qe]})}return i})();var Ur=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),ro={provide:Ve,useExisting:ue(()=>ao),multi:!0},ao=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&W("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ro]),ie]})}return i})(),lo={provide:Ve,useExisting:ue(()=>uo),multi:!0};var co=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uo=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=I(Re,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(co),A(Xe))};static \u0275dir=Y({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([lo]),ie]})}return i})(),ho={provide:Ve,useExisting:ue(()=>po),multi:!0},po=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ho]),ie]})}return i})(),li=new Ce(""),fo={provide:_e,useExisting:ue(()=>go)},go=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ai(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Mt(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ri(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Mt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Ve,10),A(li,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([fo]),ie,Qe]})}return i})(),mo={provide:oe,useExisting:ue(()=>sn)},sn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=F(()=>this._submittedReactive());_submittedReactive=T(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Mt(t.control||null,t,!1),Jn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),on(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new St(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Mt(n||null,t),io(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);nn(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){si(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([mo]),ie,Qe]})}return i})(),vo={provide:oe,useExisting:ue(()=>rn)},rn=(()=>{class i extends no{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){ln(this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([vo]),ie]})}return i})(),_o={provide:oe,useExisting:ue(()=>an)},an=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){ln(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([_o]),ie]})}return i})();function ln(i){return!(i instanceof rn)&&!(i instanceof sn)&&!(i instanceof an)}var Co={provide:_e,useExisting:ue(()=>yo)},yo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){this._added||this._setUpControl(),ri(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10),A(Ve,10),A(li,8))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Co]),ie,Qe]})}return i})();var cn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({})}return i})(),Kt=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){en(this,!1,e),e.forEach((n,o)=>{Ji(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Bi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var zr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return Bi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new We(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Zt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(Bi(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(X({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Kt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof $e)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var $r=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})(),Wr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:li,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})();var ce=["*"],Do=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],bo=["[icon]","sh-icon","[title]","*","[content]","p"];function So(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Eo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning"),V())}function wo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning-octagon"),V())}function xo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"check-circle"),V())}function Oo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"question"),V())}function Vo(i,e){if(i&1){let t=he();E(0,"sh-icon",7),W("click",function(){j(t);let o=D();return U(o.removeAlert())}),P(1,"plus"),V()}}var To=["dialogRef"];function No(i,e){if(i&1){let t=he();z(0,"div",5),Pe("click",function(){j(t);let o=D(2);return U(o.isOpen.set(!1))}),$()}}function Ao(i,e){if(i&1&&(z(0,"dialog",2,0)(2,"div",3),b(3),$(),R(4,No,1,0,"div",4),$()),i&2){let t=D(),n=Q(0);ve(n.class),se("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),L(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Io=["shButton",""];var Po=["triggerRef"],Fo=["popoverRef"],ko=["popoverContentRef"],Ro=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Lo=["[trigger]","button","[shButton]","*"];function Ho(i,e){if(i&1){let t=he();z(0,"div",6,1)(2,"div",7),Pe("click",function(o){j(t);let s=D();return U(s.eventClose(o))}),$(),z(3,"div",8,2),b(5,3),$()()}if(i&2){let t=D();Ee("id",t.id()+"hello"),S(3),Vi(t.menuStyle()),se("position-anchor",t.id())}}var Bo=()=>({closeOnButton:!1,closeOnEsc:!0});var jo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Uo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],zo=["input"],$o=[[["label"]]],Wo=["label"];function Go(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),Ke(t.files()[0].name)}}function qo(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),we("",t.files().length," files selected")}}function Yo(i,e){if(i&1&&(E(0,"div",4),P(1),V()),i&2){let t=D();S(),Ke(t.filesOver()?t.overlayText():t.placeholder())}}var Xo=["inputRef"],Qo=["optionsRef"],Zo=["*",[["","menu",""]]],Ko=["*","[menu]"];function Jo(i,e){i&1&&(E(0,"sh-icon",5),P(1,"caret-down"),V())}var es=[[["label"]],[["input","type","range"]]],ts=["label","input[type=range]"],is=["optionsWrap"],ns=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],os=["label","[prefix]","[boxPrefix]","input","textarea"],ss=()=>({closeOnButton:!1,closeOnEsc:!1}),dn=(i,e)=>({$implicit:i,last:e}),pi=i=>({$implicit:i});function rs(i,e){if(i&1&&P(0),i&2){let t=D();we(" ",t.inputValue()," ")}}function as(i,e){i&1&&Ie(0)}function ls(i,e){if(i&1&&Te(0,as,1,0,"ng-container",13),i&2){let t=D(3),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function cs(i,e){if(i&1&&P(0),i&2){let t=D(3).$implicit,n=D(2);we(" ",n.getLabel(t)," ")}}function ds(i,e){if(i&1){let t=he();E(0,"sh-chip",12),W("click",function(o){j(t);let s=D(2).$index,c=D(2);return U(c.removeSelectedOptionByIndex(o,s))}),R(1,ls,1,5,"ng-container")(2,cs,1,1),E(3,"sh-icon"),P(4,"x-bold"),V()()}if(i&2){let t=D(4),n=Q(3);ve(t.selectClasses()),S(),L(n?1:2)}}function us(i,e){i&1&&Ie(0)}function hs(i,e){if(i&1&&Te(0,us,1,0,"ng-container",13),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function ps(i,e){if(i&1&&P(0),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count,c=D(2);we(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function fs(i,e){if(i&1&&R(0,hs,1,5,"ng-container")(1,ps,1,1),i&2){D(5);let t=Q(3);L(t?0:1)}}function gs(i,e){if(i&1&&R(0,fs,2,1),i&2){D(4);let t=Q(6);L(t?-1:0)}}function ms(i,e){if(i&1&&R(0,ds,5,3,"sh-chip",11)(1,gs,1,1),i&2){D(3);let t=Q(5);L(t?0:1)}}function vs(i,e){if(i&1&&R(0,ms,2,1),i&2){let t=e.$implicit;L(t?0:-1)}}function _s(i,e){if(i&1&&Ht(0,vs,1,1,null,null,Lt),i&2){D();let t=Q(2);Bt(t)}}function Cs(i,e){i&1&&Ie(0)}function ys(i,e){if(i&1&&Te(0,Cs,1,0,"ng-container",14),i&2){D(2);let t=Q(0);ge("ngTemplateOutlet",t)}}function Ds(i,e){if(i&1&&P(0),i&2){let t=D(2);we(" ",t.placeholderText()??""," ")}}function bs(i,e){if(i&1&&R(0,ys,1,1,"ng-container")(1,Ds,1,1),i&2){D();let t=Q(0);L(t?0:1)}}function Ss(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Ms(i,e){i&1&&Ne(0,"sh-spinner",7)}function Es(i,e){i&1&&(E(0,"sh-icon",6),P(1,"list-magnifying-glass"),V())}function ws(i,e){i&1&&(E(0,"sh-icon",6),P(1,"magnifying-glass"),V())}function xs(i,e){if(i&1){let t=he();E(0,"sh-icon",15),W("click",function(o){j(t);let s=D();return U(s.clear(o))}),P(1,"x-bold"),V()}}function Os(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Vs(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-up"),V())}function Ts(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D(3);S(),Ke(t.freeTextTitle())}}function Ns(i,e){i&1&&Ie(0)}function As(i,e){if(i&1&&Te(0,Ns,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(1);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Is(i,e){i&1&&Ie(0)}function Ps(i,e){if(i&1&&Te(0,Is,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Fs(i,e){if(i&1&&P(0),i&2){D(2);let t=Q(1);we(" ",t," ")}}function ks(i,e){i&1&&Ne(0,"sh-divider")}function Rs(i,e){if(i&1){let t=he();R(0,Ts,2,1,"p",9),E(1,"li",16),W("click",function(){j(t);let o=D(2);return U(o.toggleOptionByIndex(-1))}),R(2,As,1,4,"ng-container")(3,Ps,1,4,"ng-container")(4,Fs,1,1),V(),R(5,ks,1,0,"sh-divider")}if(i&2){D();let t=Q(0),n=D(),o=Q(1),s=Q(4);L(n.freeTextTitle()?0:-1),S(),q("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),ge("id",n.getLabelAsSlug(t)),Ee("aria-selected",n.isSelected(-1)),S(),L(o?2:s?3:4),S(3),L(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ls(i,e){if(i&1&&(gt(0)(1),R(2,Rs,6,9)),i&2){let t=D(),n=me(t.computedFreeTextOption());S();let o=me(t.getValue(n));S(),L(o.length>0?2:-1)}}function Hs(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D();S(),Ke(t.optionTitle())}}function Bs(i,e){if(i&1&&Ne(0,"sh-checkbox"),i&2){let t=D().$index,n=D();ve(n.selectClasses()),q("active",n.isSelected(t))}}function js(i,e){i&1&&Ie(0)}function Us(i,e){if(i&1&&Te(0,js,1,0,"ng-container",13),i&2){let t=D().$implicit;D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function zs(i,e){if(i&1&&P(0),i&2){let t=D().$implicit,n=D();we(" ",n.getLabel(t)," ")}}function $s(i,e){if(i&1){let t=he();E(0,"li",16),W("click",function(){let o=j(t).$index,s=D();return U(s.toggleOptionByIndex(o))}),R(1,Bs,1,4,"sh-checkbox",17),R(2,Us,1,4,"ng-container")(3,zs,1,1),V()}if(i&2){let t=e.$implicit,n=e.$index,o=D(),s=Q(4);q("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),ge("id",o.getLabelAsSlug(t)),Ee("aria-selected",o.isSelected(n)),S(),L(o.selectMultiple()?1:-1),S(),L(s?2:3)}}var Ws=["dragImageElement"],Gs=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],qs=["[sidenav]","[sidenav-closed-topbar]","*"];function Ys(i,e){i&1&&Ae(0,"div",1,0)}function Xs(i,e){if(i&1){let t=he();z(0,"div",7),Pe("drop",function(o){j(t);let s=D();return U(s.drop(o))})("dragenter",function(){j(t);let o=D();return U(o.dragEnter())})("dragleave",function(){j(t);let o=D();return U(o.dragLeave())}),$()}}function Qs(i,e){if(i&1){let t=he();z(0,"div",8),Pe("dragstart",function(o){j(t);let s=D();return U(s.dragStart(o))})("dragend",function(o){j(t);let s=D();return U(s.dragEnd(o))})("drag",function(o){j(t);let s=D();return U(s.drag(o))})("touchstart",function(o){j(t);let s=D();return U(s.touchStart(o))})("touchmove",function(o){j(t);let s=D();return U(s.touchMove(o))})("touchend",function(o){j(t);let s=D();return U(s.touchEnd(o))})("touchcancel",function(o){j(t);let s=D();return U(s.touchCancel(o))}),$()}}var Zs=["thead"],Ks=["tbody"],Js=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],er=["th","[thead]","*","[table-no-rows]"];function tr(i,e){i&1&&Ne(0,"sh-progress-bar",2)}function ir(i,e){i&1&&(E(0,"div",3),b(1,3),V())}var nr=[[["","title",""]],"*"],or=["[title]","*"];function sr(i,e){i&1&&P(0,"Title")}function rr(i,e){i&1&&(E(0,"sh-icon",1),P(1,"caret-down"),V())}var ar=["bold","thin","light","fill","duotone"],qe=(()=>{var e,t;let n=class n{constructor(){w(this,e,I(K));w(this,t,I(ye))}ngAfterContentInit(){let s=m(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&ar.includes(c)&&m(this,t).addClass(m(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-icon"]],ngContentSelectors:ce,decls:1,vars:0,template:function(c,y){c&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function At(i=null){let e=i??I(K).nativeElement;if(!e)return T("");let t=T(e.className);if(typeof MutationObserver>"u")return t.asReadonly();let n=I(Be),o=new MutationObserver(s=>{for(let c of s)if(c.type==="attributes"&&c.attributeName==="class"){let y=c.target;t.set(y.className)}});return o.observe(e,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),t.asReadonly()}var It=new Ce("Ship UI Config"),lr=["simple","outlined","flat","raised"],Ca=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.variant=T(m(this,e)?.alertVariant??""),this._el=I(K),this.alertService=O(null),this.id=O(null),this.currentClasses=At(),this.activeClass=F(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?lr.find(y=>this.currentClasses().includes(y))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:bo,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(s,c){if(s&1&&(G(Do),E(0,"div",1)(1,"div",2,0),b(3),b(4,1),V(),E(5,"div",2),R(6,So,2,0,"sh-icon",3)(7,Mo,2,0,"sh-icon",3)(8,Eo,2,0,"sh-icon",3)(9,wo,2,0,"sh-icon",3)(10,xo,2,0,"sh-icon",3)(11,Oo,2,0,"sh-icon",3),V(),E(12,"div",4),b(13,2),b(14,3),V(),R(15,Vo,2,0,"sh-icon",5),E(16,"div",6),b(17,4),b(18,5),V()()),s&2){let y=Oi(2);S(),se("display",y.children.length?"block":"none");let C=c.currentClasses();S(5),L(C.includes("primary")?6:C.includes("accent")?7:C.includes("warn")?8:C.includes("error")?9:C.includes("success")?10:11),S(9),L(c.id()?15:-1)}},dependencies:[qe],encapsulation:2,changeDetection:0});let i=t;return i})();function Pt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ya=(()=>{let e=class e{constructor(){this.alertHistory=T([]),this.alertHistoryIsOpen=T(!1),this.alertHistoryIsHidden=T(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let o=Pt();this.alertHistory.update(s=>[te(X({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(X({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),cr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},dr=(()=>{var e,t;let n=class n{constructor(){w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(It,{optional:!0})),this.dialogRef=fe("dialogRef"),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(te(X({},cr),{class:m(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=J(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),m(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,y){c&1&&pe(y.dialogRef,To,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ce,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,y){c&1&&(G(),gt(0),R(1,Ao,5,11,"dialog",1)),c&2&&(me(y.defaultOptionMerge()),S(),L(y.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Da=(()=>{var e,t,n,o,un,lt;let y=class y{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);x(this,e,I(He)),x(this,t,m(this,e).querySelector("body")),x(this,n,I(Rt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,d){let u=m(this,n).injector,p=M(this,o,un).call(this),g=!1,Z=d||{},{data:v,closed:a}=Z,l=gi(Z,["data","closed"]);this.compRef&&M(this,o,lt).call(this,!0),this.insertedCompRef=Yt(r,{environmentInjector:u}),this.compRef=Yt(dr,{hostElement:p,environmentInjector:u,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let f=this.insertedCompRef.instance?.data,h=this.insertedCompRef.instance?.closed;if(v){if(Ft(f))this.insertedCompRef.setInput("data",v);else if(!Ft(f))throw new Error("data is not an input signal on the passed component")}h instanceof Gt&&(this.closedFieldSub=h.subscribe((...B)=>{M(this,o,lt).call(this),!g&&(g=!0,a?.(...B),this.compRef?.instance.closed.emit(...B))})),m(this,n).attachView(this.insertedCompRef.hostView),m(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",l),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>N());let _=this;function N(B=void 0){var k;M(k=_,o,lt).call(k),!g&&(g=!0,h&&h instanceof Gt&&h.emit(B),a?.(B))}return{component:this.insertedCompRef.instance,close:N,closed:this.compRef.instance.closed}}ngOnDestroy(){M(this,o,lt).call(this,!0)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,un=function(){let r=m(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",m(this,e).getElementById("sh-dialog-ref")||m(this,t)?.append(r),m(this,e).getElementById("sh-dialog-ref")},lt=function(r=!1){let d=this;r||queueMicrotask(()=>u());function u(){d.insertedCompRef&&(m(d,n).detachView(d.insertedCompRef.hostView),d.closedFieldSub?.unsubscribe(),d.insertedCompRef.destroy()),d.compRef&&(m(d,n).detachView(d.compRef.hostView),d.compClosedSub?.unsubscribe(),d.compRef.destroy())}},y.\u0275fac=function(d){return new(d||y)},y.\u0275prov=Le({token:y,factory:y.\u0275fac,providedIn:"root"});let i=y;return i})();var ba=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--btng-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Sa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Io,ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ma=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.class=T(m(this,e)?.cardType??"type-a")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.class())},ngContentSelectors:ce,decls:1,vars:0,template:function(s,c){s&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ur=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:ce,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(G(),E(0,"div",0)(1,"sh-icon",1),P(2,"check-bold"),V(),E(3,"sh-icon",2),P(4,"minus-bold"),V()(),E(5,"div",3),b(6),V()),o&2&&ve(s.currentClassList())},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ce,decls:2,vars:0,template:function(o,s){o&1&&(G(),z(0,"div"),b(1),$())},encapsulation:2,changeDetection:0});let i=e;return i})();var Vt=4,pr=["scroll","auto"],fr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},hn=(()=>{var e,t,pn,fn,gn,mn,vn,Tt;let r=class r{constructor(){w(this,t);w(this,e);x(this,e,I(He)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=O(!1),this.disableOpenByClick=O(!1),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(X({},fr),this.options())),this.triggerRef=fe.required("triggerRef"),this.popoverRef=fe("popoverRef"),this.popoverContentRef=fe("popoverContentRef"),this.id=T("--"+Pt()),this.menuStyle=T(null),this.openAbort=null,this.openEffect=J(()=>{let u=this.isOpen();queueMicrotask(()=>{let p=this.popoverRef()?.nativeElement;if(!p){this.openAbort?.abort(),this.openAbort=null;return}u?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,m(this,e).addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),p.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{M(this,t,pn).call(this,p).addEventListener("scroll",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),M(this,t,Tt).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(u){this.disableOpenByClick()||(u.preventDefault(),u.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(u){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};e=new WeakMap,t=new WeakSet,pn=function(u){let p=u.parentElement;for(;p;){if(pr.indexOf(window?.getComputedStyle(p).overflowY)>-1&&p.scrollHeight>p.clientHeight)return p;p=p.parentElement}return m(this,e).documentElement},fn=function(u,p){let g=u.left,v=u.bottom+Vt;return{left:g,top:v}},gn=function(u,p){let g=u.right+Vt,v=u.top;return{left:g,top:v}},mn=function(u,p){let g=u.right+Vt,v=u.bottom;return{left:g,top:v}},vn=function(u,p){let g=u.left,v=u.bottom-u.height-p.height-Vt;return{left:g,top:v}},Tt=function(){let u=this.triggerRef()?.nativeElement.getBoundingClientRect(),p=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),g=[M(this,t,gn),M(this,t,mn)],v=[M(this,t,fn),M(this,t,vn)],a=this.asMultiLayer()?g:v;for(let f=0;f<a.length;f++){let h=a[f](u,p),_=h.left+(p?.width||0)>window.innerWidth,N=h.top+(p?.height||0)>window.innerHeight;if(!_&&!N){this.menuStyle.set({left:h.left+"px",top:h.top+"px"});return}}let l=a[0](u,p);this.menuStyle.set({left:l.left+"px",top:l.top+"px"})},r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=H({type:r,selectors:[["sh-popover"]],viewQuery:function(p,g){p&1&&(pe(g.triggerRef,Po,5),pe(g.popoverRef,Fo,5),pe(g.popoverContentRef,ko,5)),p&2&&De(3)},hostVars:2,hostBindings:function(p,g){p&2&&q("multi-layer",g.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Lo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(p,g){if(p&1){let v=he();G(Ro),z(0,"div",3,0),Pe("click",function(l){return j(v),U(g.toggleIsOpen(l))}),z(2,"div",4),b(3),b(4,1),b(5,2),$(),Ae(6,"div",5),$(),R(7,Ho,6,5,"div",6)}p&2&&(Ee("popovertarget",g.id()+"hello"),S(6),se("anchor-name",g.id()),S(),L(g.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=r;return i})();var gr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-divider"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var fi=(()=>{var e;let t=class t{constructor(){w(this,e,I(K));kt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let C=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(C,0)};var c=C,y=r;s.addEventListener("change",C),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),C()}})}onClick(){m(this,e).nativeElement.querySelector("input")&&m(this,e).nativeElement.querySelector("input").focus(),m(this,e).nativeElement.querySelector("textarea")&&m(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&W("click",function(){return c.onClick()})},ngContentSelectors:Uo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(G(jo),b(0),z(1,"div",0)(2,"div",1),b(3,1),b(4,2),b(5,3),$(),b(6,4),b(7,5),z(8,"div",2),b(9,6),b(10,7),b(11,8),$()(),z(12,"div",3)(13,"div",4),b(14,9),$(),z(15,"div",5),b(16,10),$()())},encapsulation:2,changeDetection:0});let i=t;return i})(),Ea=(()=>{let e=class e{constructor(){this._el=I(K),this.inputRef=fe.required("input"),this.filesOver=T(!1),this.multiple=O(),this.accept=O(null),this.placeholder=ne("Click or drag files here"),this.overlayText=O("Drop files here"),this.files=ne([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=J(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&pe(s.inputRef,zo,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Wo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(G($o),E(0,"sh-form-field"),b(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),R(4,Go,2,1,"div",3)(5,qo,2,1,"div",3)(6,Yo,2,1,"div",4),Ne(7,"input",5,1)(9,"div",6),V(),E(10,"sh-icon",7),P(11,"upload-simple"),V()()),o&2&&(ve(s.fileUploadClasses()),S(4),L(s.files().length===1?4:s.files().length>1?5:6),S(3),Ee("multiple",s.multiple())("accept",s.accept()),S(2),q("files-over",s.filesOver()))},dependencies:[fi,qe],encapsulation:2,changeDetection:0});let i=e;return i})(),wa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-list"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function _n(i,e){let t=e?.injector||(Si(_n),I(Xe)),{debounce:n=0,initialValue:o=void 0,transform:s=h=>h,compare:c=(h,_)=>h===_,forceType:y=void 0,returnPreviousValue:C=!0}=e||{},r=T(o),d=t.get(Be),u=F(()=>{let h=i()?.nativeElement;if(h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement)return l(h)}),p=!1,g,v=null;return J(()=>{let h=u();if(!h)return r.set(C&&g?s(g):void 0);o!==void 0&&h.value===""?r.set(o):h.value!==""&&a();let _=N=>{v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,a()},n)};h.addEventListener("input",_),h.addEventListener("inputValueChanged",_),d.onDestroy(()=>{h.removeEventListener("input",_),h.removeEventListener("inputValueChanged",_),v!==null&&clearTimeout(v)})},{injector:t}),J(()=>{let h=u();if(!h)return;let _=r()??"",N=_==null?"":String(_);h.value!==N&&(g=N,h.value=N,h.dispatchEvent(new Event("input")))},{injector:t}),r;function a(){if(!p){p=!0;try{let h=u();if(!h)return;let _=h.value,N=y?f(_,y):s(_);g=_,c(r(),N)||r.set(N)}finally{p=!1}}}function l(h){return Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(_){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,_);let Z=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:_}});return this.dispatchEvent(Z),_}}),h}function f(h,_){switch(_){case"string":return h.toString();case"number":let N=Number(h);return isNaN(N)?void 0:N;case"boolean":return h.toLowerCase()==="true"?!0:h.toLowerCase()==="false"?!1:void 0;default:return h}}}function Cn(i,e){let t=I(Xe),n=t.get(Be),o=T([]),s=null,c=null,y=(r,d)=>{c&&c.disconnect();let u=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(u),typeof MutationObserver<"u"&&(c=new MutationObserver(p=>{queueMicrotask(()=>{let g=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(g)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>C())};s=J(()=>{let r=typeof i=="function"&&i[mi]?i():i,d=typeof e=="function"?e():e;r&&d?.length>0?y(r,d):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function C(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:C}}var xa=(()=>{var e,t,n,yn,ci;let c=class c{constructor(){w(this,n);w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(ye)),this.asMultiLayer=O(!1),this.openIndicator=O(!1),this.disabled=O(!1),this.customOptionElementSelectors=O(["button"]),this.keepClickedOptionActive=O(!1),this.closeOnClick=O(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=O(!1),this.activeOptionIndex=T(-1),this.inputRef=fe("inputRef"),this.optionsRef=fe("optionsRef"),this.options=Cn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(C=>!C.disabled)),this.inputValue=_n(this.inputRef),this.abortController=null,this.optionsEffect=J(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||m(this,e).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let r=this.inputRef()?.nativeElement;r&&(queueMicrotask(()=>r.focus()),r.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",u=>{let p=u.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let v=g.findIndex(a=>a===p);v>-1&&(this.activeOptionIndex.set(v),r.focus())}))}),this.keyDownEventListener=C=>{let r=this.activeOptionIndex();C.key==="ArrowDown"?(C.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):C.key==="ArrowUp"?(C.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):C.key==="Enter"?(C.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):C.key==="Tab"&&(C.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=T([]),this.lastInputValue="",this.inputValueEffect=J(()=>{if(!this.searchable())return;let r=(this.inputValue()??"").toLowerCase();if(M(this,n,ci).call(this),!r||r===""){let u=this.optionsEl();this.activeElements.set(u),this._lastElementList=u;for(let p=0;p<u.length;p++)m(this,t).removeStyle(u[p],"order");return}if(!r||r==="")return;let d=this._lastElementList.length&&r.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=r;for(let u=0;u<d.length;u++){let p=d[u],g=p.textContent?.toLowerCase()||"",v=M(this,n,yn).call(this,g,r);p.value=v}d=d.filter(u=>u.value>0).sort((u,p)=>p.value-u.value);for(let u=0;u<d.length;u++)m(this,t).setStyle(d[u],"order",u);this.activeElements.set(d),this._lastElementList=d}),this.activeOptionIndexEffect=J(()=>{let C=this.activeElements(),r=this.activeOptionIndex();for(let d=0;d<C.length;d++)C[d].classList.remove("active");r>-1&&(C[r].scrollIntoView({block:"center"}),C[r].classList.add("active"))})}toggleIsOpen(C){C.preventDefault(),C.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===-1||C===r.length-1)return 0;let d=C+1;return r[d].disabled?this.nextActiveIndex(d):d}prevActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===0||C===-1)return r.length-1;let d=C-1;return r[d].disabled?this.prevActiveIndex(d):d}close(C="closed",r){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||C==="closed")&&M(this,n,ci).call(this),this.isOpen.set(!1),this.closed.emit(C==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,yn=function(C,r){if(!r)return 0;let d=0,u=-1,p=0,g=!0;for(let v=0;v<r.length;v++){let a=r[v];if(C.length>u+1&&C[u+1]===a)d+=v===0?100:150,u++,p++;else{let l=C.indexOf(a,u+1);if(v>0&&(g=!1),l===-1)return 0;d+=100,u=l,p++}}return g&&r.length===p&&(d+=1e3),d+=p*20,d},ci=function(){this.activeOptionIndex.set(-1);let C=this.optionsEl();for(let r=0;r<C.length;r++)C[r].classList.remove("active")},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=H({type:c,selectors:[["sh-menu"]],viewQuery:function(r,d){r&1&&(pe(d.inputRef,Xo,5),pe(d.optionsRef,Qo,5)),r&2&&De(2)},hostVars:6,hostBindings:function(r,d){r&2&&q("disabled",d.disabled())("has-search",d.searchable())("multi-layer",d.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ko,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(r,d){if(r&1){let u=he();G(Zo),E(0,"sh-popover",3,0),zt("isOpenChange",function(g){return j(u),Ut(d.isOpen,g)||(d.isOpen=g),U(g)}),W("closed",function(){return j(u),U(d.close("fromPopover"))}),E(2,"div",4),W("click",function(g){return j(u),U(d.toggleIsOpen(g))}),b(3),R(4,Jo,2,0,"sh-icon",5),V(),E(5,"div",6)(6,"sh-form-field",7),Ne(7,"input",8,1),V()(),E(9,"div",9,2),W("click",function(){return j(u),U(d.close("active"))}),b(11,1),V()()}r&2&&(jt("isOpen",d.isOpen),ge("disableOpenByClick",!0)("asMultiLayer",d.asMultiLayer())("options",$t(11,Bo)),S(2),q("is-open",d.isOpen()),S(2),L(d.openIndicator()?4:-1),S(2),q("hidden",d.searchable()===!1),S(3),q("searching",d.searchable()&&d.inputValue()!==""))},dependencies:[hn,fi,qe],encapsulation:2,changeDetection:0});let i=c;return i})(),mr=(()=>{let e=class e{constructor(){this.value=O(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ae(0,"div",0),o&2&&se("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),Oa=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-radio"]],ngContentSelectors:ce,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(G(),Ae(0,"div",0),b(1)),o&2&&ve(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),Va=(()=>{var e,t,n,o,s,di,Dn,bn,Sn;let d=class d{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=O(""),this.value=ne(m(this,o)),this.inputState=T({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:p,max:g}=this.inputState(),v=this.value()??p;if(isNaN(v))return 0;let a=g-p;if(a===0)return 0;let l=(v-p)/a*100;return Math.max(0,Math.min(100,l))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=J(()=>{let p=this.value();if(m(this,n)){let g=parseFloat(m(this,n).value);(isNaN(g)||String(g)!==String(p))&&(m(this,n).value=String(p))}})}get hasInputElement(){return!!m(this,n)}ngAfterViewInit(){x(this,n,m(this,e).nativeElement.querySelector('input[type="range"]')),m(this,n)?(M(this,s,Sn).call(this,m(this,n)),m(this,n).oninput=()=>{this.setNewInputValue(m(this,n).value)},m(this,n).addEventListener("inputValueChanged",p=>{this.setNewInputValue(p.detail.value)}),queueMicrotask(()=>M(this,s,di).call(this,!0)),M(this,s,Dn).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(p){let g=parseFloat(p??"0");if(!isNaN(g)){let{min:v,max:a}=this.inputState();this.value.set(Math.max(v,Math.min(a,g)))}}trackEvent(p){if(!m(this,n)||m(this,n).readOnly||m(this,n).disabled){p.preventDefault(),p.stopPropagation();return}if(p.target===m(this,n)||p.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let v=p.currentTarget.getBoundingClientRect(),a=p.clientX-v.left,l=v.width,{min:f,max:h,step:_}=this.inputState(),N=h-f;if(l>0&&N!==0&&_>0){let B=(a/l*N+f-f)/_,k=f+Math.round(B)*_,ee=M(this,s,bn).call(this,_);k=parseFloat(k.toFixed(ee));let de=Math.max(f,Math.min(h,k));this.value.set(de)}}ngOnDestroy(){m(this,t)&&m(this,t).disconnect(),m(this,n)&&(m(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,di=function(p=!1){if(!m(this,n))return;let g=parseFloat(m(this,n).min??"0")??0,v=parseFloat(m(this,n).max??"100")??100,a=m(this,n).step,l=1;if(a&&a.toLowerCase()!=="any"){let h=parseFloat(a);!isNaN(h)&&h>0&&(l=h)}this.inputState.set({min:g,max:v,step:l});let f=parseFloat(m(this,n).value??String(g))??g;if(p&&this.value()!==m(this,o)){let h=this.value(),_=Math.max(g,Math.min(v,h));f!==_&&(m(this,n).value=String(_)),h!==_&&this.value.set(_)}else{let h=Math.max(g,Math.min(v,f));this.value()!==h&&this.value.set(h)}},Dn=function(){if(!m(this,n)||typeof MutationObserver>"u")return;let p=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(g=>{let v=!1;for(let a of g)if(a.type==="attributes"&&p.includes(a.attributeName??"")){v=!0;break}v&&M(this,s,di).call(this,!1)})),m(this,t).observe(m(this,n),{attributes:!0,attributeFilter:p})},bn=function(p){if(isNaN(p)||Math.floor(p)===p)return 0;let v=p.toString().split(".")[1];return v?v.length:0},Sn=function(p){Object.defineProperty(p,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").get.call(this)},set(g){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").set.call(this,g);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:g}});return this.dispatchEvent(a),g}})},d.\u0275fac=function(g){return new(g||d)},d.\u0275cmp=H({type:d,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(g,v){g&2&&q("has-input",v.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ts,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(g,v){g&1&&(G(es),z(0,"div",0),b(1),$(),z(2,"div",1)(3,"div",2),P(4),$(),z(5,"div",3),Pe("click",function(l){return v.trackEvent(l)}),b(6,1),z(7,"div",4),Ae(8,"div",5),$(),z(9,"div",6)(10,"div",7)(11,"div",8),P(12),$()()()(),z(13,"div",9),P(14),$()()),g&2&&(S(4),ft("",v.inputState().min,"",v.unit()),S(4),se("width",v.trackFilledPercentage(),"%"),S(),se("left",v.thumbPositionPercentage(),"%"),S(3),ft("",v.value(),"",v.unit()),S(2),ft("",v.inputState().max,"",v.unit()))},encapsulation:2,changeDetection:0});let i=d;return i})(),vr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),Ta=(()=>{var e,t,n,o,ui,c,y,hi,le,Mn,En,wn;let g=class g{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);w(this,c);w(this,y);x(this,e,I(K)),this.value=O(),this.label=O(),this.asFreeText=O(!1),this.optionTitle=O(null),this.freeTextTitle=O(null),this.freeTextPlaceholder=O("Type to create a new option"),this.validateFreeText=O(),this.placeholder=O(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=O(!1),this.inlineSearch=O(!1),this.asText=O(!1),this.isClearable=O(!0),this.selectMultiple=O(!1),this.optionTemplate=O(null),this.selectedOptionTemplate=O(null),this.placeholderTemplate=O(null),this.freeTextOptionTemplate=O(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=F(()=>{let a=this.inputValue(),l=this.value(),f=l?{}:a;return l&&typeof f=="object"&&(f[l]=a),f}),x(this,t,T(null)),this.inlineTemplate=Ti(pt),this.optionsWrapRef=fe.required("optionsWrap"),this.inputRefInput=T(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new K(l.target)),m(this,n).disconnect())})),this.inputValue=T(""),this.prevInputValue=T(null),this.focusedOptionIndex=T(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>m(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=F(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(f=>M(this,o,le).call(this,f,l)):a}),this.filteredOptions=F(()=>{let a=this.options()||[],l=this.label(),f=this.value(),h=this.inlineSearch(),_=this.inputValue().toLowerCase(),N=M(this,o,En).call(this,_);if(a.length<=0)return[];if(!h||_==="")return a;let B=a.filter(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=N.test(ee),dt=N.test(de);return Se||dt}).map(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=M(this,o,ui).call(this,ee,_),dt=M(this,o,ui).call(this,de,_);return{item:k,score:Math.max(Se,dt)}});return B.sort((k,ee)=>ee.score-k.score),B.map(k=>k.item)}),x(this,c,Pt()),this.inputRefEl=F(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",l.setAttribute("role","combobox"),l.setAttribute("id",`combobox-${m(this,c)}`),l.setAttribute("aria-haspopup","listbox"),l.setAttribute("aria-owns","optionsWrapId"),M(this,o,Mn).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),l.addEventListener("input",f=>{let h=f.target.value,_=this.inputValue();h!==_&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(h),this.updateInputElValue())}),l.addEventListener("inputValueChanged",f=>{let h=f.detail.value,_=this.inputValue();if(h!==_){if(h===""){this.clear();return}this.setSelectedOptionsFromValue(h),this.setInputValueFromOptions(this.selectedOptions()),M(this,o,hi).call(this)}}),l):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=J(()=>{let a=this.inputRefEl();if(!a)return;let l=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);l?a.setAttribute("aria-activedescendant",l):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=J(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl(),h=this.asFreeText()?-1:0;if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),l.addEventListener("keydown",_=>{if((_.key==="Escape"||_.key==="Tab")&&(_.preventDefault(),this.close()),_.key==="Enter"&&(_.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),_.key==="ArrowDown"){_.preventDefault();let N=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(N>this.filteredOptions().length-1?h:N)}if(_.key==="ArrowUp"){_.preventDefault();let N=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(N<h?this.filteredOptions().length-1:N)}},{signal:this.openAbortController?.signal})}else{let l=this.inputRefEl();if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=J(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=J(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let a=this.selectedOptions();return this.label()?a.map(f=>this.getLabel(f)).join(", "):a.join(", ")}),this.inputState=F(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=F(()=>this.inlineSearch()||this.lazySearch()),x(this,y,J(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");this.inputValue.set(f)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=m(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new K(a));return}let l=m(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new K(l));return}typeof MutationObserver<"u"&&m(this,n).observe(m(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],f=this.value(),h=this.selectMultiple(),_=a.toString().split(",");if(_.length===0){this.selectedOptions.set([]);return}let N=h?_:[_[0]],Z=l.filter(B=>{let k=f?M(this,o,le).call(this,B,f)?.toString():B?.toString();return k&&N.includes(k)});this.selectedOptions.set(h?Z:[Z[0]])}setInputValueFromOptions(a){let l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");f!==this.inputValue()&&(this.inputValue.set(f),this.updateInputElValue())}getValue(a){let l=this.value();return l?M(this,o,le).call(this,a,l):a}getLabel(a){let l=this.label();return l?M(this,o,le).call(this,a,l):a}getLabelAsSlug(a){let l=this.getLabel(a);return!l||typeof l!="string"?"":l.replaceAll(" ","-")}toggleOptionByIndex(a,l,f=!1){let h=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let ee=this.computedFreeTextOption(),de=this.getValue(ee);if(!(this.validateFreeText()??(ut=>!0))(de))return;this.options.update(ut=>ut.findIndex(xn=>this.getValue(xn)===de)>-1?ut:(this.onAddNewFreeTextOption.emit(de),[ee,...ut])),a=0,h=ee}else if(!h){this.close();return}l&&l.stopPropagation();let _=this.selectMultiple(),N=this._isClearable(),Z=this.value(),B=this.selectedOptionValues(),k=Z?M(this,o,le).call(this,h,Z):h;this.prevInputValue.set(null),m(this,t).set(null),this.selectedOptions.update(ee=>{let de=B.indexOf(k);if(de>-1){let Se=[...ee.slice(0,de),...ee.slice(de+1)];return N||Se.length>0?Se:ee}else return this.focusedOptionIndex.set(a),_?[...ee,h]:[h]}),_?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),_&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(f=>[...f.slice(0,l),...f.slice(l+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let l=this.value(),f=this.filteredOptions()[a],h=l?M(this,o,le).call(this,f,l):f;return this.selectedOptionValues().indexOf(h)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):m(this,t).set(this.selectedOptions()),this.selectMultiple()||M(this,o,hi).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),l=m(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&l!==null&&this.setInputValueFromOptions(l),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&m(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ui=function(a,l){if(!l)return 0;let f=0,h=-1,_=0,N=!0;for(let Z=0;Z<l.length;Z++){let B=l[Z];if(a.length>h+1&&a[h+1]===B)f+=Z===0?100:150,h++,_++;else{let k=a.indexOf(B,h+1);if(Z>0&&(N=!1),k===-1)return 0;f+=100,h=k,_++}}return N&&l.length===_&&(f+=1e3),f+=_*20,f},c=new WeakMap,y=new WeakMap,hi=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let f=this.filteredOptions().findIndex(h=>l?M(this,o,le).call(this,h,l)===a:h===a);this.focusedOptionIndex.set(f)}else this.focusedOptionIndex.set(-1)},le=function(a,l){return l.split(".").reduce((f,h)=>f?.[h],a)},Mn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let h=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(h),l}})},En=function(a){let l=(a??"").toLowerCase(),f="^";for(let h of l)f+=".*"+M(this,o,wn).call(this,h);return f+=".*$",new RegExp(f,"i")},wn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=H({type:g,selectors:[["sh-select"]],contentQueries:function(l,f,h){l&1&&xi(h,f.inlineTemplate,pt,5),l&2&&De()},viewQuery:function(l,f){l&1&&pe(f.optionsWrapRef,is,5),l&2&&De()},hostVars:2,hostBindings:function(l,f){l&2&&q("multiple",f.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:os,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(l,f){if(l&1){let h=he();G(ns),gt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),zt("isOpenChange",function(N){return j(h),Ut(f.isOpen,N)||(f.isOpen=N),U(N)}),W("closed",function(){return j(h),U(f.close())}),E(9,"sh-form-field",3),W("click",function(){return j(h),U(f.open())}),b(10,0,["ngProjectAs","label",5,["label"]]),b(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),b(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),R(15,rs,1,1)(16,_s,2,0)(17,bs,2,1),b(18,3),b(19,4),V()(),R(20,Ss,2,0,"sh-icon",6)(21,Ms,1,0,"sh-spinner",7)(22,Es,2,0,"sh-icon",6)(23,ws,2,0,"sh-icon",6)(24,xs,2,0,"sh-icon",6)(25,Os,2,0,"sh-icon",6)(26,Vs,2,0,"sh-icon",6),V(),E(27,"div",8,1),R(29,Ls,3,3),R(30,Hs,2,1,"p",9),Ht(31,$s,4,8,"li",10,Lt),V()()}if(l&2){me(f.placeholderTemplate());let h=f.optionTemplate();S(),me(f.freeTextOptionTemplate());let _=f.selectedOptionTemplate(),N=f.inlineTemplate();S();let Z=me(f.selectedOptions()),B=f.inputState();S(),me(_||h||N),S(),me(h||N),S();let k=me(!f.asText()&&f.selectMultiple());S();let ee=me(f.isOpen()&&f.hasSearch()&&(k||f.inputValue().length>-1));S(),jt("isOpen",f.isOpen),ge("disableOpenByClick",!0)("options",$t(24,ss)),S(2),q("stretch",f.stretch())("small",f.small())("readonly",f.readonly()||f.disabled()),S(4),q("show-search-text",ee),S(),q("is-selected",B==="selected"),S(),L(f.asFreeText()&&f.inputValue().length>0&&!f.isOpen()?15:Z.length>0?16:ee?-1:17),S(5),L(B==="closed"?20:B==="loading"?21:B==="open-searching"?22:B==="searching"?23:B==="selected"&&f._isClearable()?24:B==="selected"&&!f._isClearable()?25:26),S(9),L(f.asFreeText()?29:-1),S(),L(f.optionTitle()&&f.filteredOptions().length>0?30:-1),S(),Bt(f.filteredOptions())}},dependencies:[Ai,hn,fi,qe,ur,vr,hr,gr],encapsulation:2,changeDetection:0});let i=g;return i})();function _r(i){let e=I(K),t=I(Be),n=T(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return bi(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var Na=(()=>{var e,t,n,o,s,ct;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(He)),x(this,t,I(K)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=O(!1),this.isOpen=ne(!1),this.isOverlay=_r("overlay"),x(this,n,m(this,t).nativeElement.parentElement),x(this,o,m(this,n).getBoundingClientRect&&m(this,n).getBoundingClientRect()),this.dragImageElement=fe.required("dragImageElement"),this.dragIsEnding=T(!1),this.dragIsOnScreen=T(!0),this.isDragging=T(!1),this.dragPositionX=T(0),this.dragActualPositionX=F(()=>{let r=this.dragPositionX(),d=280,u=100,p=.008,g=d/2,v=g-u/2,a=g+u/2;if(r>a){let l=r-a,h=(d-a)*(1-Math.exp(-p*l));return a+h}else if(r<v){let l=v-r,h=v*(1-Math.exp(-p*l));return v-h}return r}),this.draggingStyle=F(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=J(()=>{this.disableDrag()||(this.isDragging()?m(this,e).body.classList.add("dragging"):m(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),M(this,s,ct).call(this,r.clientX-m(this,o).left)}dragEnd(r){r.clientX-m(this,o).left<0&&M(this,s,ct).call(this,0),r.clientX-m(this,o).left>this.openWidthTreshold&&M(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,m(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-m(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,m(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-m(this,o).left)}touchEnd(r){r.stopPropagation(),M(this,s,ct).call(this,r.changedTouches[0].clientX-m(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-sidenav"]],viewQuery:function(d,u){d&1&&pe(u.dragImageElement,Ws,5),d&2&&De()},hostVars:6,hostBindings:function(d,u){d&2&&q("open",u.isOpen())("closed",!u.isOpen())("is-dragging",u.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:qs,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(d,u){d&1&&(G(Gs),R(0,Ys,2,0,"div",1),R(1,Xs,1,0,"div",2),z(2,"div",3),b(3),$(),z(4,"div",4),R(5,Qs,1,0,"div",5),z(6,"div",6),b(7,1),$(),z(8,"main"),b(9,2),$()()),d&2&&(L(u.isOverlay()&&!u.disableDrag()?0:-1),S(),L(u.isOverlay()&&u.isDragging()?1:-1),S(3),se("transform",!u.disableDrag()&&u.draggingStyle()),S(),L(u.isOverlay()&&!u.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=y;return i})();var Aa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ia=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(Cr)),this.shSort=O(),this.sortAsc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&m(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=Y({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&W("mousedown",function(){return c.toggleSort()}),s&2&&q("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var Ge=1.5,Cr=(()=>{var e,t,n,o,s,Nt;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,I(It,{optional:!0})),this.loading=O(!1),this.data=O([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.currentClass=At(),this.thead=fe("thead"),this.tbody=fe("tbody"),this.columns=Cn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=F(()=>{let r=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=J(()=>{let r=this.tbody()?.nativeElement,d=this.thead()?.nativeElement;if(!r||!d)return;let u=this.stickyHeaderHeight();queueMicrotask(()=>{let p=d.querySelectorAll("tr.sticky").length>0,g=r.querySelectorAll("tr.sticky");if(g.length>0&&p)for(let a=0;a<g.length;a++)g[a].style.top=`${u}px`})}),this.class=T(m(this,t)?.tableType??"default"),this.resizing=T(!1),this.sizeTrigger=T(!0),x(this,n,null),x(this,o,T(!1)),this.scrollXState=T(-1),this.scrollYState=T(-1),this.canScrollX=T(!1),this.canScrollY=T(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,u,p)=>{let g=u,v=g.getAttribute("size"),a=p===r.length-1;return v?`${d} ${v}`:g.classList.contains("sticky")||g.classList.contains("sticky-end")?`${d} min-content`:a?`${d} 1fr`:`${d} 1fr`},"")}),this.e=J(()=>{let r=this.sortByColumn();if(r===null)return m(this,o).call(this)||(x(this,n,this.data()),m(this,o).set(!0)),this.dataChange.emit(structuredClone(m(this,n)));let d=r.startsWith("-")?r.slice(1):r,u=r.startsWith("-"),p=this.data().sort((g,v)=>{let a=g[d],l=v[d],f=0;return typeof a=="number"&&typeof l=="number"&&(f=a-l),a instanceof Date&&l instanceof Date&&(f=a.getTime()-l.getTime()),typeof a=="string"&&typeof l=="string"&&(f=a.localeCompare(l,void 0,{sensitivity:"base"})),u?-f:f});this.dataChange.emit(p)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){M(this,s,Nt).call(this)}onResize(r){M(this,s,Nt).call(this)}ngAfterViewInit(){queueMicrotask(()=>M(this,s,Nt).call(this))}toggleSort(r){let d=this.sortByColumn(),u=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(u)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Nt=function(){let r=m(this,e).nativeElement,d=-1,u=-1,p=r.scrollWidth>r.clientWidth+Ge;if(p){let v=r.scrollLeft<=Ge;r.scrollWidth-(r.scrollLeft+r.clientWidth)<Ge?d=1:v||(d=0)}this.scrollXState.set(d),this.canScrollX.set(p);let g=r.scrollHeight>r.clientHeight+Ge;if(g){let v=r.scrollTop<=Ge;r.scrollHeight-(r.scrollTop+r.clientHeight)<Ge?u=1:v||(u=0)}this.scrollYState.set(u),this.canScrollY.set(g)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-table"]],viewQuery:function(d,u){d&1&&(pe(u.thead,Zs,5),pe(u.tbody,Ks,5)),d&2&&De(2)},hostVars:18,hostBindings:function(d,u){d&1&&W("scroll",function(){return u.onScroll()})("resize",function(g){return u.onResize(g)},Mi),d&2&&(ve(u.class()),se("grid-template-columns",u.columnSizes()),q("resizing",u.resizing())("can-scroll-x",u.canScrollX())("can-scroll-y",u.canScrollY())("scrolled-x",u.scrollXState()>=0)("scrolled-x-end",u.scrollXState()===1)("scrolled-y",u.scrollYState()>=0)("scrolled-y-end",u.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:er,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,u){d&1&&(G(Js),R(0,tr,1,0,"sh-progress-bar",2),E(1,"thead",null,0),b(3),b(4,1),V(),E(5,"tbody",null,1),b(7,2),V(),R(8,ir,2,0,"div",3)),d&2&&(L(u.loading()?0:-1),S(8),L(u.loading()?-1:8))},dependencies:[mr],encapsulation:2,changeDetection:0});let i=y;return i})(),Pa=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--tabs-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Fa=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=O(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&q("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:or,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(G(nr),E(0,"h3",0),W("click",function(){return s.disallowToggle()||s.toggle()}),b(1,0,null,sr,1,0),R(3,rr,2,0,"sh-icon",1),V(),E(4,"div",2)(5,"div",3),b(6,1),V()()),o&2&&(S(3),L(s.disallowToggle()?-1:3))},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),ka=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ce,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(G(),z(0,"div",0),Ae(1,"div",1),$(),b(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ra=(()=>{let e=class e{constructor(){this.filesOver=T(!1),this.filesDropped=xe()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Y({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&W("dragover",function(y){return s.onDragOver(y)})("dragleave",function(y){return s.onDragLeave(y)})("drop",function(y){return s.ondrop(y)}),o&2&&q("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var yr=(()=>{var e,t,n;let o=class o{constructor(){w(this,e);w(this,t);w(this,n);this.positionAnchorName=O.required(),this.anchorEl=O.required(),this.isOpen=O(!1),x(this,e,I(K)),x(this,t,I(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=T(!1),this.openEffect=J(()=>{this.isOpen()?setTimeout(()=>{m(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):m(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),y=m(this,e).nativeElement,C=y.getBoundingClientRect();if(C.width===0&&C.height===0)return;let r=c.top-C.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let d=y.getBoundingClientRect(),u=c.top-d.height,p=c.left+c.width/2-d.width/2;r&&(u=c.top+c.height),p+d.width>window?.innerWidth&&(p=c.right-d.width/2),p<0&&(p=-(d.width/2)),m(this,t).setStyle(y,"left",`${p}px`),m(this,t).setStyle(y,"top",`${u}px`),m(this,t).setStyle(y,"position","fixed")}}}ngAfterViewInit(){x(this,n,new AbortController);let c={signal:m(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:m(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){m(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(y){return new(y||o)},o.\u0275cmp=H({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(y,C){y&2&&(Ee("popover","manual"),se("position-anchor",C.positionAnchorName()),q("below",C.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ce,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(y,C){y&1&&(G(),z(0,"div",0),b(1),$())},encapsulation:2});let i=o;return i})(),ae=null,La=(()=>{var e,t,n,o,s;let c=class c{constructor(){w(this,e);w(this,t);w(this,n);w(this,o);w(this,s);this.shTooltip=O.required(),x(this,e,I(K)),x(this,t,I(Ei)),x(this,n,I(Di)),x(this,o,I(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Pt()}`,this.isOpen=T(!1)}onMouseEnter(){ae?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ae?.wrapperComponentRef||!this.shTooltip())return;let C,r=this.shTooltip();if(typeof r=="string")C=[[m(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),m(this,s).detectChanges(),C=[m(this,s).rootNodes];else return;ae={wrapperComponentRef:m(this,t).createComponent(yr,{environmentInjector:m(this,n),projectableNodes:C}),component:this},ae.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ae.wrapperComponentRef.setInput("anchorEl",m(this,e)),ae.wrapperComponentRef?.setInput("isOpen",this.isOpen),ae.wrapperComponentRef.changeDetectorRef.detectChanges(),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ae?.wrapperComponentRef&&(ae.component.cancelCleanupTimer(),ae.wrapperComponentRef.destroy(),ae.component.isOpen.set(!1),ae=null),m(this,s)&&(m(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=Y({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,d){r&1&&W("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()}),r&2&&(se("anchor-name",d.anchorName),q("active",d.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Ve as a,Tn as b,Ui as c,Ii as d,Hr as e,Br as f,to as g,ot as h,so as i,Ur as j,ao as k,uo as l,po as m,go as n,sn as o,rn as p,yo as q,zr as r,$r as s,Wr as t,qe as u,It as v,Ca as w,ya as x,dr as y,Da as z,ba as A,Sa as B,Ma as C,ur as D,hr as E,gr as F,fi as G,Ea as H,wa as I,xa as J,mr as K,Oa as L,Va as M,vr as N,Ta as O,Na as P,Aa as Q,Ia as R,Cr as S,Pa as T,Fa as U,ka as V,Ra as W,La as X};
|
package/chunk-VNGJCKGG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-35ZUPRX7.js";import{a as H}from"./chunk-E6DCTQ34.js";import{a as q}from"./chunk-POJT4MSX.js";import"./chunk-WJDMMKWE.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-TC7HZO7D.js";import{B as J,C as K,G as X,K as j,c as A,e as I,i as U,s as V,u as G,w as W}from"./chunk-TGNUULAU.js";import{d as B}from"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{$b as s,Cb as D,Db as r,Eb as l,Fb as S,Fc as v,Mb as m,Rc as P,Sa as a,Sc as L,Tb as h,Ub as E,Vb as T,Xc as $,Yb as N,Zb as F,_ as p,cb as M,ea as C,fa as u,mc as x,nc as _,pa as f,sc as y,tc as w,uc as k,xb as c,yb as d}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var Q=(t,n,e,o,i)=>({"loading-state":t,"ready-to-add-link":n,"is-connected":e,"failed-to-connect":o,"is-registered":i});function Y(t,n){t&1&&T(0,0,1)}function Z(t,n){t&1&&T(0,0,2)}function ee(t,n){if(t&1){let e=m();r(0,"button",8),F("click",function(){C(e);let i=s(2);return u(i.cancel())}),_(1,"Cancel registration"),l()}}function te(t,n){if(t&1&&(r(0,"div",5)(1,"p"),h(2,0),c(3,Y,1,0)(4,Z,1,0),E(),l(),S(5,"sh-progress-bar",6),c(6,ee,2,0,"button",7),l()),t&2){let e=s();a(3),d(e.state()==="unknown"?3:4),a(3),d((e.registeringCounter()??0)>=5&&e.state()==="registering"?6:-1)}}function ne(t,n){if(t&1){let e=m();r(0,"sh-form-field")(1,"label",9),T(2,1),l(),r(3,"input",10),k("ngModelChange",function(i){C(e);let g=s();return w(g.customRegisterUrl,i)||(g.customRegisterUrl=i),u(i)}),l()(),r(4,"button",11),F("click",function(){C(e);let i=s();return u(i.registerViaCustomUrl())}),T(5,2),l()}if(t&2){let e=s();a(3),y("ngModel",e.customRegisterUrl),a(),D("disabled",!e.customRegisterUrlValid())}}function ie(t,n){if(t&1){let e=m();r(0,"p"),_(1,"Visit console to finish connection"),l(),r(2,"button",8),F("click",function(){C(e);let i=s(2);return u(i.finishConnection())}),_(3,"Finish connection"),l()}}function oe(t,n){if(t&1){let e=m();r(0,"p"),_(1,"Something failed during registration we're missing claimUrl, please try again"),l(),r(2,"button",8),F("click",function(){C(e);let i=s(2);return u(i.retryWhenFaulted())}),_(3,"Retry"),l()}}function re(t,n){if(t&1&&c(0,ie,4,0)(1,oe,4,0),t&2){let e=s();d(e.claimUrl()!==null?0:1)}}function le(t,n){t&1&&(h(0,3,1),S(1,"p"),E())}function ae(t,n){t&1&&(h(0,3,2),S(1,"p"),E())}function se(t,n){if(t&1){let e=m();r(0,"sh-alert",12),h(1,3),c(2,le,2,0,"p")(3,ae,2,0,"p"),E(),l(),r(4,"button",8),F("click",function(){C(e);let i=s();return u(i.retryWhenFaulted())}),_(5," Retry "),r(6,"sh-icon"),_(7,"arrow-arc-left"),l()()}if(t&2){let e=s();a(2),d(e.typeParam()==="link"?2:3)}}function ce(t,n){t&1&&(r(0,"h3"),_(1,"Successfully connected"),l(),r(2,"p"),_(3,"We're going to redirect you to the home page"),l())}var R=class t{#t=p(B);#n=p(z);#e=p(H);#i=p(q);isOldOpen=f(!1);typeParam=$.required();state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;customRegisterUrl=this.#e.customRegisterUrl;additionalReportingUrl=P(()=>{let n=this.#i.serverSettings();return this.#e.state()==="inactive"?"":n&&n["additional-report-url"]||""});copiedReportingUrl=f(!1);customRegisterUrlValid=P(()=>{let n=this.customRegisterUrl(),e=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;return!(n.length===0||!e.test(n))});registeringCounter=f(null);didTry=f(!1);stateEffect=L(()=>{let n=this.#e.registerUrl(),e=this.state(),o=this.typeParam(),i=this.registeringCounter();e==="inactive"&&o==="logon"&&n!==""&&(this.didTry()||(this.#e.beginRemoteRegistration(),this.didTry.set(!0))),e==="registering"?(i===null&&this.registeringCounter.set(0),setTimeout(()=>{this.registeringCounter.set((i??0)+1)},1e3)):this.registeringCounter.set(null),(e==="connected"||e==="disabled"||e==="connecting")&&this.#t.navigate([""])});ngOnInit(){this.#e.refreshRemoteControlStatus()}finishConnection(){let n=this.#e.claimUrl();this.#n.open(n,"_blank")}registerViaCustomUrl(){this.#e.beginRemoteRegistration(!0)}retryWhenFaulted(){this.#e.cancelRemoteRegistration(),this.customRegisterUrl.set(""),this.typeParam()==="logon"&&this.#t.navigate(["/welcome/select"])}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let n=this.additionalReportingUrl();n&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(n))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-connect"]],inputs:{typeParam:[1,"typeParam"]},decls:6,vars:13,consts:()=>{let n;n=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Loading... ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE: Connecting to console ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let e;e=$localize`Paste registration URL here`;let o;o=$localize` Connect machine to console `;let i;return i=$localize` Failed to register ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: Check if the connection link are correct, alternatively it could be your internet connection or the service might be down ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: There might be a problem with your internet connection or the service might be down, please try again later ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,i=N(i),[n,e,o,i,[1,"main-card","type-b"],[1,"loader-content"],[1,"primary","indeterminate"],["shButton",""],["shButton","",3,"click"],["for","remoteControlRegisterUrl"],["type","text","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click","disabled"],[1,"error"]]},template:function(e,o){if(e&1&&(r(0,"sh-card",4),c(1,te,7,2,"div",5),c(2,ne,6,2),c(3,re,2,1),c(4,se,8,1),c(5,ce,4,0),l()),e&2){let i=o.state()==="unknown"||o.typeParam()!=="link"&&o.state()==="inactive"||o.state()==="registering",g=o.typeParam()==="link"&&o.state()==="inactive",O=o.state()==="connected"||o.state()==="disabled"||o.state()==="connecting",b=o.state()==="registeringfaulted";x(v(7,Q,i,g,O,b,o.state()==="registered")),a(),d(i?1:-1),a(),d(g?2:-1),a(),d(o.state()==="registered"?3:-1),a(),d(b?4:-1),a(),d(O?5:-1)}},dependencies:[V,A,I,U,X,J,j,K,W,G],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:100%;width:100%;flex:1 0;overflow:hidden;padding:2rem}@media only screen and (max-width: 768px){[_nghost-%COMP%]{padding:1rem}}.main-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:31.25rem;max-height:min-content;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem;padding:2rem}.main-card.failed-to-connect[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}.main-card.failed-to-connect[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.main-card.is-registered[_ngcontent-%COMP%], .main-card.is-connected[_ngcontent-%COMP%]{align-items:center}.loader-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:100%}.loader-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{--pb-b: var(--base-3);border:1px solid var(--pb-b)}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}.state[_ngcontent-%COMP%]{position:fixed;top:1rem;right:1rem;margin:0;color:var(--base-7);font-size:.75rem}.old[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;gap:.5rem;padding:1rem;border:1px solid var(--base-4);background:var(--base-1);position:fixed;top:0;right:0;bottom:0;width:35rem;transform:translate(100%)}.old.open[_ngcontent-%COMP%]{transform:translate(0)}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;position:absolute;background-color:var(--base-1);border:1px solid var(--base-4);border-width:.0625rem 0 .0625rem .0625rem;width:2rem;height:2.5rem;border-radius:var(--shape-2) 0 0 var(--shape-2);top:3.75rem;left:-2rem;-webkit-user-select:none;user-select:none}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}"],changeDetection:0})};export{R as default};
|
package/chunk-W4KOKNGU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-SXFSAK5L.js";import"./chunk-XRI2BFC2.js";import"./chunk-H4H72SDD.js";import"./chunk-D7OP5FPA.js";import"./chunk-5KMPTDRJ.js";import"./chunk-2DP4QU4T.js";import"./chunk-4Z72AON4.js";import"./chunk-HVB6ARTT.js";import"./chunk-WJDMMKWE.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-SVQCV5AE.js";import"./chunk-TC7HZO7D.js";import"./chunk-TGNUULAU.js";import"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
|
package/chunk-WZAZENJC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-SXFSAK5L.js";import"./chunk-XRI2BFC2.js";import"./chunk-H4H72SDD.js";import"./chunk-D7OP5FPA.js";import"./chunk-5KMPTDRJ.js";import"./chunk-2DP4QU4T.js";import"./chunk-4Z72AON4.js";import"./chunk-HVB6ARTT.js";import"./chunk-WJDMMKWE.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-SVQCV5AE.js";import"./chunk-TC7HZO7D.js";import"./chunk-TGNUULAU.js";import"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-X4KK6R3X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk-SXFSAK5L.js";import"./chunk-XRI2BFC2.js";import"./chunk-H4H72SDD.js";import"./chunk-D7OP5FPA.js";import"./chunk-5KMPTDRJ.js";import"./chunk-2DP4QU4T.js";import"./chunk-4Z72AON4.js";import"./chunk-HVB6ARTT.js";import"./chunk-WJDMMKWE.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-SVQCV5AE.js";import"./chunk-TC7HZO7D.js";import"./chunk-TGNUULAU.js";import"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreOptionsForm,b as default};
|
package/chunk-XKKT2NP5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-D3LEV6WL.js")},{path:"encryption",loadComponent:()=>import("./chunk-W4KOKNGU.js")},{path:"select-files",loadComponent:()=>import("./chunk-WZAZENJC.js")},{path:"options",loadComponent:()=>import("./chunk-X4KK6R3X.js")},{path:":taskid/progress",loadComponent:()=>import("./chunk-4GY6ZWN5.js")}],t=o;export{t as default};
|
package/chunk-XRI2BFC2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-H4H72SDD.js";import{d as me}from"./chunk-D7OP5FPA.js";import{c as de,d as Ce}from"./chunk-2DP4QU4T.js";import{a as ce}from"./chunk-AE7T2DAH.js";import{B as oe,G as re,J as ae,O as le,U as _e,V as se,X as pe,b as W,c as Y,e as Z,i as ee,k as te,s as ne,u as ie}from"./chunk-TGNUULAU.js";import{ea as Q}from"./chunk-NXROYR6L.js";import{$b as _,Ab as E,Bb as P,Bc as j,Cb as c,Db as a,Eb as l,Fb as I,Jb as v,Kb as V,Kc as D,Lb as S,Mb as g,Rc as R,Sa as s,Tb as b,Ub as $,Vb as J,Xc as k,Zb as u,_ as K,_c as q,cb as H,ea as d,fa as C,hb as f,ic as T,kc as G,nc as m,oc as B,pa as N,pc as A,vc as X,wc as z,xb as h,xc as x,yb as O,zb as M}from"./chunk-ZBK64QS2.js";import{a as w,b as L}from"./chunk-EUDKD2JW.js";var ge=[{name:"send-mail-to",type:"Email"},{name:"send-mail-from",type:"Email"},{name:"log-file",type:"FileTree"},{name:"compression-extension-file",type:"FileTree"},{name:"dbpath",type:"FileTree"},{name:"restore-path",type:"FileTree"},{name:"gpg-program-path",type:"FileTree"}];var xe=()=>({updateOn:"blur"});function Se(t,i){if(t&1){let e=g();a(0,"button",13),u("click",function(){d(e);let n=_();return C(n.showTextArea.set(!1))}),b(1,5),I(2,"sh-icon"),$(),l()}}function he(t,i){if(t&1){let e=g();a(0,"button",17,0),u("click",function(){let n=d(e).$implicit,r=_(3);return C(r.addSetting(n))}),m(2),l()}if(t&2){let e=i.$implicit;G("deprecated",e.deprecatedDescription),s(2),A(" ",e.name," ")}}function Oe(t,i){if(t&1&&(a(0,"h3",9),m(1),l(),E(2,he,3,3,"button",16,M)),t&2){let e=i.$implicit;s(),B(e.displayName),s(),P(e.options)}}function Fe(t,i){if(t&1){let e=g();a(0,"sh-menu")(1,"button",18)(2,"sh-icon"),m(3,"dots-three-vertical"),l()(),v(4,15),a(5,"button",13),u("click",function(){d(e);let n=_(2);return C(n.addFreeTextSetting())}),b(6,7),I(7,"sh-icon"),$(),l(),a(8,"button",19),u("click",function(){d(e);let n=_(2);return C(n.showTextArea.set(!0))}),a(9,"sh-icon"),m(10,"link"),l(),m(11," Edit contents as text "),l(),V(),l()}}function we(t,i){if(t&1&&(a(0,"sh-menu",14)(1,"button",11),b(2,6),I(3,"sh-icon"),$(),l(),v(4,15),E(5,Oe,4,1,null,null,M),V(),l(),h(7,Fe,12,0,"sh-menu")),t&2){let e=_();c("searchable",!0),s(5),P(e.nonSelectedOptionsGrouped()),s(2),O(e.hasFreeTextSettings()?7:-1)}}function ye(t,i){if(t&1){let e=g();a(0,"textarea",20),u("ngModelChange",function(n){d(e);let r=_();return C(r.updateSettingsFromText(n))}),l()}if(t&2){let e=_();c("ngModel",e.settingsAsText())("ngModelOptions",j(2,xe))}}function Ie(t,i){t&1&&(a(0,"div",21),m(1,"Add a setting above to get started."),l())}function Ve(t,i){t&1&&(a(0,"sh-icon",29),m(1," warning-octagon "),l())}function Le(t,i){if(t&1&&(a(0,"sh-icon",30),m(1,"archive"),l()),t&2){let e=_(2).$implicit;c("shTooltip",e.FormView.deprecatedDescription)}}function Ne(t,i){if(t&1&&(a(0,"sh-icon",31),m(1,"question"),l()),t&2){let e=_(2).$implicit;c("shTooltip",e.FormView.longDescription)}}function Me(t,i){if(t&1&&(h(0,Ve,2,0,"sh-icon",29),a(1,"span"),m(2),l(),h(3,Le,2,1,"sh-icon",30)(4,Ne,2,1,"sh-icon",31)),t&2){let e=_().$implicit,o=x(1);O(o?0:-1),s(),G("deprecated",e.FormView.deprecatedDescription),s(),B(e.FormView.shortDescription),s(),O(e.FormView.deprecatedDescription?3:e.FormView.longDescription?4:-1)}}function Ee(t,i){t&1&&S(0)}function Pe(t,i){if(t&1){let e=g();a(0,"div",23)(1,"label"),f(2,Ee,1,0,"ng-container",32),l(),a(3,"div")(4,"sh-form-field")(5,"input",33),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateFreeTextSettingName(r,n))}),l(),a(6,"sh-icon",34),m(7,"rectangle-dashed"),l()()(),a(8,"div")(9,"sh-form-field")(10,"input",33),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(11,"sh-icon",34),m(12,"textbox"),l()()()()}if(t&2){let e=_().$implicit,o=T(3);s(2),c("ngTemplateOutlet",o),s(3),c("ngModel",e.Name),s(5),c("ngModel",e.Value())}}function ve(t,i){t&1&&S(0)}function be(t,i){if(t&1){let e=g();a(0,"app-file-tree",24)(1,"label",35),f(2,ve,1,0,"ng-container",32),l(),a(3,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function $e(t,i){if(t&1){let e=g();a(0,"app-file-tree",25),I(1,"label",35),a(2,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=x(0);c("startingPath",e.Value()),s(),c("for",o),s(),c("id",o)("ngModel",e.Value())}}function Ae(t,i){t&1&&S(0)}function De(t,i){t&1&&(a(0,"sh-icon",34),m(1,"link"),l())}function Re(t,i){t&1&&(a(0,"sh-icon",34),m(1,"hard-drives"),l())}function ke(t,i){t&1&&(a(0,"sh-icon",34),m(1,"jar"),l())}function Ge(t,i){t&1&&(a(0,"sh-icon",34),m(1,"envelope"),l())}function Be(t,i){t&1&&(a(0,"sh-icon",34),m(1,"textbox"),l())}function ze(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ae,1,0,"ng-container",32),l(),a(3,"input",37),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),h(4,De,2,0,"sh-icon",34)(5,Re,2,0,"sh-icon",34)(6,ke,2,0,"sh-icon",34)(7,Ge,2,0,"sh-icon",34)(8,Be,2,0,"sh-icon",34),l()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),s(),O(e.FormView.type==="Path"?4:e.FormView.type==="Hostname"?5:e.FormView.type==="Bucketname"?6:e.FormView.type==="Email"?7:8)}}function Ue(t,i){t&1&&S(0)}function Ke(t,i){if(t&1){let e=g();a(0,"sh-icon",40),u("click",function(){d(e);let n=_(2).$implicit;return C(n.showPassword=!n.showPassword)}),m(1," eye "),l()}}function He(t,i){if(t&1){let e=g();a(0,"sh-icon",40),u("click",function(){d(e);let n=_(2).$implicit;return C(n.showPassword=!n.showPassword)}),m(1," eye-slash "),l()}}function Je(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ue,1,0,"ng-container",32),l(),a(3,"input",38),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(4,"sh-icon",34),m(5,"password"),l(),h(6,Ke,2,0,"sh-icon",39)(7,He,2,0,"sh-icon",39),l()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),s(3),O(e.showPassword?6:7)}}function Xe(t,i){t&1&&S(0)}function je(t,i){if(t&1&&m(0),t&2){let e=i.$implicit;A(" ",e," ")}}function qe(t,i){if(t&1){let e=g();a(0,"sh-select",41)(1,"label",35),f(2,Xe,1,0,"ng-container",32),l(),a(3,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()(),f(4,je,1,1,"ng-template",null,2,D)}if(t&2){let e=T(5),o=_().$implicit,n=T(3),r=x(0);c("options",o.FormView.options)("isClearable",!1)("optionTemplate",e),s(),c("for",r),s(),c("ngTemplateOutlet",n),s(),c("id",r)("ngModel",o.Value())}}function Qe(t,i){t&1&&S(0)}function We(t,i){if(t&1){let e=g();a(0,"app-size",42),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),a(1,"label",35),f(2,Qe,1,0,"ng-container",32),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),s(),c("for",n),s(),c("ngTemplateOutlet",o)}}function Ye(t,i){t&1&&S(0)}function Ze(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ye,1,0,"ng-container",32),l(),a(3,"input",43),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(4,"sh-icon",34),m(5,"numpad"),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function et(t,i){t&1&&S(0)}function tt(t,i){if(t&1){let e=g();a(0,"sh-toggle",27)(1,"label",35),f(2,et,1,0,"ng-container",32),l(),a(3,"input",44),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function nt(t,i){t&1&&S(0)}function it(t,i){if(t&1&&m(0),t&2){let e=i.$implicit;A(" ",e," ")}}function ot(t,i){if(t&1){let e=g();a(0,"sh-select",45)(1,"label",35),f(2,nt,1,0,"ng-container",32),l(),a(3,"input",46),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()(),f(4,it,1,1,"ng-template",null,3,D)}if(t&2){let e=T(5),o=_().$implicit,n=T(3),r=x(0);c("options",o.FormView.options)("selectMultiple",!0)("optionTemplate",e),s(),c("for",r),s(),c("ngTemplateOutlet",n),s(),c("ngModel",o.Value())}}function rt(t,i){t&1&&S(0)}function at(t,i){if(t&1){let e=g();a(0,"app-timespan",42),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),a(1,"label",35),f(2,rt,1,0,"ng-container",32),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),s(),c("for",n),s(),c("ngTemplateOutlet",o)}}function lt(t,i){if(t&1){let e=g();X(0)(1),f(2,Me,5,5,"ng-template",null,1,D),a(4,"div",22),h(5,Pe,13,3,"div",23)(6,be,4,9,"app-file-tree",24)(7,$e,3,4,"app-file-tree",25)(8,ze,9,6,"sh-form-field")(9,Je,8,6,"sh-form-field")(10,qe,6,7)(11,We,3,5,"app-size",26)(12,Ze,6,4,"sh-form-field")(13,tt,4,4,"sh-toggle",27)(14,ot,6,6)(15,at,3,5,"app-timespan",26),a(16,"button",28),u("click",function(){let n=d(e).$implicit,r=_(2);return C(r.removeSetting(n))}),a(17,"sh-icon"),m(18,"x-bold"),l()()()}if(t&2){let e=i.$implicit,o=i.$index,n=_(2);z("destination-"+e.Name+o),s(),z(n.inAppOptions(e.Name)),s(4),O(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"||e.FormView.type==="Email"||e.FormView.type==="Hostname"||e.FormView.type==="Bucketname"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1)}}function _t(t,i){if(t&1&&(h(0,Ie,2,0,"div",21),E(1,lt,19,3,null,null,M)),t&2){let e=_();O(e.selectedSettings().length===0?0:-1),s(),P(e.selectedSettings())}}var fe=class t{#e=K(ce);options=q.required();hiddenOptions=k([]);hasFreeTextSettings=k(!1);applicationOptions=k();showTextArea=N(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=R(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let r=this.allOptions().find(F=>F.name===n.Name?.replace("--","")),p=n.Value??"";if(r&&i.includes(r.name))return null;if(r){if(r.type==="Boolean"&&(p=this.isTrue(p)),r.type==="Integer"&&(p=parseInt(p)||0),r.type==="Enumeration"&&r.options){let y=p?.trim().toLowerCase(),U=r.options.find(Te=>(Te??"").trim().toLocaleLowerCase()===y);U&&(p=U)}let F=ge.find(y=>y.name===r?.name);return F&&(r=w(w({},r),F)),L(w({},n),{Value:N(p),FormView:r})}else if(this.hasFreeTextSettings())return L(w({},n),{Value:N(p),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=R(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>L(w({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=R(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
|
|
2
|
-
`));updateSettingsFromText(i){if(typeof i!="string")return;let e=me(i);this.options.update(()=>e)}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return!1}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?!1:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}])}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]})}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(p=>p.Name===i.Name);if(i.FormView.type==="Boolean")return n[r].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[r].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let p=e?.trim().toLowerCase()??"",F=i.FormView.options.find(y=>(y??"").trim().toLocaleLowerCase()===p);if(F)return n[r].Value=F,n}return n[r].Value=e,n})}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(p=>p.Name===i.Name);return n[r].Name=e,n})}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=H({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:9,vars:3,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let r;return r=$localize`By adding this option it will override the matching global option`,[["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,[3,"disallowToggle"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","remove-btn",3,"click"],["shTooltip",r,1,"error"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],[3,"ngModelChange","type","id","ngModel"],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"]]},template:function(e,o){e&1&&(a(0,"sh-toggle-card",8),v(1,9)(2),J(3,4),V(),a(4,"div",10),h(5,Se,3,0,"button",11)(6,we,8,2),l(),V(),h(7,ye,1,3,"textarea",12)(8,_t,3,1),l()),e&2&&(c("disallowToggle",!0),s(5),O(o.showTextArea()?5:6),s(2),O(o.showTextArea()?7:8))},dependencies:[ne,Y,te,W,Z,ee,Ce,de,ue,Q,_e,re,oe,ae,pe,ie,le,se],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem;position:relative;z-index:1}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"],changeDetection:0})};export{fe as a};
|
package/chunk-XUN5TTJC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as qr}from"./chunk-VCLWADQK.js";import{h as Fr,k as Xe}from"./chunk-NXROYR6L.js";import{$ as Rr,$a as Ar,B as J,C as se,E as Dt,F as ae,Fb as Ur,H as Ge,I as G,J as Nt,K as pr,Lc as jr,M as gr,O as vr,P as b,Q as Ut,Qa as br,Qc as Q,R as y,S,V as C,Vc as kr,Wa as xt,X as mr,Xa as _,Xc as $r,Y as D,Ya as Ir,Z as Qe,Zb as Pr,_ as d,ad as Ze,ba as ue,bb as Lt,ca as P,cb as Tr,cc as _r,d as ur,dc as xr,e as cr,eb as Ie,ec as Lr,ed as Je,f as lr,g as Et,h as Ot,hd as zr,i as z,j as M,ja as yr,kb as X,l as F,la as Sr,m as A,n as h,na as Ke,nb as Er,o as we,ob as Or,p as hr,pa as Ye,q as dr,qa as Cr,qb as Mr,r as v,rb as Dr,s as Ve,sa as be,t as T,ta as Pt,u as Mt,ua as wr,ub as Nr,v as fr,va as _t,w as We,z as W}from"./chunk-ZBK64QS2.js";import{a as l,b as U}from"./chunk-EUDKD2JW.js";var f="primary",$e=Symbol("RouteTitle"),Ft=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function re(t){return new Ft(t)}function Yr(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j(t[e],n[e]))return!1;return!0}function j(t,n){let e=t?qt(t):void 0,r=n?qt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Zr(t[i],n[i]))return!1;return!0}function qt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Zr(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Jr(t){return t.length>0?t[t.length-1]:null}function H(t){return hr(t)?t:Or(t)?A(Promise.resolve(t)):h(t)}var kn={exact:en,subset:tn},Xr={exact:$n,subset:zn,ignored:()=>!0};function Br(t,n,e){return kn[e.paths](t.root,n.root,e.matrixParams)&&Xr[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function $n(t,n){return j(t,n)}function en(t,n,e){if(!ee(t.segments,n.segments)||!rt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!en(t.children[r],n.children[r],e))return!1;return!0}function zn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Zr(t[e],n[e]))}function tn(t,n,e){return rn(t,n,n.segments,e)}function rn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ee(i,e)||n.hasChildren()||!rt(i,e,r))}else if(t.segments.length===e.length){if(!ee(t.segments,e)||!rt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!tn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ee(t.segments,i)||!rt(t.segments,i,r)||!t.children[f]?!1:rn(t.children[f],n,o,r)}}function rt(t,n,e){return n.every((r,i)=>Xr[e](t[i].parameters,r.parameters))}var $=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){return Bn.serialize(this)}},g=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nt(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=re(this.parameters),this._parameterMap}toString(){return on(this)}};function Fn(t,n){return ee(t,n)&&t.every((e,r)=>j(e.parameters,n[r].parameters))}function ee(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function qn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ze=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new ne,providedIn:"root"})}return t})(),ne=class{parse(n){let e=new Ht(n);return new $(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ae(n.root,!0)}`,r=Wn(n.queryParams),i=typeof n.fragment=="string"?`#${Hn(n.fragment)}`:"";return`${e}${r}${i}`}},Bn=new ne;function nt(t){return t.segments.map(n=>on(n)).join("/")}function Ae(t,n){if(!t.hasChildren())return nt(t);if(n){let e=t.children[f]?Ae(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ae(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=qn(t,(r,i)=>i===f?[Ae(t.children[f],!1)]:[`${i}:${Ae(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${nt(t)}/${e[0]}`:`${nt(t)}/(${e.join("//")})`}}function nn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function et(t){return nn(t).replace(/%3B/gi,";")}function Hn(t){return encodeURI(t)}function Bt(t){return nn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function it(t){return decodeURIComponent(t)}function Hr(t){return it(t.replace(/\+/g,"%20"))}function on(t){return`${Bt(t.path)}${Vn(t.parameters)}`}function Vn(t){return Object.entries(t).map(([n,e])=>`;${Bt(n)}=${Bt(e)}`).join("")}function Wn(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${et(e)}=${et(i)}`).join("&"):`${et(e)}=${et(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Gn=/^[^\/()?;#]+/;function jt(t){let n=t.match(Gn);return n?n[0]:""}var Qn=/^[^\/()?;=#]+/;function Kn(t){let n=t.match(Qn);return n?n[0]:""}var Yn=/^[^=?&#]+/;function Zn(t){let n=t.match(Yn);return n?n[0]:""}var Jn=/^[^&#]+/;function Xn(t){let n=t.match(Jn);return n?n[0]:""}var Ht=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new g(n,e)),r}parseSegment(){let n=jt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new K(it(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Kn(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=jt(this.remaining);i&&(r=i,this.capture(r))}n[it(e)]=it(r)}parseQueryParam(n){let e=Zn(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Xn(this.remaining);s&&(r=s,this.capture(r))}let i=Hr(e),o=Hr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=jt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new g([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function sn(t){return t.segments.length>0?new g([],{[f]:t}):t}function an(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=an(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new g(t.segments,n);return ei(e)}function ei(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new g(t.segments.concat(n.segments),n.children)}return t}function Y(t){return t instanceof $}function un(t,n,e=null,r=null){let i=cn(t);return ln(i,n,e,r)}function cn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new g(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=sn(r);return n??i}function ln(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return kt(i,i,i,e,r);let o=ti(n);if(o.toRoot())return kt(i,i,new g([],{}),e,r);let s=ri(o,i,t),a=s.processChildren?Ee(s.segmentGroup,s.index,o.commands):dn(s.segmentGroup,s.index,o.commands);return kt(i,s.segmentGroup,a,e,r)}function ot(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function De(t){return typeof t=="object"&&t!=null&&t.outlets}function kt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`});let s;t===n?s=e:s=hn(t,n,e);let a=sn(an(s));return new $(a,o,i)}function hn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=hn(o,n,e)}),new g(t.segments,r)}var st=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ot(r[0]))throw new S(4003,!1);let i=r.find(De);if(i&&i!==Jr(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ti(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new st(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new st(e,n,r)}var he=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function ri(t,n,e){if(t.isAbsolute)return new he(n,!0,0);if(!e)return new he(n,!1,NaN);if(e.parent===null)return new he(e,!0,0);let r=ot(t.commands[0])?0:1,i=e.segments.length-1+r;return ni(e,i,t.numberOfDoubleDots)}function ni(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new he(r,!1,i-o)}function ii(t){return De(t[0])?t[0].outlets:{[f]:t}}function dn(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return Ee(t,n,e);let r=oi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new g(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new g(t.segments.slice(r.pathIndex),t.children),Ee(o,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?Vt(t,n,e):r.match?Ee(t,0,i):Vt(t,n,e)}function Ee(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=ii(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Ee(t.children[f],n,e);return new g(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=dn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new g(t.segments,i)}}function oi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(De(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Wr(u,c,s))return o;r+=2}else{if(!Wr(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Vt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(De(o)){let u=si(o.outlets);return new g(r,u)}if(i===0&&ot(e[0])){let u=t.segments[n];r.push(new K(u.path,Vr(e[0]))),i++;continue}let s=De(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ot(a)?(r.push(new K(s,Vr(a))),i+=2):(r.push(new K(s,{})),i++)}return new g(r,{})}function si(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Vt(new g([],{}),0,r))}),n}function Vr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Wr(t,n,e){return t==e.path&&j(n,e.parameters)}var Oe="imperative",m=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(m||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e}},ie=class extends O{type=m.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends O{urlAfterRedirects;type=m.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Ne=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Ne||{}),k=class extends O{reason;code;type=m.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},q=class extends O{reason;code;type=m.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},fe=class extends O{error;target;type=m.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ue=class extends O{urlAfterRedirects;state;type=m.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends O{urlAfterRedirects;state;type=m.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends O{urlAfterRedirects;state;shouldActivate;type=m.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ct=class extends O{urlAfterRedirects;state;type=m.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends O{urlAfterRedirects;state;type=m.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class{route;type=m.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},dt=class{route;type=m.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ft=class{snapshot;type=m.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=m.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gt=class{snapshot;type=m.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=m.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Pe=class{},pe=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function ai(t){return!(t instanceof Pe)&&!(t instanceof pe)}function ui(t,n){return t.providers&&!t._injector&&(t._injector=Lt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function x(t){return t.outlet||f}function ci(t,n){let e=t.filter(r=>x(r)===n);return e.push(...t.filter(r=>x(r)!==n)),e}function me(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var mt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return me(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Re(this.rootInjector)}},Re=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new mt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Qe(ue))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Wt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Wt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Gt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Gt(n,this._root).map(e=>e.value)}};function Wt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Wt(t,e);if(r)return r}return null}function Gt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Gt(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function le(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var _e=class extends Rt{snapshot;constructor(n,e){super(n),this.snapshot=e,tr(this,n)}toString(){return this.snapshot.toString()}};function fn(t){let n=li(t),e=new M([new K("",{})]),r=new M({}),i=new M({}),o=new M({}),s=new M(""),a=new B(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new _e(new E(a,[]),n)}function li(t){let n={},e={},r={},o=new te([],n,r,"",e,f,t,null,{});return new xe("",new E(o,[]))}var B=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[$e]))??h(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>re(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>re(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function yt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&gn(i)&&(r.resolve[$e]=i.title),r}var te=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[$e]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},xe=class extends Rt{url;constructor(n,e){super(e),this.url=n,tr(this,e)}toString(){return pn(this._root)}};function tr(t,n){n.value._routerState=t,n.children.forEach(e=>tr(t,e))}function pn(t){let n=t.children.length>0?` { ${t.children.map(pn).join(", ")} } `:"";return`${t.value}${n}`}function $t(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),j(n.params,e.params)||t.paramsSubject.next(e.params),jn(n.url,e.url)||t.urlSubject.next(e.url),j(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qt(t,n){let e=j(t.params,n.params)&&Fn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Qt(t.parent,n.parent))}function gn(t){return typeof t.title=="string"||t.title===null}var vn=new D(""),rr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new X;deactivateEvents=new X;attachEvents=new X;detachEvents=new X;routerOutletData=$r(void 0);parentContexts=d(Re);location=d(Ir);changeDetector=d(Ze);inputBinder=d(Fe,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Kt(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ie({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[be]})}return t})(),Kt=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===B?this.route:n===Re?this.childContexts:n===vn?this.outletData:this.parent.get(n,e)}},Fe=new D(""),nr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(b(([o,s,a],u)=>(a=l(l(l({},o),s),a),u===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=zr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})(),ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Tr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Ur(0,"router-outlet")},dependencies:[rr],encapsulation:2})}return t})();function or(t){let n=t.children&&t.children.map(or),e=n?U(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=ir),e}function hi(t,n,e){let r=Le(t,n._root,e?e._root:void 0);return new _e(r,n)}function Le(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=di(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Le(t,a)),s}}let r=fi(n.value),i=n.children.map(o=>Le(t,o));return new E(r,i)}}function di(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Le(t,r,i);return Le(t,r)})}function fi(t){return new B(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var ge=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},mn="ngNavigationCancelingError";function St(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Y(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Rn(!1,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Rn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[mn]=!0,e.cancellationCode=n,e}function pi(t){return yn(t)&&Y(t.url)}function yn(t){return!!t&&t[mn]}var gi=(t,n,e,r)=>v(i=>(new Yt(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Yt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),$t(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=le(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=le(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new pt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if($t(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),$t(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Ct=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},de=class{component;route;constructor(n,e){this.component=n,this.route=e}};function vi(t,n,e){let r=t._root,i=n?n._root:null;return Te(r,i,e,[r.value])}function mi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function ye(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!mr(t)?t:n.get(t):r}function Te(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=le(n);return t.children.forEach(s=>{Ri(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Me(a,e.getContext(s),i)),i}function Ri(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=yi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ct(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Te(t,n,a?a.children:null,r,i):Te(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new de(a.outlet.component,s))}else s&&Me(n,a,i),i.canActivateChecks.push(new Ct(r)),o.component?Te(t,null,a?a.children:null,r,i):Te(t,null,e,r,i);return i}function yi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ee(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ee(t.url,n.url)||!j(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qt(t,n)||!j(t.queryParams,n.queryParams);case"paramsChange":default:return!Qt(t,n)}}function Me(t,n,e){let r=le(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Me(s,n.children.getContext(o),e):Me(s,null,e):Me(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new de(n.outlet.component,i)):e.canDeactivateChecks.push(new de(null,i)):e.canDeactivateChecks.push(new de(null,i))}function qe(t){return typeof t=="function"}function Si(t){return typeof t=="boolean"}function Ci(t){return t&&qe(t.canLoad)}function wi(t){return t&&qe(t.canActivate)}function bi(t){return t&&qe(t.canActivateChild)}function Ii(t){return t&&qe(t.canDeactivate)}function Ai(t){return t&&qe(t.canMatch)}function Sn(t){return t instanceof dr||t?.name==="EmptyError"}var tt=Symbol("INITIAL_VALUE");function ve(){return b(t=>Ve(t.map(n=>n.pipe(ae(1),vr(tt)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===tt)return tt;if(e===!1||Ti(e))return e}return!0}),W(n=>n!==tt),ae(1)))}function Ti(t){return Y(t)||t instanceof ge}function Ei(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(U(l({},e),{guardsResult:!0})):Oi(s,r,i,t).pipe(T(a=>a&&Si(a)?Mi(r,o,t,n):h(a)),v(a=>U(l({},e),{guardsResult:a})))})}function Oi(t,n,e,r){return A(t).pipe(T(i=>_i(i.component,i.route,e,n,r)),G(i=>i!==!0,!0))}function Mi(t,n,e,r){return A(n).pipe(se(i=>fr(Ni(i.route.parent,r),Di(i.route,r),Pi(t,i.path,e),Ui(t,i.route,e))),G(i=>i!==!0,!0))}function Di(t,n){return t!==null&&n&&n(new gt(t)),h(!0)}function Ni(t,n){return t!==null&&n&&n(new ft(t)),h(!0)}function Ui(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return h(!0);let i=r.map(o=>We(()=>{let s=me(n)??e,a=ye(o,s),u=wi(a)?a.canActivate(n,t):P(s,()=>a(n,t));return H(u).pipe(G())}));return h(i).pipe(ve())}function Pi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>mi(s)).filter(s=>s!==null).map(s=>We(()=>{let a=s.guards.map(u=>{let c=me(s.node)??e,p=ye(u,c),R=bi(p)?p.canActivateChild(r,t):P(c,()=>p(r,t));return H(R).pipe(G())});return h(a).pipe(ve())}));return h(o).pipe(ve())}function _i(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let u=me(n)??i,c=ye(a,u),p=Ii(c)?c.canDeactivate(t,n,e,r):P(u,()=>c(t,n,e,r));return H(p).pipe(G())});return h(s).pipe(ve())}function xi(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=ye(s,t),u=Ci(a)?a.canLoad(n,e):P(t,()=>a(n,e));return H(u)});return h(o).pipe(ve(),Cn(r))}function Cn(t){return cr(y(n=>{if(typeof n!="boolean")throw St(t,n)}),v(n=>n===!0))}function Li(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=ye(s,t),u=Ai(a)?a.canMatch(n,e):P(t,()=>a(n,e));return H(u)});return h(o).pipe(ve(),Cn(r))}var je=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ce(t){return we(new je(t))}function ji(t){return we(new S(4e3,!1))}function ki(t){return we(Rn(!1,w.GuardRejected))}var Zt=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return h(r);if(i.numberOfChildren>1||!i.children[f])return ji(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){return $i(e,i,o).pipe(v(s=>{if(s instanceof $)throw new ke(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new ke(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new $(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new g(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function $i(t,n,e){if(typeof t=="string")return h(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:p,title:R}=n;return H(P(e,()=>r({params:c,data:p,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:R})))}var Jt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zi(t,n,e,r,i){let o=wn(t,n,e);return o.matched?(r=ui(n,r),Li(r,n,e,i).pipe(v(s=>s===!0?o:l({},Jt)))):h(o)}function wn(t,n,e){if(n.path==="**")return Fi(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Jt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Yr)(e,t,n);if(!i)return l({},Jt);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Fi(t){return{matched:!0,parameters:t.length>0?Jr(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Gr(t,n,e,r){return e.length>0&&Hi(t,e,r)?{segmentGroup:new g(n,Bi(r,new g(e,t.children))),slicedSegments:[]}:e.length===0&&Vi(t,e,r)?{segmentGroup:new g(t.segments,qi(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new g(t.segments,t.children),slicedSegments:e}}function qi(t,n,e,r){let i={};for(let o of e)if(bt(t,n,o)&&!r[x(o)]){let s=new g([],{});i[x(o)]=s}return l(l({},r),i)}function Bi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&x(r)!==f){let i=new g([],{});e[x(r)]=i}return e}function Hi(t,n,e){return e.some(r=>bt(t,n,r)&&x(r)!==f)}function Vi(t,n,e){return e.some(r=>bt(t,n,r))}function bt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Wi(t,n,e){return n.length===0&&!t.children[e]}var Xt=class{};function Gi(t,n,e,r,i,o,s="emptyOnly"){return new er(t,n,e,r,i,s,o).recognize()}var Qi=31,er=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zt(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=Gr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new E(r,e),o=new xe("",i),s=un(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new te([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof je?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(v(s=>s instanceof E?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return A(o).pipe(se(s=>{let a=r.children[s],u=ci(e,s);return this.processSegmentGroup(n,u,a,s,i)}),gr((s,a)=>(s.push(...a),s)),Dt(null),pr(),T(s=>{if(s===null)return ce(r);let a=bn(s);return Ki(a),h(a)}))}processSegment(n,e,r,i,o,s,a){return A(e).pipe(se(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,o,s,a).pipe(J(c=>{if(c instanceof je)return h(null);throw c}))),G(u=>!!u),J(u=>{if(Sn(u))return Wi(r,i,o)?h(new Xt):ce(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return x(r)!==s&&(s===f||!bt(i,o,r))?ce(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):ce(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:p,positionalParamSegments:R,remainingSegments:N}=wn(e,i,o);if(!u)return ce(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Qi&&(this.allowRedirects=!1));let V=new te(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Qr(i),x(i),i.component??i._loadedComponent??null,i,Kr(i)),I=yt(V,a,this.paramsInheritanceStrategy);return V.params=Object.freeze(I.params),V.data=Object.freeze(I.data),this.applyRedirects.applyRedirectCommands(p,i.redirectTo,R,V,n).pipe(b(Z=>this.applyRedirects.lineralizeSegments(i,Z)),T(Z=>this.processSegment(n,r,e,Z.concat(N),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=zi(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(b(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(b(({routes:c})=>{let p=r._loadedInjector??n,{parameters:R,consumedSegments:N,remainingSegments:V}=u,I=new te(N,R,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Qr(r),x(r),r.component??r._loadedComponent??null,r,Kr(r)),oe=yt(I,s,this.paramsInheritanceStrategy);I.params=Object.freeze(oe.params),I.data=Object.freeze(oe.data);let{segmentGroup:Z,slicedSegments:Tt}=Gr(e,N,V,c);if(Tt.length===0&&Z.hasChildren())return this.processChildren(p,c,Z,I).pipe(v(He=>new E(I,He)));if(c.length===0&&Tt.length===0)return h(new E(I,[]));let xn=x(r)===o;return this.processSegment(p,c,Z,Tt,xn?f:o,!0,I).pipe(v(He=>new E(I,He instanceof E?[He]:[])))}))):ce(e)))}getChildConfig(n,e,r){return e.children?h({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):xi(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(y(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ki(e))):h({routes:[],injector:n})}};function Ki(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function Yi(t){let n=t.value.routeConfig;return n&&n.path===""}function bn(t){let n=[],e=new Set;for(let r of t){if(!Yi(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=bn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function Qr(t){return t.data||{}}function Kr(t){return t.resolve||{}}function Zi(t,n,e,r,i,o){return T(s=>Gi(t,n,e,r,s.extractedUrl,i,o).pipe(v(({state:a,tree:u})=>U(l({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Ji(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of In(u))s.add(c);let a=0;return A(s).pipe(se(u=>o.has(u)?Xi(u,r,t,n):(u.data=yt(u,u.parent,t).resolve,h(void 0))),y(()=>a++),Nt(1),T(u=>a===s.size?h(e):F))})}function In(t){let n=t.children.map(e=>In(e)).flat();return[t,...n]}function Xi(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!gn(i)&&(o[$e]=i.title),We(()=>(t.data=yt(t,t.parent,e).resolve,eo(o,t,n,r).pipe(v(s=>(t._resolvedData=s,t.data=l(l({},t.data),s),null)))))}function eo(t,n,e,r){let i=qt(t);if(i.length===0)return h({});let o={};return A(i).pipe(T(s=>to(t[s],n,e,r).pipe(G(),y(a=>{if(a instanceof ge)throw St(new ne,a);o[s]=a}))),Nt(1),v(()=>o),J(s=>Sn(s)?F:we(s)))}function to(t,n,e,r){let i=me(n)??r,o=ye(t,i),s=o.resolve?o.resolve(n,e):P(i,()=>o(n,e));return H(s)}function zt(t){return b(n=>{let e=t(n);return e?A(e).pipe(v(()=>n)):h(n)})}var sr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[$e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>d(An),providedIn:"root"})}return t})(),An=(()=>{class t extends sr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Qe(qr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new D("",{providedIn:"root",factory:()=>({})}),Be=new D(""),Tn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(jr);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return h(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=H(P(e,()=>r.loadComponent())).pipe(v(On),b(Mn),y(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ge(()=>{this.componentLoaders.delete(r)})),o=new Ot(i,()=>new z).pipe(Et());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return h({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=En(r,this.compiler,e,this.onLoadEndListener).pipe(Ge(()=>{this.childrenLoaders.delete(r)})),s=new Ot(o,()=>new z).pipe(Et());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function En(t,n,e,r){return H(P(e,()=>t.loadChildren())).pipe(v(On),b(Mn),T(i=>i instanceof Ar||Array.isArray(i)?h(i):A(n.compileModuleAsync(i))),v(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Be,[],{optional:!0,self:!0}).flat()),{routes:s.map(or),injector:o}}))}function ro(t){return t&&typeof t=="object"&&"default"in t}function On(t){return ro(t)?t.default:t}function Mn(t){return h(t)}var It=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>d(no),providedIn:"root"})}return t})(),no=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dn=new D("");var Nn=new D(""),Un=(()=>{class t{currentNavigation=Ye(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=d(Tn);environmentInjector=d(ue);destroyRef=d(Sr);urlSerializer=d(ze);rootContexts=d(Re);location=d(Xe);inputBindingEnabled=d(Fe,{optional:!0})!==null;titleStrategy=d(sr);options=d(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(It);createViewTransition=d(Dn,{optional:!0});navigationErrorHandler=d(Nn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ht(i)),r=i=>this.events.next(new dt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Q(()=>{this.transitions?.next(U(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new M(null),this.transitions.pipe(W(r=>r!==null),b(r=>{let i=!1;return h(r).pipe(b(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),F;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?U(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new q(o.id,this.urlSerializer.serialize(o.rawUrl),"",Ne.IgnoredSameUrlNavigation)),o.resolve(!1),F;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(b(u=>(this.events.next(new ie(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?F:Promise.resolve(u))),Zi(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),y(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation.update(p=>(p.finalUrl=u.urlAfterRedirects,p));let c=new Ue(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:p,restoredState:R,extras:N}=o,V=new ie(u,this.urlSerializer.serialize(c),p,R);this.events.next(V);let I=fn(this.rootComponentType).snapshot;return this.currentTransition=r=U(l({},o),{targetSnapshot:I,urlAfterRedirects:c,extras:U(l({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(oe=>(oe.finalUrl=c,oe)),h(r)}else return this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Ne.IgnoredByUrlHandlingStrategy)),o.resolve(!1),F}),y(o=>{let s=new at(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=r=U(l({},o),{guards:vi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ei(this.environmentInjector,o=>this.events.next(o)),y(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw St(this.urlSerializer,o.guardsResult);let s=new ut(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),W(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",w.GuardRejected),!1)),zt(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(y(s=>{let a=new ct(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),b(s=>{let a=!1;return h(s).pipe(Ji(this.paramsInheritanceStrategy,this.environmentInjector),y({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",w.NoDataFromResolver)}}))}),y(s=>{let a=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),zt(o=>{let s=a=>{let u=[];if(a.routeConfig?.loadComponent){let c=me(a)??this.environmentInjector;u.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(y(p=>{a.component=p}),v(()=>{})))}for(let c of a.children)u.push(...s(c));return u};return Ve(s(o.targetSnapshot.root)).pipe(Dt(null),ae(1))}),zt(()=>this.afterPreactivation()),b(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?A(a).pipe(v(()=>r)):h(r)}),v(o=>{let s=hi(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=U(l({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),y(()=>{this.events.next(new Pe)}),gi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ae(1),Ut(new lr(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(W(()=>!i&&!r.targetRouterState),y(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",w.Aborted)}))),y({next:o=>{i=!0,this.lastSuccessfulNavigation=Q(this.currentNavigation),this.events.next(new L(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Ut(this.transitionAbortWithErrorSubject.pipe(y(o=>{throw o}))),Ge(()=>{i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),J(o=>{if(this.destroyed)return r.resolve(!1),F;if(i=!0,yn(o))this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),pi(o)?this.events.next(new pe(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new fe(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=P(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ge){let{message:u,cancellationCode:c}=St(this.urlSerializer,a);this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),u,c)),this.events.next(new pe(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return F}))}))}cancelNavigationTransition(e,r,i){let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Q(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function io(t){return t!==Oe}var Pn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>d(oo),providedIn:"root"})}return t})(),wt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},oo=(()=>{class t extends wt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Pt(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_n=(()=>{class t{urlSerializer=d(ze);options=d(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(Xe);urlHandlingStrategy=d(It);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof $?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=fn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>d(so),providedIn:"root"})}return t})(),so=(()=>{class t extends _n{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ie?this.updateStateMemento():e instanceof q?this.commitTransition(r):e instanceof Ue?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Pe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k&&e.code!==w.SupersededByNewNavigation&&e.code!==w.Redirect?this.restoreHistory(r):e instanceof fe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Pt(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ar(t,n){t.events.pipe(W(e=>e instanceof L||e instanceof k||e instanceof fe||e instanceof q),v(e=>e instanceof L||e instanceof q?0:(e instanceof k?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),ae(1)).subscribe(()=>{n()})}var ao={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ce=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Er);stateManager=d(_n);options=d(Se,{optional:!0})||{};pendingTasks=d(Cr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Un);urlSerializer=d(ze);location=d(Xe);urlHandlingStrategy=d(It);injector=d(ue);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Pn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Be,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Fe,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ur;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Q(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof pe){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||io(i.source)},s);this.scheduleNavigation(a,Oe,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ai(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Oe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(u=>{this.disposed||this.injector.get(Ke)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Q(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(or),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,p=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":p=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let R;try{let N=i?i.snapshot:this.routerState.snapshot.root;R=cn(N)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),R=this.currentUrlTree.root}return ln(R,e,p,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Y(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Oe,null,r)}navigate(e,r={skipLocationChange:!1}){return co(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},ao):r===!1?i=l({},uo):i=r,Y(e))return Br(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Br(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((R,N)=>{a=R,u=N});let p=this.pendingTasks.add();return ar(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(R=>Promise.reject(R))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function co(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}var At=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Ye(null);get href(){return Q(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=d(Ke);options=d(Se,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(d(new kr("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,r=i=>i==="merge"||i==="preserve";e||=r(this.queryParamsHandling),e||=!this.queryParamsHandling&&!r(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof L&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Y(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Y(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(_(Ce),_(B),wr("tabindex"),_(xt),_(_t),_(Fr))};static \u0275dir=Ie({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Pr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Nr("href",i.reactiveHref(),br)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Je],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Je],replaceUrl:[2,"replaceUrl","replaceUrl",Je],routerLink:"routerLink"},features:[be]})}return t})(),ho=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new X;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof L&&this.update()})}ngAfterContentInit(){h(this.links.changes,h(null)).pipe(Mt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=A(e).pipe(Mt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=fo(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(_(Ce),_(_t),_(xt),_(Ze),_(At,8))};static \u0275dir=Ie({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&_r(o,At,5),r&2){let s;xr(s=Lr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[be]})}return t})();function fo(t){return!!t.paths}var po=new D("");function go(t,...n){return Rr([{provide:Be,multi:!0,useValue:t},[],{provide:B,useFactory:vo,deps:[Ce]},{provide:Mr,multi:!0,useFactory:Ro},n.map(e=>e.\u0275providers)])}function vo(t){return t.routerState.root}function mo(t,n){return{\u0275kind:t,\u0275providers:n}}function Ro(){let t=d(yr);return n=>{let e=t.get(Dr);if(n!==e.components[0])return;let r=t.get(Ce),i=t.get(yo);t.get(So)===1&&r.initialNavigation(),t.get(Co,null,{optional:!0})?.setUpPreloading(),t.get(po,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var yo=new D("",{factory:()=>new z}),So=new D("",{providedIn:"root",factory:()=>1});var Co=new D("");function wo(){return mo(8,[nr,{provide:Fe,useExisting:nr}])}export{L as a,B as b,rr as c,Ce as d,At as e,ho as f,go as g,wo as h};
|