@duplicati/ngclient 0.0.235 → 0.0.236
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-xD8qjoz4.js → chunk-0pQRcAhF.js} +1 -1
- package/{chunk-BEUeHgR9.js → chunk-1DRz_1dv.js} +1 -1
- package/{chunk-C185qUb-.js → chunk-2QKZNH3T.js} +1 -1
- package/{chunk-DWCofCiP.js → chunk-3iAIXnG6.js} +9 -9
- package/{chunk-fDWfSg6Y.js → chunk-5q0UK__c.js} +1 -1
- package/{chunk-6-sszNfh.js → chunk-644SEuYO.js} +1 -1
- package/{chunk-B_I_9Y7k.js → chunk-6oGy_iFC.js} +1 -1
- package/{chunk-CFgDqLU0.js → chunk-8A93BNds.js} +1 -1
- package/{chunk-D6y9RCQD.js → chunk-9Pc-waxi.js} +1 -1
- package/{chunk-iU19kwHx.js → chunk-B20GDhu-.js} +1 -1
- package/{chunk-C1py21yb.js → chunk-B5S2d_Pm.js} +1 -1
- package/{chunk-CsVpmA6t.js → chunk-BFsdrFDX.js} +1 -1
- package/{chunk-CSrYlKTK.js → chunk-BG8y51P2.js} +1 -1
- package/{chunk-BjqgOGb9.js → chunk-BIZHZ66x.js} +1 -1
- package/{chunk-7T5O8Syb.js → chunk-BM5sEnUl.js} +1 -1
- package/{chunk-DB0aGcRM.js → chunk-BO1Nqy2x.js} +1 -1
- package/{chunk-D04TnMUn.js → chunk-BSB0qCYy.js} +1 -1
- package/{chunk-DkVHfoYw.js → chunk-BSCOyYHH.js} +1 -1
- package/{chunk-NiMN4Rl6.js → chunk-BWDCVcaP.js} +1 -1
- package/{chunk-Btvi2S15.js → chunk-BZPh4AYw.js} +1 -1
- package/chunk-Bc_wPl6H.js +1 -0
- package/{chunk-Dbq-qyNL.js → chunk-Bdg6GNH8.js} +1 -1
- package/{chunk-DBkkb6OR.js → chunk-Be4WXTyA.js} +1 -1
- package/{chunk-iGzJokt-.js → chunk-Bfg1Kjif.js} +1 -1
- package/{chunk-CGnjVnmu.js → chunk-BmOgPfpY.js} +1 -1
- package/{chunk-CxbeRJcJ.js → chunk-BpG_gjhd.js} +1 -1
- package/{chunk-CdzKkYEw.js → chunk-BszFCrvn.js} +1 -1
- package/{chunk-D5V6OY_2.js → chunk-Bx7WLGmZ.js} +1 -1
- package/{chunk-DneBfCBh.js → chunk-BxBZMjtQ.js} +1 -1
- package/{chunk-Cj_yOpND.js → chunk-BxLcE6zQ.js} +1 -1
- package/{chunk-29_4gGIi.js → chunk-Bz49u_nH.js} +1 -1
- package/{chunk-DA7rrIf8.js → chunk-BzRnxKOJ.js} +1 -1
- package/{chunk-D6IQFx6m.js → chunk-C0w3mWOI.js} +1 -1
- package/{chunk-BWvawawS.js → chunk-C1PIQTOq.js} +1 -1
- package/{chunk-BGuvkLC9.js → chunk-C8Zr0vl3.js} +1 -1
- package/{chunk-BDJqKfxm.js → chunk-C9fglVxt.js} +1 -1
- package/{chunk-B891gwjc.js → chunk-CBaqwuDY.js} +1 -1
- package/{chunk-xI8Kkqgy.js → chunk-CC4z1keD.js} +1 -1
- package/{chunk-Dv_fBX0w.js → chunk-CH0tv6BB.js} +1 -1
- package/{chunk-_OzpLe0L.js → chunk-CMLjueVV.js} +1 -1
- package/{chunk-C1-31fA7.js → chunk-CNwmuSlJ.js} +1 -1
- package/{chunk-DFLxy15J.js → chunk-COhlvPYj.js} +1 -1
- package/{chunk-D38QrkIM.js → chunk-CRhQXQUC.js} +1 -1
- package/{chunk-DSeMtMg3.js → chunk-CSPT2xlQ.js} +1 -1
- package/{chunk-D7UddV5F.js → chunk-CUlaXyK0.js} +1 -1
- package/{chunk-CnZx831x.js → chunk-CUo9Jt8-.js} +1 -1
- package/chunk-CWCU9i20.js +1 -0
- package/{chunk-CQVPqpMp.js → chunk-CYA8bL3v.js} +1 -1
- package/{chunk-3YzyUT-a.js → chunk-CZu3210D.js} +1 -1
- package/{chunk-DuRr4rDS.js → chunk-CaQaYVo7.js} +1 -1
- package/{chunk-gId840Er.js → chunk-CgrVW_eL.js} +1 -1
- package/{chunk-DYV1Pbu1.js → chunk-Ci645E9t.js} +1 -1
- package/{chunk-DKRWta24.js → chunk-CpY-WOcD.js} +2 -2
- package/{chunk-C4Uv1C-T.js → chunk-CqNJ2t71.js} +1 -1
- package/chunk-D0owcdvy.js +1 -0
- package/{chunk-C0KXp4hd.js → chunk-D39Om4Mk.js} +1 -1
- package/{chunk-ClFp7JLZ.js → chunk-D72BQ7G7.js} +1 -1
- package/{chunk-C0XQD9NK.js → chunk-DCP61JTN.js} +1 -1
- package/{chunk-CKUlUN3q.js → chunk-DF2Ac802.js} +1 -1
- package/{chunk-m8vMm7S6.js → chunk-DLYD6dRM.js} +1 -1
- package/{chunk-Cm7JSdTO.js → chunk-DM-zhIVI.js} +1 -1
- package/{chunk-D2P9ER0I.js → chunk-DOUmqK2E.js} +1 -1
- package/{chunk-B61kkU_h.js → chunk-DQ3vKQCE.js} +1 -1
- package/{chunk-CzoH_Agx.js → chunk-DR-utttZ.js} +1 -1
- package/{chunk-ayE11Iz-.js → chunk-DWyjU7VC.js} +1 -1
- package/{chunk-Bgd5lu61.js → chunk-DgUP0uNQ.js} +1 -1
- package/{chunk-BEzhTDp8.js → chunk-Dgq3OqWW.js} +1 -1
- package/{chunk-IqMUABbN.js → chunk-Djpe9Lo0.js} +1 -1
- package/{chunk-OQ_HQ9EL.js → chunk-DkT-0-DS.js} +1 -1
- package/{chunk-D9jPw9Ov.js → chunk-Dn7TWCfq.js} +1 -1
- package/{chunk-Css7wqTG.js → chunk-DxIS2uYj.js} +1 -1
- package/{chunk-DXLQftDm.js → chunk-DyDoCZiX.js} +1 -1
- package/chunk-DzP0W6ua.js +1 -0
- package/{chunk-DmCJ7w-M.js → chunk-Ied7KwvV.js} +1 -1
- package/{chunk-BJOhC2d8.js → chunk-Mj9aFt3b.js} +1 -1
- package/{chunk-DaXXLSfy.js → chunk-OEmUbdHQ.js} +1 -1
- package/{chunk-zOY5leQB.js → chunk-OpdQrdKp.js} +1 -1
- package/{chunk-CLlZiOaO.js → chunk-VrjhL6gl.js} +1 -1
- package/{chunk-CzsiJ0k-.js → chunk-Z-8b6Hyr.js} +1 -1
- package/{chunk-W1dL7dqQ.js → chunk-bJwp1ogZ.js} +2 -2
- package/{chunk-Kq2ZFJSk.js → chunk-hTxREuXu.js} +1 -1
- package/{chunk-BWSg9cLt.js → chunk-mVyxhVwu.js} +1 -1
- package/{chunk-BOKNwzSl.js → chunk-oBjabFaf.js} +1 -1
- package/{chunk-Bq_vr6Q3.js → chunk-qUlwoHQn.js} +1 -1
- package/{chunk-Brfc2m61.js → chunk-vtWJkNZ_.js} +1 -1
- package/{chunk-DHkdQ4u3.js → chunk-zcgLq6FT.js} +1 -1
- package/index.html +1 -1
- package/{main-2ZYVV4C4.js → main-X6MUEPX4.js} +2 -2
- package/package.json +1 -1
- package/chunk-BSCc2xDv.js +0 -1
- package/chunk-D4g_OF7M.js +0 -1
- package/chunk-DE8p9-HP.js +0 -1
- package/chunk-NAAMYA7J.js +0 -1
|
@@ -15,7 +15,7 @@ function T$1(o,l){let n=o.split("+").map(c=>c.trim().toLowerCase()),t=false,e=fa
|
|
|
15
15
|
`],encapsulation:2});}}return t})(),be$3=(()=>{class t{constructor(){this.#i=T$5(Mr),this.#t=this.#i.querySelector("body"),this.#e=T$5(hs),this.compRef=null,this.insertedCompRef=null,this.insertedTemplateRef=null,this.closedFieldSub=null,this.compClosedSub=null;}#i;#t;#e;open(i,e){let o=this.#e.injector,ee=this.#a(),l=false,a,w=e||{},{data:r,closed:y}=w,ie=n(w,["data","closed"]);this.compRef&&this.#o(true);let te=this;function c(s=void 0){te.#o(),!l&&(l=true,a&&a instanceof lo$1&&a.emit(s),y?.(s));}let h=[];if(i instanceof Wr)this.insertedTemplateRef=i.createEmbeddedView({$implicit:r,close:s=>c(s)}),h=[this.insertedTemplateRef.rootNodes];else {this.insertedCompRef=A1(i,{environmentInjector:o}),h=[[this.insertedCompRef.location.nativeElement]];let s=this.insertedCompRef.instance,x=s.data;if(a=s.closed,r){if(Sr(x))this.insertedCompRef.setInput("data",r);else if(!Sr(x))throw new Error("data is not an input signal on the passed component")}a&&a instanceof lo$1&&(this.closedFieldSub=a.subscribe(k=>{this.#o(),!l&&(l=true,y?.(k),(this.compRef?.instance.closed).emit(k));}));}return this.compRef=A1(de$2,{hostElement:ee,environmentInjector:o,projectableNodes:h}),this.insertedCompRef&&(this.#e.attachView(this.insertedCompRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges()),this.insertedTemplateRef&&(this.#e.attachView(this.insertedTemplateRef),this.insertedTemplateRef.detectChanges()),this.#e.attachView(this.compRef.hostView),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(true),this.compRef.setInput("options",ie),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>c()),{component:this.insertedCompRef?.instance,close:c,closed:this.compRef.instance.closed}}#a(){let i=this.#i.createElement("sh-dialog-ref");return i.id="sh-dialog-ref",this.#i.getElementById("sh-dialog-ref")||this.#t?.append(i),this.#i.getElementById("sh-dialog-ref")}#o(i=false){let e=this;i||queueMicrotask(()=>o());function o(){e.insertedCompRef&&(e.#e.detachView(e.insertedCompRef.hostView),e.closedFieldSub?.unsubscribe(),e.insertedCompRef.destroy(),e.insertedCompRef=null),e.insertedTemplateRef&&(e.#e.detachView(e.insertedTemplateRef),e.insertedTemplateRef.destroy(),e.insertedTemplateRef=null),e.compRef&&(e.#e.detachView(e.compRef.hostView),e.compClosedSub?.unsubscribe(),e.compRef.destroy());}}ngOnDestroy(){this.#o(true);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var w$2=class w{_doc;constructor(n){this._doc=n;}manager},b$3=(()=>{class o extends w$2{constructor(e){super(e);}supports(e){return true}addEventListener(e,t,r,s){return e.addEventListener(t,r,s),()=>this.removeEventListener(e,t,r,s)}removeEventListener(e,t,r,s){return e.removeEventListener(t,r,s)}static \u0275fac=function(t){return new(t||o)(Oe$6(Mr))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac})}return o})(),H$1=new x$5(""),z$2=(()=>{class o{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this;});let r=e.filter(i=>!(i instanceof b$3));this._plugins=r.slice().reverse();let s=e.find(i=>i instanceof b$3);s&&this._plugins.push(s);}addEventListener(e,t,r,s){return this._findPluginFor(t).addEventListener(e,t,r,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new D$9(-5101,false);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||o)(Oe$6(H$1),Oe$6(Pe$7))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac})}return o})(),j$1="ng-app-id";function pe$2(o){for(let n of o)n.remove();}function he$1(o,n){let e=n.createElement("style");return e.textContent=o,e}function Te$1(o,n,e,t){let r=o.head?.querySelectorAll(`style[${j$1}="${n}"],link[${j$1}="${n}"]`);if(!r||r.length===0)return false;for(let s of r)s.removeAttribute(j$1),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]});return true}function F$2(o,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),e}var $$2=(()=>{class o{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,r,s={}){this.doc=e,this.appId=t,this.nonce=r,Te$1(e,t,this.inline,this.external)&&this.hosts.add(e.head);}addStyles(e,t){for(let r of e)this.addUsage(r,this.inline,he$1);t?.forEach(r=>this.addUsage(r,this.external,F$2));}removeStyles(e,t){for(let r of e)this.removeUsage(r,this.inline);t?.forEach(r=>this.removeUsage(r,this.external));}addUsage(e,t,r){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,r(e,this.doc)))});}removeUsage(e,t){let r=t.get(e);r&&(r.usage--,r.usage<=0&&(pe$2(r.elements),t.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of [...this.inline,...this.external])pe$2(e);this.hosts.clear();}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:r}]of this.inline)r.push(this.addElement(e,he$1(t,this.doc)));for(let[t,{elements:r}]of this.external)r.push(this.addElement(e,F$2(t,this.doc)));}}removeHost(e){this.hosts.delete(e);for(let t of [...this.inline.values(),...this.external.values()]){let r=[];for(let s of t.elements)s.parentNode===e?s.remove():r.push(s);t.elements=r;}}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||o)(Oe$6(Mr),Oe$6(Ga),Oe$6(fv,8),Oe$6(dv))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac})}return o})(),V$3={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},G$2=/%COMP%/g;var ye$2="%COMP%",_e$3=`_nghost-${ye$2}`,we$2=`_ngcontent-${ye$2}`,Me$1=true,Re$2=new x$5("",{factory:()=>Me$1});function De$3(o){return we$2.replace(G$2,o)}function Ae$1(o){return _e$3.replace(G$2,o)}function Ee$1(o,n){return n.map(e=>e.replace(G$2,o))}var Y$1=(()=>{class o{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,r,s,i,c,d=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=d,this.tracingService=l,this.defaultRenderer=new M(e,i,c,this.tracingService);}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,t);return r instanceof L$1?r.applyToHost(e):r instanceof R$1&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,s=r.get(t.id);if(!s){let i=this.doc,c=this.ngZone,d=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(t.encapsulation){case rn$1.Emulated:s=new L$1(d,l,t,this.appId,p,i,c,h);break;case rn$1.ShadowDom:return new N$2(d,e,t,i,c,this.nonce,h,l);case rn$1.ExperimentalIsolatedShadowDom:return new N$2(d,e,t,i,c,this.nonce,h);default:s=new R$1(d,l,t,p,i,c,h);break}r.set(t.id,s);}return s}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static \u0275fac=function(t){return new(t||o)(Oe$6(z$2),Oe$6($h),Oe$6(Ga),Oe$6(Re$2),Oe$6(Mr),Oe$6(Pe$7),Oe$6(fv),Oe$6(dn$2,8))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac})}return o})(),M=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(n,e,t,r){this.eventManager=n,this.doc=e,this.ngZone=t,this.tracingService=r;}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(V$3[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(me$2(n)?n.content:n).appendChild(e);}insertBefore(n,e,t){n&&(me$2(n)?n.content:n).insertBefore(e,t);}removeChild(n,e){e.remove();}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new D$9(-5104,false);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,r){if(r){e=r+":"+e;let s=V$3[r];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t);}else n.setAttribute(e,t);}removeAttribute(n,e,t){if(t){let r=V$3[t];r?n.removeAttributeNS(r,e):n.removeAttribute(`${t}:${e}`);}else n.removeAttribute(e);}addClass(n,e){n.classList.add(e);}removeClass(n,e){n.classList.remove(e);}setStyle(n,e,t,r){r&(ji$2.DashCase|ji$2.Important)?n.style.setProperty(e,t,r&ji$2.Important?"important":""):n.style[e]=t;}removeStyle(n,e,t){t&ji$2.DashCase?n.style.removeProperty(e):n.style[e]="";}setProperty(n,e,t){n!=null&&(n[e]=t);}setValue(n,e){n.nodeValue=e;}listen(n,e,t,r){if(typeof n=="string"&&(n=s$1().getGlobalEventTarget(this.doc,n),!n))throw new D$9(-5102,false);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===false&&e.preventDefault();}}};function me$2(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var N$2=class N extends M{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,t,r,s,i,c,d){super(n,r,s,c),this.hostEl=e,this.sharedStylesHost=d,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=t.styles;l=Ee$1(t.id,l);for(let h of l){let y=document.createElement("style");i&&y.setAttribute("nonce",i),y.textContent=h,this.shadowRoot.appendChild(y);}let p=t.getExternalStyles?.();if(p)for(let h of p){let y=F$2(h,r);i&&y.setAttribute("nonce",i),this.shadowRoot.appendChild(y);}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},R$1=class R extends M{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,r,s,i,c,d){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let l=t.styles;this.styles=d?Ee$1(d,l):l,this.styleUrls=t.getExternalStyles?.(d);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Hn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},L$1=class L extends R$1{contentAttr;hostAttr;constructor(n,e,t,r,s,i,c,d){let l=r+"-"+t.id;super(n,e,t,s,i,c,d,l),this.contentAttr=De$3(l),this.hostAttr=Ae$1(l);}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"");}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var P$2=class o extends f$5{supportsDOMEvents=true;static makeCurrent(){_$3(new o);}onAndCancel(n,e,t,r){return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r);}}dispatchEvent(n,e){n.dispatchEvent(e);}remove(n){n.remove();}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Ie$1();return e==null?null:Oe$2(e)}resetBaseElement(){D$6=null;}getUserAgent(){return window.navigator.userAgent}getCookie(n){return k$6(document.cookie,n)}},D$6=null;function Ie$1(){return D$6=D$6||document.head.querySelector("base"),D$6?D$6.getAttribute("href"):null}function Oe$2(o){return new URL(o,document.baseURI).pathname}var ve$2=["alt","control","meta","shift"],be$2={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ne$1={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},Se$2=(()=>{class o extends w$2{constructor(e){super(e);}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,r,s){let i=o.parseEventName(t),c=o.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>s$1().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let s=o._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ve$2.forEach(l=>{let p=t.indexOf(l);p>-1&&(t.splice(p,1),i+=l+".");}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let r=be$2[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(r=e.code,s="code."),r==null||!r?false:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ve$2.forEach(i=>{if(i!==r){let c=Ne$1[i];c(e)&&(s+=i+".");}}),s+=r,s===t)}static eventCallback(e,t,r){return s=>{o.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>t(s));}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||o)(Oe$6(Mr))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac})}return o})();async function Le$3(o,n,e){let t=l$2({rootComponent:o},He$3(n,e));return M1(t)}function He$3(o,n){return {platformRef:n?.platformRef,appProviders:[...Be$3,...o?.providers??[]],platformProviders:xe$2}}function Pe$3(){P$2.makeCurrent();}function ke$1(){return new rt$1}function Ue$3(){return eI(document),document}var xe$2=[{provide:dv,useValue:wi$1},{provide:tf,useValue:Pe$3,multi:true},{provide:Mr,useFactory:Ue$3}];var Be$3=[{provide:va,useValue:"root"},{provide:rt$1,useFactory:ke$1},{provide:H$1,useClass:b$3,multi:true},{provide:H$1,useClass:Se$2,multi:true},Y$1,{provide:$h,useClass:$$2},{provide:$$2,useExisting:$h},z$2,{provide:qr,useExisting:Y$1},[]];var zt$1=(()=>{class o{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||"";}static \u0275fac=function(t){return new(t||o)(Oe$6(Mr))};static \u0275prov=ee$5({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var je$3=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=ee$5({token:o,factory:function(t){let r=null;return t?r=new(t||o):r=Oe$6(Ve$3),r},providedIn:"root"})}return o})(),Ve$3=(()=>{class o extends je$3{_doc=T$5(Mr);sanitize(e,t){if(t==null)return null;switch(e){case H$6.NONE:return t;case H$6.HTML:return qn$1(t,"HTML")?lt$2(t):Bp(this._doc,String(t)).toString();case H$6.STYLE:return qn$1(t,"Style")?lt$2(t):t;case H$6.SCRIPT:if(qn$1(t,"Script"))return lt$2(t);throw new D$9(5200,false);case H$6.URL:return qn$1(t,"URL")?lt$2(t):es(String(t));case H$6.RESOURCE_URL:if(qn$1(t,"ResourceURL"))return lt$2(t);throw new D$9(5201,false);default:throw new D$9(5202,false)}}bypassSecurityTrustHtml(e){return sI(e)}bypassSecurityTrustStyle(e){return aI(e)}bypassSecurityTrustScript(e){return cI(e)}bypassSecurityTrustUrl(e){return lI(e)}bypassSecurityTrustResourceUrl(e){return uI(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=Xr$1({token:o,factory:o.\u0275fac})}return o})();
|
|
16
16
|
var p="primary",Be$2=Symbol("RouteTitle"),Vt$1=class Vt{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 ae$1(t){return new Vt$1(t)}function Ht$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function nn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return Ht$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !Ht$1(o,t.slice(0,o.length),c)||!Ht$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function lt$1(t){return new Promise((n,e)=>{t.pipe(My()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Zn(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!q$2(t[e],n[e]))return false;return true}function q$2(t,n){let e=t?Gt$1(t):void 0,r=n?Gt$1(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!on(t[i],n[i]))return false;return true}function Gt$1(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function on(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Jn(t){return t.length>0?t[t.length-1]:null}function ue$2(t){return dy(t)?t:jl(t)?Ae$5(Promise.resolve(t)):iy(t)}function an(t){return dy(t)?lt$1(t):Promise.resolve(t)}var Xn={exact:cn,subset:un},sn={exact:ei,subset:ti,ignored:()=>true},ar={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Le$2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function sr(t,n,e){let r=t instanceof E?t:n.parseUrl(t);return Nt$3(()=>Wt$1(n.lastSuccessfulNavigation()?.finalUrl??new E,r,l$2(l$2({},Le$2),e)))}function Wt$1(t,n,e){return Xn[e.paths](t.root,n.root,e.matrixParams)&&sn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ei(t,n){return q$2(t,n)}function cn(t,n,e){if(!oe$1(t.segments,n.segments)||!st$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!cn(t.children[r],n.children[r],e))return false;return true}function ti(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>on(t[e],n[e]))}function un(t,n,e){return ln(t,n,n.segments,e)}function ln(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!oe$1(i,e)||n.hasChildren()||!st$1(i,e,r))}else if(t.segments.length===e.length){if(!oe$1(t.segments,e)||!st$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!un(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !oe$1(t.segments,i)||!st$1(t.segments,i,r)||!t.children[p]?false:ln(t.children[p],n,o,r)}}function st$1(t,n,e){return n.every((r,i)=>sn[e](t[i].parameters,r.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m$4([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ae$1(this.queryParams),this._queryParamMap}toString(){return ii.serialize(this)}},m$4=class m{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 ct$1(this)}},Z$1=class Z{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ae$1(this.parameters),this._parameterMap}toString(){return dn(this)}};function ri(t,n){return oe$1(t,n)&&t.every((e,r)=>q$2(e.parameters,n[r].parameters))}function oe$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function ni(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var Se$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:()=>new J$2})}return t})(),J$2=class J{parse(n){let e=new Kt(n);return new E(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De$2(n.root,true)}`,r=si(n.queryParams),i=typeof n.fragment=="string"?`#${oi(n.fragment)}`:"";return `${e}${r}${i}`}},ii=new J$2;function ct$1(t){return t.segments.map(n=>dn(n)).join("/")}function De$2(t,n){if(!t.hasChildren())return ct$1(t);if(n){let e=t.children[p]?De$2(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${De$2(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=ni(t,(r,i)=>i===p?[De$2(t.children[p],false)]:[`${i}:${De$2(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ct$1(t)}/${e[0]}`:`${ct$1(t)}/(${e.join("//")})`}}function hn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot$1(t){return hn(t).replace(/%3B/gi,";")}function oi(t){return encodeURI(t)}function Qt(t){return hn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ut$1(t){return decodeURIComponent(t)}function Yr(t){return ut$1(t.replace(/\+/g,"%20"))}function dn(t){return `${Qt(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${Qt(n)}=${Qt(e)}`).join("")}function si(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ot$1(e)}=${ot$1(i)}`).join("&"):`${ot$1(e)}=${ot$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Ft$1(t){let n=t.match(ci);return n?n[0]:""}var ui=/^[^\/()?;=#]+/;function li(t){let n=t.match(ui);return n?n[0]:""}var hi=/^[^=?&#]+/;function di(t){let n=t.match(hi);return n?n[0]:""}var fi=/^[^&#]+/;function pi(t){let n=t.match(fi);return n?n[0]:""}var Kt=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m$4([],{}):new m$4([],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(n=0){if(n>50)throw new D$9(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m$4(e,r)),i}parseSegment(){let n=Ft$1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new D$9(4009,false);return this.capture(n),new Z$1(ut$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=li(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Ft$1(this.remaining);i&&(r=i,this.capture(r));}n[ut$1(e)]=ut$1(r);}parseQueryParam(n){let e=di(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=pi(this.remaining);a&&(r=a,this.capture(r));}let i=Yr(e),o=Yr(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ft$1(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new D$9(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m$4([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new D$9(4011,false)}};function fn(t){return t.segments.length>0?new m$4([],{[p]:t}):t}function pn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=pn(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m$4(t.segments,n);return gi(e)}function gi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m$4(t.segments.concat(n.segments),n.children)}return t}function X$1(t){return t instanceof E}function gn(t,n,e=null,r=null,i=new J$2){let o=vn(t);return mn(o,n,e,r,i)}function vn(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m$4(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=fn(r);return n??i}function mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return qt$1(o,o,o,e,r,i);let a=vi(n);if(a.toRoot())return qt$1(o,o,new m$4([],{}),e,r,i);let c=mi(a,o,t),s=c.processChildren?Ue$2(c.segmentGroup,c.index,a.commands):Rn(c.segmentGroup,c.index,a.commands);return qt$1(o,c.segmentGroup,s,e,r,i)}function ht$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe$1(t){return typeof t=="object"&&t!=null&&t.outlets}function Zr(t,n,e){t||="\u0275";let r=new E;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function qt$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>Zr(u,v,o)):Zr(u,h,o);let c;t===n?c=e:c=yn(t,n,e);let s=fn(pn(c));return new E(s,a,i)}function yn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=yn(o,n,e);}),new m$4(t.segments,r)}var dt$1=class dt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht$1(r[0]))throw new D$9(4003,false);let i=r.find(xe$1);if(i&&i!==Jn(r))throw new D$9(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function vi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new dt$1(e,n,r)}var fe$2=class fe{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function mi(t,n,e){if(t.isAbsolute)return new fe$2(n,true,0);if(!e)return new fe$2(n,false,NaN);if(e.parent===null)return new fe$2(e,true,0);let r=ht$1(t.commands[0])?0:1,i=e.segments.length-1+r;return yi(e,i,t.numberOfDoubleDots)}function yi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new D$9(4005,false);i=r.segments.length;}return new fe$2(r,false,i-o)}function Ri(t){return xe$1(t[0])?t[0].outlets:{[p]:t}}function Rn(t,n,e){if(t??=new m$4([],{}),t.segments.length===0&&t.hasChildren())return Ue$2(t,n,e);let r=Si(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$4(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m$4(t.segments.slice(r.pathIndex),t.children),Ue$2(o,0,i)}else return r.match&&i.length===0?new m$4(t.segments,{}):r.match&&!t.hasChildren()?Yt$1(t,n,e):r.match?Ue$2(t,0,i):Yt$1(t,n,e)}function Ue$2(t,n,e){if(e.length===0)return new m$4(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Ue$2(t.children[p],n,e);return new m$4(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Rn(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m$4(t.segments,i)}}function Si(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(xe$1(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!Xr(s,u,a))return o;r+=2;}else {if(!Xr(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function Yt$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe$1(o)){let s=Ci(o.outlets);return new m$4(r,s)}if(i===0&&ht$1(e[0])){let s=t.segments[n];r.push(new Z$1(s.path,Jr(e[0]))),i++;continue}let a=xe$1(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&ht$1(c)?(r.push(new Z$1(a,Jr(c))),i+=2):(r.push(new Z$1(a,{})),i++);}return new m$4(r,{})}function Ci(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Yt$1(new m$4([],{}),0,r));}),n}function Jr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Xr(t,n,e){return t==e.path&&q$2(n,e.parameters)}var Oe$1="imperative",S$4=(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})(S$4||{}),_$1=class _{id;url;constructor(n,e){this.id=n,this.url=e;}},se$1=class se extends _$1{type=S$4.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}')`}},k$4=class k extends _$1{urlAfterRedirects;type=S$4.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b$2=(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})(b$2||{}),je$2=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(je$2||{}),j=class extends _$1{reason;code;type=S$4.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Sn(t){return t instanceof j&&(t.code===b$2.Redirect||t.code===b$2.SupersededByNewNavigation)}var G$1=class G extends _$1{reason;code;type=S$4.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},ce$1=class ce extends _$1{error;target;type=S$4.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})`}},ke=class extends _$1{urlAfterRedirects;state;type=S$4.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})`}},ft$1=class ft extends _$1{urlAfterRedirects;state;type=S$4.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})`}},pt$1=class pt extends _$1{urlAfterRedirects;state;shouldActivate;type=S$4.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})`}},gt$1=class gt extends _$1{urlAfterRedirects;state;type=S$4.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})`}},vt$1=class vt extends _$1{urlAfterRedirects;state;type=S$4.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})`}},mt$1=class mt{route;type=S$4.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},yt$1=class yt{route;type=S$4.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},Rt$1=class Rt{snapshot;type=S$4.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},St$1=class St{snapshot;type=S$4.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct$1=class Ct{snapshot;type=S$4.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt$1=class wt{snapshot;type=S$4.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ge$1=class ge{},$e$1=class $e{},ve$1=class ve{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function wi(t){return !(t instanceof ge$1)&&!(t instanceof ve$1)&&!(t instanceof $e$1)}var bt$1=class bt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Ce$1(this.rootInjector);}},Ce$1=(()=>{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 bt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Oe$6(pe$5))};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It$1=class It{_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=Zt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Zt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Jt$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Jt$1(n,this._root).map(e=>e.value)}};function Zt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Zt(t,e);if(r)return r}return null}function Jt$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=Jt$1(t,e);if(r.length)return r.unshift(n),r}return []}var D$5=class D{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function de$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze$2=class ze extends It$1{snapshot;constructor(n,e){super(n),this.snapshot=e,ur(this,n);}toString(){return this.snapshot.toString()}};function Cn(t,n){let e=bi(t,n),r=new or$1([new Z$1("",{})]),i=new or$1({}),o=new or$1({}),a=new or$1({}),c=new or$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new ze$2(new D$5(s,[]),e)}function bi(t,n){let e={},r={},i={},a=new me$1([],e,i,"",r,p,t,null,{},n);return new He$2("",new D$5(a,[]))}var W$1=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(pt$2(u=>u[Be$2]))??iy(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(pt$2(n=>ae$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(pt$2(n=>ae$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ii="always";function cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l$2(l$2({},n.params),t.params),data:l$2(l$2({},n.data),t.data),resolve:l$2(l$2(l$2(l$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l$2({},t.params),data:l$2({},t.data),resolve:l$2(l$2({},t.data),t._resolvedData??{})},i&&bn(i)&&(r.resolve[Be$2]=i.title),r}var me$1=class me{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be$2]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}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??=ae$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae$1(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}')`}},He$2=class He extends It$1{url;constructor(n,e){super(e),this.url=n,ur(this,e);}toString(){return wn(this._root)}};function ur(t,n){n.value._routerState=t,n.children.forEach(e=>ur(t,e));}function wn(t){let n=t.children.length>0?` { ${t.children.map(wn).join(", ")} } `:"";return `${t.value}${n}`}function Bt$1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q$2(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q$2(n.params,e.params)||t.paramsSubject.next(e.params),Zn(n.url,e.url)||t.urlSubject.next(e.url),q$2(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function Xt(t,n){let e=q$2(t.params,n.params)&&ri(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Xt(t.parent,n.parent))}function bn(t){return typeof t.title=="string"||t.title===null}var In=new x$5(""),lr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new et$1;deactivateEvents=new et$1;attachEvents=new et$1;detachEvents=new et$1;routerOutletData=E1();parentContexts=T$5(Ce$1);location=T$5(fs);changeDetector=T$5(_1);inputBinder=T$5(Ve$2,{optional:true});supportsBindingToComponentInputs=true;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 D$9(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D$9(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D$9(4012,false);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 D$9(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new er(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,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=Ew({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Nv]})}return t})(),er=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===W$1?this.route:n===Ce$1?this.childContexts:n===In?this.outletData:this.parent.get(n,e)}},Ve$2=new x$5(""),An=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ey([this.options.queryParams?r.queryParams:iy({}),r.params,r.data]).pipe(Yu(([o,a,c],s)=>(c=l$2(l$2(l$2({},o),a),c),s===0?iy(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=R1(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){kD();};static \u0275prov=ee$5({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=gw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Ig(0,"router-outlet");},dependencies:[lr],encapsulation:2,changeDetection:1})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?m$7(l$2({},t),{children:n}):l$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Ai(t,n,e){let r=new Set,i=Fe$2(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new ze$2(i,n)}}function Fe$2(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=Ei(t,n,e,r);return new D$5(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Fe$2(t,s,void 0,r)),c}}let i=Ti(n.value);r.add(i);let o=n.children.map(a=>Fe$2(t,a,void 0,r));return new D$5(i,o)}}function Ei(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Fe$2(t,i,o,r);return Fe$2(t,i,void 0,r)})}function Ti(t){return new W$1(new or$1(t.url),new or$1(t.params),new or$1(t.queryParams),new or$1(t.fragment),new or$1(t.data),t.outlet,t.component,t)}var ye$1=class ye{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},En="ngNavigationCancelingError";function At$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=X$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Tn(false,b$2.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Tn(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[En]=true,e.cancellationCode=n,e}function Ni(t){return Nn(t)&&X$1(t.url)}function Nn(t){return !!t&&t[En]}var tr=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),Bt$1(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=de$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),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 a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.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=de$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=de$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new wt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new St$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Bt$1(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),Bt$1(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},Et$1=class Et{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},pe$1=class pe{component;route;constructor(n,e){this.component=n,this.route=e;}};function Mi(t,n,e){let r=t._root,i=n?n._root:null;return _e$2(r,i,e,[r.value])}function Di(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function we$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Oy(t)?t:n.get(t):r}function _e$2(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=de$1(n);return t.children.forEach(a=>{_i(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>Pe$2(c,e.getContext(a),i)),i}function _i(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ui(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Et$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?_e$2(t,n,c?c.children:null,r,i):_e$2(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new pe$1(c.outlet.component,a));}else a&&Pe$2(n,c,i),i.canActivateChecks.push(new Et$1(r)),o.component?_e$2(t,null,c?c.children:null,r,i):_e$2(t,null,e,r,i);return i}function Ui(t,n,e){if(typeof e=="function")return ai$1(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !oe$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !oe$1(t.url,n.url)||!q$2(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Xt(t,n)||!q$2(t.queryParams,n.queryParams);default:return !Xt(t,n)}}function Pe$2(t,n,e){let r=de$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?Pe$2(a,n.children.getContext(o),e):Pe$2(a,null,e):Pe$2(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new pe$1(n.outlet.component,i)):e.canDeactivateChecks.push(new pe$1(null,i)):e.canDeactivateChecks.push(new pe$1(null,i));}function Ge$2(t){return typeof t=="function"}function Oi(t){return typeof t=="boolean"}function Pi(t){return t&&Ge$2(t.canLoad)}function Li(t){return t&&Ge$2(t.canActivate)}function xi(t){return t&&Ge$2(t.canActivateChild)}function ji(t){return t&&Ge$2(t.canDeactivate)}function ki(t){return t&&Ge$2(t.canMatch)}function Mn(t){return t instanceof Bt$3||t?.name==="EmptyError"}var at$1=Symbol("INITIAL_VALUE");function Re$1(){return Yu(t=>Ey(t.map(n=>n.pipe(jo$1(1),Ay(at$1)))).pipe(pt$2(n=>{for(let e of n)if(e!==true){if(e===at$1)return at$1;if(e===false||$i(e))return e}return true}),Ws(n=>n!==at$1),jo$1(1)))}function $i(t){return X$1(t)||t instanceof ye$1}function Dn(t){return t.aborted?iy(void 0).pipe(jo$1(1)):new S$7(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function _n(t){return Ku(Dn(t))}function zi(t){return Ht$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?iy(m$7(l$2({},n),{guardsResult:true})):Hi(o,e,r).pipe(Ht$3(a=>a&&Oi(a)?Fi(e,i,t):iy(a)),pt$2(a=>m$7(l$2({},n),{guardsResult:a})))})}function Hi(t,n,e){return Ae$5(t).pipe(Ht$3(r=>Wi(r.component,r.route,e,n)),My(r=>r!==true,true))}function Fi(t,n,e){return Ae$5(n).pipe(zu(r=>$o(Bi(r.route.parent,e),qi(r.route,e),Gi(t,r.path),Vi(t,r.route))),My(r=>r!==true,true))}function qi(t,n){return t!==null&&n&&n(new Ct$1(t)),iy(true)}function Bi(t,n){return t!==null&&n&&n(new Rt$1(t)),iy(true)}function Vi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return iy(true);let r=e.map(i=>sy(()=>{let o=n._environmentInjector,a=we$1(i,o),c=Li(a)?a.canActivate(n,t):ai$1(o,()=>a(n,t));return ue$2(c).pipe(My())}));return iy(r).pipe(Re$1())}function Gi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Di(o)).filter(o=>o!==null).map(o=>sy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=we$1(c,s),h=xi(u)?u.canActivateChild(e,t):ai$1(s,()=>u(e,t));return ue$2(h).pipe(My())});return iy(a).pipe(Re$1())}));return iy(i).pipe(Re$1())}function Wi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return iy(true);let o=i.map(a=>{let c=n._environmentInjector,s=we$1(a,c),u=ji(s)?s.canDeactivate(t,n,e,r):ai$1(c,()=>s(t,n,e,r));return ue$2(u).pipe(My())});return iy(o).pipe(Re$1())}function Qi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return iy(true);let a=o.map(c=>{let s=we$1(c,t),u=Pi(s)?s.canLoad(n,e):ai$1(t,()=>s(n,e)),h=ue$2(u);return i?h.pipe(_n(i)):h});return iy(a).pipe(Re$1(),Un(r))}function Un(t){return Qm(id(n=>{if(typeof n!="boolean")throw At$1(t,n)}),pt$2(n=>n===true))}function Ki(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return iy(true);let c=a.map(s=>{let u=we$1(s,t),h=ki(u)?u.canMatch(n,e,i):ai$1(t,()=>u(n,e,i));return ue$2(h).pipe(_n(o))});return iy(c).pipe(Re$1(),Un(r))}var V$2=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},qe$2=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Yi(t){throw new D$9(4e3,false)}function Zi(t){throw Tn(false,b$2.GuardRejected)}var rr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Yi(`${n.redirectTo}`);i=i.children[p];}}async applyRedirectCommands(n,e,r,i,o){let a=await Ji(e,i,o);if(a instanceof E)throw new qe$2(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe$2(c);return c}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new E(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 c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m$4(o,a)}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 D$9(4001,false);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 Ji(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return lt$1(ue$2(ai$1(e,()=>r(n))))}function Xi(t,n){return t.providers&&!t._injector&&(t._injector=Vl(t.providers,n,`Route: ${t.path}`)),t._injector??n}function z$1(t){return t.outlet||p}function eo(t,n){let e=t.filter(r=>z$1(r)===n);return e.push(...t.filter(r=>z$1(r)!==n)),e}var nr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function On(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function to(t,n,e,r,i,o,a){let c=Pn(t,n,e);if(!c.matched)return iy(c);let s=On(o(c));return r=Xi(n,r),Ki(r,n,e,i,s,a).pipe(pt$2(u=>u===true?c:l$2({},nr)))}function Pn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l$2({},nr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||nn)(e,t,n);if(!i)return l$2({},nr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?l$2(l$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function en(t,n,e,r,i){return e.length>0&&io(t,e,r,i)?{segmentGroup:new m$4(n,no(r,new m$4(e,t.children))),slicedSegments:[]}:e.length===0&&oo(t,e,r)?{segmentGroup:new m$4(t.segments,ro(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$4(t.segments,t.children),slicedSegments:e}}function ro(t,n,e,r){let i={};for(let o of e)if(Nt$1(t,n,o)&&!r[z$1(o)]){let a=new m$4([],{});i[z$1(o)]=a;}return l$2(l$2({},r),i)}function no(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&z$1(r)!==p){let i=new m$4([],{});e[z$1(r)]=i;}return e}function io(t,n,e,r){return e.some(i=>!Nt$1(t,n,i)||!(z$1(i)!==p)?false:!(r!==void 0&&z$1(i)===r))}function oo(t,n,e){return e.some(r=>Nt$1(t,n,r))}function Nt$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function ao(t,n,e){return n.length===0&&!t.children[e]}var ir=class{};async function so(t,n,e,r,i,o,a,c){return new or(t,n,e,r,i,a,o,c).recognize()}var co=31,or=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new rr(this.urlSerializer,this.urlTree);}noMatchError(n){return new D$9(4002,`'${n.segmentGroup}'`)}async recognize(){let n=en(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new D$5(r,e),o=new He$2("",i),a=gn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new me$1([],Object.freeze({}),Object.freeze(l$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof qe$2)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V$2?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof D$5?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],h=eo(e,s),v=await this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=Ln(a);return uo(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof V$2||Mn(u))continue;throw u}if(ao(r,i,o))return new ir;throw new V$2(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if(z$1(r)!==a&&(a===p||!Nt$1(i,o,r)))throw new V$2(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new V$2(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Pn(e,i,o);if(!s)throw new V$2(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>co&&(this.allowRedirects=false));let T=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let $=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,On(T),n),te=await this.applyRedirects.lineralizeSegments(i,$);return this.processSegment(n,r,e,te.concat(g),a,false,c)}createSnapshot(n,e,r,i,o){let a=new me$1(r,i,Object.freeze(l$2({},this.urlTree.queryParams)),this.urlTree.fragment,ho(e),z$1(e),e.component??e._loadedComponent??null,e,fo(e),n),c=cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=re=>this.createSnapshot(n,r,re.consumedSegments,re.parameters,a),s=await lt$1(to(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new V$2(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:T}=s,$=this.createSnapshot(n,r,g,v,a),{segmentGroup:te,slicedSegments:Ie}=en(e,g,T,u,o);if(Ie.length===0&&te.hasChildren()){let re=await this.processChildren(h,u,te,$);return new D$5($,re)}if(u.length===0&&Ie.length===0)return new D$5($,[]);let Ut=z$1(r)===o,Ke=await this.processSegment(h,u,te,Ie,Ut?p:o,true,$);return new D$5($,Ke instanceof D$5?[Ke]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await lt$1(Qi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Zi()}return {routes:[],injector:n}}};function uo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function lo(t){let n=t.value.routeConfig;return n&&n.path===""}function Ln(t){let n=[],e=new Set;for(let r of t){if(!lo(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=Ln(r.children);n.push(new D$5(r.value,i));}return n.filter(r=>!e.has(r))}function ho(t){return t.data||{}}function fo(t){return t.resolve||{}}function po(t,n,e,r,i,o,a){return Ht$3(async c=>{let{state:s,tree:u}=await so(t,n,e,r,c.extractedUrl,i,o,a);return m$7(l$2({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function go(t){return Ht$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return iy(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of xn(c))o.add(s);let a=0;return Ae$5(o).pipe(zu(c=>i.has(c)?vo(c,e,t):(c.data=cr(c,c.parent,t).resolve,iy(void 0))),id(()=>a++),Ny(1),Ht$3(c=>a===o.size?iy(n):Xe$4))})}function xn(t){let n=t.children.map(e=>xn(e)).flat();return [t,...n]}function vo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!bn(r)&&(i[Be$2]=r.title),sy(()=>(t.data=cr(t,t.parent,e).resolve,mo(i,t,n).pipe(pt$2(o=>(t._resolvedData=o,t.data=l$2(l$2({},t.data),o),null)))))}function mo(t,n,e){let r=Gt$1(t);if(r.length===0)return iy({});let i={};return Ae$5(r).pipe(Ht$3(o=>yo(t[o],n,e).pipe(My(),id(a=>{if(a instanceof ye$1)throw At$1(new J$2,a);i[o]=a;}))),Ny(1),pt$2(()=>i),Bs(o=>Mn(o)?Xe$4:uy(o)))}function yo(t,n,e){let r=n._environmentInjector,i=we$1(t,r),o=i.resolve?i.resolve(n,e):ai$1(r,()=>i(n,e));return ue$2(o)}function tn(t){return Yu(n=>{let e=t(n);return e?Ae$5(e).pipe(pt$2(()=>n)):iy(n)})}var fr=(()=>{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===p);return r}getResolvedTitleForRoute(e){return e.data[Be$2]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:()=>T$5(jn)})}return t})(),jn=(()=>{class t extends fr{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)(Oe$6(zt$1))};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),be$1=new x$5("",{factory:()=>({})}),We$1=new x$5(""),pr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=T$5(pb);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await an(ai$1(e,()=>r.loadComponent())),a=await $n(v1(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await kn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})();async function kn(t,n,e,r){let i=await an(ai$1(e,()=>t.loadChildren())),o=await $n(v1(i)),a;o instanceof rg||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(We$1,[],{optional:true,self:true}).flat()),{routes:s.map(dr),injector:c,factory:h}}async function $n(t){return t}var Mt$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:()=>T$5(Ro)})}return t})(),Ro=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})(),zn=new x$5("");var Hn=new x$5(""),So=()=>{},Fn=new x$5(""),qn=(()=>{class t{currentNavigation=Ge$5(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ge$5(null);events=new fe$6;transitionAbortWithErrorSubject=new fe$6;configLoader=T$5(pr);environmentInjector=T$5(pe$5);destroyRef=T$5(qe$5);urlSerializer=T$5(Se$1);rootContexts=T$5(Ce$1);location=T$5(Ne$4);inputBindingEnabled=T$5(Ve$2,{optional:true})!==null;titleStrategy=T$5(fr);options=T$5(be$1,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ii;urlHandlingStrategy=T$5(Mt$1);createViewTransition=T$5(zn,{optional:true});navigationErrorHandler=T$5(Fn,{optional:true});activatedRouteInjectorFeature=T$5(Hn,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>iy(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new mt$1(i)),r=i=>this.events.next(new yt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;me$6(()=>{this.transitions?.next(m$7(l$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new or$1(null),this.transitions.pipe(Ws(r=>r!==null),Yu(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return iy(r).pipe(Yu(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b$2.SupersededByNewNavigation),Xe$4;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?m$7(l$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.rawUrl),"",je$2.IgnoredSameUrlNavigation)),s.resolve(false),Xe$4;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return iy(s).pipe(Yu(g=>(this.events.next(new se$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?Xe$4:Promise.resolve(g))),po(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),id(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(T=>(T.finalUrl=g.urlAfterRedirects,T)),this.events.next(new $e$1);}),Yu(g=>Ae$5(r.routesRecognizeHandler.deferredHandle??iy(void 0)).pipe(pt$2(()=>g))),id(()=>{let g=new ke(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:T,source:$,restoredState:te,extras:Ie}=s,Ut=new se$1(g,this.urlSerializer.serialize(T),$,te);this.events.next(Ut);let Ke=Cn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=m$7(l$2({},s),{targetSnapshot:Ke,urlAfterRedirects:T,extras:m$7(l$2({},Ie),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(re=>(re.finalUrl=T,re)),iy(r)}else return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.extractedUrl),"",je$2.IgnoredByUrlHandlingStrategy)),s.resolve(false),Xe$4}),pt$2(s=>{let u=new ft$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=m$7(l$2({},s),{guards:Mi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),zi(s=>this.events.next(s)),Yu(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw At$1(this.urlSerializer,s.guardsResult);let u=new pt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return Xe$4;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",b$2.GuardRejected),Xe$4;if(s.guards.canActivateChecks.length===0)return iy(s);let h=new gt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return Xe$4;let v=false;return iy(s).pipe(go(this.paramsInheritanceStrategy),id({next:()=>{v=true;let g=new vt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",b$2.NoDataFromResolver);}}))}),tn(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let T=v._environmentInjector;g.push(this.configLoader.loadComponent(T,v.routeConfig).then($=>{v.component=$;}));}for(let T of v.children)g.push(...u(T));return g},h=u(s.targetSnapshot.root);return h.length===0?iy(s):Ae$5(Promise.all(h).then(()=>s))}),Yu(s=>{let{newlyCreatedRoutes:u,state:h}=Ai(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=m$7(l$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),iy(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),tn(()=>this.afterPreactivation()),Yu(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?Ae$5(h).pipe(pt$2(()=>r)):iy(r)}),jo$1(1),Yu(s=>{i=false,this.events.next(new ge$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ae$5(u.then(()=>s)):iy(s)}),id(s=>{new tr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=So,u)),this.lastSuccessfulNavigation.set(me$6(this.currentNavigation)),this.events.next(new k$4(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Ku(Dn(a.signal).pipe(Ws(()=>!o&&i),id(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",b$2.Aborted);}))),id({complete:()=>{o=true;}}),Ku(this.transitionAbortWithErrorSubject.pipe(id(s=>{throw s}))),Zu(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",b$2.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Bs(s=>{if(o=true,rn(r),this.destroyed)return r.resolve(false),Xe$4;if(Nn(s))this.events.next(new j(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ni(s)?this.events.next(new ve$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new ce$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=ai$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof ye$1){let{message:v,cancellationCode:g}=At$1(this.urlSerializer,h);this.events.next(new j(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new ve$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return Xe$4}))}))}cancelNavigationTransition(e,r,i){rn(e);let o=new j(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=me$6(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=Xr$1({token:t,factory:t.\u0275fac})}return t})();function Co(t){return t!==Oe$1}function rn(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var Bn=new x$5("");var Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:()=>T$5(wo)})}return t})(),Tt$1=class Tt{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},wo=(()=>{class t extends Tt$1{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})(),Dt$1=(()=>{class t{urlSerializer=T$5(Se$1);options=T$5(be$1,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=T$5(Ne$4);urlHandlingStrategy=T$5(Mt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;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,a=i??o;return a instanceof E?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}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=Cn(null,T$5(pe$5));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:()=>T$5(bo)})}return t})(),bo=(()=>{class t extends Dt$1{currentPageId=0;lastSuccessfulId=-1;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",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof se$1?this.updateStateMemento():e instanceof G$1?this.commitTransition(r):e instanceof ke?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ge$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof j&&!Sn(e)?this.restoreHistory(r):e instanceof ce$1?this.restoreHistory(r,true):e instanceof k$4&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=l$2(l$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=l$2(l$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){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());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?l$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):l$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})();function gr(t,n){t.events.pipe(Ws(e=>e instanceof k$4||e instanceof j||e instanceof ce$1||e instanceof G$1),pt$2(e=>e instanceof k$4||e instanceof G$1?0:(e instanceof j?e.code===b$2.Redirect||e.code===b$2.SupersededByNewNavigation:false)?2:1),Ws(e=>e!==2),jo$1(1)).subscribe(()=>{n();});}var ee$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=T$5(eT);stateManager=T$5(Dt$1);options=T$5(be$1,{optional:true})||{};pendingTasks=T$5(Jt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=T$5(qn);urlSerializer=T$5(Se$1);location=T$5(Ne$4);urlHandlingStrategy=T$5(Mt$1);injector=T$5(pe$5);_events=new fe$6;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=T$5(Vn);injectorCleanup=T$5(Bn,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=T$5(We$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!T$5(Ve$2,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new Z$4;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=me$6(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof j&&r.code!==b$2.Redirect&&r.code!==b$2.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof k$4)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof ve$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=l$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Co(i.source)},a);this.scheduleNavigation(c,Oe$1,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}wi(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(true),Oe$1,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=m$7(l$2({},o),{browserUrl:e})),i){let u=l$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(Xt$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return me$6(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=l$2(l$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=vn(g);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return mn(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=X$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Oe$1,null,r)}navigate(e,r={skipLocationChange:false}){return Io(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.console.warn(fr$1(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=l$2({},ar):r===false?i=l$2({},Le$2):i=l$2(l$2({},Le$2),r),X$1(e))return Wt$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Wt$1(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,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return gr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})();function Io(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new D$9(4008,false)}var Eo=(()=>{class t{router=T$5(ee$1);stateManager=T$5(Dt$1);fragment=Ge$5("");queryParams=Ge$5({});path=Ge$5("");serializer=T$5(Se$1);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof k$4&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})(),_t$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=T$5(new Cm("href"),{optional:true});reactiveHref=tu(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return me$6(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return me$6(this._target)}_target=Ge$5(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return me$6(this._queryParams)}_queryParams=Ge$5(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return me$6(this._fragment)}_fragment=Ge$5(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return me$6(this._queryParamsHandling)}_queryParamsHandling=Ge$5(void 0);set state(e){this._state.set(e);}get state(){return me$6(this._state)}_state=Ge$5(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return me$6(this._info)}_info=Ge$5(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return me$6(this._relativeTo)}_relativeTo=Ge$5(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return me$6(this._preserveFragment)}_preserveFragment=Ge$5(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return me$6(this._skipLocationChange)}_skipLocationChange=Ge$5(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return me$6(this._replaceUrl)}_replaceUrl=Ge$5(false);browserUrl=E1(void 0);isAnchorElement;onChanges=new fe$6;applicationErrorHandler=T$5(Xt$2);options=T$5(be$1,{optional:true});reactiveRouterState=T$5(Eo);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Ge$5(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(X$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=l$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=Nt$3(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:X$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return me$6(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(so$1(ee$1),so$1(W$1),Ep("tabindex"),so$1(DD),so$1(eo$1),so$1(U$4))};static \u0275dir=Ew({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Hg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&yg("href",i.reactiveHref(),LI)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",N1],skipLocationChange:[2,"skipLocationChange","skipLocationChange",N1],replaceUrl:[2,"replaceUrl","replaceUrl",N1],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Nv]})}return t})(),To=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new et$1;link=T$5(_t$1,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof k$4&&this.update();});}ngAfterContentInit(){iy(this.links.changes,iy(null)).pipe(sr$1()).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=Ae$5(e).pipe(sr$1()).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=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?l$2({},ar):l$2({},Le$2);return i=>{let o=i.urlTree;return o?me$6(sr(o,e,r)):false}}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)(so$1(ee$1),so$1(eo$1),so$1(DD),so$1(_1))};static \u0275dir=Ew({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Ug(o,_t$1,5),r&2){let a;fC(a=pC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Nv]})}return t})();function No(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Qe$1=class Qe{},Mo=(()=>{class t{preload(e,r){return r().pipe(Bs(()=>iy(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Xr$1({token:t,factory:t.\u0275fac})}return t})();var Gn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ws(e=>e instanceof k$4),zu(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Vl(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ae$5(i).pipe(sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return iy(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ae$5(this.loader.loadChildren(e,r)):i=iy(null);let o=i.pipe(Ht$3(a=>a===null?iy(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ae$5([o,a]).pipe(sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(Oe$6(ee$1),Oe$6(pe$5),Oe$6(Qe$1),Oe$6(pr))};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Do=new x$5("");function _o(t,...n){return ii$1([{provide:We$1,multi:true,useValue:t},{provide:W$1,useFactory:Uo},{provide:hg,multi:true,useFactory:Oo},n.map(e=>e.\u0275providers)])}function Uo(){return T$5(ee$1).routerState.root}function Wn(t,n){return {\u0275kind:t,\u0275providers:n}}function Oo(){let t=T$5(ve$5);return n=>{let e=t.get(hs);if(n!==e.components[0])return;let r=t.get(ee$1),i=t.get(Po);t.get(Lo)===1&&r.initialNavigation(),t.get(Qn,null,{optional:true})?.setUpPreloading(),t.get(Do,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var Po=new x$5("",{factory:()=>new fe$6}),Lo=new x$5("",{factory:()=>1});var Qn=new x$5("");function xo(t){return Wn(0,[{provide:Qn,useExisting:Gn},{provide:Qe$1,useExisting:t}])}function jo(t={}){return Wn(8,[{provide:Ve$2,useFactory:()=>new An(t)}])}
|
|
17
17
|
var I$1="PROXY_AUTHED_FAKE_TOKEN",c$2="refreshNonce",f="v1:persist:duplicati:refreshNonce",D$4=class l{#n=T$5(ee$1);#i=T$5(De$5);#s=T$5(J$3);#a=T$5(I$2);#e=Ge$5(null);#o=Ge$5(false);#r=Ge$5(false);#u=Ge$5(T$2());xsrfQueryParam=this.#u.asReadonly();token=this.#e.asReadonly();isLoggingOut=this.#o.asReadonly();setRefreshNonce(s,t){if(!s){sessionStorage.removeItem(c$2);return}t?localStorage.setItem(f,s||""):sessionStorage.setItem(c$2,s||"");}getRefreshNonceBody(){let s=sessionStorage.getItem(c$2),t=localStorage.getItem(f),e=s||t;return {requestBody:e?{Nonce:e}:void 0,local:e===t}}login(s,t){return sy(()=>this.#s.postApiV1AuthLogin({body:{Password:s,RememberMe:t}})).pipe(jo$1(1),id(e=>{e.AccessToken?(this.#e.set(e.AccessToken),this.setRefreshNonce(e.RefreshNonce,t)):this.#e.set(null);}))}#t=null;refreshToken(){if(this.#a.relayIsEnabled())return this.#e.set(I$1),new S$7(e=>{e.next({AccessToken:I$1}),e.complete();});if(this.#r())return sy(()=>this.#s.postApiV1AuthIssuetokenByOperation({path:{operation:"websocket"}})).pipe(jo$1(1),id(e=>{e.Token&&this.#e.set(e.Token);}),pt$2(e=>({AccessToken:e.Token})));if(this.#t)return this.#t;let{requestBody:s,local:t}=this.getRefreshNonceBody();return this.#t=sy(()=>this.#s.postApiV1AuthRefresh({body:s})).pipe(jo$1(1),id(e=>{e.AccessToken&&(this.#e.set(e.AccessToken),this.setRefreshNonce(e.RefreshNonce,t));}),Zu(()=>{this.#t=null;}),xy(1)),this.#t}checkProxyAuthed(){let s=new y$3(l$2({"custom-proxy-check":"true"},b$4())),t=N$4();return this.#i.post(`${t}/api/v1/auth/status`,null,{headers:s}).pipe(pt$2(e=>{let a=e;return a?.authorized&&a?.socketToken?(this.#e.set(a.socketToken),this.#r.set(true),true):false}),Bs(()=>iy(false)))}logout(){this.#o.set(true);let{requestBody:s,local:t}=this.getRefreshNonceBody();sessionStorage.removeItem(c$2),t&&localStorage.removeItem(f),sy(()=>this.#s.postApiV1AuthRefreshLogout({body:s})).pipe(jo$1(1),Zu(()=>{this.#o.set(false),this.#e.set(null),this.#n.navigate(["/login"]);})).subscribe();}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ee$5({token:l,factory:l.\u0275fac,providedIn:"root"})};var S$3=class r{reconnectTimer=Ge$5(5e3);countdown=Ge$5(0);connectTimerEffect=Qa(()=>{let e=this.reconnectTimer();this.countdown.set(e/1e3);});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1);},1e3);ngOnDestroy(){clearInterval(this.interval);}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=gw({type:r,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let e;e=$localize`Reconnecting...`;let t;return t=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[e,t,["header",""],["content",""]]},template:function(t,s){t&1&&(ql(0,"header",2)(1,"h3"),oC(2,0),Gl()(),ql(3,"div",3)(4,"p"),Fg(5,1),Eg(6,"strong"),sb(7,"number"),jg(),Gl()()),t&2&&(bE(7),Vg(lb(7,1,s.countdown(),"2.0-0")),iC(5));},dependencies:[pi$1],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"]})};var l$1=false,J$1=5e3,k$3=class r{#e=T$5(D$4);#i=T$5(f$1);dialog=T$5(be$3);#t=null;#o=Ge$5("disconnected");#n=Ge$5(null);#l=Ge$5(null);#u=Ge$5(null);#s=Ge$5(null);#r=Ge$5(null);#d=Ge$5(null);#c=Ge$5(null);#h=void 0;#a=false;#p=Ge$5({legacystatus:true});shouldConnect=Ge$5(true);connectionStatus=this.#o.asReadonly();serverState=this.#n.asReadonly();serverProgress=this.#l.asReadonly();serverSettings=this.#u.asReadonly();subscriptions=this.#p.asReadonly();serverTaskQueue=this.#s.asReadonly();backupListState=this.#r.asReadonly();notificationState=this.#d.asReadonly();remoteControlState=this.#c.asReadonly();#f=null;taskCompleted=new S$7(e=>{this.#f=e;});#m=0;#S=null;start(){this.shouldConnect.set(true),this.#b();}#b(){this.#S&&(clearTimeout(this.#S),this.#S=null);let e=this.#e.token();if(!e){console.error("No access token available");return}let t=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(s=":8200");let u=window.location.hostname,g=N$4(),f=this.#e.xsrfQueryParam(),X=this.#i.hasWebSocketAuth()?`${t}//${u}${s}${g}/notifications${f?`?${f}`:""}`:`${t}//${u}${s}${g}/notifications?token=${e}${f?`&${f}`:""}`;this.#o.set("connecting"),this.#t=new WebSocket(X),this.#t.onopen=()=>{this.#i.hasWebSocketAuth()?(this.#o.set("authenticating"),this.#t?.send(JSON.stringify({Version:1,Token:e,Action:"auth"}))):this.#g();},this.#t.onmessage=d=>{if(this.#o()==="authenticating")try{let i=JSON.parse(d.data);if(i.Success){l$1&&console.log("WebSocket authentication successful"),this.#g();return}else if(i?.Type==="legacystatus")l$1&&console.log("WebSocket authentication successful"),this.#g();else {console.error("WebSocket authentication failed:",i.Message),this.#o.set("disconnected"),this.#a=!0,this.#e.refreshToken().subscribe({next:()=>{this.reconnect(),this.#a=!1;},error:o=>{this.#a=!1,console.error("Error refreshing token after WebSocket auth failed",o);}});return}}catch(i){console.error("Error parsing WebSocket authentication reply",i),this.#o.set("disconnected");return}try{let i=JSON.parse(d.data),a=i?.Type;if(a==="legacystatus"||a==null)l$1&&console.log("Received legacy status update:",i),this.#n.set(i);else if(a==="reply"){let o=i;o.Success||console.error("WebSocket reply error:",o.Message);}else if(a==="progress"){let o=i;l$1&&console.log("Received progress update:",o.Data),this.#l.set(o.Data);}else if(a==="serversettings"){let o=i;l$1&&console.log("Received server settings update:",o.Data),this.#u.set(o.Data);}else if(a==="taskqueue"){let o=i;l$1&&console.log("Received task update:",o.Data),this.#s.set(o.Data);}else if(a==="taskcompleted"){let o=i;l$1&&console.log("Received task completed:",o.Data),this.#f?.next(o.Data);}else if(a==="backuplist"){let o=i;l$1&&console.log("Received backup list update:",o.Data),this.#r.set(o.Data);}else if(a==="notifications"){let o=i;l$1&&console.log("Received notification update:",o.Data),this.#d.set(o.Data);}else if(a==="remotecontrol"){let o=i;l$1&&console.log("Received remote control update:",o.Data),this.#c.set(o.Data);}else console.warn("Unknown WebSocket message type:",a);}catch(i){console.error("Error parsing WebSocket message",i);}},this.#t.onclose=d=>{if(this.#o.set("disconnected"),d.code===4401){this.#a=true,this.#e.refreshToken().subscribe({next:()=>{this.reconnect(),this.#a=false;},error:i=>{console.error("Error refreshing token",i),this.#a=false,this.shouldConnect()&&this.#v();}});return}this.shouldConnect()&&!this.#a&&this.#v();},this.#t.onerror=d=>{console.error("WebSocket error",d),this.#o.set("disconnected");};}#g(){this.#o.set("connected"),this.#a=false;let e=this.#p();Object.keys(e).length>0&&Object.entries(e).forEach(([t,s])=>{s!=null&&this.sendSubscribeRequest(t,s);}),this.#h&&(this.#h.close(),this.#h=void 0);}#v(){this.#h||(this.#h=this.dialog.open(S$3,{closeOnButton:false,closeOnEsc:false,closeOnOutsideClick:false}),this.#h.component.reconnectTimer.set(J$1)),this.#S&&clearTimeout(this.#S),this.#S=setTimeout(()=>this.#b(),J$1);}stop(){this.shouldConnect.set(false),this.#t?.close();}reconnect(){this.#t&&(this.#t.onclose=null,this.#t.onerror=null,this.#t.close()),this.start();}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect();}sendSubscribeRequest(e,t){this.#t?.send(JSON.stringify({Version:1,Id:`req-${++this.#m}`,Action:"sub",Service:e,Data:t||null}));}subscribe(e,t=void 0){let s=this.#p(),u=s[e];(!u||JSON.stringify(u)!==JSON.stringify(t||true))&&(s[e]=t||true,this.#p.set(s),this.#o()=="connected"&&this.sendSubscribeRequest(e,t));}unsubscribe(e){let t=this.#p();t[e]&&(delete t[e],this.#p.set(t),this.#o()=="connected"&&this.#t?.send(JSON.stringify({Version:1,Id:`req-${++this.#m}`,Action:"unsub",Service:e})));}static \u0275fac=function(t){return new(t||r)};static \u0275prov=ee$5({token:r,factory:r.\u0275fac,providedIn:"root"})};var y$2=class r{dialog=T$5(be$3);#e=T$5(J$3);#i=Ge$5("disconnected");#t=Ge$5(null);#o=Ge$5(-1);#n=Ge$5(0);#l=Ge$5(false);#u=new fe$6;connectionStatus=this.#i.asReadonly();serverState=this.#t.asReadonly();#s=void 0;duration=T$5(I$2).relayIsEnabled()?"94s":"299s";start(){this.#l.set(true),this.#u=new fe$6,this.#r();}stop(){this.#u.next(),this.#u.complete(),this.#l.set(false);}reconnect(){this.stop(),this.start();}reconnectIfNeeded(){this.#l()||this.reconnect();}#r(){this.#i.set("connecting"),sy(()=>this.#e.getApiV1Serverstate({query:{lastEventId:this.#o(),longpoll:this.#o()>=0,duration:this.duration}})).pipe(Ku(this.#u)).subscribe({next:e=>{e&&this.#d(e),this.#c();},error:e=>{this.#n.set(this.#n()+1),this.#n()>3&&this.#i.set("disconnected"),this.#s||(this.#s=this.dialog.open(S$3,{closeOnButton:false,closeOnEsc:false,closeOnOutsideClick:false})),this.#s.component.reconnectTimer.set(5e3),setTimeout(()=>{this.#r();},5e3);}});}#d(e){this.#i.set("connected"),this.#t.set(e),this.#o.set(e.LastEventID??-1),this.#n.set(0),this.#s&&(this.#s.close(),this.#s=void 0);}#c(){this.#l()&&this.#r();}static \u0275fac=function(t){return new(t||r)};static \u0275prov=ee$5({token:r,factory:r.\u0275fac,providedIn:"root"})};var Q$2=10,B$1=class r{#e=T$5(k$3);#i=T$5(y$2);#t=T$5(J$3);#o=T$5(f$1);#n=Ge$5("longpoll");#l=Ge$5(false);#u=Nt$3(()=>this.#o.hasTaskCompletedOption()&&this.#n()==="websocket");#s={};#r=null;#d=false;#c=[];constructor(){this.#e.subscribe("taskcompleted"),this.#e.taskCompleted.subscribe(e=>{if(this.#c.unshift(e),this.#c.length>Q$2&&this.#c.pop(),!e.ID)return;let t=this.#s[e.ID];t&&(t.forEach(s=>{s.next(e),s.complete();}),delete this.#s[e.ID]);});}connectionStatus=Nt$3(()=>this.#n()==="websocket"?this.#e.connectionStatus():this.#i.connectionStatus());isConnectionMethodSet=this.#l.asReadonly();serverState=Nt$3(()=>this.#n()==="websocket"?this.#e.serverState():this.#i.serverState());progressState=this.#e.serverProgress;taskQueueState=this.#e.serverTaskQueue;activeTaskQueueState=Nt$3(()=>this.#n()==="websocket"?this.#e.serverTaskQueue()?.map(t=>t.ID).filter(t=>t)??[]:(this.#i.serverState()?.SchedulerQueueIds??[]).map(t=>t.Item1).filter(t=>t));backupListState=Nt$3(()=>this.#e.backupListState());setConnectionMethod(e){e==="websocket"?(this.#e.reconnectIfNeeded(),this.#i.stop()):(this.#i.reconnectIfNeeded(),this.#e.stop()),this.#n.set(e),this.#l.set(true);}getConnectionMethod(){return this.#n()}subscribe(e,t=null){this.#e.subscribe(e,t);}unsubscribe(e){this.#e.unsubscribe(e);}waitForTaskToComplete(e){return new S$7(t=>{let s=this.#c.find(u=>u.ID===e);if(s){t.next(s),t.complete();return}this.#s[e]=this.#s[e]||[],this.#s[e].push(t),this.#h();})}#h(){this.#d||this.#u()||(this.#d=true,this.#a());}#a(){let e=Object.keys(this.#s).map(s=>parseInt(s,10));if(e.length===0){this.#p();return}let t=Math.min(...e);sy(()=>this.#t.getApiV1TaskByTaskid({path:{taskid:t}})).subscribe({next:s=>{s.TaskFinished!=null&&(this.#c.unshift(s),this.#c.length>Q$2&&this.#c.pop(),this.#s[t].forEach(g=>{g.next(s),g.complete();}),delete this.#s[t]);},complete:()=>{this.#r=window.setTimeout(()=>{this.#a();},1e3);},error:s=>{this.#r=window.setTimeout(()=>{this.#a();},3e3);}});}#p(){this.#r!==null&&(clearTimeout(this.#r),this.#r=null),this.#d=false;}static \u0275fac=function(t){return new(t||r)};static \u0275prov=ee$5({token:r,factory:r.\u0275fac,providedIn:"root"})};
|
|
18
|
-
var v$3="backupListOrderBy",D$3="backupListShowActualTimes",S$2=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (descending)`},{value:"-name",label:$localize`Backup name (descending)`},{value:"-lastrun",label:$localize`Last run time (descending)`},{value:"-nextrun",label:$localize`Next run time (descending)`},{value:"-schedule",label:$localize`Is scheduled (descending)`},{value:"-backend",label:$localize`Destination type (descending)`},{value:"-sourcesize",label:$localize`Source size (descending)`},{value:"-destinationsize",label:$localize`Destination size (descending)`},{value:"-duration",label:$localize`Duration (descending)`}],m$3=class n{#
|
|
18
|
+
var v$3="backupListOrderBy",D$3="backupListShowActualTimes",S$2=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (descending)`},{value:"-name",label:$localize`Backup name (descending)`},{value:"-lastrun",label:$localize`Last run time (descending)`},{value:"-nextrun",label:$localize`Next run time (descending)`},{value:"-schedule",label:$localize`Is scheduled (descending)`},{value:"-backend",label:$localize`Destination type (descending)`},{value:"-sourcesize",label:$localize`Source size (descending)`},{value:"-destinationsize",label:$localize`Destination size (descending)`},{value:"-duration",label:$localize`Duration (descending)`}],m$3=class n{#l=T$5(J$3);#p=T$5(f$1);#e=T$5(B$1);#u=null;#a=Ge$5([]);#i=Ge$5([]);#t=Ge$5(false);#n=Ge$5(null);#o=Ge$5(null);#c=A$1(D$3,"relative");#s=A$1(v$3,"id");orderByOptions=Ge$5(S$2);orderBy=this.#s.asReadonly();backups=this.#i.asReadonly();timeType=this.#c.asReadonly();backupsLoading=this.#t.asReadonly();startingBackup=this.#n.asReadonly();deletingBackup=this.#o.asReadonly();draftBackups=this.#a.asReadonly();#r=Nt$3(()=>this.#p.hasBackupListSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");#d=Qa(()=>{let e=this.#e.backupListState();e&&(this.#i.set(e),this.#t.set(false));});addDraftBackup(e){let t=x$3();return this.#a.set([...this.#a(),{id:t,data:e}]),t}setOrderBy(e){this.#s.set(e),this.#e.isConnectionMethodSet()&&(this.#r()?(this.#e.backupListState()==null&&this.#t.set(true),this.#e.subscribe("backuplist",e)):this.getBackups(true));}setTimeType(e){this.#c.set(e);}removeDraftBackupById(e){this.#a.set(this.#a().filter(t=>t.id!==e));}getBackupById(e){return this.#i().find(t=>t.Backup?.ID===e)??null}getBackups(e=false){if(!this.#e.isConnectionMethodSet()){this.#t.set(true);return}if(this.#r()){this.#e.backupListState()==null&&this.#t.set(true),this.#e.subscribe("backuplist",this.#s());return}let t=this.#u,u=Date.now(),f=t&&u-t<900*1e3;t&&u-t<100||!e&&f&&this.#i().length||(this.#u=u,this.#t.set(true),sy(()=>this.#l.getApiV1Backups({query:{orderBy:this.#s()}})).pipe(jo$1(1),id(y=>this.#i.set(y)),Zu(()=>this.#t.set(false))).subscribe());}startBackup(e){this.#n.set(e),sy(()=>this.#l.postApiV1BackupByIdStart({path:{id:e}})).pipe(jo$1(1),id(()=>this.getBackups(true)),Zu(()=>this.#n.set(null))).subscribe();}deleteBackup(e){return sy(()=>this.#l.deleteApiV1BackupById(e)).pipe(jo$1(1))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ee$5({token:n,factory:n.\u0275fac,providedIn:"root"})};var m$2=class o{decimalPipe=T$5(pi$1);transform(t,e=false,i=false){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return "";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return true;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):false}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=Dw({name:"bytes",type:o,pure:true})};var u=["*"],v$2=(()=>{class e{constructor(){this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.noBg=E1(false,{transform:N1}),this.hostClasses=ce$2("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=gw({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:4,hostBindings:function(n,o){n&2&&(xC(o.hostClasses()),Kg("no-bg",o.noBg()));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"],noBg:[1,"noBg"]},ngContentSelectors:u,decls:1,vars:0,template:function(n,o){n&1&&(lC(),uC(0));},styles:[`[shButton]{--btn-h: 2.5rem;--btn-mw: 2.5rem;--btn-f: var(--paragraph-20);--btn-a-opacity: .05;--btn-bs: var(--ship-button-shadow, none);display:inline-flex;align-items:center;justify-content:center;gap:.6875rem;position:relative;padding:0 .75rem;transition:color 80ms linear;min-width:var(--btn-mw);cursor:pointer;outline:none;line-height:inherit;-webkit-user-select:none;user-select:none;appearance:none;overflow:visible;vertical-align:middle;text-decoration:none;height:var(--btn-h);box-shadow:var(--btn-bs);font:var(--btn-f);transition:transform .25s ease-in;transform:scale(1)}[shButton]:before{content:"";position:absolute;inset:0;background:radial-gradient(#000 30%,#0000);opacity:0;transition:opacity 175ms linear}[shButton]:active{transform:scale(.98)}[shButton]:active:before{opacity:var(--btn-a-opacity)}[shButton].raised,[shButton].flat{--btn-a-opacity: .1}[shButton] sh-icon{rotate:var(--btn-ir);transition:rotate 125ms ease-in-out}[shButton] sh-icon:first-child{margin-left:-.1875rem}[shButton] sh-icon:last-child{margin-right:-.1875rem}[shButton].rotated-icon sh-icon{--btn-ir: 180deg}[shButton].small{--btn-h: 2rem;--btn-mw: 2rem;--btn-f: var(--paragraph-30);padding:0 .5rem;gap:.3125rem}[shButton].small sh-icon{font-size:1rem}[shButton].small sh-icon:first-child{margin-left:-.0625rem}[shButton].small sh-icon:last-child{margin-right:-.0625rem}[shButton].xsmall{--btn-h: 1.5rem;--btn-mw: 1.5rem;--btn-f: var(--paragraph-40);padding:0 .5rem;gap:.25rem}[shButton].xsmall sh-icon{font-size:.75rem}[shButton].xsmall sh-icon:first-child{margin-left:-.1875rem}[shButton].xsmall sh-icon:last-child{margin-right:-.1875rem}[shButton].no-bg{--sheet-bg: transparent;background:transparent}[shButton].no-bg.simple{--sheet-bc: transparent}[shButton][disabled]{opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none}[shButton][readonly],[shButton].readonly{pointer-events:none;-webkit-user-select:none;user-select:none}[shButton][disabled]:active,[shButton][readonly]:active{transform:scale(1)}
|
|
19
19
|
`],encapsulation:2});}}return e})();function v$1(e,a){if(e&1&&(Zi$1(0,"p"),HC(1),Wl()),e&2){let t=aC();bE(),im(t._data().message);}}function S$1(e,a){if(e&1){let t=ET();Zi$1(0,"button",5),Hg("click",function(){Pd(t);let p=aC();return Ld(p.close("cancel"))}),HC(1),Wl();}if(e&2){let t=aC();bE(),im(t._data().cancelText);}}function k$2(e,a){if(e&1){let t=ET();Zi$1(0,"button",6),Hg("click",function(){Pd(t);let p=aC();return Ld(p.close("confirm"))}),HC(1),Wl();}if(e&2){let t=aC();bE(),im(t._data().confirmText);}}var w$1={title:$localize`Are you sure?`,confirmText:void 0,cancelText:$localize`Cancel`},h=class e{data=E1();_data=Nt$3(()=>l$2(l$2({},w$1),this.data()));closed=I1();close(a="confirm"){this.closed.emit(a==="confirm");}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=gw({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["shButton","",1,""],["shButton","",1,"raised","primary"],["shButton","",1,"",3,"click"],["shButton","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(Zi$1(0,"header",0)(1,"h3"),HC(2),Wl()(),Zi$1(3,"div",1),lT(4,v$1,2,1,"p"),Wl(),Zi$1(5,"footer",2),lT(6,S$1,2,1,"button",3),lT(7,k$2,2,1,"button",4),Wl()),t&2&&(bE(2),im(c._data().title),bE(2),uT(c._data().message?4:-1),bE(2),uT(c._data().cancelText?6:-1),bE(),uT(c._data().confirmText?7:-1));},dependencies:[v$2],styles:["[_nghost-%COMP%]{display:block}"]})};var m$1={Starting_Operation:$localize`Starting operation …`,Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Lock:$localize`Locking remote data …`,Backup_Complete:$localize`Backup complete!`,Backup_RemoteSynchronization:$localize`Synchronizing secondary destination(s) …`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_Download:$localize`Downloading files …`,Restore_PatchWithRemoteFiles:$localize`Patching files with remote data …`,Restore_VerifyRestoredFiles:$localize`Verifying restored files …`,Restore_Finaluze:$localize`Finalizing restore …`,Restore_Complete:$localize`Restore complete!`,Recreate_Begin:$localize`Starting database recreate …`,Recreate_Delete:$localize`Deleting old database …`,Recreate_Create:$localize`Creating new database …`,Recreate_Download:$localize`Downloading files …`,Recreate_Process:$localize`Processing files …`,Recreate_Complete:$localize`Database recreate complete!`,Verify_Begin:$localize`Starting verification …`,Verify_Download:$localize`Downloading files …`,Verify_Process:$localize`Processing files …`,Verify_Complete:$localize`Verification complete!`,BugReport_Begin:$localize`Starting bug report …`,BugReport_Gathering:$localize`Gathering information …`,BugReport_Complete:$localize`Bug report complete!`,List_Begin:$localize`Starting list …`,List_Download:$localize`Downloading files …`,List_Process:$localize`Processing files …`,List_Complete:$localize`List complete!`,Delete_Begin:$localize`Starting delete …`,Delete_Download:$localize`Downloading files …`,Delete_Process:$localize`Processing files …`,Delete_Complete:$localize`Delete complete!`,Compact_Begin:$localize`Starting compact …`,Compact_Download:$localize`Downloading files …`,Compact_Process:$localize`Processing files …`,Compact_Complete:$localize`Compact complete!`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,RunScript_Running:$localize`Running script …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,PurgeFiles_Begin:$localize`Listing remote files for purge …`,PurgeFiles_Process:$localize`Purging files …`,PurgeFiles_Compact:$localize`Compacting remote data …`,PurgeFiles_Complete:$localize`Purging files complete!`,ReadLockInfo_Running:$localize`Reading lock info …`,Sync_Begin:$localize`Starting sync …`,Sync_CountingFiles:$localize`Counting files to sync …`,Sync_ProcessingFiles:$localize`Processing files to sync …`,Sync_WaitForUpload:$localize`Waiting for upload to finish …`,Sync_Complete:$localize`Sync complete!`,Error:$localize`Error!`},b$1=(n,e="")=>n?m$1[n]??n:e;var D$2=class n{#i=T$5(m$2);#o=T$5(J$3);#t=T$5(m$3);#e=T$5(B$1);#c=T$5(be$3);#g=T$5(f$1);#l=Ge$5(false);#s=Ge$5(null);statusData=this.#s.asReadonly();lastState=null;serverState=Nt$3(()=>{let e=this.#e.serverState();return e?(e.ProposedSchedule=e.ProposedSchedule?.map(i=>m$7(l$2({},i),{backup:i.Item1?this.#t.getBackupById(i.Item1):null}))??null,this.lastState=e,e):this.lastState});hasProgressOnWebsocket=Nt$3(()=>this.#g.hasProgressSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");clientIsRunning=Nt$3(()=>this.serverState()?.ProgramState==="Running");runningBackupId=Nt$3(()=>{let e=this.statusData();return !!(this.serverState()?.ActiveTask&&e?.task?.Status&&e?.task?.Status!=="Completed")?e?.BackupID??null:null});isResuming=Ge$5(false);isFetching=this.#l.asReadonly();connectionStatus=this.#e.connectionStatus;pollingInterval;#S=Qa(()=>{let e=this.#e.serverState();e?.ActiveTask||this.#t.getBackups(true),this.hasProgressOnWebsocket()&&(this.#e.subscribe("progress"),this.#e.subscribe("taskqueue")),e?.ActiveTask&&this.pollingInterval===void 0?this.startPollingProgress():e?.ActiveTask||this.stopPollingProgress();});#m=Qa(()=>{let e=this.#e.progressState(),i=this.#e.taskQueueState();if(e){let o=i?.find(t=>t.ID===e.TaskID)??null;this.#r(m$7(l$2({},e),{task:o}));}});setConnectionMethod(e){this.#e.setConnectionMethod(e);}startPollingProgress(){this.hasProgressOnWebsocket()?this.#e.subscribe("progress"):this.pollingInterval=setInterval(()=>{this.#a();},1e3);}stopPollingProgress(){clearInterval(this.pollingInterval);}fetchProgressState(){this.#a();}pauseResume(){return this.isResuming.set(true),sy(()=>this.#o.postApiV1ServerstateResume()).pipe(Zu(()=>this.isResuming.set(false)))}resumeDialogCheck(e){if(!this.clientIsRunning()){this.#c.open(h,{data:{title:$localize`Server paused`,message:$localize`Server is currently paused. Do you want to resume now?`,confirmText:$localize`Resume`,cancelText:$localize`No, I'll resume later`},closed:i=>{i&&this.pauseResume().subscribe({next:()=>{e();}});}});return}e();}#a(){this.#l.set(true),sy(()=>this.#o.getApiV1Progressstate()).pipe(Yu(e=>{let i=e.TaskID??null;return i===null?iy(e):sy(()=>this.#o.getApiV1TaskByTaskid({path:{taskid:i}})).pipe(pt$2(o=>m$7(l$2({},e),{task:o??null})))}),Zu(()=>this.#l.set(false))).subscribe({next:e=>{this.#r(e),this.serverState()?.ActiveTask==null&&this.stopPollingProgress();},error:e=>{e.status===404&&this.stopPollingProgress();}});}#r(e){let i=e.TaskID??null,o=e.BackupID??null;i!==null&&o!==null&&(e.backup=this.#t.getBackupById(o)),this.#s.set(m$7(l$2({},e),{progress:this.#p(e),statusText:this.#d(e),fileStatusText:this.#u(e),fileCountProgressText:this.#f(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}));}#p(e){let i=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"||e.Phase==="Sync_ProcessingFiles")if(e.StillCounting)i=0;else {let o=e.CurrentFilecomplete?0:e.CurrentFileoffset;e.TotalFileCount-e.ProcessedFileCount;e.TotalFileSize-e.ProcessedFileSize-o;i=(e.ProcessedFileSize+o)/e.TotalFileSize,e.ProcessedFileCount===0?i=0:i>=.9&&(i=.9);}else e.Phase==="Sync_CountingFiles"?i=0:e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"||e.Phase==="Sync_WaitForUpload"?i=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?i=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?i=.98:e.Phase==="Backup_Complete"||e.Phase==="Sync_Complete"?i=1:e.Phase==="Backup_RemoteSynchronization"?i=e.OverallProgress>0?e.OverallProgress:0:e.OverallProgress>0&&(i=e.OverallProgress);return i}#n(e){let i=(e.ActiveTransfers??[]).map(t=>t.BackendSpeed).reduce((t,l)=>(t??0)+(l??0),0)??-1,o=i<=0?e.BackendSpeed:i;return (o??-1)<0?"":` at ${this.#i.transform(o)}/s`}#u(e){let i=(["Backup_WaitForUpload","Backup_ProcessingFiles","Sync_WaitForUpload","Sync_ProcessingFiles"].includes(e.Phase)?e?.BackendFileProgress:e.CurrentFileoffset)??0,o=(["Backup_WaitForUpload","Backup_ProcessingFiles","Sync_WaitForUpload","Sync_ProcessingFiles"].includes(e.Phase)?e?.BackendFileSize:e.CurrentFilesize)??0;if(!e.CurrentFilename)return "";let t=e.CurrentFilename.length>42?"..."+e.CurrentFilename.slice(-42):e.CurrentFilename,l=(i/o*100).toFixed(1);return $localize`${t} | File processed: ${this.#i.transform(i)}/${this.#i.transform(o)} - ${l}%`}#f(e){return $localize`Files processed ${e.ProcessedFileCount}/${e.TotalFileCount}`}#d(e){let i="Running \u2026";if(e.task&&e){if(i=b$1(e.Phase,"Running \u2026"),e.TotalFileCount===0)return i;if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"||e.Phase==="Sync_ProcessingFiles"||e.Phase==="Sync_CountingFiles")if(e.StillCounting||e.Phase==="Sync_CountingFiles")i=`Counting (${e.TotalFileCount} files found, ${this.#i.transform(e.TotalFileSize)})`;else {let o=e.CurrentFilecomplete?0:e.CurrentFileoffset,t=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-o,f=e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":"",a=this.#n(e);(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Sync_ProcessingFiles")&&t===0?i=`Completing upload ${a}`:e.BackendIsBlocking??false?i=`Waiting for transfers ${a}`:i=`${f}${t} files (${this.#i.transform(l)}) to go ${a}`;}else if(e.Phase==="Backup_WaitForUpload"||e.Phase==="Sync_WaitForUpload"){let o=this.#n(e);o!==""&&(i=`Waiting for upload to finish ${o}`);}else if(e.Phase==="Backup_RemoteSynchronization"){let o=e.RemoteSyncDestinationCount??0,t=e.RemoteSyncDestinationIndex??0,l=o>1?` (${t}/${o})`:"";if(e.TotalFileCount>0){let f=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize,v=this.#n(e);i=`Synchronizing secondary destination${l}: ${f} files (${this.#i.transform(a)}) to go ${v}`;}else l&&(i=`${m$1[e.Phase]}`.replace("\u2026",`${l} \u2026`));}}return i}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ee$5({token:n,factory:n.\u0275fac,providedIn:"root"})};var D$1=class a{#e=T$5(J$3);#o=T$5(D$2);#s=T$5(B$1);#a=T$5(f$1);#n=T$5(k$3);serverState=this.#o.serverState;serverStateEffect=Qa(()=>{let t=this.#o.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID);});#r=-1;#t=Ge$5([]);#i=Ge$5([]);notifications=this.#t.asReadonly();pendingRefresh=false;constructor(){this.#n.subscribe("notifications");}init(){this.notifications().length===0&&this.getNotifications();}notificationsEffect=Qa(()=>{let t=this.#n.notificationState();t&&this.#t.set(t);});pendingRefreshEffect=Qa(()=>{this.#s.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.getNotifications());});#c=Nt$3(()=>{let t=this.#s.getConnectionMethod()==="websocket",i=this.#a.hasWsRemoteControl();return t&&i});updateLastNotificationEventId(t){this.#r!==t&&(this.#r=t,this.getNotifications());}getNotifications(){if(!this.#c()){if(!this.#s.isConnectionMethodSet()){this.pendingRefresh=true;return}sy(()=>this.#e.getApiV1Notifications()).pipe(jo$1(1),id(t=>this.#t.set(t))).subscribe();}}getNofication(t){sy(()=>this.#e.getApiV1NotificationById({path:{id:t}})).pipe(jo$1(1)).subscribe();}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),sy(()=>this.#e.deleteApiV1NotificationById({path:{id:e.ID}})).pipe(jo$1(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([]);}});}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>sy(()=>this.#e.deleteApiV1NotificationById({path:{id:e.ID}})).pipe(Bs(()=>iy(e))));wy(i).pipe(jo$1(1)).subscribe({next:e=>{let I=e.filter(c=>c!=null&&"ID"in c);this.#t.set(I),this.#i.set([]);},error:()=>{this.#t.set(this.#i()),this.#i.set([]);}});}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee$5({token:a,factory:a.\u0275fac,providedIn:"root"})};var He$1=60,ge=He$1*60,$e=ge*24,Nt=$e*7,H=1e3,I=He$1*H,F$1=ge*H,J=$e*H,te=Nt*H,V$1="millisecond",b="second",A="minute",O$1="hour",D="day",W="week",v="month",re="quarter",S="year",x$1="date",Te="YYYY-MM-DDTHH:mm:ssZ",ue$1="Invalid Date",we=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ne={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return "["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var Me=function(e,t,r){var a=String(e);return !a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},zt=function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),s=r%60;return (t<=0?"+":"-")+Me(a,2,"0")+":"+Me(s,2,"0")},Et=function n(e,t){if(e.date()<t.date())return -n(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,v),s=t-a<0,i=e.clone().add(r+(s?-1:1),v);return +(-(r+(t-a)/(s?a-i:i-a))||0)},It=function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},xt=function(e){var t={M:v,y:S,w:W,d:D,D:x$1,h:O$1,m:A,s:b,ms:V$1,Q:re};return t[e]||String(e||"").toLowerCase().replace(/s$/,"")},Ft=function(e){return e===void 0},je$1={s:Me,z:zt,m:Et,a:It,p:xt,u:Ft};var Z="en",U$1={};U$1[Z]=ne;var Ce="$isDayjsObject",he=function(e){return e instanceof ie||!!(e&&e[Ce])},se=function n(e,t,r){var a;if(!e)return Z;if(typeof e=="string"){var s=e.toLowerCase();U$1[s]&&(a=s),t&&(U$1[s]=t,a=s);var i=e.split("-");if(!a&&i.length>1)return n(i[0])}else {var o=e.name;U$1[o]=e,a=o;}return !r&&a&&(Z=a),a||!r&&Z},c$1=function(e,t){if(he(e))return e.clone();var r=typeof t=="object"?t:{};return r.date=e,r.args=arguments,new ie(r)},Jt=function(e,t){return c$1(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},l=je$1;l.l=se;l.i=he;l.w=Jt;var Ut=function(e){var t=e.date,r=e.utc;if(t===null)return new Date(NaN);if(l.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(we);if(a){var s=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)},ie=(function(){function n(t){this.$L=se(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[Ce]=true;}var e=n.prototype;return e.parse=function(r){this.$d=Ut(r),this.init();},e.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds();},e.$utils=function(){return l},e.isValid=function(){return this.$d.toString()!==ue$1},e.isSame=function(r,a){var s=c$1(r);return this.startOf(a)<=s&&s<=this.endOf(a)},e.isAfter=function(r,a){return c$1(r)<this.startOf(a)},e.isBefore=function(r,a){return this.endOf(a)<c$1(r)},e.$g=function(r,a,s){return l.u(r)?this[a]:this.set(s,r)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(r,a){var s=this,i=l.u(a)?true:a,o=l.p(r),d=function(C,f){var h=l.w(s.$u?Date.UTC(s.$y,f,C):new Date(s.$y,f,C),s);return i?h:h.endOf(D)},m=function(C,f){var h=[0,0,0,0],L=[23,59,59,999];return l.w(s.toDate()[C].apply(s.toDate("s"),(i?h:L).slice(f)),s)},u=this.$W,Y=this.$M,M=this.$D,p="set"+(this.$u?"UTC":"");switch(o){case S:return i?d(1,0):d(31,11);case v:return i?d(1,Y):d(0,Y+1);case W:{var y=this.$locale().weekStart||0,z=(u<y?u+7:u)-y;return d(i?M-z:M+(6-z),Y)}case D:case x$1:return m(p+"Hours",0);case O$1:return m(p+"Minutes",1);case A:return m(p+"Seconds",2);case b:return m(p+"Milliseconds",3);default:return this.clone()}},e.endOf=function(r){return this.startOf(r,false)},e.$set=function(r,a){var s,i=l.p(r),o="set"+(this.$u?"UTC":""),d=(s={},s[D]=o+"Date",s[x$1]=o+"Date",s[v]=o+"Month",s[S]=o+"FullYear",s[O$1]=o+"Hours",s[A]=o+"Minutes",s[b]=o+"Seconds",s[V$1]=o+"Milliseconds",s)[i],m=i===D?this.$D+(a-this.$W):a;if(i===v||i===S){var u=this.clone().set(x$1,1);u.$d[d](m),u.init(),this.$d=u.set(x$1,Math.min(this.$D,u.daysInMonth())).$d;}else d&&this.$d[d](m);return this.init(),this},e.set=function(r,a){return this.clone().$set(r,a)},e.get=function(r){return this[l.p(r)]()},e.add=function(r,a){var s=this,i;r=Number(r);var o=l.p(a),d=function(M){var p=c$1(s);return l.w(p.date(p.date()+Math.round(M*r)),s)};if(o===v)return this.set(v,this.$M+r);if(o===S)return this.set(S,this.$y+r);if(o===D)return d(1);if(o===W)return d(7);var m=(i={},i[A]=I,i[O$1]=F$1,i[b]=H,i)[o]||1,u=this.$d.getTime()+r*m;return l.w(u,this)},e.subtract=function(r,a){return this.add(r*-1,a)},e.format=function(r){var a=this,s=this.$locale();if(!this.isValid())return s.invalidDate||ue$1;var i=r||Te,o=l.z(this),d=this.$H,m=this.$m,u=this.$M,Y=s.weekdays,M=s.months,p=s.meridiem,y=function(h,L,E,B){return h&&(h[L]||h(a,i))||E[L].slice(0,B)},z=function(h){return l.s(d%12||12,h,"0")},j=p||function(f,h,L){var E=f<12?"AM":"PM";return L?E.toLowerCase():E},C=function(h){switch(h){case "YY":return String(a.$y).slice(-2);case "YYYY":return l.s(a.$y,4,"0");case "M":return u+1;case "MM":return l.s(u+1,2,"0");case "MMM":return y(s.monthsShort,u,M,3);case "MMMM":return y(M,u);case "D":return a.$D;case "DD":return l.s(a.$D,2,"0");case "d":return String(a.$W);case "dd":return y(s.weekdaysMin,a.$W,Y,2);case "ddd":return y(s.weekdaysShort,a.$W,Y,3);case "dddd":return Y[a.$W];case "H":return String(d);case "HH":return l.s(d,2,"0");case "h":return z(1);case "hh":return z(2);case "a":return j(d,m,true);case "A":return j(d,m,false);case "m":return String(m);case "mm":return l.s(m,2,"0");case "s":return String(a.$s);case "ss":return l.s(a.$s,2,"0");case "SSS":return l.s(a.$ms,3,"0");case "Z":return o;}return null};return i.replace(ae,function(f,h){return h||C(f)||o.replace(":","")})},e.utcOffset=function(){return -Math.round(this.$d.getTimezoneOffset()/15)*15},e.diff=function(r,a,s){var i=this,o=l.p(a),d=c$1(r),m=(d.utcOffset()-this.utcOffset())*I,u=this-d,Y=function(){return l.m(i,d)},M;switch(o){case S:M=Y()/12;break;case v:M=Y();break;case re:M=Y()/3;break;case W:M=(u-m)/te;break;case D:M=(u-m)/J;break;case O$1:M=u/F$1;break;case A:M=u/I;break;case b:M=u/H;break;default:M=u;break}return s?M:l.a(M)},e.daysInMonth=function(){return this.endOf(v).$D},e.$locale=function(){return U$1[this.$L]},e.locale=function(r,a){if(!r)return this.$L;var s=this.clone(),i=se(r,a,true);return i&&(s.$L=i),s},e.clone=function(){return l.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},n})(),be=ie.prototype;c$1.prototype=be;[["$ms",V$1],["$s",b],["$m",A],["$H",O$1],["$W",D],["$M",v],["$y",S],["$D",x$1]].forEach(function(n){be[n[1]]=function(e){return this.$g(e,n[0],n[1])};});c$1.extend=function(n,e){return n.$i||(n(e,ie,c$1),n.$i=true),c$1};c$1.locale=se;c$1.isDayjs=he;c$1.unix=function(n){return c$1(n*1e3)};c$1.en=U$1[Z];c$1.Ls=U$1;c$1.p={};var _=c$1;var oe=J*365,ce=oe/12,Pt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K={years:oe,months:ce,days:J,hours:F$1,minutes:I,seconds:H,milliseconds:1,weeks:te},_e$1=function(e){return e instanceof ze$1},Oe,N$1,Q$1=function(e,t,r){return new ze$1(e,r,t.$l)},X=function(e){return N$1.p(e)+"s"},Ne=function(e){return e<0},P$1=function(e){return Ne(e)?Math.ceil(e):Math.floor(e)},Wt=function(e){return Math.abs(e)},R=function(e,t){return e?Ne(e)?{negative:true,format:""+Wt(e)+t}:{negative:false,format:""+e+t}:{negative:false,format:""}},ze$1=(function(){function n(t,r,a){var s=this;if(this.$d={},this.$l=a,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return Q$1(t*K[X(r)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach(function(m){s.$d[X(m)]=t[m];}),this.calMilliseconds(),this;if(typeof t=="string"){var i=t.match(Pt);if(i){var o=i.slice(2),d=o.map(function(m){return m!=null?Number(m):0});return this.$d.years=d[0],this.$d.months=d[1],this.$d.weeks=d[2],this.$d.days=d[3],this.$d.hours=d[4],this.$d.minutes=d[5],this.$d.seconds=d[6],this.calMilliseconds(),this}}return this}var e=n.prototype;return e.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(a,s){return a+(r.$d[s]||0)*K[s]},0);},e.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=P$1(r/oe),r%=oe,this.$d.months=P$1(r/ce),r%=ce,this.$d.days=P$1(r/J),r%=J,this.$d.hours=P$1(r/F$1),r%=F$1,this.$d.minutes=P$1(r/I),r%=I,this.$d.seconds=P$1(r/H),r%=H,this.$d.milliseconds=r;},e.toISOString=function(){var r=R(this.$d.years,"Y"),a=R(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=R(s,"D"),o=R(this.$d.hours,"H"),d=R(this.$d.minutes,"M"),m=this.$d.seconds||0;this.$d.milliseconds&&(m+=this.$d.milliseconds/1e3,m=Math.round(m*1e3)/1e3);var u=R(m,"S"),Y=r.negative||a.negative||i.negative||o.negative||d.negative||u.negative,M=o.format||d.format||u.format?"T":"",p=Y?"-":"",y=p+"P"+r.format+a.format+i.format+M+o.format+d.format+u.format;return y==="P"||y==="-P"?"P0D":y},e.toJSON=function(){return this.toISOString()},e.format=function(r){var a=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:N$1.s(this.$d.years,2,"0"),YYYY:N$1.s(this.$d.years,4,"0"),M:this.$d.months,MM:N$1.s(this.$d.months,2,"0"),D:this.$d.days,DD:N$1.s(this.$d.days,2,"0"),H:this.$d.hours,HH:N$1.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:N$1.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:N$1.s(this.$d.seconds,2,"0"),SSS:N$1.s(this.$d.milliseconds,3,"0")};return a.replace(ae,function(i,o){return o||String(s[i])})},e.as=function(r){return this.$ms/K[X(r)]},e.get=function(r){var a=this.$ms,s=X(r);return s==="milliseconds"?a%=1e3:s==="weeks"?a=P$1(a/K[s]):a=this.$d[s],a||0},e.add=function(r,a,s){var i;return a?i=r*K[X(a)]:_e$1(r)?i=r.$ms:i=Q$1(r,this).$ms,Q$1(this.$ms+i*(s?-1:1),this)},e.subtract=function(r,a){return this.add(r,a,true)},e.locale=function(r){var a=this.clone();return a.$l=r,a},e.clone=function(){return Q$1(this.$ms,this)},e.humanize=function(r){return Oe().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},e.valueOf=function(){return this.asMilliseconds()},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},n})(),Ae=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},Ee=(function(n,e,t){Oe=t,N$1=t().$utils(),t.duration=function(s,i){var o=t.locale();return Q$1(s,{$l:o},i)},t.isDuration=_e$1;var r=e.prototype.add,a=e.prototype.subtract;e.prototype.add=function(s,i){return _e$1(s)?Ae(this,s,1):r.bind(this)(s,i)},e.prototype.subtract=function(s,i){return _e$1(s)?Ae(this,s,-1):a.bind(this)(s,i)};});var Ie=(function(n,e,t){n=n||{};var r=e.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.en.relativeTime=a,r.fromToBase=function(o,d,m,u,Y){for(var M=m.$locale().relativeTime||a,p=n.thresholds||[{l:"s",r:44,d:b},{l:"m",r:89},{l:"mm",r:44,d:A},{l:"h",r:89},{l:"hh",r:21,d:O$1},{l:"d",r:35},{l:"dd",r:25,d:D},{l:"M",r:45},{l:"MM",r:10,d:v},{l:"y",r:17},{l:"yy",d:S}],y=p.length,z,j,C,f=0;f<y;f+=1){var h=p[f];h.d&&(z=u?t(o).diff(m,h.d,true):m.diff(o,h.d,true));var L=(n.rounding||Math.round)(Math.abs(z));if(C=z>0,L<=h.r||!h.r){L<=1&&f>0&&(h=p[f-1]);var E=M[h.l];Y&&(L=Y(""+L)),typeof E=="string"?j=E.replace("%d",L):j=E(L,d,h.l,C);break}}if(d)return j;var B=C?M.future:M.past;return typeof B=="function"?B(j):B.replace("%s",j)};function s(o,d,m,u){return r.fromToBase(o,d,m,u)}r.to=function(o,d){return s(o,d,this,true)},r.from=function(o,d){return s(o,d,this)};var i=function(d){return d.$u?t.utc():t()};r.toNow=function(o){return this.to(i(this),o)},r.fromNow=function(o){return this.from(i(this),o)};});function ee(n){return n>1&&n<5&&~~(n/10)!==1}function g(n,e,t,r){var a=n+" ";switch(t){case "s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case "m":return e?"minuta":r?"minutu":"minutou";case "mm":return e||r?a+(ee(n)?"minuty":"minut"):a+"minutami";case "h":return e?"hodina":r?"hodinu":"hodinou";case "hh":return e||r?a+(ee(n)?"hodiny":"hodin"):a+"hodinami";case "d":return e||r?"den":"dnem";case "dd":return e||r?a+(ee(n)?"dny":"dn\xED"):a+"dny";case "M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case "MM":return e||r?a+(ee(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):a+"m\u011Bs\xEDci";case "y":return e||r?"rok":"rokem";case "yy":return e||r?a+(ee(n)?"roky":"let"):a+"lety"}}var xe={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g}};_.locale(xe,null,true);var Fe$1=xe;var Je$1={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};_.locale(Je$1,null,true);var Ue$1=Je$1;var Rt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function $$1(n,e,t){var r=Rt[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var Pe$1={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:$$1,m:$$1,mm:$$1,h:$$1,hh:$$1,d:$$1,dd:$$1,M:$$1,MM:$$1,y:$$1,yy:$$1}};_.locale(Pe$1,null,true);var Ye=Pe$1;var Gt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function T(n,e,t){var r=Gt[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var We={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T}};_.locale(We,null,true);var Re=We;var Ge$1={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return "["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};_.locale(Ge$1,null,true);var qe$1=Ge$1;var Be$1={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(e){return e+"\xBA"}};_.locale(Be$1,null,true);var fe$1=Be$1;function w(n,e,t,r){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xE4iv\xE4",dd:"%d p\xE4iv\xE4\xE4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xE4_viisi_kuusi_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xE4iv\xE4n",dd:"%d p\xE4iv\xE4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xE4n_viiden_kuuden_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},i=r&&!e?s:a,o=i[t];return n<10?o.replace("%d",i.numbers[n]):o.replace("%d",n)}var Ve$1={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:w,m:w,mm:w,h:w,hh:w,d:w,dd:w,M:w,MM:w,y:w,yy:w},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};_.locale(Ve$1,null,true);var Ze=Ve$1;var Ke$1={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var t=e===1?"er":"";return ""+e+t}};_.locale(Ke$1,null,true);var pe=Ke$1;var Xe$1={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};_.locale(Xe$1,null,true);var Qe=Xe$1;var et={name:"hu",weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xFAlva",past:"%s",s:function(e,t,r,a){return "n\xE9h\xE1ny m\xE1sodperc"+(a||t?"":"e")},m:function(e,t,r,a){return "egy perc"+(a||t?"":"e")},mm:function(e,t,r,a){return e+" perc"+(a||t?"":"e")},h:function(e,t,r,a){return "egy "+(a||t?"\xF3ra":"\xF3r\xE1ja")},hh:function(e,t,r,a){return e+" "+(a||t?"\xF3ra":"\xF3r\xE1ja")},d:function(e,t,r,a){return "egy "+(a||t?"nap":"napja")},dd:function(e,t,r,a){return e+" "+(a||t?"nap":"napja")},M:function(e,t,r,a){return "egy "+(a||t?"h\xF3nap":"h\xF3napja")},MM:function(e,t,r,a){return e+" "+(a||t?"h\xF3nap":"h\xF3napja")},y:function(e,t,r,a){return "egy "+(a||t?"\xE9v":"\xE9ve")},yy:function(e,t,r,a){return e+" "+(a||t?"\xE9v":"\xE9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};_.locale(et,null,true);var tt=et;var rt={name:"it",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xBA"}};_.locale(rt,null,true);var ve=rt;var at={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e){return e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(e){return e<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};_.locale(at,null,true);var nt=at;var st={name:"ko",weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),months:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),monthsShort:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),ordinal:function(e){return e+"\uC77C"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},meridiem:function(e){return e<12?"\uC624\uC804":"\uC624\uD6C4"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"}};_.locale(st,null,true);var it=st;var _t={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return "["+e+(e===1||e===8||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};_.locale(_t,null,true);var ot=_t;var dt={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"}};_.locale(dt,null,true);var mt=dt;function de(n){return n%10<5&&n%10>1&&~~(n/10)%10!==1}function G(n,e,t){var r=n+" ";switch(t){case "m":return e?"minuta":"minut\u0119";case "mm":return r+(de(n)?"minuty":"minut");case "h":return e?"godzina":"godzin\u0119";case "hh":return r+(de(n)?"godziny":"godzin");case "MM":return r+(de(n)?"miesi\u0105ce":"miesi\u0119cy");case "yy":return r+(de(n)?"lata":"lat")}}var ut="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),lt="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),qt=/D MMMM/,ye=function(e,t){return qt.test(t)?ut[e.month()]:lt[e.month()]};ye.s=lt;ye.f=ut;var Mt={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:ye,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:G,mm:G,h:G,hh:G,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:G,y:"rok",yy:G},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};_.locale(Mt,null,true);var ht=Mt;var ct={name:"pt",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_Sa".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xBA"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};_.locale(ct,null,true);var Yt=ct;var ft="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),pt="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),vt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),yt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),Lt=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function Bt(n,e){var t=n.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]}function q$1(n,e,t){var r={mm:e?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?e?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":n+" "+Bt(r[t],+n)}var Le$1=function(e,t){return Lt.test(t)?ft[e.month()]:pt[e.month()]};Le$1.s=pt;Le$1.f=ft;var De$1=function(e,t){return Lt.test(t)?vt[e.month()]:yt[e.month()]};De$1.s=yt;De$1.f=vt;var Dt={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:Le$1,monthsShort:De$1,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:q$1,mm:q$1,h:"\u0447\u0430\u0441",hh:q$1,d:"\u0434\u0435\u043D\u044C",dd:q$1,M:"\u043C\u0435\u0441\u044F\u0446",MM:q$1,y:"\u0433\u043E\u0434",yy:q$1},ordinal:function(e){return e},meridiem:function(e){return e<4?"\u043D\u043E\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};_.locale(Dt,null,true);var St=Dt;var k$1={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,a){var s=k$1.words[r];if(r.length===1)return r==="y"&&t?"jedna godina":a||t?s[0]:s[1];var i=k$1.correctGrammarCase(e,s);return r==="yy"&&t&&i==="%d godinu"?e+" godina":i.replace("%d",e)}},kt={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010Cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:k$1.relativeTimeFormatter,mm:k$1.relativeTimeFormatter,h:k$1.relativeTimeFormatter,hh:k$1.relativeTimeFormatter,d:k$1.relativeTimeFormatter,dd:k$1.relativeTimeFormatter,M:k$1.relativeTimeFormatter,MM:k$1.relativeTimeFormatter,y:k$1.relativeTimeFormatter,yy:k$1.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};_.locale(kt,null,true);var Ht=kt;var gt={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10,r=t===1||t===2?"a":"e";return "["+e+r+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};_.locale(gt,null,true);var $t=gt;var Tt={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e){return e+"."}};_.locale(Tt,null,true);var wt=Tt;var jt={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return t==="W"?e+"\u5468":e+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(jt,null,true);var Ct=jt;var bt={name:"zh-hk",months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),ordinal:function(e,t){return t==="W"?e+"\u9031":e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"\u4E00\u5206\u9418",mm:"%d \u5206\u9418",h:"\u4E00\u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"\u4E00\u5929",dd:"%d \u5929",M:"\u4E00\u500B\u6708",MM:"%d \u500B\u6708",y:"\u4E00\u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(bt,null,true);var At=bt;var Ot={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return t==="W"?e+"\u9031":e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(Ot,null,true);var Se=Ot;var me={"en-us":ne,"en-gb":qe$1,cs:Fe$1,da:Ue$1,de:Ye,es:fe$1,fi:Ze,fr:pe,hu:tt,it:ve,ja:nt,ko:it,nl:ot,pl:ht,pt:Yt,ru:St,sr:Ht,sv:$t,tr:wt,zh:Ct,"zh-tw":Se,"de-ch":Re,"de-de":Ye,"es-ar":fe$1,"fr-ca":Qe,"fr-fr":pe,"it-it":ve,"nl-be":mt,"zh-hant":Se,"zh-hk":At};var Vt=new x$5("Dayjs"),ja={provide:Vt,useFactory:()=>{let n=(localStorage.getItem("v1:duplicati:locale")??"en-us").toLowerCase().trim(),e=me[n]??me[n.split("-")[0]]??me["en-us"];return _.extend(Ie),_.extend(Ee),_.locale(e),_}};var c=class s{#n=T$5(Vt);transform(r,t=false,...d){if(!r)return "";let n=/^\s*(?:(\d+)\.)?(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?\s*$/.exec(r);if(!n)return "";let e=parseInt(n[1]??"0",10),i=parseInt(n[2],10),o=parseInt(n[3],10),a=parseInt(n[4],10);return t?`${e?`${e}d `:""}${i}h ${o}m ${a}s`:this.#n.duration({days:e,hours:i,minutes:o,seconds:a}).humanize()}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=Dw({name:"durationFormat",type:s,pure:true})};var m=class n{#t=T$5(Vt);#r=T$5(ci$1);convertTimestamp(t){let r=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/.exec(t);if(r){let[a,p,f,c,d,u,h]=r;return `${p}-${f}-${c}T${d}:${u}:${h}Z`}return t}transform(t,r=false,...a){return t?r?this.#r.transform(t,"short"):(this.#t.locale(),typeof t=="string"&&(t=this.convertTimestamp(t)),this.#t(t).fromNow()):"N/A"}static \u0275fac=function(r){return new(r||n)};static \u0275pipe=Dw({name:"relativeTime",type:n,pure:true})};var y$1=["*"],z=["bold","thin","light","fill","duotone"],N=(()=>{class s{constructor(){this.#e=T$5(eo$1),this.#i=T$5(DD),this.#n=T$5(G$3,{optional:true}),this.#o=T$5(Mr),this.#s=T$5(dv),this.color=E1(null),this.size=E1(null),this.isUnfocused=Ge$5(Rr(this.#s)?!this.#o.hasFocus():false),this.hostClasses=ce$2("icon",{color:this.color,size:this.size}),this.customHostClasses=Nt$3(()=>{let i=this.hostClasses(),e=this.#n?.icon,n=[i];return !e?.disableUnfocus&&this.isUnfocused()&&n.push("unfocused"),n.filter(Boolean).join(" ")});}#e;#i;#n;#o;#s;onWindowBlur(){this.isUnfocused.set(true);}onWindowFocus(){this.isUnfocused.set(false);}ngAfterContentInit(){let i=this.#e.nativeElement.textContent?.trim();if(!i)return;let e=i.split("-").at(-1);e&&z.includes(e)&&this.#i.addClass(this.#e.nativeElement,e);}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=gw({type:s,selectors:[["sh-icon"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){e&1&&Hg("blur",function(){return n.onWindowBlur()},HI)("focus",function(){return n.onWindowFocus()},HI),e&2&&xC(n.customHostClasses());},inputs:{color:[1,"color"],size:[1,"size"]},ngContentSelectors:y$1,decls:1,vars:0,template:function(e,n){e&1&&(lC(),uC(0));},styles:[`sh-icon{--icon-c: inherit;font-size:1.25rem;line-height:1em;width:1em;height:1em;min-width:1em;min-height:1em;max-width:1em;max-height:1em;text-align:left;overflow:hidden;display:inline-block;color:var(--icon-c);transition:color .15s ease-out}sh-icon.primary{--icon-c: var(--primary-8)}sh-icon.accent{--icon-c: var(--accent-8)}sh-icon.warn{--icon-c: var(--warn-8)}sh-icon.error{--icon-c: var(--error-8)}sh-icon.success{--icon-c: var(--success-8)}sh-icon.unfocused{--icon-c: var(--base-8)}sh-icon.large{font-size:2rem}sh-icon.small{font-size:1rem}sh-icon.inherit{font-size:inherit}
|
|
20
20
|
`],encapsulation:2});}}return s})();var k=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],q=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function B(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"info"),Wl());}function F(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"info"),Wl());}function P(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"warning"),Wl());}function Y(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"warning-octagon"),Wl());}function $(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"check-circle"),Wl());}function V(e,l){e&1&&(Zi$1(0,"sh-icon",3),HC(1,"question"),Wl());}function Q(e,l){if(e&1){let t=ET();Zi$1(0,"sh-icon",8),Hg("click",function(){Pd(t);let i=aC();return Ld(i.removeAlert())}),HC(1,"plus"),Wl();}}var ue=(()=>{class e{constructor(){this.color=E1(null),this.variant=E1(null),this.hostClasses=ce$2("alert",{color:this.color,variant:this.variant}),this._el=T$5(eo$1),this.alertService=E1(null),this.id=E1(null);}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id());}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=gw({type:e,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:3,hostBindings:function(n,i){n&2&&(yg("role",i.color()==="warn"||i.color()==="error"?"alert":"status"),xC(i.hostClasses()));},inputs:{color:[1,"color"],variant:[1,"variant"],alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:q,decls:22,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"actions"],[1,"content"],[1,"close-icon",3,"click"]],template:function(n,i){if(n&1&&(lC(k),Zi$1(0,"div",1)(1,"div",2,0),uC(3),uC(4,1),Wl(),Zi$1(5,"div",2),lT(6,B,2,0,"sh-icon",3)(7,F,2,0,"sh-icon",3)(8,P,2,0,"sh-icon",3)(9,Y,2,0,"sh-icon",3)(10,$,2,0,"sh-icon",3)(11,V,2,0,"sh-icon",3),Wl(),Zi$1(12,"div",4),uC(13,2),uC(14,3),Wl(),lT(15,Q,2,0,"sh-icon",5),Zi$1(16,"div",6),uC(17,4),uC(18,5),Wl(),Zi$1(19,"div",7),uC(20,6),uC(21,7),Wl()()),n&2){let c=gC(2);bE(),Yg("display",c.children.length?"block":"none");let d=i.hostClasses();bE(5),uT(d.includes("primary")?6:d.includes("accent")?7:d.includes("warn")?8:d.includes("error")?9:d.includes("success")?10:11),bE(9),uT(i.id()?15:-1);}},dependencies:[N],styles:[`sh-alert{--alert-ad: .4s;--alert-bs: var(--box-shadow-10);--alert-p: .5rem;max-height:18.75rem;padding-top:0;padding-bottom:0;margin-bottom:0;opacity:1;overflow:hidden;display:block;transition:max-height var(--alert-ad) ease-in-out,transform var(--alert-ad) ease-in-out,opacity var(--alert-ad) ease-in-out,margin-bottom var(--alert-ad) ease-in-out,padding-top var(--alert-ad) ease-in-out,padding-bottom var(--alert-ad) ease-in-out;transform:translateY(0);box-shadow:var(--alert-bs)}sh-alert.simple .content>*{color:var(--sheet-c);opacity:.7}sh-alert.flat,sh-alert.raised{--sheet-c: #fff}sh-alert.flat .content>*,sh-alert.raised .content>*{color:var(--sheet-c);opacity:.8}sh-alert .alert{display:grid;grid-template-columns:auto 1fr 1fr;grid-template-rows:auto auto;grid-template-areas:"stateIcon title closeIcon" ". content .";padding:var(--alert-p);align-items:flex-start;gap:.25rem .5rem}sh-alert .alert .close-icon{display:none}sh-alert .alert:has(.actions:empty){grid-template-columns:auto 1fr;grid-template-areas:"stateIcon title" ". content"}sh-alert .alert:has(.actions:empty) .actions{display:none}sh-alert .alert:has(.actions:empty) .close-icon{display:block}sh-alert .alert:has(.content:empty){grid-template-rows:auto;grid-template-areas:"stateIcon title closeIcon"}sh-alert .alert:has(.actions:empty):has(.content:empty){grid-template-columns:auto 1fr;grid-template-areas:"stateIcon title"}sh-alert .actions{grid-area:closeIcon;display:flex;align-items:center;justify-content:flex-end;gap:.25rem}sh-alert .icon{grid-area:stateIcon;height:1.25rem;width:1.25rem;display:flex;align-items:center;justify-content:center}sh-alert .icon:first-of-type:not(:empty)+.icon{display:none}sh-alert [icon],sh-alert .state-icon{color:var(--alert-state-ic)}sh-alert .close-icon{grid-area:closeIcon;color:var(--alert-close-ic);transform:rotate(45deg);transform-origin:center}sh-alert .title{grid-area:title;padding-top:.125rem;font-weight:500}sh-alert .content{grid-area:content}sh-alert .content:empty{display:none}sh-alert.is-hidden{max-height:0;padding-top:0;padding-bottom:0;opacity:0;margin-bottom:0;overflow:hidden;transform:translateY(-40px)}sh-alert.is-hidden:before{opacity:0}sh-alert.animate-in{transition:none;max-height:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0;overflow:hidden;transform:translateY(0)}sh-alert.animate-in:before{opacity:0}sh-alert.animate-out{max-height:0;padding:0;opacity:0;overflow:hidden;transform:translateY(-40px)}sh-alert.animate-out:before{opacity:0}sh-alert:has([content]) .alert{--alert-p: .75rem}
|
|
21
|
-
`],encapsulation:2});}}return e})();var fe=(()=>{class e{constructor(){this.alertHistory=Ge$5([]),this.alertHistoryIsOpen=Ge$5(false),this.alertHistoryIsHidden=Ge$5(true);}error(t){this.addAlert({type:"error",title:t??"An error occured"});}success(t){this.addAlert({type:"success",title:t});}question(t){this.addAlert({type:"question",title:t});}warning(t){this.addAlert({type:"warn",title:t});}info(t){this.addAlert({type:"primary",title:t});}addAlert(t){let n=le$1();this.alertHistory.update(i=>[m$7(l$2({},t),{isOpen:true,animateIn:true,animateOut:false,id:n}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(c=>m$7(l$2({},c),{animateIn:c.id===n?false:c.animateIn})));},40),setTimeout(()=>{this.hideAlert(n);},2500);}removeAlert(t){this.alertHistory.update(n=>n.map(i=>m$7(l$2({},i),{animateOut:i.id===t?false:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(i=>i.id!==t));},300);}hideAlert(t){this.alertHistory.update(n=>n.map(i=>m$7(l$2({},i),{isOpen:i.id===t?false:i.isOpen})));}setHidden(t){this.alertHistoryIsHidden.set(t);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ee$5({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var O=class t{#e=T$5(f$2);#d=T$5(I$2);ngOnInit(){w$3(),this.#d.fetchConfig(),this.#e.clearAllNotCurrentVersion();}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=gw({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Ig(0,"router-outlet");},dependencies:[lr],encapsulation:2})};var Le={production:true,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:6e4};var y=new x$5("ENVIRONMENT");var x=class t{#e=T$5(Z$2);isLoaded=Ge$5(false);webmodules=Ge$5(null);preload(e=false){let o=sy(()=>this.#e.getApiV1Webmodules()).pipe(id(n=>this.webmodules.set(n)),Zu(()=>this.isLoaded.set(true)));if(e)return o;o.subscribe();}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ge=()=>{let t=T$5(D$4);return t.token()?true:t.checkProxyAuthed().pipe(Yu(e=>e?iy(true):t.refreshToken().pipe(pt$2(()=>true))))},Je=()=>{let t=T$5(I$2);T$5(D$2);let o=T$5(ve$5),n=t.relayIsEnabled()?"longpoll":"websocket",i=[o.get(f$1).preload(true),o.get(f$1).preloadFilterGroups(true),o.get(x).preload(true)];return t.configLoaded===null?by(i).pipe(pt$2(()=>n)):t.configLoaded?.pipe(Yu(()=>by(i)))},Ke=()=>true,Ue={path:"connect/:typeParam",loadComponent:()=>import('./chunk-C0XQD9NK.js')},_e=()=>{let t=T$5(f$2);return !t.getItem("locale")&&navigator.language&&t.setItem("locale",navigator.language),true},He=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import('./chunk-CQVPqpMp.js')},{path:"logout",loadComponent:()=>import('./chunk-m8vMm7S6.js')},{path:"",canActivate:[Ge],children:[{path:"",canActivate:[Je,Ke,_e],children:[{path:"welcome",loadComponent:()=>import('./chunk-DYV1Pbu1.js'),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import('./chunk-Bgd5lu61.js')},Ue]},{path:"",loadComponent:()=>import('./chunk-Dbq-qyNL.js'),children:[{path:"",loadComponent:()=>import('./chunk-DFLxy15J.js')},Ue,{path:"destinations",loadComponent:()=>import('./chunk-D5V6OY_2.js')},{path:"add-backup",loadComponent:()=>import('./chunk-BDJqKfxm.js')},{path:"backup/:id/export",loadComponent:()=>import('./chunk-D7UddV5F.js')},{path:"backup/import",loadComponent:()=>import('./chunk-BOKNwzSl.js')},{path:"backup/import-destination",loadComponent:()=>import('./chunk-CxbeRJcJ.js'),loadChildren:()=>import('./chunk-NAAMYA7J.js')},{path:"backup-draft/:id",loadComponent:()=>import('./chunk-DXLQftDm.js'),loadChildren:()=>import('./chunk-DE8p9-HP.js')},{path:"backup/:id",loadComponent:()=>import('./chunk-DXLQftDm.js'),loadChildren:()=>import('./chunk-DE8p9-HP.js')},{path:"backup/:id/log",loadComponent:()=>import('./chunk-CsVpmA6t.js')},{path:"backup/:id/database",loadComponent:()=>import('./chunk-IqMUABbN.js')},{path:"backup/:id/commandline",loadComponent:()=>import('./chunk-DHkdQ4u3.js')},{path:"backup/:id/commandline/:runId",loadComponent:()=>import('./chunk-B_I_9Y7k.js')},{path:"backup/:id/delete",loadComponent:()=>import('./chunk-xD8qjoz4.js')},{path:"backup/:id/delete-versions",loadComponent:()=>import('./chunk-C4Uv1C-T.js')},{path:"backup/:id/purge-files",loadComponent:()=>import('./chunk-xI8Kkqgy.js'),children:[{path:"",pathMatch:"full",redirectTo:"select-files"},{path:"select-files",loadComponent:()=>import('./chunk-_OzpLe0L.js')},{path:"version-scope",loadComponent:()=>import('./chunk-BWSg9cLt.js')}]},{path:"backup/:id/version-labels",loadComponent:()=>import('./chunk-CzsiJ0k-.js')},{path:"backup/:id/broken-files",loadComponent:()=>import('./chunk-DSeMtMg3.js')},{path:"restore",children:[{path:"",loadComponent:()=>import('./chunk-NiMN4Rl6.js')},{path:"from-config",loadComponent:()=>import('./chunk-DB0aGcRM.js')}]},{path:"restore-from-files",loadComponent:()=>import('./chunk-ayE11Iz-.js'),loadChildren:()=>import('./chunk-BSCc2xDv.js')},{path:"restore-draft/:id",loadComponent:()=>import('./chunk-ayE11Iz-.js'),loadChildren:()=>import('./chunk-BSCc2xDv.js')},{path:"restore/:id",loadComponent:()=>import('./chunk-ayE11Iz-.js'),loadChildren:()=>import('./chunk-BSCc2xDv.js')},{path:"status",loadComponent:()=>import('./chunk-ClFp7JLZ.js')},{path:"settings",loadComponent:()=>import('./chunk-W1dL7dqQ.js')},{path:"about",loadComponent:()=>import('./chunk-D6IQFx6m.js'),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-C0KXp4hd.js')},{path:"changelog",loadComponent:()=>import('./chunk-Btvi2S15.js')},{path:"libraries",loadComponent:()=>import('./chunk-Css7wqTG.js')},{path:"system-info",loadComponent:()=>import('./chunk-Cj_yOpND.js')},{path:"server-settings",loadComponent:()=>import('./chunk-DA7rrIf8.js')},{path:"logs",loadChildren:()=>import('./chunk-D4g_OF7M.js')},{path:"crashlogs",loadComponent:()=>import('./chunk-BWvawawS.js')}]}]}]}]}]}];var Pe=(t,e)=>{let o=T$5(D$4),n=T$5(ee$1),i=T$5(f$2),p=T$5(y),m=i.getItem("locale"),a=T$5(fe),b=Zt$1(m),r=N$4()+p.baseUrl,d=t.url===r||t.url.startsWith(`${r}/`),f=t.url===`${r}/v1/auth/login`,u=t.url===`${r}/v1/auth/logout`,C=t.url===`${r}/v1/auth/refresh`,S=t.url===`${r}/v1/progressstate`,E=t.url===`${r}/v1/remoteoperation/test`,We=t.url===`${r}/v1/filesystem/validate`,$e=t.url.startsWith(`${r}/v2/`),H=o.token(),I=t,B=t.headers.has("custom-proxy-check")||H===I$1;if(H&&d&&!B){let c=t.headers.set("Authorization",`Bearer ${H}`);m&&m!=="en-US"&&(c=c.set("X-Ui-Language",b)),I=t.clone({headers:c});}return e(I).pipe(pt$2(c=>{if(c.type===4&&c.status===200&&$e){let v=c.body;if(v?.Success===false)throw {status:200,message:v?.Error??"Unknown error",error:{Error:v?.Error??"Unknown error"},requestBody:v}}return c}),Bs(c=>{let v=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;if(!B){let T=true;if((S&&c.status===404||E||We)&&(T=false),C&&c.status===401&&(T=false,o.logout(),n.navigate(["/logout"])),!f&&!C&&!u&&d&&c.status===401)return T=false,o.refreshToken().pipe(Yu(()=>e(I.clone({headers:I.headers.set("Authorization",`Bearer ${o.token()}`)}))));T&&a.error(v);}return uy(()=>({error:c,message:v}))}))};var L=class t{#e=T$5(Mr);showError(e){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let i=this.#e.createElement("div");i.classList.add("loading-error"),i.textContent=e||"Unknown error";let p=this.#e.createElement("button");p.type="button",p.classList.add("retry-button"),p.textContent="Retry",p.addEventListener("click",()=>{this.#e.defaultView?.location.reload();}),o.append(n,i,p);}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var ze="1.0.0",De=`portal-proxy-client-${x$3()}`,qe=1,U=class t{#e=1e3;#d=T$5(y);#u=T$5(L);#o=Ge$5("disconnected");#h=Ge$5(this.#e);#a=Ge$5(false);#n=Ge$5(false);#p=Ge$5(null);#l=Ge$5(null);#s=false;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#c=[];#r={};#t=null;#f=new TextDecoder("utf-8");#m=null;#y=Qa(()=>{let e=this.#a(),o=this.#h(),n=this.#p(),i=this.#l();if(!n||!i||!e||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n,i);},o);});#i(e){this.#s||(this.#s=true,this.#u.showError(e||"Unable to connect to the server."));}#g(){this.#s||(this.#s=true);}utf8Atob(e){let o=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#f.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o,n){let i=n?.reconnect??false,p=this.wsState();(p==="disconnected"||p==="error"||i)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=false,this.#t=new WebSocket(o),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(true),this.#a.set(false),this.#p.set(null),this.#l.set(null);},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(false),this.#p.set(e),this.#l.set(o),this.#a.set(true);},this.#t.onerror=()=>{this.#o.set("error");},this.#t.onmessage=m=>{let a=JSON.parse(m.data);if(this.wsState()==="connect"){if(a.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${a.type}'`);return}let l={token:e,publicKey:"",clientVersion:ze,protocolVersion:qe},r=this.createResponse(a,"authportal",l);this.#o.set("welcome"),this.#t?.send(r);}else if(this.wsState()==="welcome"){if(a.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${a.type}'`);return}var b=JSON.parse(a.payload??"");if(b.accepted===false){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(true);this.#c.length>0;){let l=this.#c.pop();l&&this.#r[l.messageId]&&this.activateCommand(l);}}else if(this.wsState()==="authenticated"){if(a.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${a.type}'`);return}let l=this.#r[a.messageId];if(l){if(a.errorMessage)this.#i(a.errorMessage),l.reject(a.errorMessage);else {let r=JSON.parse(a.payload??"");r.statusCode>=400?this.#i(r.body||`Initial request failed with status code ${r.statusCode}`):this.#g(),r.body=r?.body==null?null:l.binaryBody?r.body:this.utf8Atob(r.body),l.resolve(r);}delete this.#r[a.messageId],window.clearTimeout(l.timer);}}});}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(false);}createResponse(e,o,n){let i={from:De,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,o,n,i,p,m,a,b=5e3,l=false){return (this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e,n),new Promise((r,d)=>{let f=x$3(),C={from:De,to:o,type:"command",messageId:f,payload:JSON.stringify({method:i,path:p,body:m,headers:a})},S={resolve:r,reject:d,binaryBody:l,timer:window.setTimeout(()=>{let E=this.#r[f];E&&(delete this.#r[f],this.#i("The request timed out before receiving a response."),E.reject("Timeout"));},b)};this.#r[f]=S,this.#n()?this.activateCommand(C):this.#c.push(C);})}activateCommand(e){this.#t?.send(JSON.stringify(e));}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};function Xe(t){if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return console.log("Unexpected body type: ",typeof t),null;let e=typeof t=="string"?t:t==null?null:JSON.stringify(t);if(e===null)return null;let n=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...n))}function Ve(t){let e=atob(t),o=new Uint8Array(e.length);for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);return o}function je(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let i=Xe(e.body),p={};e.headers.keys().forEach(r=>{p[r]=e.headers.get(r)??"";});let m=e.headers.get("timeout"),a=m!==null?parseInt(m):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(a=1e3*99);let b=e.responseType==="blob"||e.responseType==="arraybuffer",l=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,n.machineServerUrl,e.method,e.url,i,p,a,b);return new S$7(r=>{l.then(d=>{let f=new y$3;p!=null&&Object.keys(p).forEach(S=>{f.set(S,p[S]);});let u=d.body;u!=null&&e.responseType==="blob"?u=new Blob([Ve(u)]):u!=null&&e.responseType==="arraybuffer"&&(u=Ve(u).buffer);let C=new S$6({body:u,status:d.statusCode,statusText:"OK",headers:f});r.next(C),r.complete();}).catch(d=>{r.error(new w$4({error:d??"Unknown error",status:0,statusText:d??"Unknown error"}));});})}var Be=(t,e)=>{let o={relayconfigState:T$5(I$2),defaultTimeout:T$5(y).defaultTimeout,relayWebsocket:T$5(U)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new fe$6;return o.relayconfigState.configLoaded.subscribe(p=>{p&&je(o,t,e).subscribe(i);}),i}return je(o,t,e)};var Fe={providers:[fb(),_o(He,jo(),xo(Mo)),Ke$2(Qe$2(),qe$3([Be,Pe])),_e$4(s),f$2,{provide:y,useValue:Le},{provide:eu,useValue:_t$2()},{provide:G$3,useValue:{alertVariant:"simple"}},D$1,D$2,ja,pi$1,m$2,ci$1,m,c]};Le$3(O,Fe);export{lr as $,A$1 as A,w1 as B,Zu as C,D$4 as D,E1 as E,Fg as F,Ge$5 as G,HC as H,I$2 as I,im as J,Kg as K,Ld as L,MD as M,Nt$3 as N,qg as O,Pd as P,Qa as Q,hC as R,lC as S,T$5 as T,ql as U,Eg as V,Wl as W,Gl as X,uC as Y,Zi$1 as Z,_t$1 as _,N as a,x1 as a$,de$2 as a0,pT as a1,hT as a2,XC as a3,fT as a4,m$3 as a5,be$3 as a6,D$1 as a7,To as a8,QC as a9,N$4 as aA,y$3 as aB,b$4 as aC,sm as aD,yg as aE,JC as aF,jo$1 as aG,tb as aH,pt$2 as aI,m$2 as aJ,c as aK,ci$1 as aL,vb as aM,hi$1 as aN,sb as aO,lb as aP,am as aQ,zl as aR,Ql as aS,cb as aT,ub as aU,ay as aV,cy as aW,K$2 as aX,D$2 as aY,x$3 as aZ,ee$5 as a_,Yl as aa,J$3 as ab,I1 as ac,sy as ad,Mr as ae,eo$1 as af,D1 as ag,Yg as ah,fe as ai,m$7 as aj,l$2 as ak,dm as al,GC as am,ai$1 as an,Bg as ao,zC as ap,dT as aq,Tg as ar,Yp as as,Gd as at,h as au,Vg as av,iC as aw,W$1 as ax,De$5 as ay,Yu as az,bE as b,Us as b$,eb as b0,Bs as b1,iy as b2,m as b3,cg as b4,Ae$5 as b5,zu as b6,lg as b7,sT as b8,aT as b9,Cw as bA,_1 as bB,fe$6 as bC,wy as bD,s$1 as bE,Z$4 as bF,N1 as bG,Jo as bH,D$9 as bI,jl as bJ,Zd as bK,vs as bL,ir$1 as bM,B$2 as bN,re$1 as bO,fs as bP,pe$5 as bQ,Wr as bR,ei$1 as bS,wg as bT,dv as bU,Rr as bV,n as bW,oe$3 as bX,ae$3 as bY,e as bZ,gC as b_,Ew as ba,k$4 as bb,ue$3 as bc,ce$2 as bd,sg as be,b$1 as bf,Fi$1 as bg,Jt$2 as bh,Kn as bi,pi$1 as bj,B$1 as bk,zd as bl,oE as bm,N$3 as bn,le$1 as bo,NC as bp,Xr$1 as bq,x$5 as br,yw as bs,hd as bt,so$1 as bu,DD as bv,zv as bw,et$1 as bx,ve$5 as by,Nv as bz,uT as c,Ot$1 as c$,db as c0,Ms as c1,j$6 as c2,ft$2 as c3,go$1 as c4,f$2 as c5,wt$2 as c6,je$3 as c7,Qp as c8,T1 as c9,U$4 as cA,Ce$4 as cB,ye$4 as cC,qt$2 as cD,Ee$4 as cE,Qt$1 as cF,Ze$2 as cG,ne$4 as cH,m$5 as cI,de$5 as cJ,g$2 as cK,nn$1 as cL,j$5 as cM,d$1 as cN,Rt$2 as cO,Zt$2 as cP,Gt$2 as cQ,Kt$1 as cR,Yt$2 as cS,zt$2 as cT,q$4 as cU,Q$6 as cV,Bt$2 as cW,Pt$1 as cX,kt$1 as cY,Ut$1 as cZ,jt$1 as c_,C1 as ca,Wg as cb,HI as cc,BI as cd,Vt as ce,Q$3 as cf,Ty as cg,id as ch,mo$1 as ci,xs as cj,As as ck,S$7 as cl,Sr as cm,nb as cn,Ku as co,uy as cp,Sy as cq,ce$5 as cr,y$6 as cs,tn$1 as ct,en$1 as cu,A$2 as cv,I$4 as cw,pv as cx,Je$4 as cy,Ne$4 as cz,Ig as d,Nt$2 as d0,Fe$5 as d1,M$3 as d2,xt$1 as d3,J$6 as d4,Vt$2 as d5,Or as d6,Tr as d7,f$5 as d8,wi$1 as d9,Ai$1 as da,L$4 as db,k$6 as dc,_$3 as dd,ee$1 as e,f$1 as f,gw as g,aC as h,ET as i,jg as j,k$3 as k,lT as l,me$6 as m,lm as n,oC as o,qC as p,qe$5 as q,rb as r,sC as s,bD as t,ue as u,v$2 as v,Hg as w,xC as x,cm as y,vg as z};
|
|
21
|
+
`],encapsulation:2});}}return e})();var fe=(()=>{class e{constructor(){this.alertHistory=Ge$5([]),this.alertHistoryIsOpen=Ge$5(false),this.alertHistoryIsHidden=Ge$5(true);}error(t){this.addAlert({type:"error",title:t??"An error occured"});}success(t){this.addAlert({type:"success",title:t});}question(t){this.addAlert({type:"question",title:t});}warning(t){this.addAlert({type:"warn",title:t});}info(t){this.addAlert({type:"primary",title:t});}addAlert(t){let n=le$1();this.alertHistory.update(i=>[m$7(l$2({},t),{isOpen:true,animateIn:true,animateOut:false,id:n}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(c=>m$7(l$2({},c),{animateIn:c.id===n?false:c.animateIn})));},40),setTimeout(()=>{this.hideAlert(n);},2500);}removeAlert(t){this.alertHistory.update(n=>n.map(i=>m$7(l$2({},i),{animateOut:i.id===t?false:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(i=>i.id!==t));},300);}hideAlert(t){this.alertHistory.update(n=>n.map(i=>m$7(l$2({},i),{isOpen:i.id===t?false:i.isOpen})));}setHidden(t){this.alertHistoryIsHidden.set(t);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ee$5({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var O=class t{#e=T$5(f$2);#d=T$5(I$2);ngOnInit(){w$3(),this.#d.fetchConfig(),this.#e.clearAllNotCurrentVersion();}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=gw({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Ig(0,"router-outlet");},dependencies:[lr],encapsulation:2})};var Le={production:true,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:6e4};var y=new x$5("ENVIRONMENT");var x=class t{#e=T$5(Z$2);isLoaded=Ge$5(false);webmodules=Ge$5(null);preload(e=false){let o=sy(()=>this.#e.getApiV1Webmodules()).pipe(id(n=>this.webmodules.set(n)),Zu(()=>this.isLoaded.set(true)));if(e)return o;o.subscribe();}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ge=()=>{let t=T$5(D$4);return t.token()?true:t.checkProxyAuthed().pipe(Yu(e=>e?iy(true):t.refreshToken().pipe(pt$2(()=>true))))},Je=()=>{let t=T$5(I$2);T$5(D$2);let o=T$5(ve$5),n=t.relayIsEnabled()?"longpoll":"websocket",i=[o.get(f$1).preload(true),o.get(f$1).preloadFilterGroups(true),o.get(x).preload(true)];return t.configLoaded===null?by(i).pipe(pt$2(()=>n)):t.configLoaded?.pipe(Yu(()=>by(i)))},Ke=()=>true,Ue={path:"connect/:typeParam",loadComponent:()=>import('./chunk-DCP61JTN.js')},_e=()=>{let t=T$5(f$2);return !t.getItem("locale")&&navigator.language&&t.setItem("locale",navigator.language),true},He=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import('./chunk-CYA8bL3v.js')},{path:"logout",loadComponent:()=>import('./chunk-DLYD6dRM.js')},{path:"",canActivate:[Ge],children:[{path:"",canActivate:[Je,Ke,_e],children:[{path:"welcome",loadComponent:()=>import('./chunk-Ci645E9t.js'),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import('./chunk-DgUP0uNQ.js')},Ue]},{path:"",loadComponent:()=>import('./chunk-Bdg6GNH8.js'),children:[{path:"",loadComponent:()=>import('./chunk-COhlvPYj.js')},Ue,{path:"destinations",loadComponent:()=>import('./chunk-Bx7WLGmZ.js')},{path:"add-backup",loadComponent:()=>import('./chunk-C9fglVxt.js')},{path:"backup/:id/export",loadComponent:()=>import('./chunk-CUlaXyK0.js')},{path:"backup/import",loadComponent:()=>import('./chunk-oBjabFaf.js')},{path:"backup/import-destination",loadComponent:()=>import('./chunk-BpG_gjhd.js'),loadChildren:()=>import('./chunk-Bc_wPl6H.js')},{path:"backup-draft/:id",loadComponent:()=>import('./chunk-DyDoCZiX.js'),loadChildren:()=>import('./chunk-DzP0W6ua.js')},{path:"backup/:id",loadComponent:()=>import('./chunk-DyDoCZiX.js'),loadChildren:()=>import('./chunk-DzP0W6ua.js')},{path:"backup/:id/log",loadComponent:()=>import('./chunk-BFsdrFDX.js')},{path:"backup/:id/database",loadComponent:()=>import('./chunk-Djpe9Lo0.js')},{path:"backup/:id/commandline",loadComponent:()=>import('./chunk-zcgLq6FT.js')},{path:"backup/:id/commandline/:runId",loadComponent:()=>import('./chunk-6oGy_iFC.js')},{path:"backup/:id/delete",loadComponent:()=>import('./chunk-0pQRcAhF.js')},{path:"backup/:id/delete-versions",loadComponent:()=>import('./chunk-CqNJ2t71.js')},{path:"backup/:id/purge-files",loadComponent:()=>import('./chunk-CC4z1keD.js'),children:[{path:"",pathMatch:"full",redirectTo:"select-files"},{path:"select-files",loadComponent:()=>import('./chunk-CMLjueVV.js')},{path:"version-scope",loadComponent:()=>import('./chunk-mVyxhVwu.js')}]},{path:"backup/:id/version-labels",loadComponent:()=>import('./chunk-Z-8b6Hyr.js')},{path:"backup/:id/broken-files",loadComponent:()=>import('./chunk-CSPT2xlQ.js')},{path:"restore",children:[{path:"",loadComponent:()=>import('./chunk-BWDCVcaP.js')},{path:"from-config",loadComponent:()=>import('./chunk-BO1Nqy2x.js')}]},{path:"restore-from-files",loadComponent:()=>import('./chunk-DWyjU7VC.js'),loadChildren:()=>import('./chunk-D0owcdvy.js')},{path:"restore-draft/:id",loadComponent:()=>import('./chunk-DWyjU7VC.js'),loadChildren:()=>import('./chunk-D0owcdvy.js')},{path:"restore/:id",loadComponent:()=>import('./chunk-DWyjU7VC.js'),loadChildren:()=>import('./chunk-D0owcdvy.js')},{path:"status",loadComponent:()=>import('./chunk-D72BQ7G7.js')},{path:"settings",loadComponent:()=>import('./chunk-bJwp1ogZ.js')},{path:"about",loadComponent:()=>import('./chunk-C0w3mWOI.js'),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-D39Om4Mk.js')},{path:"changelog",loadComponent:()=>import('./chunk-BZPh4AYw.js')},{path:"libraries",loadComponent:()=>import('./chunk-DxIS2uYj.js')},{path:"system-info",loadComponent:()=>import('./chunk-BxLcE6zQ.js')},{path:"server-settings",loadComponent:()=>import('./chunk-BzRnxKOJ.js')},{path:"logs",loadChildren:()=>import('./chunk-CWCU9i20.js')},{path:"crashlogs",loadComponent:()=>import('./chunk-C1PIQTOq.js')}]}]}]}]}]}];var Pe=(t,e)=>{let o=T$5(D$4),n=T$5(ee$1),i=T$5(f$2),p=T$5(y),m=i.getItem("locale"),a=T$5(fe),b=Zt$1(m),r=N$4()+p.baseUrl,d=t.url===r||t.url.startsWith(`${r}/`),f=t.url===`${r}/v1/auth/login`,u=t.url===`${r}/v1/auth/logout`,C=t.url===`${r}/v1/auth/refresh`,S=t.url===`${r}/v1/progressstate`,E=t.url===`${r}/v1/remoteoperation/test`,We=t.url===`${r}/v1/filesystem/validate`,$e=t.url.startsWith(`${r}/v2/`),H=o.token(),I=t,B=t.headers.has("custom-proxy-check")||H===I$1;if(H&&d&&!B){let c=t.headers.set("Authorization",`Bearer ${H}`);m&&m!=="en-US"&&(c=c.set("X-Ui-Language",b)),I=t.clone({headers:c});}return e(I).pipe(pt$2(c=>{if(c.type===4&&c.status===200&&$e){let v=c.body;if(v?.Success===false)throw {status:200,message:v?.Error??"Unknown error",error:{Error:v?.Error??"Unknown error"},requestBody:v}}return c}),Bs(c=>{let v=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;if(!B){let T=true;if((S&&c.status===404||E||We)&&(T=false),C&&c.status===401&&(T=false,o.logout(),n.navigate(["/logout"])),!f&&!C&&!u&&d&&c.status===401)return T=false,o.refreshToken().pipe(Yu(()=>e(I.clone({headers:I.headers.set("Authorization",`Bearer ${o.token()}`)}))));T&&a.error(v);}return uy(()=>({error:c,message:v}))}))};var L=class t{#e=T$5(Mr);showError(e){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let i=this.#e.createElement("div");i.classList.add("loading-error"),i.textContent=e||"Unknown error";let p=this.#e.createElement("button");p.type="button",p.classList.add("retry-button"),p.textContent="Retry",p.addEventListener("click",()=>{this.#e.defaultView?.location.reload();}),o.append(n,i,p);}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var ze="1.0.0",De=`portal-proxy-client-${x$3()}`,qe=1,U=class t{#e=1e3;#d=T$5(y);#u=T$5(L);#o=Ge$5("disconnected");#h=Ge$5(this.#e);#a=Ge$5(false);#n=Ge$5(false);#p=Ge$5(null);#l=Ge$5(null);#s=false;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#c=[];#r={};#t=null;#f=new TextDecoder("utf-8");#m=null;#y=Qa(()=>{let e=this.#a(),o=this.#h(),n=this.#p(),i=this.#l();if(!n||!i||!e||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n,i);},o);});#i(e){this.#s||(this.#s=true,this.#u.showError(e||"Unable to connect to the server."));}#g(){this.#s||(this.#s=true);}utf8Atob(e){let o=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#f.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o,n){let i=n?.reconnect??false,p=this.wsState();(p==="disconnected"||p==="error"||i)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=false,this.#t=new WebSocket(o),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(true),this.#a.set(false),this.#p.set(null),this.#l.set(null);},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(false),this.#p.set(e),this.#l.set(o),this.#a.set(true);},this.#t.onerror=()=>{this.#o.set("error");},this.#t.onmessage=m=>{let a=JSON.parse(m.data);if(this.wsState()==="connect"){if(a.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${a.type}'`);return}let l={token:e,publicKey:"",clientVersion:ze,protocolVersion:qe},r=this.createResponse(a,"authportal",l);this.#o.set("welcome"),this.#t?.send(r);}else if(this.wsState()==="welcome"){if(a.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${a.type}'`);return}var b=JSON.parse(a.payload??"");if(b.accepted===false){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(true);this.#c.length>0;){let l=this.#c.pop();l&&this.#r[l.messageId]&&this.activateCommand(l);}}else if(this.wsState()==="authenticated"){if(a.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${a.type}'`);return}let l=this.#r[a.messageId];if(l){if(a.errorMessage)this.#i(a.errorMessage),l.reject(a.errorMessage);else {let r=JSON.parse(a.payload??"");r.statusCode>=400?this.#i(r.body||`Initial request failed with status code ${r.statusCode}`):this.#g(),r.body=r?.body==null?null:l.binaryBody?r.body:this.utf8Atob(r.body),l.resolve(r);}delete this.#r[a.messageId],window.clearTimeout(l.timer);}}});}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(false);}createResponse(e,o,n){let i={from:De,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,o,n,i,p,m,a,b=5e3,l=false){return (this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e,n),new Promise((r,d)=>{let f=x$3(),C={from:De,to:o,type:"command",messageId:f,payload:JSON.stringify({method:i,path:p,body:m,headers:a})},S={resolve:r,reject:d,binaryBody:l,timer:window.setTimeout(()=>{let E=this.#r[f];E&&(delete this.#r[f],this.#i("The request timed out before receiving a response."),E.reject("Timeout"));},b)};this.#r[f]=S,this.#n()?this.activateCommand(C):this.#c.push(C);})}activateCommand(e){this.#t?.send(JSON.stringify(e));}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};function Xe(t){if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return console.log("Unexpected body type: ",typeof t),null;let e=typeof t=="string"?t:t==null?null:JSON.stringify(t);if(e===null)return null;let n=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...n))}function Ve(t){let e=atob(t),o=new Uint8Array(e.length);for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);return o}function je(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let i=Xe(e.body),p={};e.headers.keys().forEach(r=>{p[r]=e.headers.get(r)??"";});let m=e.headers.get("timeout"),a=m!==null?parseInt(m):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(a=1e3*99);let b=e.responseType==="blob"||e.responseType==="arraybuffer",l=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,n.machineServerUrl,e.method,e.url,i,p,a,b);return new S$7(r=>{l.then(d=>{let f=new y$3;p!=null&&Object.keys(p).forEach(S=>{f.set(S,p[S]);});let u=d.body;u!=null&&e.responseType==="blob"?u=new Blob([Ve(u)]):u!=null&&e.responseType==="arraybuffer"&&(u=Ve(u).buffer);let C=new S$6({body:u,status:d.statusCode,statusText:"OK",headers:f});r.next(C),r.complete();}).catch(d=>{r.error(new w$4({error:d??"Unknown error",status:0,statusText:d??"Unknown error"}));});})}var Be=(t,e)=>{let o={relayconfigState:T$5(I$2),defaultTimeout:T$5(y).defaultTimeout,relayWebsocket:T$5(U)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new fe$6;return o.relayconfigState.configLoaded.subscribe(p=>{p&&je(o,t,e).subscribe(i);}),i}return je(o,t,e)};var Fe={providers:[fb(),_o(He,jo(),xo(Mo)),Ke$2(Qe$2(),qe$3([Be,Pe])),_e$4(s),f$2,{provide:y,useValue:Le},{provide:eu,useValue:_t$2()},{provide:G$3,useValue:{alertVariant:"simple"}},D$1,D$2,ja,pi$1,m$2,ci$1,m,c]};Le$3(O,Fe);export{lr as $,A$1 as A,w1 as B,Zu as C,D$4 as D,E1 as E,Fg as F,Ge$5 as G,HC as H,I$2 as I,im as J,Kg as K,Ld as L,MD as M,Nt$3 as N,qg as O,Pd as P,Qa as Q,hC as R,lC as S,T$5 as T,ql as U,Eg as V,Wl as W,Gl as X,uC as Y,Zi$1 as Z,_t$1 as _,N as a,x1 as a$,de$2 as a0,pT as a1,hT as a2,XC as a3,fT as a4,m$3 as a5,be$3 as a6,D$1 as a7,To as a8,QC as a9,N$4 as aA,y$3 as aB,b$4 as aC,sm as aD,yg as aE,JC as aF,jo$1 as aG,tb as aH,pt$2 as aI,m$2 as aJ,c as aK,ci$1 as aL,vb as aM,hi$1 as aN,sb as aO,lb as aP,am as aQ,zl as aR,Ql as aS,cb as aT,ub as aU,ay as aV,cy as aW,K$2 as aX,D$2 as aY,x$3 as aZ,ee$5 as a_,Yl as aa,J$3 as ab,I1 as ac,sy as ad,Mr as ae,eo$1 as af,D1 as ag,Yg as ah,fe as ai,m$7 as aj,l$2 as ak,dm as al,GC as am,ai$1 as an,Bg as ao,zC as ap,dT as aq,Tg as ar,Yp as as,Gd as at,h as au,Vg as av,iC as aw,W$1 as ax,De$5 as ay,Yu as az,bE as b,Us as b$,eb as b0,Bs as b1,iy as b2,m as b3,cg as b4,Ae$5 as b5,zu as b6,lg as b7,sT as b8,aT as b9,Cw as bA,_1 as bB,fe$6 as bC,wy as bD,s$1 as bE,Z$4 as bF,N1 as bG,Jo as bH,D$9 as bI,jl as bJ,Zd as bK,vs as bL,ir$1 as bM,B$2 as bN,re$1 as bO,fs as bP,pe$5 as bQ,Wr as bR,ei$1 as bS,wg as bT,dv as bU,Rr as bV,n as bW,oe$3 as bX,ae$3 as bY,e as bZ,gC as b_,Ew as ba,k$4 as bb,ue$3 as bc,ce$2 as bd,sg as be,b$1 as bf,Fi$1 as bg,Jt$2 as bh,Kn as bi,pi$1 as bj,B$1 as bk,zd as bl,oE as bm,N$3 as bn,le$1 as bo,NC as bp,Xr$1 as bq,x$5 as br,yw as bs,hd as bt,so$1 as bu,DD as bv,zv as bw,et$1 as bx,ve$5 as by,Nv as bz,uT as c,Ot$1 as c$,db as c0,Ms as c1,j$6 as c2,ft$2 as c3,go$1 as c4,f$2 as c5,wt$2 as c6,je$3 as c7,Qp as c8,T1 as c9,U$4 as cA,Ce$4 as cB,ye$4 as cC,qt$2 as cD,Ee$4 as cE,Qt$1 as cF,Ze$2 as cG,ne$4 as cH,m$5 as cI,de$5 as cJ,g$2 as cK,nn$1 as cL,j$5 as cM,d$1 as cN,Rt$2 as cO,Zt$2 as cP,Gt$2 as cQ,Kt$1 as cR,Yt$2 as cS,zt$2 as cT,q$4 as cU,Q$6 as cV,Bt$2 as cW,Pt$1 as cX,kt$1 as cY,Ut$1 as cZ,jt$1 as c_,C1 as ca,Wg as cb,HI as cc,BI as cd,Vt as ce,Q$3 as cf,Ty as cg,id as ch,mo$1 as ci,xs as cj,As as ck,S$7 as cl,Sr as cm,nb as cn,Ku as co,uy as cp,Sy as cq,ce$5 as cr,y$6 as cs,tn$1 as ct,en$1 as cu,A$2 as cv,I$4 as cw,pv as cx,Je$4 as cy,Ne$4 as cz,Ig as d,Nt$2 as d0,Fe$5 as d1,M$3 as d2,xt$1 as d3,J$6 as d4,Vt$2 as d5,Or as d6,Tr as d7,f$5 as d8,wi$1 as d9,Ai$1 as da,L$4 as db,k$6 as dc,_$3 as dd,ee$1 as e,f$1 as f,gw as g,aC as h,ET as i,jg as j,k$3 as k,lT as l,me$6 as m,lm as n,oC as o,qC as p,qe$5 as q,rb as r,sC as s,bD as t,ue as u,v$2 as v,Hg as w,xC as x,cm as y,vg as z};
|
package/package.json
CHANGED
package/chunk-BSCc2xDv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-DaXXLSfy.js')},{path:"encryption",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.c})},{path:"select-files",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.a})},{path:"options",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.b})},{path:":taskid/progress",loadComponent:()=>import('./chunk-B891gwjc.js')}],t=o;export{t as default};
|
package/chunk-D4g_OF7M.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=[{path:"",loadComponent:()=>import('./chunk-OQ_HQ9EL.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-CdzKkYEw.js')},{path:"live",loadComponent:()=>import('./chunk-CLlZiOaO.js')}]}],t=o;export{t as default};
|