From 3bb0a1dd58467523bba9800e21b646250381e050 Mon Sep 17 00:00:00 2001 From: joanise Date: Fri, 18 Oct 2024 19:31:00 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20preview=20for=20PR=20356=20?= =?UTF-8?q?=F0=9F=9B=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pr-preview/pr-356/es/index.html | 2 +- .../es/{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} | 2 +- pr-preview/pr-356/fr/index.html | 2 +- .../fr/{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} | 2 +- pr-preview/pr-356/index.html | 2 +- .../{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename pr-preview/pr-356/es/{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} (99%) rename pr-preview/pr-356/fr/{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} (99%) rename pr-preview/pr-356/{main.7a80440daa88bc6f.js => main.2f2955592467ea9f.js} (99%) diff --git a/pr-preview/pr-356/es/index.html b/pr-preview/pr-356/es/index.html index 2785a541..a5a78d8a 100644 --- a/pr-preview/pr-356/es/index.html +++ b/pr-preview/pr-356/es/index.html @@ -50,5 +50,5 @@ - + diff --git a/pr-preview/pr-356/es/main.7a80440daa88bc6f.js b/pr-preview/pr-356/es/main.2f2955592467ea9f.js similarity index 99% rename from pr-preview/pr-356/es/main.7a80440daa88bc6f.js rename to pr-preview/pr-356/es/main.2f2955592467ea9f.js index 0622c344..11125ec1 100644 --- a/pr-preview/pr-356/es/main.7a80440daa88bc6f.js +++ b/pr-preview/pr-356/es/main.2f2955592467ea9f.js @@ -1,6 +1,6 @@ globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"es"}); "use strict";(function(global,_global$ng,_global$ng2,_global$ng2$common,_global$ng$common,_global$ng$common$loc){(_global$ng=global.ng)!==null&&_global$ng!==void 0?_global$ng:global.ng={};(_global$ng2$common=(_global$ng2=global.ng).common)!==null&&_global$ng2$common!==void 0?_global$ng2$common:_global$ng2.common={};(_global$ng$common$loc=(_global$ng$common=global.ng.common).locales)!==null&&_global$ng$common$loc!==void 0?_global$ng$common$loc:_global$ng$common.locales={};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(n===1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["es"]=["es",[["a.\xA0m.","p.\xA0m."],u,u],u,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"],["DO","LU","MA","MI","JU","VI","SA"]],u,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","despu\xE9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",u,u,u],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"\u0440."],"CAD":[u,"$"],"CNY":[u,"\xA5"],"EGP":[],"ESP":["\u20A7"],"GBP":[u,"\xA3"],"HKD":[u,"$"],"ILS":[u,"\u20AA"],"INR":[u,"\u20B9"],"JPY":[u,"\xA5"],"KRW":[u,"\u20A9"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"\u20B1"],"RON":[u,"L"],"THB":["\u0E3F"],"TWD":[u,"NT$"],"USD":["US$","$"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr",plural,[[["del mediod\xEDa","de la madrugada","de la ma\xF1ana","de la tarde","de la noche"],u,u],[["mediod\xEDa","madrugada","ma\xF1ana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]]})(globalThis);; -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,I)=>{var y={"./read-along.entry.js":[9154,154]};function z(E){if(!I.o(y,E))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+E+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[E],k=v[0];return I.e(v[1]).then(()=>I(k))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},3442:(C,de,I)=>{"use strict";I.d(de,{b:()=>ti,g:()=>B,h:()=>K,r:()=>os});var y=I(5861);let E,v,k=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",P={},U=ne=>"object"==(ne=typeof ne)||"function"===ne;function X(ne){var N,Ie,Ee;return null!==(Ee=null===(Ie=null===(N=ne.head)||void 0===N?void 0:N.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const K=(ne,N,...Ie)=>{let Ee=null,Ve=null,it=!1,qe=!1;const ot=[],bt=wt=>{for(let Ot=0;Otwt[Ot]).join(" "))}}if("function"==typeof ne)return ne(null===N?{}:N,ot,se);const vt=q(ne,null);return vt.$attrs$=N,ot.length>0&&(vt.$children$=ot),vt.$key$=Ve,vt},q=(ne,N)=>({$flags$:0,$tag$:ne,$text$:N,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},se={forEach:(ne,N)=>ne.map(Q).forEach(N),map:(ne,N)=>ne.map(Q).map(N).map(le)},Q=ne=>({vattrs:ne.$attrs$,vchildren:ne.$children$,vkey:ne.$key$,vname:ne.$name$,vtag:ne.$tag$,vtext:ne.$text$}),le=ne=>{if("function"==typeof ne.vtag){const Ie=Object.assign({},ne.vattrs);return ne.vkey&&(Ie.key=ne.vkey),ne.vname&&(Ie.name=ne.vname),K(ne.vtag,Ie,...ne.vchildren||[])}const N=q(ne.vtag,ne.vtext);return N.$attrs$=ne.vattrs,N.$children$=ne.vchildren,N.$key$=ne.vkey,N.$name$=ne.vname,N},B=ne=>fr(ne).$hostElement$,f=new WeakMap,D=(ne,N)=>"sc-"+ne.$tagName$,R=(ne,N,Ie,Ee,Ve,it)=>{if(Ie!==Ee){let qe=kr(ne,N),ot=N.toLowerCase();if("class"===N){const bt=ne.classList,vt=A(Ie),wt=A(Ee);bt.remove(...vt.filter(Ot=>Ot&&!wt.includes(Ot))),bt.add(...wt.filter(Ot=>Ot&&!vt.includes(Ot)))}else if("style"===N){for(const bt in Ie)(!Ee||null==Ee[bt])&&(bt.includes("-")?ne.style.removeProperty(bt):ne.style[bt]="");for(const bt in Ee)(!Ie||Ee[bt]!==Ie[bt])&&(bt.includes("-")?ne.style.setProperty(bt,Ee[bt]):ne.style[bt]=Ee[bt])}else if("key"!==N)if("ref"===N)Ee&&Ee(ne);else if(qe||"o"!==N[0]||"n"!==N[1]){const bt=U(Ee);if((qe||bt&&null!==Ee)&&!Ve)try{if(ne.tagName.includes("-"))ne[N]=Ee;else{const wt=Ee??"";"list"===N?qe=!1:(null==Ie||ne[N]!=wt)&&(ne[N]=wt)}}catch{}let vt=!1;ot!==(ot=ot.replace(/^xlink\:?/,""))&&(N=ot,vt=!0),null==Ee||!1===Ee?(!1!==Ee||""===ne.getAttribute(N))&&(vt?ne.removeAttributeNS(x,N):ne.removeAttribute(N)):(!qe||4&it||Ve)&&!bt&&(Ee=!0===Ee?"":Ee,vt?ne.setAttributeNS(x,N,Ee):ne.setAttribute(N,Ee))}else if(N="-"===N[2]?N.slice(3):kr(rs,ot)?ot.slice(2):ot[2]+N.slice(3),Ie||Ee){const bt=N.endsWith(_);N=N.replace(he,""),Ie&&yi.rel(ne,N,Ie,bt),Ee&&yi.ael(ne,N,Ee,bt)}}},Z=/\s/,A=ne=>ne?ne.split(Z):[],_="Capture",he=new RegExp(_+"$"),ue=(ne,N,Ie,Ee)=>{const Ve=11===N.$elm$.nodeType&&N.$elm$.host?N.$elm$.host:N.$elm$,it=ne&&ne.$attrs$||P,qe=N.$attrs$||P;for(Ee of De(Object.keys(it)))Ee in qe||R(Ve,Ee,it[Ee],void 0,Ie,N.$flags$);for(Ee of De(Object.keys(qe)))R(Ve,Ee,it[Ee],qe[Ee],Ie,N.$flags$)};function De(ne){return ne.includes("ref")?[...ne.filter(N=>"ref"!==N),"ref"]:ne}const Qe=(ne,N,Ie,Ee)=>{const Ve=N.$children$[Ie];let qe,ot,it=0;if(null!==Ve.$text$)qe=Ve.$elm$=Zo.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Zo.createElement(Ve.$tag$),ue(null,Ve,!1),(ne=>null!=ne)(E)&&qe["s-si"]!==E&&qe.classList.add(qe["s-si"]=E),Ve.$children$)for(it=0;it{let ot,qe=ne;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=it;++Ve)Ee[Ve]&&(ot=Qe(null,Ie,Ve),ot&&(Ee[Ve].$elm$=ot,qe.insertBefore(ot,N)))},Ce=(ne,N,Ie)=>{for(let Ee=N;Ee<=Ie;++Ee){const Ve=ne[Ee];if(Ve){const it=Ve.$elm$;Et(Ve),it&&it.remove()}}},at=(ne,N,Ie=!1)=>ne.$tag$===N.$tag$&&(!!Ie||ne.$key$===N.$key$),ut=(ne,N,Ie=!1)=>{const Ee=N.$elm$=ne.$elm$,Ve=ne.$children$,it=N.$children$,ot=N.$text$;null===ot?("slot"===N.$tag$&&!k||ue(ne,N,!1),null!==Ve&&null!==it?((ne,N,Ie,Ee,Ve=!1)=>{let Vi,nn,it=0,qe=0,ot=0,bt=0,vt=N.length-1,wt=N[0],Ot=N[vt],fi=Ee.length-1,Gn=Ee[0],Yn=Ee[fi];for(;it<=vt&&qe<=fi;)if(null==wt)wt=N[++it];else if(null==Ot)Ot=N[--vt];else if(null==Gn)Gn=Ee[++qe];else if(null==Yn)Yn=Ee[--fi];else if(at(wt,Gn,Ve))ut(wt,Gn,Ve),wt=N[++it],Gn=Ee[++qe];else if(at(Ot,Yn,Ve))ut(Ot,Yn,Ve),Ot=N[--vt],Yn=Ee[--fi];else if(at(wt,Yn,Ve))ut(wt,Yn,Ve),ne.insertBefore(wt.$elm$,Ot.$elm$.nextSibling),wt=N[++it],Yn=Ee[--fi];else if(at(Ot,Gn,Ve))ut(Ot,Gn,Ve),ne.insertBefore(Ot.$elm$,wt.$elm$),Ot=N[--vt],Gn=Ee[++qe];else{for(ot=-1,bt=it;bt<=vt;++bt)if(N[bt]&&null!==N[bt].$key$&&N[bt].$key$===Gn.$key$){ot=bt;break}ot>=0?(nn=N[ot],nn.$tag$!==Gn.$tag$?Vi=Qe(N&&N[qe],Ie,ot):(ut(nn,Gn,Ve),N[ot]=void 0,Vi=nn.$elm$),Gn=Ee[++qe]):(Vi=Qe(N&&N[qe],Ie,qe),Gn=Ee[++qe]),Vi&&wt.$elm$.parentNode.insertBefore(Vi,wt.$elm$)}it>vt?yt(ne,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(N,it,vt)})(Ee,Ve,N,it,Ie):null!==it?(null!==ne.$text$&&(Ee.textContent=""),yt(Ee,null,N,it,0,it.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):ne.$text$!==ot&&(Ee.data=ot)},Et=ne=>{ne.$attrs$&&ne.$attrs$.ref&&ne.$attrs$.ref(null),ne.$children$&&ne.$children$.map(Et)},w=(ne,N)=>{N&&!ne.$onRenderResolve$&&N["s-p"]&&N["s-p"].push(new Promise(Ie=>ne.$onRenderResolve$=Ie))},Ae=(ne,N)=>{if(ne.$flags$|=16,!(4&ne.$flags$))return w(ne,ne.$ancestorComponent$),bx(()=>ke(ne,N));ne.$flags$|=512},ke=(ne,N)=>{const Ee=ne.$lazyInstance$;let Ve;return N&&(ne.$flags$|=256,ne.$queuedListeners$&&(ne.$queuedListeners$.map(([it,qe])=>Ue(Ee,it,qe)),ne.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),ae(Ve,()=>me(ne,Ee,N))},ae=(ne,N)=>te(ne)?ne.then(N):N(),te=ne=>ne instanceof Promise||ne&&ne.then&&"function"==typeof ne.then,me=function(){var ne=(0,y.Z)(function*(N,Ie,Ee){var Ve;const it=N.$hostElement$,ot=it["s-rc"];Ee&&(ne=>{const N=ne.$cmpMeta$,Ie=ne.$hostElement$,Ee=N.$flags$,it=((ne,N,Ie)=>{var Ee;const Ve=D(N),it=_n.get(Ve);if(ne=11===ne.nodeType?ne:Zo,it)if("string"==typeof it){let ot,qe=f.get(ne=ne.head||ne);if(qe||f.set(ne,qe=new Set),!qe.has(Ve)){{ot=Zo.createElement("style"),ot.innerHTML=it;const bt=null!==(Ee=yi.$nonce$)&&void 0!==Ee?Ee:X(Zo);null!=bt&&ot.setAttribute("nonce",bt),ne.insertBefore(ot,ne.querySelector("link"))}4&N.$flags$&&(ot.innerHTML+=V),qe&&qe.add(Ve)}}else ne.adoptedStyleSheets.includes(it)||(ne.adoptedStyleSheets=[...ne.adoptedStyleSheets,it]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),N);10&Ee&&(Ie["s-sc"]=it,Ie.classList.add(it+"-h"))})(N);ze(N,Ie,it,Ee),ot&&(ot.map(vt=>vt()),it["s-rc"]=void 0);{const vt=null!==(Ve=it["s-p"])&&void 0!==Ve?Ve:[],wt=()=>Ge(N);0===vt.length?wt():(Promise.all(vt).then(wt),N.$flags$|=4,vt.length=0)}});return function(Ie,Ee,Ve){return ne.apply(this,arguments)}}(),ze=(ne,N,Ie,Ee)=>{try{N=N.render(),ne.$flags$&=-17,ne.$flags$|=2,((ne,N,Ie=!1)=>{const Ee=ne.$hostElement$,Ve=ne.$cmpMeta$,it=ne.$vnode$||q(null,null),qe=(ne=>ne&&ne.$tag$===J)(N)?N:K(null,null,N);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([ot,bt])=>qe.$attrs$[bt]=Ee[ot])),Ie&&qe.$attrs$)for(const ot of Object.keys(qe.$attrs$))Ee.hasAttribute(ot)&&!["key","ref","style","class"].includes(ot)&&(qe.$attrs$[ot]=Ee[ot]);qe.$tag$=null,qe.$flags$|=4,ne.$vnode$=qe,qe.$elm$=it.$elm$=Ee.shadowRoot||Ee,E=Ee["s-sc"],k=0!=(1&Ve.$flags$),ut(it,qe,Ie)})(ne,N,Ee)}catch(Ve){$i(Ve,ne.$hostElement$)}return null},Ge=ne=>{const Ie=ne.$hostElement$,Ve=ne.$lazyInstance$,it=ne.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&ne.$flags$?Ue(Ve,"componentDidUpdate"):(ne.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),ne.$onReadyResolve$(Ie),it||Te()),ne.$onInstanceResolve$(Ie),ne.$onRenderResolve$&&(ne.$onRenderResolve$(),ne.$onRenderResolve$=void 0),512&ne.$flags$&&Nt(()=>Ae(ne,!1)),ne.$flags$&=-517},Te=ne=>{pt(Zo.documentElement),Nt(()=>((ne,N,Ie)=>{const Ee=yi.ce("appload",{detail:{namespace:"web-component"}});return ne.dispatchEvent(Ee),Ee})(rs))},Ue=(ne,N,Ie)=>{if(ne&&ne[N])try{return ne[N](Ie)}catch(Ee){$i(Ee)}},pt=ne=>ne.classList.add("hydrated"),Dn=(ne,N,Ie)=>{var Ee;const Ve=ne.prototype;if(N.$members$){ne.watchers&&(N.$watchers$=ne.watchers);const it=Object.entries(N.$members$);if(it.map(([qe,[ot]])=>{31&ot||2&Ie&&32&ot?Object.defineProperty(Ve,qe,{get(){return((ne,N)=>fr(this).$instanceValues$.get(N))(0,qe)},set(bt){((ne,N,Ie,Ee)=>{const Ve=fr(ne),it=Ve.$hostElement$,qe=Ve.$instanceValues$.get(N),ot=Ve.$flags$,bt=Ve.$lazyInstance$;Ie=((ne,N)=>null==ne||U(ne)?ne:4&N?"false"!==ne&&(""===ne||!!ne):2&N?parseFloat(ne):1&N?String(ne):ne)(Ie,Ee.$members$[N][0]);const vt=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&ot)||void 0===qe)&&Ie!==qe&&!vt&&(Ve.$instanceValues$.set(N,Ie),bt)){if(Ee.$watchers$&&128&ot){const Ot=Ee.$watchers$[N];Ot&&Ot.map(fi=>{try{bt[fi](Ie,qe,N)}catch(Gn){$i(Gn,it)}})}2==(18&ot)&&Ae(Ve,!1)}})(this,qe,bt,N)},configurable:!0,enumerable:!0}):1&Ie&&64&ot&&Object.defineProperty(Ve,qe,{value(...bt){var vt;const wt=fr(this);return null===(vt=wt?.$onInstancePromise$)||void 0===vt?void 0:vt.then(()=>{var Ot;return null===(Ot=wt.$lazyInstance$)||void 0===Ot?void 0:Ot[qe](...bt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(ot,bt,vt){yi.jmp(()=>{var wt;const Ot=qe.get(ot);if(this.hasOwnProperty(Ot))vt=this[Ot],delete this[Ot];else{if(Ve.hasOwnProperty(Ot)&&"number"==typeof this[Ot]&&this[Ot]==vt)return;if(null==Ot){const fi=fr(this),Gn=fi?.$flags$;if(Gn&&!(8&Gn)&&128&Gn&&vt!==bt){const Yn=fi.$lazyInstance$,Vi=null===(wt=N.$watchers$)||void 0===wt?void 0:wt[ot];Vi?.forEach(nn=>{null!=Yn[nn]&&Yn[nn].call(Yn,vt,bt,ot)})}return}}this[Ot]=(null!==vt||"boolean"!=typeof this[Ot])&&vt})},ne.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=N.$watchers$)&&void 0!==Ee?Ee:{}),...it.filter(([ot,bt])=>15&bt[0]).map(([ot,bt])=>{var vt;const wt=bt[1]||ot;return qe.set(wt,ot),512&bt[0]&&(null===(vt=N.$attrsToReflect$)||void 0===vt||vt.push([ot,wt])),wt})]))}}return ne},hn=function(){var ne=(0,y.Z)(function*(N,Ie,Ee,Ve){let it;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(it=Nf(Ee),it.then){const wt=()=>{};it=yield it,wt()}it.isProxied||(Ee.$watchers$=it.watchers,Dn(it,Ee,2),it.isProxied=!0);const vt=()=>{};Ie.$flags$|=8;try{new it(Ie)}catch(wt){$i(wt)}Ie.$flags$&=-9,Ie.$flags$|=128,vt()}else it=N.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(it.style){let vt=it.style;const wt=D(Ee);if(!_n.has(wt)){const Ot=()=>{};((ne,N,Ie)=>{let Ee=_n.get(ne);Ff&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=N:Ee.replaceSync(N)):Ee=N,_n.set(ne,Ee)})(wt,vt,!!(1&Ee.$flags$)),Ot()}}}const qe=Ie.$ancestorComponent$,ot=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(ot):ot()});return function(Ie,Ee,Ve,it){return ne.apply(this,arguments)}}(),bi=ne=>{Ue(ne,"disconnectedCallback")},hr=function(){var ne=(0,y.Z)(function*(N){if(!(1&yi.$flags$)){const Ie=fr(N);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?bi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>bi(Ie.$lazyInstance$))}});return function(Ie){return ne.apply(this,arguments)}}(),ti=(ne,N={})=>{var Ie;const Ve=[],it=N.exclude||[],qe=rs.customElements,ot=Zo.head,bt=ot.querySelector("meta[charset]"),vt=Zo.createElement("style"),wt=[];let Ot,fi=!0;Object.assign(yi,N),yi.$resourcesUrl$=new URL(N.resourcesUrl||"./",Zo.baseURI).href;let Gn=!1;if(ne.map(Yn=>{Yn[1].map(Vi=>{var nn;const Ir={$flags$:Vi[0],$tagName$:Vi[1],$members$:Vi[2],$listeners$:Vi[3]};4&Ir.$flags$&&(Gn=!0),Ir.$members$=Vi[2],Ir.$listeners$=Vi[3],Ir.$attrsToReflect$=[],Ir.$watchers$=null!==(nn=Vi[4])&&void 0!==nn?nn:{};const Ju=Ir.$tagName$,En=class extends HTMLElement{constructor(nc){super(nc),Aa(nc=this,Ir),1&Ir.$flags$&&nc.attachShadow({mode:"open"})}connectedCallback(){Ot&&(clearTimeout(Ot),Ot=null),fi?wt.push(this):yi.jmp(()=>(ne=>{if(!(1&yi.$flags$)){const N=fr(ne),Ie=N.$cmpMeta$,Ee=()=>{};if(1&N.$flags$)Ar(ne,N,Ie.$listeners$),N?.$lazyInstance$||N?.$onReadyPromise$&&N.$onReadyPromise$.then(()=>{});else{N.$flags$|=1;{let Ve=ne;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(N,N.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[it]])=>{if(31&it&&ne.hasOwnProperty(Ve)){const qe=ne[Ve];delete ne[Ve],ne[Ve]=qe}}),hn(ne,N,Ie)}Ee()}})(this))}disconnectedCallback(){yi.jmp(()=>hr(this))}componentOnReady(){return fr(this).$onReadyPromise$}};Ir.$lazyBundleId$=Yn[0],!it.includes(Ju)&&!qe.get(Ju)&&(Ve.push(Ju),qe.define(Ju,Dn(En,Ir,1)))})}),Ve.length>0&&(Gn&&(vt.textContent+=V),vt.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",vt.innerHTML.length)){vt.setAttribute("data-styles","");const Yn=null!==(Ie=yi.$nonce$)&&void 0!==Ie?Ie:X(Zo);null!=Yn&&vt.setAttribute("nonce",Yn),ot.insertBefore(vt,bt?bt.nextSibling:ot.firstChild)}fi=!1,wt.length?wt.map(Yn=>Yn.connectedCallback()):yi.jmp(()=>Ot=setTimeout(Te,30))},Ar=(ne,N,Ie,Ee)=>{Ie&&Ie.map(([Ve,it,qe])=>{const ot=_o(ne,Ve),bt=Js(N,qe),vt=tc(Ve);yi.ael(ot,it,bt,vt),(N.$rmListeners$=N.$rmListeners$||[]).push(()=>yi.rel(ot,it,bt,vt))})},Js=(ne,N)=>Ie=>{try{256&ne.$flags$?ne.$lazyInstance$[N](Ie):(ne.$queuedListeners$=ne.$queuedListeners$||[]).push([N,Ie])}catch(Ee){$i(Ee)}},_o=(ne,N)=>8&N?rs:ne,tc=ne=>Wb?{passive:0!=(1&ne),capture:0!=(2&ne)}:0!=(2&ne),Kr=new WeakMap,fr=ne=>Kr.get(ne),os=(ne,N)=>Kr.set(N.$lazyInstance$=ne,N),Aa=(ne,N)=>{const Ie={$flags$:0,$hostElement$:ne,$cmpMeta$:N,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),ne["s-p"]=[],ne["s-rc"]=[],Ar(ne,Ie,N.$listeners$),Kr.set(ne,Ie)},kr=(ne,N)=>N in ne,$i=(ne,N)=>(0,console.error)(ne,N),Uu=new Map,Nf=(ne,N,Ie)=>{const Ee=ne.$tagName$.replace(/-/g,"_"),Ve=ne.$lazyBundleId$,it=Uu.get(Ve);if(it)return it[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=ot=>(Uu.set(Ve,ot),ot[Ee]);if("read-along"===Ve)return I.e(154).then(I.bind(I,9154)).then(qe,$i)}return I(8718)(`./${Ve}.entry.js`).then(qe=>(Uu.set(Ve,qe),qe[Ee]),$i)},_n=new Map,rs=typeof window<"u"?window:{},Zo=rs.document||{head:{}},yi={$flags$:0,$resourcesUrl$:"",jmp:ne=>ne(),raf:ne=>requestAnimationFrame(ne),ael:(ne,N,Ie,Ee)=>ne.addEventListener(N,Ie,Ee),rel:(ne,N,Ie,Ee)=>ne.removeEventListener(N,Ie,Ee),ce:(ne,N)=>new CustomEvent(ne,N)},Wb=(()=>{let ne=!1;try{Zo.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ne=!0}}))}catch{}return ne})(),Ff=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ci=[],Wu=[],ni=(ne,N)=>Ie=>{ne.push(Ie),j||(j=!0,N&&4&yi.$flags$?Nt(Xu):yi.raf(Xu))},Pn=ne=>{for(let N=0;N{Pn(ci),Pn(Wu),(j=ci.length>0)&&yi.raf(Xu)},Nt=ne=>Promise.resolve(void 0).then(ne),bx=ni(Wu,!0)},1656:(C,de,I)=>{"use strict";var y=I(5861);let E=null,k=1;const L=Symbol("SIGNAL");function j(t){const n=E;return E=t,n}function O(t){if((!ge(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==k)){if(!t.producerMustRecompute(t)&&!ee(t))return t.dirty=!1,void(t.lastCleanEpoch=k);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=k}}function ee(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const ae=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function te(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class me{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof ae?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof ae?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ae(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof me){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&te(e,n)}remove(n){const{_finalizers:e}=this;e&&te(e,n),n instanceof me&&n._removeParent(this)}}me.EMPTY=(()=>{const t=new me;return t.closed=!0,t})();const ze=me.EMPTY;function Ge(t){return t instanceof me||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function At(){}const Dn=Mr("C",void 0,void 0);function Mr(t,n,e){return{kind:t,value:n,error:e}}let bi=null;function hr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!bi;if(n&&(bi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=bi;if(bi=null,e)throw i}}else t()}class Ar extends me{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Aa}static create(n,e,i){return new is(n,e,i)}next(n){this.isStopped?os(function ao(t){return Mr("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?os(function hn(t){return Mr("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?os(Dn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Js=Function.prototype.bind;function _o(t,n){return Js.call(t,n)}class tc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Kr(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Kr(i)}else Kr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Kr(e)}}}class is extends Ar{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new tc(o)}}function Kr(t){Ue.useDeprecatedSynchronousErrorHandling?function ti(t){Ue.useDeprecatedSynchronousErrorHandling&&bi&&(bi.errorThrown=!0,bi.error=t)}(t):et(t)}function os(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Aa={closed:!0,next:At,error:function fr(t){throw t},complete:At},kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function $i(t){return t}function Nf(t){return 0===t.length?$i:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let _n=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function yi(t){return t&&t instanceof Ar||function Zo(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new is(e,i,o);return hr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=rs(i))((o,r)=>{const a=new is({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[kr](){return this}pipe(...e){return Nf(e)(this)}toPromise(e){return new(e=rs(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function rs(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Wb=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _t=(()=>{class t extends _n{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ff(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Wb}next(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new me(()=>{this.currentObservers=null,te(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new _n;return e.source=this,e}}return t.create=(n,e)=>new Ff(n,e),t})();class Ff extends _t{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class ci extends _t{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Wu(t){return Ae(t?.lift)}function ni(t){return n=>{if(Wu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new Xu(t,n,e,i,o)}class Xu extends Ar{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Nt(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const ne="https://g.co/ng/security#xss";class N extends Error{constructor(n,e){super(function Ie(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function bt(t){return{toString:t}.toString()}const wt="__parameters__";function Yn(t,n,e){return bt(()=>{const i=function Gn(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(wt)?l[wt]:Object.defineProperty(l,wt,{value:[]})[wt];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const nn=globalThis;function En(t){for(let n in t)if(t[n]===En)return n;throw Error("Could not find renamed property on target object.")}function nc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Xb(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Yj=En({__forward_ref__:En});function Sn(t){return t.__forward_ref__=Sn,t.toString=function(){return Pi(this())},t}function jt(t){return Lf(t)?t():t}function Lf(t){return"function"==typeof t&&t.hasOwnProperty(Yj)&&t.__forward_ref__===Sn}function as(t,n,e){t!=n&&function Ft(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function jf(t){return yx(t,Hf)||yx(t,_x)}function yx(t,n){return t.hasOwnProperty(n)?t[n]:null}function Bf(t){return t&&(t.hasOwnProperty(Jb)||t.hasOwnProperty(Uj))?t[Jb]:null}const Hf=En({\u0275prov:En}),Jb=En({\u0275inj:En}),_x=En({ngInjectableDef:En}),Uj=En({ngInjectorDef:En});class Be{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ty(t){return t&&!!t.\u0275providers}const Qu=En({\u0275cmp:En}),ny=En({\u0275dir:En}),iy=En({\u0275pipe:En}),wx=En({\u0275mod:En}),ka=En({\u0275fac:En}),Ku=En({__NG_ELEMENT_ID__:En}),Cx=En({__NG_ENV_ID__:En});function Gt(t){return"string"==typeof t?t:null==t?"":String(t)}function oy(t,n){throw new N(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let ry;function xx(){return ry}function Oo(t){const n=ry;return ry=t,n}function Sx(t,n,e){const i=jf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void oy()}const qu={},ay="__NG_DI_FLAG__",Yf="ngTempTokenPath",qj=/\n/gm,Dx="__source";let ic;function ss(t){const n=ic;return ic=t,n}function n3(t,n=fn.Default){if(void 0===ic)throw new N(-203,!1);return null===ic?Sx(t,void 0,n):ic.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(xx()||n3)(jt(t),n)}function Ne(t,n=fn.Default){return Me(t,zf(n))}function zf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sy(t){const n=[];for(let e=0;eArray.isArray(e)?rc(e,n):n(e))}function Tx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $f(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Wo(t,n,e){let i=ac(t,n);return i>=0?t[1|i]=e:(i=~i,function Mx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function cy(t,n){const e=ac(t,n);if(e>=0)return t[1|e]}function ac(t,n){return function Ax(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Rr(i))return!1;a=!0}}}}else{if(!a&&!Rr(i)&&!Rr(l))return!1;if(a&&Rr(l))continue;a=!1,i=l|1&i}}return Rr(i)||a}function Rr(t){return 0==(1&t)}function p3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Rr(a)&&(n+=Fx(r,o),o=""),i=a,r=r||!Rr(i);e++}return""!==o&&(n+=Fx(r,o)),n}function gn(t){return bt(()=>{const n=jx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Or.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""};Bx(e);const i=t.dependencies;return e.directiveDefs=Uf(i,!1),e.pipeDefs=Uf(i,!0),e.id=function D3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function C3(t){return un(t)||Ni(t)}function x3(t){return null!==t}function on(t){return bt(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Lx(t,n){if(null==t)return qr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Ye.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Ye.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return bt(()=>{const n=jx(t);return Bx(n),n})}function Po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function un(t){return t[Qu]||null}function Ni(t){return t[ny]||null}function Qi(t){return t[iy]||null}function so(t,n){const e=t[wx]||null;if(!e&&!0===n)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function jx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||qr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lx(t.inputs,n),outputs:Lx(t.outputs),debugInfo:null}}function Bx(t){t.features?.forEach(n=>n(t))}function Uf(t,n){if(!t)return null;const e=n?Qi:C3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(x3)}function sc(t){return{\u0275providers:t}}function E3(...t){return{\u0275providers:fy(0,t),\u0275fromNgModule:!0}}function fy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return rc(n,a=>{const s=a;Wf(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Hx(o,r),e}function Hx(t,n){for(let e=0;e{n(r,i)})}}function Wf(t,n,e,i){if(!(t=jt(t)))return!1;let o=null,r=Bf(t);const a=!r&&un(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Bf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)Wf(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{rc(r.imports,u=>{Wf(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Hx(c,n)}if(!s){const c=Qs(o)||(()=>new o);n({provide:o,useFactory:c,deps:vn},o),n({provide:uy,useValue:o,multi:!0},o),n({provide:Ks,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;py(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function py(t,n){for(let e of t)ty(e)&&(e=e.\u0275providers),Array.isArray(e)?py(e,n):n(e)}const T3=En({provide:String,useValue:En});function gy(t){return null!==t&&"object"==typeof t&&T3 in t}function qs(t){return"function"==typeof t}const my=new Be(""),Xf={},A3={};let by;function Jf(){return void 0===by&&(by=new Zf),by}class No{}class lc extends No{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_y(n,a=>this.processProvider(a)),this.records.set(kx,cc(void 0,this)),o.has("environment")&&this.records.set(No,cc(void 0,this));const r=this.records.get(my);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(uy,vn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ss(this),i=Oo(void 0);try{return n()}finally{ss(e),Oo(i)}}get(n,e=qu,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Cx))return n[Cx](this);i=zf(i);const r=ss(this),a=Oo(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function P3(t){return"function"==typeof t||"object"==typeof t&&t instanceof Be}(n)&&jf(n);l=c&&this.injectableDefInScope(c)?cc(yy(n),Xf):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?Jf():this.parent).get(n,e=i&fn.Optional&&e===qu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Yf]=s[Yf]||[]).unshift(Pi(n)),r)throw s;return function o3(t,n,e,i){const o=t[Yf];throw n[Dx]&&o.unshift(n[Dx]),t.message=function r3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Pi(n);if(Array.isArray(n))o=n.map(Pi).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(qj,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Yf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Oo(a),ss(r)}}resolveInjectorInitializers(){const n=j(null),e=ss(this),i=Oo(void 0);try{const r=this.get(Ks,vn,fn.Self);for(const a of r)a()}finally{ss(e),Oo(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Pi(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(n){let e=qs(n=jt(n))?n:jt(n&&n.provide);const i=function I3(t){return gy(t)?cc(void 0,t.useValue):cc($x(t),Xf)}(n);if(!qs(n)&&!0===n.multi){let o=this.records.get(e);o||(o=cc(void 0,Xf,!0),o.factory=()=>sy(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===Xf&&(e.value=A3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function R3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=jt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function yy(t){const n=jf(t),e=null!==n?n.factory:Qs(t);if(null!==e)return e;if(t instanceof Be)throw new N(204,!1);if(t instanceof Function)return function k3(t){if(t.length>0)throw new N(204,!1);const e=function Gj(t){return t&&(t[Hf]||t[_x])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new N(204,!1)}function $x(t,n,e){let i;if(qs(t)){const o=jt(t);return Qs(o)||yy(o)}if(gy(t))i=()=>jt(t.useValue);else if(function zx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sy(t.deps||[]));else if(function Yx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(jt(t.useExisting));else{const o=jt(t&&(t.useClass||t.provide));if(!function O3(t){return!!t.deps}(t))return Qs(o)||yy(o);i=()=>new o(...sy(t.deps))}return i}function cc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function _y(t,n){for(const e of t)Array.isArray(e)?_y(e,n):e&&ty(e)?_y(e.\u0275providers,n):n(e)}function ea(t,n){t instanceof lc&&t.assertNotDestroyed();const i=ss(t),o=Oo(void 0);try{return n()}finally{ss(i),Oo(o)}}function Vx(){return void 0!==xx()||null!=function t3(){return ic}()}const si=0,tt=1,It=2,_i=3,Pr=4,lo=5,Xo=6,dc=7,Un=8,Ki=9,Nr=10,Bt=11,id=12,Gx=13,hc=14,ui=15,od=16,fc=17,Ia=18,rd=19,Ux=20,us=21,qf=22,el=23,Ut=25,wy=1,ta=7,pc=9,vi=10;var Cy=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Cy||{});function co(t){return Array.isArray(t)&&"object"==typeof t[wy]}function uo(t){return Array.isArray(t)&&!0===t[wy]}function xy(t){return 0!=(4&t.flags)}function tl(t){return t.componentOffset>-1}function tp(t){return 1==(1&t.flags)}function Fr(t){return!!t.template}function Sy(t){return 0!=(512&t[It])}class U3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qx(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Zi(){return Kx}function Kx(t){return t.type.prototype.ngOnChanges&&(t.setInput=X3),W3}function W3(){const t=eS(this),n=t?.current;if(n){const e=t.previous;if(e===qr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function X3(t,n,e,i,o){const r=this.declaredInputs[i],a=eS(t)||function J3(t,n){return t[qx]=n}(t,{previous:qr,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new U3(c&&c.currentValue,e,l===qr),Qx(t,n,o,e)}Zi.ngInherit=!0;const qx="__ngSimpleChanges__";function eS(t){return t[qx]||null}const na=function(t,n,e){},tS="svg";let iS=!1;function Ln(t){for(;Array.isArray(t);)t=t[si];return t}function sd(t,n){return Ln(n[t])}function vo(t,n){return Ln(n[t.index])}function ld(t,n){return t.data[n]}function gc(t,n){return t[n]}function Jo(t,n){const e=n[t];return co(e)?e:e[si]}function Ay(t){return 128==(128&t[It])}function ia(t,n){return null==n?null:t[n]}function oS(t){t[fc]=0}function n4(t){1024&t[It]||(t[It]|=1024,Ay(t)&&cd(t))}function ky(t){return!!(9216&t[It]||t[el]?.dirty)}function Iy(t){t[Nr].changeDetectionScheduler?.notify(1),ky(t)?cd(t):64&t[It]&&(function K3(){return iS}()?(t[It]|=1024,cd(t)):t[Nr].changeDetectionScheduler?.notify())}function cd(t){t[Nr].changeDetectionScheduler?.notify();let n=nl(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Ay(n));)n=nl(n)}function np(t,n){if(256==(256&t[It]))throw new N(911,!1);null===t[us]&&(t[us]=[]),t[us].push(n)}function nl(t){const n=t[_i];return uo(n)?n[_i]:n}const Ht={lFrame:pS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sS(){return Ht.bindingsEnabled}function mc(){return null!==Ht.skipHydrationRootTNode}function Le(){return Ht.lFrame.lView}function pn(){return Ht.lFrame.tView}function Xt(t){return Ht.lFrame.contextLView=t,t[Un]}function Jt(t){return Ht.lFrame.contextLView=null,t}function Nn(){let t=lS();for(;null!==t&&64===t.type;)t=t.parent;return t}function lS(){return Ht.lFrame.currentTNode}function ud(){const t=Ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function oa(t,n){const e=Ht.lFrame;e.currentTNode=t,e.isParent=n}function Ry(){return Ht.lFrame.isParent}function Py(){Ht.lFrame.isParent=!1}function wo(){const t=Ht.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Lr(){return Ht.lFrame.bindingIndex++}function Ra(t){const n=Ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function dS(t){Ht.lFrame.inI18n=t}function f4(t,n){const e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ny(n)}function Ny(t){Ht.lFrame.currentDirectiveIndex=t}function Fy(t){const n=Ht.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Ly(){return Ht.lFrame.currentQueryIndex}function ip(t){Ht.lFrame.currentQueryIndex=t}function g4(t){const n=t[tt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function hS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=g4(r),null===o||(r=r[hc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ht.lFrame=fS();return i.currentTNode=n,i.lView=t,!0}function jy(t){const n=fS(),e=t[tt];Ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function fS(){const t=Ht.lFrame,n=null===t?null:t.child;return null===n?pS(t):n}function pS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function gS(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mS=gS;function By(){const t=gS();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Ht.lFrame.selectedIndex}function il(t){Ht.lFrame.selectedIndex=t}function Wn(){const t=Ht.lFrame;return ld(t.tView,t.selectedIndex)}function op(){Ht.lFrame.currentNamespace=tS}let yS=!0;function dd(){return yS}function ra(t){yS=t}function rp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[fc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,vS(s,r)):vS(s,r)}const bc=-1;class hd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function zy(t){return t!==bc}function fd(t){return 32767&t}function pd(t,n){let e=function E4(t){return t>>16}(t),i=n;for(;e>0;)i=i[hc],e--;return i}let $y=!0;function lp(t){const n=$y;return $y=t,n}const wS=255,CS=5;let T4=0;const aa={};function cp(t,n){const e=xS(t,n);if(-1!==e)return e;const i=n[tt];i.firstCreatePass&&(t.injectorIndex=n.length,Vy(i.data,t),Vy(n,null),Vy(i.blueprint,null));const o=up(t,n),r=t.injectorIndex;if(zy(o)){const a=fd(o),s=pd(o,n),l=s[tt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function Vy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function up(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kS(o),null===i)return bc;if(e++,o=o[hc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return bc}function Zy(t,n,e){!function M4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ku)&&(i=e[Ku]),null==i&&(i=e[Ku]=T4++);const o=i&wS;n.data[t+(o>>CS)]|=1<=0?n&wS:O4:n}(e);if("function"==typeof r){if(!hS(n,t,i))return i&fn.Host?SS(o,0,i):DS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;oy()}finally{mS()}}else if("number"==typeof r){let a=null,s=xS(t,n),l=bc,c=i&fn.Host?n[ui][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?up(t,n):n[s+8],l!==bc&&AS(i,!1)?(a=n[tt],s=fd(l),n=pd(l,n)):s=-1);-1!==s;){const u=n[tt];if(MS(r,s,u.data)){const d=k4(s,n,e,a,i,c);if(d!==aa)return d}l=n[s+8],l!==bc&&AS(i,n[tt].data[s+8]===c)&&MS(r,s,n)?(a=u,s=fd(l),n=pd(l,n)):s=-1}}return o}function k4(t,n,e,i,o,r){const a=n[tt],s=a.data[t+8],u=dp(s,a,e,null==i?tl(s)&&$y:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ol(n,a,u,s):aa}function dp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Fr(p)&&p.type===e)return l}return null}function ol(t,n,e,i){let o=t[e];const r=n.data;if(function C4(t){return t instanceof hd}(o)){const a=o;a.resolving&&function Jj(t,n){throw n&&n.join(" > "),new N(-200,t)}(function Tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gt(t)}(r[e]));const s=lp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Oo(a.injectImpl):null;hS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function v4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Kx(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Oo(c),lp(s),a.resolving=!1,mS()}}return o}function MS(t,n,e){return!!(e[n+(t>>CS)]&1<{const n=t.prototype.constructor,e=n[ka]||Gy(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[ka]||Gy(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Gy(t){return Lf(t)?()=>{const n=Gy(jt(t));return n&&n()}:Qs(t)}function kS(t){const n=t[tt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function sa(t){return function A4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=qu}static{this.NULL=new Zf}static create(e,i){if(Array.isArray(e))return NS({name:""},i,e,"");{const o=e.name??"";return NS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(kx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Wy(t){return t.ngOriginalError}class Qo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Wy(n);for(;e&&Wy(e);)e=Wy(e);return e||null}}const jS=new Be("",{providedIn:"root",factory:()=>Ne(Qo).handleError.bind(void 0)});let vc=(()=>{class t{static{this.__NG_ELEMENT_ID__=z4}static{this.__NG_ENV_ID__=e=>e}}return t})();class Y4 extends vc{constructor(n){super(),this._lView=n}onDestroy(n){return np(this._lView,n),()=>function Oy(t,n){if(null===t[us])return;const e=t[us].indexOf(n);-1!==e&&t[us].splice(e,1)}(this._lView,n)}}function z4(){return new Y4(Le())}function $4(){return wc(Nn(),Le())}function wc(t,n){return new Zt(vo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=$4}}return t})();function HS(t){return t instanceof Zt?t.nativeElement:t}function Xy(t){return n=>{setTimeout(t,void 0,n)}}const Lt=class V4 extends _t{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Vx()&&(this.destroyRef=Ne(vc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=Xy(r),o&&(o=Xy(o)),a&&(a=Xy(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof me&&n.add(s),s}};function Z4(){return this._results[Symbol.iterator]()}class ds{get changes(){return this._changes??=new Lt}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=ds.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Z4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function c3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;if5}),f5="ng",aD=new Be(""),Pa=new Be("",{providedIn:"platform",factory:()=>"unknown"}),Co=new Be(""),e_=new Be("",{providedIn:"root",factory:()=>hs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sD=()=>null;function l_(t,n,e=!1){return sD(t,n,e)}const hD=new Be("",{providedIn:"root",factory:()=>!1});let xp,Sp;function Sc(t){return function h_(){if(void 0===xp&&(xp=null,nn.trustedTypes))try{xp=nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xp}()?.createHTML(t)||t}function f_(){if(void 0===Sp&&(Sp=null,nn.trustedTypes))try{Sp=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sp}function pD(t){return f_()?.createHTML(t)||t}function mD(t){return f_()?.createScriptURL(t)||t}class rl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class T5 extends rl{getTypeName(){return"HTML"}}class M5 extends rl{getTypeName(){return"Style"}}class A5 extends rl{getTypeName(){return"Script"}}class k5 extends rl{getTypeName(){return"URL"}}class I5 extends rl{getTypeName(){return"ResourceURL"}}function Ko(t){return t instanceof rl?t.changingThisBreaksApplicationSecurity:t}function la(t,n){const e=function O5(t){return t instanceof rl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${ne})`)}return e===n}function bD(t){const n=new B5(t);return function H5(){try{return!!(new window.DOMParser).parseFromString(Sc(""),"text/html")}catch{return!1}}()?new j5(n):n}class j5{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class B5{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Sc(n),e}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dp(t){return(t=String(t)).match(Y5)?t:"unsafe:"+t}function Na(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function wd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const yD=Na("area,br,col,hr,img,wbr"),_D=Na("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vD=Na("rp,rt"),p_=wd(yD,wd(_D,Na("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wd(vD,Na("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wd(vD,_D)),g_=Na("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wD=wd(g_,Na("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Na("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),z5=Na("script,style,template");class $5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=G5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=Z5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=CD(n).toLowerCase();if(!p_.hasOwnProperty(e))return this.sanitizedSomething=!0,!z5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=CD(n).toLowerCase();p_.hasOwnProperty(e)&&!yD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(SD(n))}}function Z5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw xD(n);return n}function G5(t){const n=t.firstChild;if(n&&function V5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw xD(n);return n}function CD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function xD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const U5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W5=/([^\#-~ |!])/g;function SD(t){return t.replace(/&/g,"&").replace(U5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(W5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ep;function DD(t,n){let e=null;try{Ep=Ep||bD(t);let i=n?String(n):"";e=Ep.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Ep.getInertBodyElement(i)}while(i!==r);return Sc((new $5).sanitizeChildren(m_(e)||e))}finally{if(e){const i=m_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function m_(t){return"content"in t&&function X5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Gi||{});function b_(t){const n=xd();return n?pD(n.sanitize(Gi.HTML,t)||""):la(t,"HTML")?pD(Ko(t)):DD(hs(),Gt(t))}function Cd(t){const n=xd();return n?n.sanitize(Gi.URL,t)||"":la(t,"URL")?Ko(t):Dp(Gt(t))}function ED(t){const n=xd();if(n)return mD(n.sanitize(Gi.RESOURCE_URL,t)||"");if(la(t,"ResourceURL"))return mD(Ko(t));throw new N(904,!1)}function xd(){const t=Le();return t&&t[Nr].sanitizer}const t8=/^>|^->||--!>|)/g,i8="\u200b$1\u200b";function qo(t){return t instanceof Function?t():t}var ps=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ps||{});let w_;function C_(t,n){return w_(t,n)}function Ec(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[si]);const s=Ln(i);0===t&&null!==e?null==o?BD(n,e,s):al(n,e,s,o||null,!0):1===t&&null!==e?al(n,e,s,o||null,!0):2===t?function Ed(t,n,e){const i=Ip(t,n);i&&function C8(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function D8(t,n,e,i,o){const r=e[ta];r!==Ln(e)&&Ec(n,t,i,r,o);for(let s=vi;sn.replace(n8,i8))}(n))}function Ap(t,n,e){return t.createElement(n,e)}function FD(t,n){n[Nr].changeDetectionScheduler?.notify(1),Rp(t,n,n[Bt],2,null,null)}function LD(t,n){const e=t[pc],i=e.indexOf(n);e.splice(i,1)}function Sd(t,n){if(t.length<=vi)return;const e=vi+n,i=t[e];if(i){const o=i[od];null!==o&&o!==t&&LD(o,i),n>0&&(t[e-1][Pr]=i[Pr]);const r=$f(t,vi+n);!function g8(t,n){FD(t,n),n[si]=null,n[lo]=null}(i[tt],i);const a=r[Ia];null!==a&&a.detachView(r[tt]),i[_i]=null,i[Pr]=null,i[It]&=-129}return i}function kp(t,n){if(!(256&n[It])){const e=n[Bt];e.destroyNode&&Rp(t,n,e,3,null,null),function b8(t){let n=t[id];if(!n)return D_(t[tt],t);for(;n;){let e=null;if(co(n))e=n[id];else{const i=n[vi];i&&(e=i)}if(!e){for(;n&&!n[Pr]&&n!==t;)co(n)&&D_(n[tt],n),n=n[_i];null===n&&(n=t),co(n)&&D_(n[tt],n),e=n&&n[Pr]}n=e}}(n)}}function D_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[el]&&function se(t){if(B(t),ge(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[dc]=null);const o=n[us];if(null!==o){n[us]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Or.None||r===Or.Emulated)return null}return vo(i,e)}}function al(t,n,e,i,o){t.insertBefore(n,e,i,o)}function BD(t,n,e){t.appendChild(n,e)}function HD(t,n,e,i,o){null!==i?al(t,n,e,i,o):BD(t,n,e)}function Ip(t,n){return t.parentNode(n)}function YD(t,n,e){return $D(t,n,e)}function zD(t,n,e){return 40&t.type?vo(t,e):null}let T_,$D=zD;function VD(t,n){$D=t,T_=n}function Op(t,n,e,i){const o=E_(t,i,n),r=n[Bt],s=YD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lUt&&JD(t,n,Ut,!1),na(a?2:0,o),e(i,o)}finally{il(r),na(a?3:1,o)}}function O_(t,n,e){if(xy(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function tE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Ye.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?nE(i,e,c,s,l):nE(i,e,c,s)}return i}function nE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Lo(t,n,e,i,o,r,a,s){const l=vo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(H_(t,e,u,i,o),tl(n)&&function j8(t,n){const e=Jo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function L8(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function F_(t,n,e,i){if(sS()){const o=null===i?null:{"":-1},r=function V8(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Td(t,e,o.hostVars,Qt),o)}function ca(t,n,e,i,o,r){const a=vo(t,n);!function j_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Gt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Bt],a,r,t.value,e,i,o)}function J8(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Pr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cd(t.lView)},consumerOnSignalRead(){this.lView[el]=this}},fE=100;function Lp(t,n=!0,e=0){const i=t[Nr],o=i.rendererFactory;o.begin?.();try{!function rB(t,n){$_(t,n);let e=0;for(;ky(t);){if(e===fE)throw new N(103,!1);e++,$_(t,1)}}(t,e)}catch(a){throw n&&Fp(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function aB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Nr].inlineEffectRunner?.flush(),jy(n);let a=null,s=null;(function sB(t){return 2!==t.type})(t)&&(s=function tB(t){return t[el]??function nB(t){const n=hE.pop()??Object.create(oB);return n.lView=t,n}(t)}(n),a=function q(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{oS(n),function uS(t){return Ht.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&KD(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&ap(n,d,null)}else{const d=t.preOrderHooks;null!==d&&sp(n,d,0,null),Hy(n,0)}if(function lB(t){for(let n=JS(t);null!==n;n=QS(n)){if(!(n[It]&Cy.HasTransplantedViews))continue;const e=n[pc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function iB(t){t.lView[el]!==t&&(t.lView=null,hE.push(t))}(s)),By()}}function pE(t,n){for(let e=JS(t);null!==e;e=QS(e))for(let i=vi;i-1&&(Sd(n,i),$f(e,i))}this._attachedToViewContainer=!1}kp(this._lView[tt],this._lView)}onDestroy(n){np(this._lView,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){Iy(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,FD(this._lView[tt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n,Iy(this._lView)}}let xo=(()=>{class t{static{this.__NG_ELEMENT_ID__=hB}}return t})();const uB=xo,dB=class extends uB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=Md(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Od(o)}};function hB(){return jp(Nn(),Le())}function jp(t,n){return 4&t.type?new dB(n,t,wc(t,n)):null}let CE=()=>null;function Ac(t,n){return CE(t,n)}class $p{}class FB{}class xE{}class jB{resolveComponentFactory(n){throw function LB(t){const n=Error(`No component factory found for ${Pi(t)}.`);return n.ngComponent=t,n}(n)}}let sl=(()=>{class t{static{this.NULL=new jB}}return t})();class X_{}let La=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function BB(){const t=Le(),e=Jo(Nn().index,t);return(co(e)?e:t)[Bt]}()}}return t})(),HB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const J_={},DE=new Set;function ua(t){DE.has(t)||(DE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function EE(...t){}class Ct{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lt(!1),this.onMicrotaskEmpty=new Lt(!1),this.onStable=new Lt(!1),this.onError=new Lt(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function YB(){const t="function"==typeof nn.requestAnimationFrame;let n=nn[t?"requestAnimationFrame":"setTimeout"],e=nn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function VB(t){const n=()=>{!function $B(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(nn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,K_(t),t.isCheckStableRunning=!0,Q_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),K_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function ZB(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return TE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ME(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return TE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ME(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,K_(t),Q_(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new N(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,zB,EE,EE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const zB={};function Q_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function K_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function TE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ME(t){t._nesting--,Q_(t)}class AE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lt,this.onMicrotaskEmpty=new Lt,this.onStable=new Lt,this.onError=new Lt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var ll=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ll||{});const kE={destroy(){}};function IE(t,n){!n&&function Qf(t){if(!Vx())throw new N(-203,!1)}();const e=n?.injector??Ne(di);if(!function fs(t){return"browser"===(t??Ne(di)).get(Pa)}(e))return kE;ua("NgAfterNextRender");const i=e.get(Ld),o=i.handler??=new RE,r=n?.phase??ll.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(vc).onDestroy(a),l=ea(e,()=>new OE(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class OE{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Ne(Ct),this.errorHandler=Ne(Qo,{optional:!0}),Ne($p,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class RE{constructor(){this.executingCallbacks=!1,this.buckets={[ll.EarlyRead]:new Set,[ll.Write]:new Set,[ll.MixedReadWrite]:new Set,[ll.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ld=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Zp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&WD(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function o6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=a6}}return t})();function a6(){return HE(Nn(),Le())}const s6=jo,jE=class extends s6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return wc(this._hostTNode,this._hostLView)}get injector(){return new Li(this._hostTNode,this._hostLView)}get parentInjector(){const n=up(this._hostTNode,this._hostLView);if(zy(n)){const e=pd(n,this._hostLView),i=fd(n);return new Li(e[tt].data[i+8],e)}return new Li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=BE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Ac(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Mc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function nd(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new Hd(un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(No,null);b&&(r=b)}const u=un(l.componentType??{}),d=Ac(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Mc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function t4(t){return uo(t[_i])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[_i],c=new jE(l,l[lo],l[_i]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Ad(a,o,r,i),n.attachToViewContainerRef(),Tx(nv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=BE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);i&&($f(nv(this._lContainer),e),kp(i[tt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);return i&&null!=$f(nv(this._lContainer),e)?new Od(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function BE(t){return t[8]}function nv(t){return t[8]||(t[8]=[])}function HE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=rE(i,n,null,t),n[t.index]=e,Np(n,e)),YE(e,n,t,i),new jE(e,t,n)}let YE=function $E(t,n,e,i){if(t[ta])return;let o;o=8&e.type?Ln(i):function l6(t,n){const e=t[Bt],i=e.createComment(""),o=vo(n,t);return al(e,Ip(e,o),i,function x8(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[ta]=o},iv=()=>!1;class ov{constructor(n){this.queryList=n,this.matches=null}clone(){return new ov(this.queryList)}setDirty(){this.queryList.setDirty()}}class rv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class av{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=vi;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=td(o.hostAttrs,e=td(e,o.hostAttrs))}}(i)}function M6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Up(t){return t===qr?{}:t===vn?[]:t}function k6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function I6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function O6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function So(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class cl{}class pT{}class hv extends cl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FE(this);const o=so(n);this._bootstrapComponents=qo(o.bootstrap),this._r3Injector=FS(n,e,[{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver},...i],Pi(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fv extends pT{constructor(n){super(),this.moduleType=n}create(n){return new hv(this.moduleType,n,[])}}class gT extends cl{constructor(n){super(),this.componentFactoryResolver=new FE(this),this.instance=null;const e=new lc([...n.providers,{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],n.parent||Jf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wp(t,n,e=null){return new gT({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jp(t){return!!pv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function pv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function da(t,n,e){return t[n]=e}function wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ul(t,n,e,i){const o=wi(t,n,e);return wi(t,n+1,i)||o}function kt(t,n,e,i,o,r,a,s){const l=Le(),c=pn(),u=t+Ut,d=c.firstCreatePass?function Z6(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Tc(n,t,4,a||null,ia(c,s));F_(n,e,u,ia(c,l)),rp(n,u);const d=u.tView=N_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];oa(d,!1);const h=mT(c,l,d,t);dd()&&Op(c,l,h,d),fo(h,l);const p=rE(h,l,h,d);return l[u]=p,Np(l,p),function zE(t,n,e){return iv(t,n,e)}(p,d,l),tp(d)&&R_(c,l,d),null!=a&&P_(l,d,s),kt}let mT=function bT(t,n,e,i){return ra(!0),n[Bt].createComment("")};function ln(t,n,e,i){const o=Le();return wi(o,Lr(),n)&&(pn(),ca(Wn(),o,t,n,e,i)),ln}function jc(t,n,e,i){return wi(t,Lr(),e)?n+Gt(e)+i:Qt}function Bc(t,n,e,i,o,r){const s=ul(t,function Oa(){return Ht.lFrame.bindingIndex}(),e,o);return Ra(2),s?n+Gt(e)+i+Gt(o)+r:Qt}function ig(t,n){return t<<17|n<<2}function _s(t){return t>>17&32767}function Sv(t){return 2|t}function hl(t){return(131068&t)>>2}function Dv(t,n){return-131069&t|n<<2}function Ev(t){return 1|t}function WT(t,n,e,i){const o=t[e+1],r=null===n;let a=i?_s(o):hl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];A7(t[a],n)&&(s=!0,t[a+1]=i?Ev(c):Sv(c)),a=i?_s(c):hl(c)}s&&(t[e+1]=i?Sv(o):Ev(o))}function A7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ac(t,n)>=0}const ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XT(t){return t.substring(ji.key,ji.keyEnd)}function JT(t,n){const e=ji.textEnd;return e===n?-1:(n=ji.keyEnd=function R7(t,n,e){for(;n32;)n++;return n}(t,ji.key=n,e),Gc(t,n,e))}function Gc(t,n,e){for(;n=0;e=JT(n,e))Wo(t,XT(n),!0)}function jr(t,n,e,i){const o=Le(),r=pn(),a=Ra(2);r.firstUpdatePass&&nM(r,t,a,i),n!==Qt&&wi(o,a,n)&&oM(r,r.data[ho()],o,o[Bt],t,o[a+1]=function V7(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Pi(Ko(t)))),t}(n,e),i,a)}function Br(t,n,e,i){const o=pn(),r=Ra(2);o.firstUpdatePass&&nM(o,null,r,i);const a=Le();if(e!==Qt&&wi(a,r,e)){const s=o.data[ho()];if(aM(s,i)&&!tM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=Xb(l,e||"")),Tv(o,s,a,e,i)}else!function $7(t,n,e,i,o,r,a,s){o===Qt&&(o=vn);let l=0,c=0,u=0=t.expandoStartIndex}function nM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=tM(t,e);aM(r,i)&&null===n&&!a&&(n=!1),n=function L7(t,n,e,i){const o=Fy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Ud(e=Mv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Mv(o,t,n,e,i),null===r){let l=function j7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==hl(i))return t[_s(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Mv(null,t,n,l[1],i),l=Ud(l,n.attrs,i),function B7(t,n,e,i){t[_s(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function H7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=_s(t[s+1]);t[i+1]=ig(h,s),0!==h&&(t[h+1]=Dv(t[h+1],i)),t[s+1]=function D7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ig(s,0),0!==s&&(t[s+1]=Dv(t[s+1],i)),s=i;else t[i+1]=ig(l,0),0===s?s=i:t[l+1]=Dv(t[l+1],i),l=i;c&&(t[i+1]=Sv(t[i+1])),WT(t,u,i,!0),WT(t,u,i,!1),function M7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&ac(r,n)>=0&&(e[i+1]=Ev(e[i+1]))}(n,u,t,i,r),a=ig(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Mv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===Qt&&(h=d?vn:void 0);let p=d?cy(h,i):u===i?h:void 0;if(c&&!og(p)&&(p=cy(l,i)),og(p)&&(s=p,a))return s;const g=t[o+1];o=a?_s(g):hl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=cy(l,i))}return s}function og(t){return void 0!==t}function aM(t,n){return 0!=(t.flags&(n?8:16))}function Av(t,n,e){Br(Wo,fa,jc(Le(),t,n,e),!0)}class eH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function kv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function Iv(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function sM(t,n,e,i,o){if(Iv(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function lM(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class cM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function Mn(t,n,e){ua("NgControlFlow");const i=Le(),o=Lr(),r=Ov(i,Ut+t);if(wi(i,o,n)){const s=j(null);try{if(z_(r,0),-1!==n){const l=Rv(i[tt],Ut+n),c=Ac(r,l.tView.ssrId);Ad(r,Md(i,l,e,{dehydratedView:c}),0,Mc(l,c))}}finally{j(s)}}else{const s=uE(r,0);void 0!==s&&(s[Un]=e)}}class nH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-vi}}function rg(t,n){return n}class oH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function ag(t,n,e,i,o,r,a,s,l,c,u,d,h){ua("NgControlFlow");const p=void 0!==l,g=Le(),b=s?a.bind(g[ui][Un]):a,T=new oH(p,b);g[Ut+t]=T,kt(t+1,n,e,i,o,r),p&&kt(t+2,l,c,u,d,h)}class rH extends eH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-vi}at(n){return this.getLView(n)[Un].$implicit}attach(n,e){const i=e[Xo];this.needsIndexUpdate||=n!==this.length,Ad(this.lContainer,e,n,Mc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function aH(t,n){return Sd(t,n)}(this.lContainer,n)}create(n,e){const i=Ac(this.lContainer,this.templateTNode.tView.ssrId);return Md(this.hostLView,this.templateTNode,new nH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){kp(n[tt],n)}updateValue(n,e){this.getLView(n)[Un].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=Lr(),l=0===a.length;if(wi(i,s,l)){const c=e+2,u=Ov(i,c);if(l){const d=Rv(o,c),h=Ac(u,d.tView.ssrId);Ad(u,Md(i,d,void 0,{dehydratedView:h}),0,Mc(d,h))}else z_(u,0)}}}finally{j(n)}}function Ov(t,n){return t[n]}function Rv(t,n){return ld(t,n)}function _e(t,n,e,i){const o=Le(),r=pn(),a=Ut+t,s=o[Bt],l=r.firstCreatePass?function lH(t,n,e,i,o,r){const a=n.consts,l=Tc(n,t,2,i,ia(a,o));return F_(n,e,l,ia(a,r)),null!==l.attrs&&Zp(l,l.attrs,!1),null!==l.mergedAttrs&&Zp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=uM(r,o,l,s,n,t);o[a]=c;const u=tp(l);return oa(l,!0),XD(s,c,l),!function $d(t){return 32==(32&t.flags)}(l)&&dd()&&Op(r,o,c,l),0===function i4(){return Ht.lFrame.elementDepthCount}()&&fo(c,o),function o4(){Ht.lFrame.elementDepthCount++}(),u&&(R_(r,o,l),O_(r,l,o)),null!==i&&P_(o,l),_e}function ve(){let t=Nn();Ry()?Py():(t=t.parent,oa(t,!1));const n=t;(function a4(t){return Ht.skipHydrationRootTNode===t})(n)&&function u4(){Ht.skipHydrationRootTNode=null}(),function r4(){Ht.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(rp(e,t),xy(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function S4(t){return 0!=(8&t.flags)}(n)&&Tv(e,n,Le(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function D4(t){return 0!=(16&t.flags)}(n)&&Tv(e,n,Le(),n.stylesWithoutHost,!1),ve}function dt(t,n,e,i){return _e(t,n,e,i),ve(),dt}let uM=(t,n,e,i,o,r)=>(ra(!0),Ap(i,o,function bS(){return Ht.lFrame.currentNamespace}()));function Wd(t,n,e){const i=Le(),o=pn(),r=t+Ut,a=o.firstCreatePass?function dH(t,n,e,i,o){const r=n.consts,a=ia(r,i),s=Tc(n,t,8,"ng-container",a);return null!==a&&Zp(s,a,!0),F_(n,e,s,ia(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];oa(a,!0);const s=dM(o,i,a,t);return i[r]=s,dd()&&Op(o,i,s,a),fo(s,i),tp(a)&&(R_(o,i,a),O_(o,a,i)),null!=e&&P_(i,a),Wd}function Xd(){let t=Nn();const n=pn();return Ry()?Py():(t=t.parent,oa(t,!1)),n.firstCreatePass&&(rp(n,t),xy(t)&&n.queries.elementEnd(t)),Xd}function ws(t,n,e){return Wd(t,n,e),Xd(),ws}let dM=(t,n,e,i)=>(ra(!0),S_(n[Bt],""));function On(){return Le()}function Cs(t,n,e){const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!0),Cs}function Pv(t,n,e){const i=Le();if(wi(i,Lr(),n)){const r=pn(),a=Wn();Lo(r,a,i,t,n,cE(Fy(r.data),a,i),e,!0)}return Pv}const Wc="en-US",lg={marker:"element"},cg={marker:"ICU"};var Bo=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Bo||{});let pM=Wc;function mM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?zD(t,0,e):Ln(e[o])}function bM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];_M(i)||wH(i,n)&&null===CH(i)&&xH(i,n.index)}}function _M(t){return!(64&t.type)}function wH(t,n){return _M(n)||t.index>n.index}function CH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function xH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(VD(mM,bM),t.insertBeforeIndex=n)}function EH(t,n,e){const i=I_(t,e,64,null,null);return yM(n,i),i}let qd=(t,n,e,i)=>(ra(!0),function xM(t,n,e){const i=t[Bt];switch(e){case Node.COMMENT_NODE:return S_(i,n);case Node.TEXT_NODE:return x_(i,n);case Node.ELEMENT_NODE:return Ap(i,n,null)}}(t,e,i));function NH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function ug(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:vn}function a(){if(n0?e[s]:(t.push(n,i),r(e[tt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const dg=/\ufffd(\d+):?\d*\ufffd/gi,LH=/\ufffd(\d+)\ufffd/,AM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,eh="\ufffd",jH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,BH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,HH=/\uE500/g;function kM(t,n,e,i,o,r,a){const s=Td(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Nv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);AM.test(l)?i.push(WH(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function XH(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=bD(hs()).getInertBodyElement(s),g=m_(p)||p;return g?PM(t,n,e,i,o,c,u,d,g,r,l,0):0}function PM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Td(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(p_.hasOwnProperty(T)){Fv(r,lg,T,c,g),n.data[g]=T;const ce=b.attributes;for(let pe=0;pe>>Bo.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=qd(t,u,n[r],(a&Bo.COMMENT)===Bo.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=dd()),c&&null!==e&&h&&al(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),dS(!0)}function to(){dS(!1)}function Wt(t,n,e){eo(t,n,e),to()}function hg(t,n={}){return function sY(t,n={}){let e=t;if(eY.test(t)){const i={},o=[0];e=e.replace(tY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(aY),S=T?parseInt(T[1],10):0,H=rY.test(b);c.push([S,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(iY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(oY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function xt(t,n,e,i){const o=Le(),r=pn(),a=Nn();return Lv(r,o,o[Bt],a,t,n,i),xt}function Lv(t,n,e,i,o,r,a){const s=tp(i),c=t.firstCreatePass&&lE(t),u=n[Un],d=sE(n);let h=!0;if(3&i.type||a){const b=vo(i,n),T=a?a(b):b,S=d.length,H=a?ce=>a(Ln(ce[i.index])):i.index;let re=null;if(!a&&s&&(re=function uY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==re)(re.__ngLastListenerFn__||re).__ngNextListenerFn__=r,re.__ngLastListenerFn__=r,h=!1;else{r=HM(i,n,u,r,!1);const ce=e.listen(T,o,r);d.push(r,ce),c&&c.push(o,H,S,S+1)}}else r=HM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Jo(t.index,n):n);let l=BM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=BM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function lt(t=1){return function m4(t){return(Ht.lFrame.contextLView=function rS(t,n){for(;t>0;)n=n[hc],t--;return n}(t,Ht.lFrame.contextLView))[Un]}(t)}function dY(t,n){let e=null;const i=function g3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(ra(!0),x_(n[Bt],i));function Ho(t){return gr("",t,""),Ho}function gr(t,n,e){const i=Le(),o=jc(i,t,n,e);return o!==Qt&&Fa(i,ho(),o),gr}function jv(t,n,e,i,o){const r=Le(),a=Bc(r,t,n,e,i,o);return a!==Qt&&Fa(r,ho(),a),jv}function nh(t,n,e){qE(n)&&(n=n());const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!1),nh}function pg(t,n){const e=qE(t);return e&&t.set(n),e}function ih(t,n){const e=Le(),i=pn(),o=Nn();return Lv(i,e,e[Bt],o,t,n),ih}function Bv(t,n,e,i,o){if(t=jt(t),Array.isArray(t))for(let r=0;r>20;if(qs(t)||!t.multi){const p=new hd(c,o,ie),g=Yv(l,n,o?u:u+h,d);-1===g?(Zy(cp(s,a),r,l),Hv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=Yv(l,n,u+h,d),g=Yv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){Zy(cp(s,a),r,l);const S=function kY(t,n,e,i,o){const r=new hd(t,e,ie);return r.multi=[],r.index=n,r.componentProviders=0,hA(r,o,i&&!e),r}(o?AY:MY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=S),Hv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(S),a.push(S)}else Hv(r,t,p>-1?p:g,hA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Hv(t,n,e,i){const o=qs(n),r=function M3(t){return!!t.useClass}(n);if(o||r){const l=(r?jt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Yv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function TY(t,n,e){const i=pn();if(i.firstCreatePass){const o=Fr(t);Bv(e,i.data,i.blueprint,o,!0),Bv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let IY=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=fy(0,e.type),o=i.length>0?Wp([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(No))})}}return t})();function ii(t){ua("NgStandalone"),t.getStandaloneInjector=n=>n.get(IY).getOrCreateStandaloneInjector(t)}function oh(t,n,e,i){return pA(Le(),wo(),t,n,e,i)}function rh(t,n,e,i,o){return function gA(t,n,e,i,o,r,a){const s=n+e;return ul(t,s,o,r)?da(t,s+2,a?i.call(a,o,r):i(o,r)):ah(t,s+2)}(Le(),wo(),t,n,e,i,o)}function ah(t,n){const e=t[n];return e===Qt?void 0:e}function pA(t,n,e,i,o,r){const a=n+e;return wi(t,a,o)?da(t,a+1,r?i.call(r,o):i(o)):ah(t,a+1)}function Jc(t,n){const e=pn();let i;const o=t+Ut;e.firstCreatePass?(i=function zY(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Qs(i.type)),s=Oo(ie);try{const l=lp(!1),c=r();return lp(l),function gY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Le(),o,c),c}finally{Oo(s)}}function Qc(t,n,e){const i=t+Ut,o=Le(),r=gc(o,i);return function sh(t,n){return t[tt].data[n].pure}(o,i)?pA(o,wo(),n,r.transform,e,r):r.transform(e)}function $v(t,n){return jp(t,n)}let PA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const BA=new Be(""),yg=new Be("");let Qv,Xv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Qv||(function Bz(t){Qv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(Ct),Me(Jv),Me(yg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Jv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Qv?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function uh(t){return!!t&&"function"==typeof t.then}function HA(t){return!!t&&"function"==typeof t.subscribe}const Kv=new Be("");let qv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ne(Kv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(uh(r))e.push(r);else if(HA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ew=new Be("");function $A(t,n){return Array.isArray(n)?n.reduce($A,t):{...t,...n}}let Hr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(jS),this.afterRenderEffectManager=Ne(Ld),this.externalTestViews=new Set,this.beforeRender=new _t,this.afterTick=new _t,this.componentTypes=[],this.components=[],this.isStable=Ne(bs).hasPendingTasks.pipe(Nt(e=>!e)),this._injector=Ne(No)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof xE;if(!this._injector.get(qv).done)throw!o&&function cs(t){const n=un(t)||Ni(t)||Qi(t);return null!==n&&n.standalone}(e),new N(405,!1);let a;a=o?e:this._injector.get(sl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Hz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(cl),c=a.create(di.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),_g(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new N(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===fE)throw new N(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)zz(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;_g(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(ew,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>_g(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _g(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function zz(t,n,e){!n&&!tw(t)||function $z(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Lp(t,n,i)}(t,e,n)}function tw(t){return ky(t)}class Vz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let VA=(()=>{class t{compileModuleSync(e){return new fv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=qo(so(e).declarations).reduce((a,s)=>{const l=un(s);return l&&a.push(new Hd(l)),a},[]);return new Vz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uz=(()=>{class t{constructor(){this.zone=Ne(Ct),this.applicationRef=Ne(Hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Wz(){const t=Ne(Ct),n=Ne(Qo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Jz=(()=>{class t{constructor(){this.subscription=new me,this.initialized=!1,this.zone=Ne(Ct),this.pendingTasks=Ne(bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const pa=new Be("",{providedIn:"root",factory:()=>Ne(pa,fn.Optional|fn.SkipSelf)||function Qz(){return typeof $localize<"u"&&$localize.locale||Wc}()}),nw=new Be("");let WA=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function GB(t="zone.js",n){return"noop"===t?new AE:"zone.js"===t?new Ct(n):t}(i?.ngZone,function UA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function B6(t,n,e){return new hv(t,n,e)}(e.moduleType,this.injector,function GA(t){return[{provide:Ct,useFactory:t},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Uz,{optional:!0});return()=>n.initialize()}},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Jz);return()=>{n.initialize()}}},{provide:jS,useFactory:Wz}]}(()=>o)),a=r.injector.get(Qo,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{_g(this._modules,r),s.unsubscribe()})}),function zA(t,n,e){try{const i=e();return uh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(qv);return s.runInitializers(),s.donePromise.then(()=>(function gM(t){"string"==typeof t&&(pM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(pa,Wc)||Wc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=$A({},i);return function Gz(t,n,e){const i=new fv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Hr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new N(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(di))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ss=null;const XA=new Be("");function JA(t,n,e=[]){const i=`Platform: ${n}`,o=new Be(i);return(r=[])=>{let a=iw();if(!a||a.injector.get(XA,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function e$(t){if(Ss&&!Ss.get(XA,!1))throw new N(400,!1);(function YA(){!function _(t){Z=t}(()=>{throw new N(600,!1)})})(),Ss=t;const n=t.get(WA);(function KA(t){t.get(aD,null)?.forEach(e=>e())})(t)}(function QA(t=[],n){return di.create({name:n,providers:[{provide:my,useValue:"platform"},{provide:nw,useValue:new Set([()=>Ss=null])},...t]})}(s,i))}return function t$(t){const n=iw();if(!n)throw new N(401,!1);return n}()}}function iw(){return Ss?.get(WA)??null}let Ti=(()=>{class t{static{this.__NG_ELEMENT_ID__=i$}}return t})();function i$(t){return function o$(t,n,e){if(tl(t)&&!e){const i=Jo(t.index,n);return new Od(i,i)}return 47&t.type?new Od(n[ui],n):null}(Nn(),Le(),16==(16&t))}class nk{constructor(){}supports(n){return Jp(n)}create(n){return new u$(n)}}const c$=(t,n)=>n;class u${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||c$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new d$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new ik),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ik),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class d${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class h${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ik{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new h$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ok(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new p$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class p${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ak(){return new lw([new nk])}let lw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:ak})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ak()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new N(901,!1)}}return t})();function sk(){return new xg([new rk])}let xg=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:sk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||sk()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new N(901,!1)}}return t})();const b$=JA(null,"core",[]);let y$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Hr))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function Yt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Ds(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Ak(t){const n=j(null);try{return t()}finally{j(n)}}let kk=null;function ja(){return kk}class tV{}const Kt=new Be("");let dw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(iV),providedIn:"platform"})}}return t})();const nV=new Be("");let iV=(()=>{class t extends dw{constructor(){super(),this._doc=Ne(Kt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function hw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Ik(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ba(t){return t&&"?"!==t[0]?"?"+t:t}let ml=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Rk),providedIn:"root"})}}return t})();const Ok=new Be("");let Rk=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(Kt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return hw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ba(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oV=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=hw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),bl=(()=>{class t{constructor(e){this._subject=new Lt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function sV(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Ik(Pk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ba(i))}normalize(e){return t.stripTrailingSlash(function aV(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Pk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=Ba}static{this.joinWithSlash=hw}static{this.stripTrailingSlash=Ik}static{this.\u0275fac=function(i){return new(i||t)(Me(ml))}}static{this.\u0275prov=$e({token:t,factory:()=>function rV(){return new bl(Me(ml))}(),providedIn:"root"})}}return t})();function Pk(t){return t.replace(/\/index.html$/,"")}function $k(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Cw=/\s+/,Vk=[];let Zk=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=Vk,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cw):Vk}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Cw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Ye.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class GV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new GV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),Uk(s,o)}});for(let o=0,r=i.length;o{Uk(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo),ie(lw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Uk(t,n){t.context.$implicit=n.item}let Es=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new UV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wk("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wk("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class UV{constructor(){this.$implicit=null,this.ngIf=null}}function Wk(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(n)}'.`)}let Jk=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:ps.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(xg),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Hg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(ie(jo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zi]})}}return t})();class KV{createSubscription(n,e){return Ak(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Ak(()=>n.unsubscribe())}}class qV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const e9=new qV,t9=new KV;let Ew=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(uh(e))return e9;if(HA(e))return t9;throw function zr(t,n){return new N(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(ie(Ti,16))}}static{this.\u0275pipe=Po({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),yl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const Kk="browser";function qk(t){return t===Kk}function eI(t){return"server"===t}let C9=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>qk(Ne(Pa))?new x9(Ne(Kt),window):new D9})}}return t})();class x9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function S9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class D9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class tI{}class q9 extends tV{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kw extends q9{static makeCurrent(){!function eV(t){kk??=t}(new kw)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).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"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function eZ(){return mh=mh||document.querySelector("base"),mh?mh.getAttribute("href"):null}();return null==e?null:function tZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){mh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return $k(document.cookie,n)}}let mh=null,iZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Iw=new Be("");let uI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Iw),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class dI{constructor(n){this._doc=n}}const Ow="ng-app-id";let hI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Ow}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Ow),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ow,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(mp),Me(e_,8),Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Rw={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/MathML/"},Pw=/%COMP%/g,sZ=new Be("",{providedIn:"root",factory:()=>!0});function pI(t,n){return n.map(e=>e.replace(Pw,t))}let Nw=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eI(s),this.defaultRenderer=new Fw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Or.ShadowDom&&(i={...i,encapsulation:Or.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof mI?o.applyToHost(e):o instanceof Lw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Or.Emulated:r=new mI(l,c,i,this.appId,u,a,s,d);break;case Or.ShadowDom:return new dZ(l,c,e,i,a,s,this.nonce,d);default:r=new Lw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(uI),Me(hI),Me(mp),Me(sZ),Me(Kt),Me(Pa),Me(Ct),Me(e_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Fw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Rw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(gI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(gI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new N(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Rw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Rw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(ps.DashCase|ps.Important)?n.style.setProperty(e,i,o&ps.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ps.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=ja().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function gI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class dZ extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=pI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Lw extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?pI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mI extends Lw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function lZ(t){return"_ngcontent-%COMP%".replace(Pw,t)}(c),this.hostAttr=function cZ(t){return"_nghost-%COMP%".replace(Pw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let hZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const bI=["alt","control","meta","shift"],fZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let gZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ja().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),bI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=fZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),bI.forEach(a=>{a!==o&&(0,pZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const _I=[{provide:Pa,useValue:Kk},{provide:aD,useValue:function mZ(){kw.makeCurrent()},multi:!0},{provide:Kt,useFactory:function yZ(){return function h5(t){qy=t}(document),document},deps:[]}],_Z=JA(b$,"browser",_I),vZ=new Be(""),vI=[{provide:yg,useClass:class nZ{addToWindow(n){nn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new N(5103,!1);return r},nn.getAllAngularTestabilities=()=>n.getAllTestabilities(),nn.getAllAngularRootElements=()=>n.getAllRootElements(),nn.frameworkStabilizers||(nn.frameworkStabilizers=[]),nn.frameworkStabilizers.push(i=>{const o=nn.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ja().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Xv,deps:[Ct,Jv,yg]},{provide:Xv,useClass:Xv,deps:[Ct,Jv,yg]}],wI=[{provide:my,useValue:"root"},{provide:Qo,useFactory:function bZ(){return new Qo},deps:[]},{provide:Iw,useClass:hZ,multi:!0,deps:[Kt,Ct,Pa]},{provide:Iw,useClass:gZ,multi:!0,deps:[Kt]},Nw,hI,uI,{provide:X_,useExisting:Nw},{provide:tI,useClass:iZ,deps:[]},[]];let jw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:mp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(vZ,12))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[...wI,...vI],imports:[yl,y$]})}}return t})(),wZ=(()=>{class t{constructor(e){this._doc=e,this._dom=ja()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return CZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const CZ={httpEquiv:"http-equiv"};let CI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$g=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(EZ),o},providedIn:"root"})}}return t})(),EZ=(()=>{class t extends $g{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Gi.NONE:return i;case Gi.HTML:return la(i,"HTML")?Ko(i):DD(this._doc,String(i)).toString();case Gi.STYLE:return la(i,"Style")?Ko(i):i;case Gi.SCRIPT:if(la(i,"Script"))return Ko(i);throw new N(5200,!1);case Gi.URL:return la(i,"URL")?Ko(i):Dp(String(i));case Gi.RESOURCE_URL:if(la(i,"ResourceURL"))return Ko(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(e){return function R5(t){return new T5(t)}(e)}bypassSecurityTrustStyle(e){return function P5(t){return new M5(t)}(e)}bypassSecurityTrustScript(e){return function N5(t){return new A5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new k5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function L5(t){return new I5(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zt||{});const za="*";function _l(t,n){return{type:zt.Trigger,name:t,definitions:n,options:{}}}function $a(t,n=null){return{type:zt.Animate,styles:n,timings:t}}function Vg(t,n=null){return{type:zt.Group,steps:t,options:n}}function ki(t){return{type:zt.Style,styles:t,offset:null}}function nr(t,n,e){return{type:zt.State,name:t,styles:n,options:e}}function ga(t,n,e=null){return{type:zt.Transition,expr:t,animation:n,options:e}}function yh(t=null){return{type:zt.AnimateChild,options:t}}function _h(t,n,e=null){return{type:zt.Query,selector:t,animation:n,options:e}}class vh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class EI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const TI=["toast-component",""];function IZ(t,n){if(1&t){const e=On();_e(0,"button",5),xt("click",function(){return Xt(e),Jt(lt().remove())}),_e(1,"span",6),mn(2,"\xd7"),ve()()}}function OZ(t,n){if(1&t&&(Wd(0),mn(1),Xd()),2&t){const e=lt(2);Fe(),gr("[",e.duplicatesCount+1,"]")}}function RZ(t,n){if(1&t&&(_e(0,"div"),mn(1),kt(2,OZ,2,1,"ng-container",4),ve()),2&t){const e=lt();qi(e.options.titleClass),ln("aria-label",e.title),Fe(),gr(" ",e.title," "),Fe(),Ke("ngIf",e.duplicatesCount)}}function PZ(t,n){if(1&t&&dt(0,"div",7),2&t){const e=lt();qi(e.options.messageClass),Ke("innerHTML",e.message,b_)}}function NZ(t,n){if(1&t&&(_e(0,"div",8),mn(1),ve()),2&t){const e=lt();qi(e.options.messageClass),ln("aria-label",e.message),Fe(),gr(" ",e.message," ")}}function FZ(t,n){if(1&t&&(_e(0,"div"),dt(1,"div",9),ve()),2&t){const e=lt();Fe(),vs("width",e.width+"%")}}class $Z{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class VZ{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class ZZ{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _t;_activate=new _t;_manualClose=new _t;_resetTimeout=new _t;_countDuplicate=new _t;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Zg{toastId;config;message;title;toastType;toastRef;_onTap=new _t;_onAction=new _t;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const AI=new Be("ToastConfig");class GZ extends VZ{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let UZ=(()=>{class t{_document=Ne(Kt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class WZ{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let XZ=(()=>{class t{_overlayContainer=Ne(UZ);_componentFactoryResolver=Ne(sl);_appRef=Ne(Hr);_document=Ne(Kt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new GZ(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new WZ(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Gi.HTML,i));const u=new ZZ(l),d=new Zg(this.index,r,c,o,e,u),p=di.create({providers:[{provide:Zg,useValue:d}],parent:this._injector}),g=new $Z(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(AI),Me(XZ),Me(di),Me($g),Me(Ct))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const JZ={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(ie(vl),ie(Zg),ie(Ct))};static \u0275cmp=gn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&xt("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Pv("@flyInOut",o.state),qi(o.toastClasses),vs("display",o.displayStyle))},standalone:!0,features:[ii],attrs:TI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&kt(0,IZ,3,0,"button",0)(1,RZ,3,5,"div",1)(2,PZ,1,3,"div",2)(3,NZ,2,4,"div",3)(4,FZ,2,2,"div",4),2&i&&(Ke("ngIf",o.options.closeButton),Fe(),Ke("ngIf",o.title),Fe(),Ke("ngIf",o.message&&o.options.enableHtml),Fe(),Ke("ngIf",o.message&&!o.options.enableHtml),Fe(),Ke("ngIf",o.options.progressBar))},dependencies:[Es],encapsulation:2,data:{animation:[_l("flyInOut",[nr("inactive",ki({opacity:0})),nr("active",ki({opacity:1})),nr("removed",ki({opacity:0})),ga("inactive => active",$a("{{ easeTime }}ms {{ easing }}")),ga("active => removed",$a("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},QZ=(t={})=>sc([{provide:AI,useValue:{default:JZ,config:t}}]);let KZ=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[QZ(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=on({type:t});static \u0275inj=qt({})}return t})();function kI(t){return t&&Ae(t.schedule)}function Hw(t){return t[t.length-1]}function II(t){return Ae(Hw(t))?t.pop():void 0}function wh(t){return kI(Hw(t))?t.pop():void 0}function Ts(t){return this instanceof Ts?(this.v=t,this):new Ts(t)}function LI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Vw(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Zw=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function jI(t){return Ae(t?.then)}function BI(t){return Ae(t[kr])}function HI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function YI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zI=function _G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $I(t){return Ae(t?.[zI])}function VI(t){return function FI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Ts(e.read());if(o)return yield Ts(void 0);yield yield Ts(i)}}finally{e.releaseLock()}})}function ZI(t){return Ae(t?.getReader)}function po(t){if(t instanceof _n)return t;if(null!=t){if(BI(t))return function vG(t){return new _n(n=>{const e=t[kr]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Zw(t))return function wG(t){return new _n(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,et)})}(t);if(HI(t))return GI(t);if($I(t))return function xG(t){return new _n(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ZI(t))return function SG(t){return GI(VI(t))}(t)}throw YI(t)}function GI(t){return new _n(n=>{(function DG(t,n){var e,i,o,r;return function PI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=LI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Va(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function UI(t,n=0){return ni((e,i)=>{e.subscribe(Pn(i,o=>Va(i,t,()=>i.next(o),n),()=>Va(i,t,()=>i.complete(),n),o=>Va(i,t,()=>i.error(o),n)))})}function WI(t,n=0){return ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function XI(t,n){if(!t)throw new Error("Iterable cannot be null");return new _n(e=>{Va(e,n,()=>{const i=t[Symbol.asyncIterator]();Va(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hi(t,n){return n?function IG(t,n){if(null!=t){if(BI(t))return function EG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(Zw(t))return function MG(t,n){return new _n(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(jI(t))return function TG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(HI(t))return XI(t,n);if($I(t))return function AG(t,n){return new _n(e=>{let i;return Va(e,n,()=>{i=t[zI](),Va(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(ZI(t))return function kG(t,n){return XI(VI(t),n)}(t,n)}throw YI(t)}(t,n):po(t)}function Tt(...t){return hi(t,wh(t))}function no(t,n,e=1/0){return Ae(n)?no((i,o)=>Nt((r,a)=>n(i,r,o,a))(po(t(i,o))),e):("number"==typeof n&&(e=n),ni((i,o)=>function OG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;po(e(b,u++)).subscribe(Pn(n,S=>{o?.(S),r?p(S):n.next(S)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(S)):g(S)}h()}catch(S){n.error(S)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function nu(t,n){return Ae(n)?no(t,n,1):no(t,1)}function Ii(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function wl(t){return ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Wi(t,n){return ni((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;po(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Gg{}class Ug{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new yr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class RG{encodeKey(n){return JI(n)}encodeValue(n){return JI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const NG=/%(\d[a-f0-9])/gi,FG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function JI(t){return encodeURIComponent(t).replace(NG,(n,e)=>FG[e]??n)}function Wg(t){return`${t}`}class Ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function PG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Wg):[Wg(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ms({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Wg(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Wg(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class LG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function QI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function KI(t){return typeof Blob<"u"&&t instanceof Blob}function qI(t){return typeof FormData<"u"&&t instanceof FormData}class Ch{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function jG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new yr,this.context??=new LG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Ch(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var As=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(As||{});class Gw{constructor(n,e=xh.Ok,i="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xg extends Gw{constructor(n={}){super(n),this.type=As.ResponseHeader}clone(n={}){return new Xg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cl extends Gw{constructor(n={}){super(n),this.type=As.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Cl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Za extends Gw{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var xh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(xh||{});function Uw(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let iu=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Ch)r=e;else{let l,c;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(c=o.params instanceof Ms?o.params:new Ms({fromObject:o.params})),r=new Ch(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Tt(r).pipe(nu(l=>this.handler.handle(l)));if(e instanceof Ch||"events"===o.observe)return a;const s=a.pipe(Ii(l=>l instanceof Cl));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Nt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Nt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Uw(o,i))}post(e,i,o={}){return this.request("POST",e,Uw(o,i))}put(e,i,o={}){return this.request("PUT",e,Uw(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Gg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function t2(t,n){return n(t)}function VG(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const GG=new Be(""),Sh=new Be(""),n2=new Be(""),o2=new Be("");function UG(){let t=null;return(n,e)=>{null===t&&(t=(Ne(GG,{optional:!0})??[]).reduceRight(VG,t2));const i=Ne(bs),o=i.add();return t(n,e).pipe(wl(()=>i.remove(o)))}}let r2=(()=>{class t extends Gg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ne(bs);const o=Ne(o2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Sh),...this.injector.get(n2,[])]));this.chain=o.reduceRight((r,a)=>function ZG(t,n,e){return(i,o)=>ea(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),t2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(wl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ug),Me(No))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const KG=/^\)\]\}',?\n/;let s2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new N(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?hi(i.\u0275loadImpl()):Tt(null)).pipe(Wi(()=>new _n(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new yr(a.getAllResponseHeaders()),S=function qG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new Xg({headers:T,status:a.status,statusText:b,url:S}),l},u=()=>{let{headers:b,status:T,statusText:S,url:H}=c(),re=null;T!==xh.NoContent&&(re=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=re?xh.Ok:0);let ce=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof re){const G=re;re=re.replace(KG,"");try{re=""!==re?JSON.parse(re):null}catch(pe){re=G,ce&&(ce=!1,re={error:pe,text:re})}}ce?(r.next(new Cl({body:re,headers:b,status:T,statusText:S,url:H||void 0})),r.complete()):r.error(new Za({error:re,headers:b,status:T,statusText:S,url:H||void 0}))},d=b=>{const{url:T}=c(),S=new Za({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(S)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:As.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:As.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:As.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(tI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Jw=new Be(""),l2=new Be("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),c2=new Be("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class u2{}let nU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(Pa),Me(l2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function iU(t,n){const e=t.url.toLowerCase();if(!Ne(Jw)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ne(u2).getToken(),o=Ne(c2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ks=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ks||{});function xl(t,n){return{\u0275kind:t,\u0275providers:n}}function oU(...t){const n=[iu,s2,r2,{provide:Gg,useExisting:r2},{provide:Ug,useExisting:s2},{provide:Sh,useValue:iU,multi:!0},{provide:Jw,useValue:!0},{provide:u2,useClass:nU}];for(const e of t)n.push(...e.\u0275providers);return sc(n)}const d2=new Be("");let aU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[oU(xl(ks.LegacyInterceptors,[{provide:d2,useFactory:UG},{provide:Sh,useExisting:d2,multi:!0}]))]})}}return t})();const{isArray:hU}=Array,{getPrototypeOf:fU,prototype:pU,keys:gU}=Object;function y2(t){if(1===t.length){const n=t[0];if(hU(n))return{args:n,keys:null};if(function mU(t){return t&&"object"==typeof t&&fU(t)===pU}(n)){const e=gU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:bU}=Array;function Qw(t){return Nt(n=>function yU(t,n){return bU(n)?t(...n):t(n)}(t,n))}function _2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Dh(...t){const n=II(t),{args:e,keys:i}=y2(t),o=new _n(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?_2(i,s):s),r.complete())}))}});return n?o.pipe(Qw(n)):o}let v2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Sl=(()=>{class t extends v2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[rn]})}}return t})();const ir=new Be(""),vU={provide:ir,useExisting:Sn(()=>Eh),multi:!0},CU=new Be("");let Eh=(()=>{class t extends v2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wU(){const t=ja()?ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt),ie(CU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&xt("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Cn([vU]),rn]})}}return t})();function Is(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function C2(t){return null!=t&&"number"==typeof t.length}const Xi=new Be(""),Os=new Be(""),xU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rs{static min(n){return function x2(t){return n=>{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return D2(n)}static requiredTrue(n){return function E2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function T2(t){return Is(t.value)||xU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function M2(t){return n=>Is(n.value)||!C2(n.value)?null:n.value.lengthC2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function k2(t){if(!t)return Qg;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Is(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return F2(n)}static composeAsync(n){return L2(n)}}function D2(t){return Is(t.value)?{required:!0}:null}function Qg(t){return null}function I2(t){return null!=t}function O2(t){return uh(t)?hi(t):t}function R2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function P2(t,n){return n.map(e=>e(t))}function N2(t){return t.map(n=>function SU(t){return!t.validate}(n)?n:e=>n.validate(e))}function F2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return R2(P2(e,n))}}function Kw(t){return null!=t?F2(N2(t)):null}function L2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return Dh(P2(e,n).map(O2)).pipe(Nt(R2))}}function qw(t){return null!=t?L2(N2(t)):null}function j2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function B2(t){return t._rawValidators}function H2(t){return t._rawAsyncValidators}function e0(t){return t?Array.isArray(t)?t:[t]:[]}function Kg(t,n){return Array.isArray(t)?t.includes(n):t===n}function Y2(t,n){const e=e0(n);return e0(t).forEach(o=>{Kg(e,o)||e.push(o)}),e}function z2(t,n){return e0(n).filter(e=>!Kg(t,e))}class $2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Kw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=qw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Mo extends $2{get formDirective(){return null}get path(){return null}}class ma extends $2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class V2{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qg=(()=>{class t extends V2{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(ma,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&dn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[rn]})}}return t})();const Th="VALID",tm="INVALID",ou="PENDING",Mh="DISABLED";function o0(t){return(nm(t)?t.validators:t)||null}function r0(t,n){return(nm(n)?n.asyncValidators:t)||null}function nm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function G2(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new N(1e3,"");if(!i[e])throw new N(1001,"")}function U2(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new N(1002,"")})}class im{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Th}get invalid(){return this.status===tm}get pending(){return this.status==ou}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Y2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Y2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(z2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(z2(n,this._rawAsyncValidators))}hasValidator(n){return Kg(this._rawValidators,n)}hasAsyncValidator(n){return Kg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ou,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Th,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Th||this.status===ou)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:Th}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ou,this._hasOwnPendingAsyncValidator=!0;const e=O2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Lt,this.statusChanges=new Lt}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?tm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ou)?ou:this._anyControlsHaveStatus(tm)?tm:Th}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){nm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function AU(t){return Array.isArray(t)?Kw(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kU(t){return Array.isArray(t)?qw(t):t||null}(this._rawAsyncValidators)}}class Ah extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){U2(this,0,n),Object.keys(n).forEach(i=>{G2(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class W2 extends Ah{}const Dl=new Be("CallSetDisabledState",{providedIn:"root",factory:()=>kh}),kh="always";function Ih(t,n,e=kh){a0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function OU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X2(t,n)})}(t,n),function PU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function RU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X2(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function IU(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function rm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),sm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function am(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function a0(t,n){const e=B2(t);null!==n.validator?t.setValidators(j2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=H2(t);null!==n.asyncValidator?t.setAsyncValidators(j2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();am(n._rawValidators,o),am(n._rawAsyncValidators,o)}function sm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=B2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=H2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return am(n._rawValidators,i),am(n._rawAsyncValidators,i),e}function X2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J2(t,n){a0(t,n)}function l0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Q2(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function c0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Eh?e=r:function LU(t){return Object.getPrototypeOf(t.constructor)===Sl}(r)?i=r:o=r}),o||i||e||null}const BU={provide:Mo,useExisting:Sn(()=>Rh)},Oh=(()=>Promise.resolve())();let Rh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Lt,this.form=new Ah({},Kw(e),qw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Oh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ih(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path),o=new Ah({});J2(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Oh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Q2(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Ye.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([BU]),rn]})}}return t})();function K2(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function q2(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const $r=class extends im{constructor(n=null,e,i){super(o0(e),r0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),nm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=q2(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){K2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){K2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){q2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},zU={provide:ma,useExisting:Sn(()=>Ph)},nO=(()=>Promise.resolve())();let Ph=(()=>{class t extends ma{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new $r,this._registered=!1,this.name="",this.update=new Lt,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=c0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),l0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ih(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){nO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Yt(i);nO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function om(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(ie(Mo,9),ie(Xi,10),ie(Os,10),ie(ir,10),ie(Ti,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Cn([zU]),rn,Zi]})}}return t})();const u0=new Be(""),WU={provide:ma,useExisting:Sn(()=>d0)};let d0=(()=>{class t extends ma{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Lt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=c0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&rm(i,this,!1),Ih(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}l0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(ir,10),ie(u0,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Ye.None,"formControl","form"],isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Cn([WU]),rn,Zi]})}}return t})();const XU={provide:Mo,useExisting:Sn(()=>Nh)};let Nh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Lt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ih(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){rm(e.control||null,e,!1),function jU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Q2(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(rm(i||null,e),(t=>t instanceof $r)(o)&&(Ih(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);J2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function NU(t,n){return sm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a0(this.form,this),this._oldForm&&sm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Ye.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([XU]),rn,Zi]})}}return t})(),El=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Zi]})}}return t})();const sW={provide:Xi,useExisting:Sn(()=>lm),multi:!0};let lm=(()=>{class t extends El{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Yt,this.createValidator=e=>D2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&ln("required",o._enabled?"":null)},inputs:{required:"required"},features:[Cn([sW]),rn]})}}return t})(),yO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();class _O extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){U2(this,0,n),n.forEach((i,o)=>{G2(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function vO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return vO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Ah(o,r)}record(e,i=null){const o=this._reduceControls(e);return new W2(o,i)}control(e,i,o){let r={};return this.useNonNullable?(vO(i)?r=i:(r.validators=i,r.asyncValidators=o),new $r(e,{...r,nonNullable:!0})):new $r(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new _O(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof $r||e instanceof im?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),CO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})(),fW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})();function xO(t){return new N(3e3,!1)}function Ps(t){switch(t.length){case 0:return new vh;case 1:return t[0];default:return new EI(t)}}function SO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case za:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function FW(t){return new N(3502,!1)}();return r}function b0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&y0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&y0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&y0(e,"destroy",t)))}}function y0(t,n,e){const r=_0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function _0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function or(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function DO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const WW=(()=>typeof document>"u"?null:document.documentElement)();function v0(t){const n=t.parentNode||t.host||null;return n===WW?null:n}let Tl=null,EO=!1;function TO(t,n){for(;n;){if(n===t)return!0;n=v0(n)}return!1}function MO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let w0=(()=>{class t{validateStyleProperty(e){return function JW(t){Tl||(Tl=function QW(){return typeof document<"u"?document.body:null}()||{},EO=!!Tl.style&&"WebkitAppearance"in Tl.style);let n=!0;return Tl.style&&!function XW(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Tl.style,!n&&EO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return TO(e,i)}getParentElement(e){return v0(e)}query(e,i,o){return MO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new vh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class C0{static{this.NOOP=new w0}}class x0{}const qW=1e3,S0="ng-enter",cm="ng-leave",um="ng-trigger",dm=".ng-trigger",kO="ng-animating",D0=".ng-animating";function Ga(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:E0(parseFloat(n[1]),n[2])}function E0(t,n){return"s"===n?t*qW:t}function hm(t,n,e){return t.hasOwnProperty("duration")?t:function tX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(xO()),{duration:0,delay:0,easing:""};o=E0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=E0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function pW(){return new N(3100,!1)}()),s=!0),r<0&&(n.push(function gW(){return new N(3101,!1)}()),s=!0),s&&n.splice(l,0,xO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function ba(t,n,e){n.forEach((i,o)=>{const r=M0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ml(t,n){n.forEach((e,i)=>{const o=M0(i);t.style[o]=""})}function Fh(t){return Array.isArray(t)?1==t.length?t[0]:function TZ(t,n=null){return{type:zt.Sequence,steps:t,options:n}}(t):t}const T0=new RegExp("{{\\s*(.+?)\\s*}}","g");function OO(t){let n=[];if("string"==typeof t){let e;for(;e=T0.exec(t);)n.push(e[1]);T0.lastIndex=0}return n}function Lh(t,n,e){const i=`${t}`,o=i.replace(T0,(r,a)=>{let s=n[a];return null==s&&(e.push(function bW(t){return new N(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const oX=/-+([a-z0-9])/g;function M0(t){return t.replace(oX,(...n)=>n[1].toUpperCase())}function rr(t,n,e){switch(n.type){case zt.Trigger:return t.visitTrigger(n,e);case zt.State:return t.visitState(n,e);case zt.Transition:return t.visitTransition(n,e);case zt.Sequence:return t.visitSequence(n,e);case zt.Group:return t.visitGroup(n,e);case zt.Animate:return t.visitAnimate(n,e);case zt.Keyframes:return t.visitKeyframes(n,e);case zt.Style:return t.visitStyle(n,e);case zt.Reference:return t.visitReference(n,e);case zt.AnimateChild:return t.visitAnimateChild(n,e);case zt.AnimateRef:return t.visitAnimateRef(n,e);case zt.Query:return t.visitQuery(n,e);case zt.Stagger:return t.visitStagger(n,e);default:throw function yW(t){return new N(3004,!1)}()}}function A0(t,n){return window.getComputedStyle(t)[n]}const sX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RO extends x0{normalizePropertyName(n,e){return M0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(sX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function _W(t,n){return new N(3005,!1)}())}return a+r}}const fm="*";const pm=new Set(["true","1"]),gm=new Set(["false","0"]);function PO(t,n){const e=pm.has(t)||gm.has(t),i=pm.has(n)||gm.has(n);return(o,r)=>{let a=t==fm||t==o,s=n==fm||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?pm.has(t):gm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?pm.has(n):gm.has(n)),a&&s}}const dX=new RegExp("s*:selfs*,?","g");function k0(t,n,e,i){return new hX(t).build(n,e,i)}class hX{constructor(n){this._driver=n}build(n,e,i){const o=new gX(e);return this._resetContextStyleTimingState(o),rr(this,Fh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function vW(){return new N(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==zt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==zt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function wW(){return new N(3007,!1)}())}),{type:zt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{OO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function CW(t,n){return new N(3008,!1)}(0,r.values()))}return{type:zt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=rr(this,Fh(n.animation),e),o=function lX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function cX(t,n,e){if(":"==t[0]){const l=function uX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function IW(t){return new N(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(PO(o,a)),"<"==r[0]&&(o!=fm||a!=fm)&&n.push(PO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:zt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Al(n.options)}}visitSequence(n,e){return{type:zt.Sequence,steps:n.steps.map(i=>rr(this,i,e)),options:Al(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=rr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:zt.Group,steps:r,options:Al(n.options)}}visitAnimate(n,e){const i=function bX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return I0(hm(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=I0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=hm(e,n);return I0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ki({});if(r.type==zt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=ki(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:zt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===za?i.push(s):e.errors.push(new N(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:zt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function SW(t,n,e,i,o){return new N(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function iX(t,n,e){const i=n.params||{},o=OO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function mW(t){return new N(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:zt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new N(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(S=>{const H=this._makeStyleAst(S,e);let re=null!=H.offset?H.offset:function mX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),ce=0;return null!=re&&(r++,ce=H.offset=re),l=l||ce<0||ce>1,s=s||ce0&&r{const re=h>0?H==p?1:h*H:a[H],ce=re*T;e.currentTime=g+b.delay+ce,b.duration=ce,this._validateStyleAst(S,e),S.offset=re,i.styles.push(S)}),i}visitReference(n,e){return{type:zt.Reference,animation:rr(this,Fh(n.animation),e),options:Al(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:zt.AnimateChild,options:Al(n.options)}}visitAnimateRef(n,e){return{type:zt.AnimateRef,animation:this.visitReference(n.animation,e),options:Al(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function fX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(dX,"")),t=t.replace(/@\*/g,dm).replace(/@\w+/g,e=>dm+"-"+e.slice(1)).replace(/:animating/g,D0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,or(e.collectedStyles,e.currentQuerySelector,new Map);const s=rr(this,Fh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:zt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Al(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function AW(){return new N(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:hm(n.timings,e.errors,!0);return{type:zt.Stagger,animation:rr(this,Fh(n.animation),e),timings:i,options:null}}}class gX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Al(t){return t?(t={...t}).params&&(t.params=function pX(t){return t?{...t}:null}(t.params)):t={},t}function I0(t,n,e){return{duration:t,delay:n,easing:e}}function O0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class mm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const vX=new RegExp(":enter","g"),CX=new RegExp(":leave","g");function R0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new xX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class xX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new mm;const d=new P0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ga(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),rr(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[O0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ga(Lh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ga(i.duration):null,s=null!=i.delay?Ga(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),rr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==zt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=bm);const a=Ga(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>rr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ga(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),rr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return hm(e.params?Lh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==zt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ga(o.delay):0;r&&(e.previousNode.type===zt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),rr(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;rr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const bm={};class P0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ym(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ga(i.duration)),null!=i.delay&&(o.delay=Ga(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Lh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new P0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=bm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new SX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(vX,"."+this._enterClassName)).replace(CX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function kW(t){return new N(3014,!1)}()),s}}class ym{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ym(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||za),this._currentKeyframe.set(e,za);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function DX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,za)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Lh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??za),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===za&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return O0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class SX extends ym{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",LO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",LO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return O0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function LO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function jO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const N0={};class BO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function EX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||N0,g=this.buildStyles(i,s&&s.params||N0,d),b=l&&l.params||N0,T=this.buildStyles(o,b,d),S=new Set,H=new Map,re=new Map,ce="void"===o,G={params:HO(b,h),delay:this.ast.options?.delay},pe=u?[]:R0(n,e,this.ast.animation,r,a,g,T,G,c,d);let ye=0;return pe.forEach(be=>{ye=Math.max(be.duration+be.delay,ye)}),d.length?jO(e,this._triggerName,i,o,ce,g,T,[],[],H,re,ye,d):(pe.forEach(be=>{const Pe=be.element,je=or(H,Pe,new Set);be.preStyleProps.forEach(Re=>je.add(Re));const Xe=or(re,Pe,new Set);be.postStyleProps.forEach(Re=>Xe.add(Re)),Pe!==e&&S.add(Pe)}),jO(e,this._triggerName,i,o,ce,g,T,pe,[...S.values()],H,re,ye))}}function HO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class TX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=HO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Lh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class AX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new TX(o.style,o.options&&o.options.params||{},i))}),YO(this.states,"true","1"),YO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new BO(n,o,this.states))}),this.fallbackTransition=function kX(t,n,e){return new BO(t,{type:zt.Transition,animation:{type:zt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function YO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const IX=new mm;class OX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=k0(this._driver,e,i,[]);if(i.length)throw function LW(t){return new N(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=SO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=R0(this._driver,e,r,S0,cm,new Map,new Map,i,IX,o),a.forEach(u=>{const d=or(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function jW(){return new N(3300,!1)}()),a=[]),o.length)throw function BW(t){return new N(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,za))})});const c=Ps(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function HW(t){return new N(3301,!1)}();return e}listen(n,e,i,o){const r=_0(e,"","","");return b0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const zO="ng-animate-queued",F0="ng-animate-disabled",LX=[],$O={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vr="__ng_removed";class L0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function zX(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const jh="void",j0=new L0(jh);class BX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,_r(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YW(t,n){return new N(3302,!1)}();if(null==i||0==i.length)throw function zW(t){return new N(3303,!1)}();if(!function $X(t){return"start"==t||"done"==t}(i))throw function $W(t,n){return new N(3400,!1)}();const r=or(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=or(this._engine.statesByElement,n,new Map);return s.has(e)||(_r(n,um),_r(n,um+"-"+e),s.set(e,j0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function VW(t){return new N(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new B0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(_r(n,um),_r(n,um+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new L0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=j0),c.value!==jh&&l.value===c.value){if(!function GX(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ml(n,T),ba(n,S)})}return}const h=or(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(_r(n,zO),a.onStart(()=>{ru(n,zO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let S=T.indexOf(a);S>=0&&T.splice(S,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,dm,!0);i.forEach(o=>{if(o[Vr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,jh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Ps(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||j0,u=new L0(jh),d=new B0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Vr];(!r||r===$O)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){_r(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=_0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,b0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class HX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new BX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(_m(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!_m(e))return;const r=e[Vr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),_r(n,F0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ru(n,F0))}removeNode(n,e,i){if(_m(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Vr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return _m(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,dm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,D0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ps(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Vr];if(e&&e.setForRemoval){if(n[Vr]=$O,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(F0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ps(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function ZW(t){return new N(3402,!1)}()}_flushAnimations(n,e){const i=new mm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const He=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=S0+b++;g.set(He,We),Se.forEach(nt=>_r(nt,We))});const T=[],S=new Set,H=new Set;for(let Se=0;SeS.add(nt)):H.add(He))}const re=new Map,ce=GO(h,Array.from(S));ce.forEach((Se,He)=>{const We=cm+b++;re.set(He,We),Se.forEach(nt=>_r(nt,We))}),n.push(()=>{p.forEach((Se,He)=>{const We=g.get(He);Se.forEach(nt=>ru(nt,We))}),ce.forEach((Se,He)=>{const We=re.get(He);Se.forEach(nt=>ru(nt,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const nt=We.player,St=We.element;if(G.push(nt),this.collectedEnterElements.length){const Vn=St[Vr];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(We.triggerName)){const ct=Vn.previousTriggersValues.get(We.triggerName),yn=this.statesByElement.get(We.element);if(yn&&yn.has(We.triggerName)){const ro=yn.get(We.triggerName);ro.value=ct,yn.set(We.triggerName,ro)}}return void nt.destroy()}}const Mt=!d||!this.driver.containsElement(d,St),en=re.get(St),Rn=g.get(St),an=this._buildInstruction(We,i,Rn,en,Mt);if(an.errors&&an.errors.length)return void pe.push(an);if(Mt)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);if(We.isFallbackTransition)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);const sn=[];an.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||sn.push(Vn)}),an.timelines=sn,i.append(St,an.timelines),a.push({instruction:an,player:nt,element:St}),an.queriedElements.forEach(Vn=>or(s,Vn,[]).push(nt)),an.preStyleProps.forEach((Vn,ct)=>{if(Vn.size){let yn=l.get(ct);yn||l.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))}}),an.postStyleProps.forEach((Vn,ct)=>{let yn=c.get(ct);yn||c.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))})});if(pe.length){const Se=[];pe.forEach(He=>{Se.push(function GW(t,n){return new N(3505,!1)}())}),G.forEach(He=>He.destroy()),this.reportError(Se)}const ye=new Map,be=new Map;a.forEach(Se=>{const He=Se.element;i.has(He)&&(be.set(He,He),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,ye))}),o.forEach(Se=>{const He=Se.element;this._getPreviousPlayers(He,!1,Se.namespaceId,Se.triggerName,null).forEach(nt=>{or(ye,He,[]).push(nt),nt.destroy()})});const Pe=T.filter(Se=>WO(Se,l,c)),je=new Map;ZO(je,this.driver,H,c,za).forEach(Se=>{WO(Se,l,c)&&Pe.push(Se)});const Re=new Map;p.forEach((Se,He)=>{ZO(Re,this.driver,new Set(Se),l,"!")}),Pe.forEach(Se=>{const He=je.get(Se),We=Re.get(Se);je.set(Se,new Map([...He?.entries()??[],...We?.entries()??[]]))});const Je=[],st=[],ht={};a.forEach(Se=>{const{element:He,player:We,instruction:nt}=Se;if(i.has(He)){if(u.has(He))return We.onDestroy(()=>ba(He,nt.toStyles)),We.disabled=!0,We.overrideTotalTime(nt.totalTime),void o.push(We);let St=ht;if(be.size>1){let en=He;const Rn=[];for(;en=en.parentNode;){const an=be.get(en);if(an){St=an;break}Rn.push(en)}Rn.forEach(an=>be.set(an,St))}const Mt=this._buildAnimation(We.namespaceId,nt,ye,r,Re,je);if(We.setRealPlayer(Mt),St===ht)Je.push(We);else{const en=this.playersByElement.get(St);en&&en.length&&(We.parentPlayer=Ps(en)),o.push(We)}}else Ml(He,nt.fromStyles),We.onDestroy(()=>ba(He,nt.toStyles)),st.push(We),u.has(He)&&o.push(We)}),st.forEach(Se=>{const He=r.get(Se.element);if(He&&He.length){const We=Ps(He);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!Mt.destroyed);St.length?VX(this,He,St):this.processLeaveNode(He)}return T.length=0,Je.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const He=this.players.indexOf(Se);this.players.splice(He,1)}),Se.play()}),Je}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==jh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=or(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ml(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Vr];if(T&&T.removedBeforeQueried)return new vh(g.duration,g.delay);const S=b!==l,H=function ZX(t){const n=[];return UO(t,n),n}((i.get(b)||LX).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===b),re=r.get(b),ce=a.get(b),G=SO(this._normalizer,g.keyframes,re,ce),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),S){const ye=new B0(n,s,b);ye.setRealPlayer(pe),c.push(ye)}return pe});c.forEach(g=>{or(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function YX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>_r(g,kO));const p=Ps(h);return p.onDestroy(()=>{u.forEach(g=>ru(g,kO)),ba(l,e.toStyles)}),d.forEach(g=>{or(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new vh(n.duration,n.delay)}}class B0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new vh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>b0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){or(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function _m(t){return t&&1===t.nodeType}function VO(t,n){const e=t.style.display;return t.style.display=n??"none",e}function ZO(t,n,e,i,o){const r=[];e.forEach(l=>r.push(VO(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Vr]=jX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>VO(l,r[s++])),a}function GO(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function _r(t,n){t.classList?.add(n)}function ru(t,n){t.classList?.remove(n)}function VX(t,n,e){Ps(e).onDone(()=>t.processLeaveNode(n))}function UO(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Bh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new HX(n.body,e,i,o),this._timelineEngine=new OX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=k0(this._driver,r,l,[]);if(l.length)throw function NW(t,n){return new N(3404,!1)}();s=function MX(t,n,e){return new AX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=DO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=DO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Hh{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Hh.initialStylesByElement.get(n);o||Hh.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ba(this._element,this._initialStyles),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Hh.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),ba(this._element,this._initialStyles),this._state=3)}}function H0(t){let n=null;return t.forEach((e,i)=>{(function WX(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class XO{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:A0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class JO{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return TO(n,e)}getParentElement(n){return v0(n)}query(n,e,i){return MO(n,e,i)}computeStyle(n,e,i){return A0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof XO);(function rX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function nX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function aX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,A0(t,s)))}}return n}(n,d,c);const h=function UX(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=H0(n[0]),n.length>1&&(i=H0(n[n.length-1]))):n instanceof Map&&(e=H0(n)),e||i?new Hh(t,e,i):null}(n,d);return new XO(n,d,l,h)}}const QO="@.disabled";class KO{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==QO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class XX extends KO{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function JX(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function QX(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class KX{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new KO("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new XX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let qX=(()=>{class t extends Bh{constructor(e,i,o){super(e,i,o,Ne($p,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(C0),Me(x0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const qO=[{provide:x0,useFactory:function eJ(){return new RO}},{provide:Bh,useClass:qX},{provide:X_,useFactory:function tJ(t,n,e){return new KX(t,n,e)},deps:[Nw,Bh,Ct]}],Y0=[{provide:C0,useFactory:()=>new JO},{provide:Co,useValue:"BrowserAnimations"},...qO],eR=[{provide:C0,useClass:w0},{provide:Co,useValue:"NoopAnimations"},...qO];let z0,nJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?eR:Y0}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:Y0,imports:[jw]})}}return t})();try{z0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{z0=!1}let au,Si=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?qk(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!z0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const tR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nR(){if(au)return au;if("object"!=typeof document||!document)return au=new Set(tR),au;let t=document.createElement("input");return au=new Set(tR.filter(n=>(t.setAttribute("type",n),t.type===n))),au}let Yh,kl,$0;function zh(t){return function iJ(){if(null==Yh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function oJ(){if(null==kl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kl=!1,kl;if("scrollBehavior"in document.documentElement.style)kl=!0;else{const t=Element.prototype.scrollTo;kl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kl}function Cm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ns(t){return t.composedPath?t.composedPath()[0]:t.target}function V0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fs(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Hi(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?ni((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):$i}class vJ extends me{constructor(n,e){super()}schedule(n,e=0){return this}}const Dm={setInterval(t,n,...e){const{delegate:i}=Dm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Dm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class W0 extends vJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Dm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Dm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,te(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const X0={now:()=>(X0.delegate||Date).now(),delegate:void 0};class Vh{constructor(n,e=Vh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Vh.now=X0.now;class J0 extends Vh{constructor(n,e=Vh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Q0=new J0(W0),wJ=Q0;function aR(t,n=Q0){return ni((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const vr=new _n(t=>t.complete());function io(t){return t<=0?()=>vr:ni((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function sR(t){return Ii((n,e)=>t<=e)}function K0(t,n=$i){return t=t??xJ,ni((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function xJ(t,n){return t===n}function In(t){return ni((n,e)=>{po(t).subscribe(Pn(e,()=>e.complete(),At)),!e.closed&&n.subscribe(e)})}let SJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[SJ]})}}return t})();function Em(t){return null!=t&&"false"!=`${t}`}function cR(t,n=0){return function DJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Tm(t){return Array.isArray(t)?t:[t]}function Oi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ls(t){return t instanceof Zt?t.nativeElement:t}function Mm(...t){const n=wh(t),e=II(t),{args:i,keys:o}=y2(t);if(0===i.length)return hi([],n);const r=new _n(function EJ(t,n,e=$i){return i=>{uR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=hi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>_2(o,a):$i));return e?r.pipe(Qw(e)):r}function uR(t,n,e){t?Va(e,t,n):n()}function su(t=1/0){return no($i,t)}function Am(...t){return function TJ(){return su(1)}()(hi(t,wh(t)))}function ya(...t){const n=wh(t);return ni((e,i)=>{(n?Am(t,e,n):Am(t,e)).subscribe(i)})}const dR=new Set;let Il,MJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function AJ(t,n){if(!dR.has(t))try{Il||(Il=document.createElement("style"),n&&(Il.nonce=n),Il.setAttribute("type","text/css"),document.head.appendChild(Il)),Il.sheet&&(Il.sheet.insertRule(`@media ${t} {body{ }}`,0),dR.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(e_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let IJ=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _t}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hR(Tm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Mm(hR(Tm(e)).map(a=>this._registerQuery(a).observable));return r=Am(r.pipe(io(1)),r.pipe(sR(1),aR(0))),r.pipe(Nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new _n(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ya(i),Nt(({matches:a})=>({query:e,matches:a})),In(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(MJ),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function pR(t,n,e){const i=gR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function gR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class mR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _t,this._typeaheadSubscription=me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new _t,this.change=new _t,n instanceof ds&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Hi(e=>this._pressedLetters.push(e)),aR(n),Ii(()=>this._pressedLetters.length>0),Nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof ds?this._items.toArray():this._items}}class NJ extends mR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class FJ extends mR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let q0=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function jJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function LJ(t){try{return t.frameElement}catch{return null}}(function GJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=yR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function VJ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function ZJ(t){return!function HJ(t){return function zJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function BJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function YJ(t){return function $J(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bR(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bR(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(t){if(!bR(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class UJ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(io(1)).subscribe(n)}}let _R=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new UJ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(q0),Me(Ct),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return 0===t.buttons||0===t.detail}function wR(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const WJ=new Be("cdk-input-modality-detector-options"),XJ={ignoreKeys:[18,17,224,91,16]},lu=zh({passive:!0,capture:!0});let JJ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ci(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ns(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vR(a)?"keyboard":"mouse"),this._mostRecentTarget=Ns(a))},this._onTouchstart=a=>{wR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ns(a))},this._options={...XJ,...r},this.modalityDetected=this._modality.pipe(sR(1)),this.modalityChanged=this.modalityDetected.pipe(K0()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,lu),o.addEventListener("mousedown",this._onMousedown,lu),o.addEventListener("touchstart",this._onTouchstart,lu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lu),document.removeEventListener("mousedown",this._onMousedown,lu),document.removeEventListener("touchstart",this._onTouchstart,lu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Ct),Me(Kt),Me(WJ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const QJ=new Be("liveAnnouncerElement",{providedIn:"root",factory:function KJ(){return null}}),qJ=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let eQ=0,tQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _t,this._rootNodeFocusAndBlurListener=s=>{for(let c=Ns(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||km.IMMEDIATE}monitor(e,i=!1){const o=Ls(e);if(!this._platform.isBrowser||1!==o.nodeType)return Tt();const r=function aJ(t){if(function rJ(){if(null==$0){const t=typeof document<"u"?document.head:null;$0=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $0}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new _t,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ls(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ls(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===km.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===km.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Ns(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Im)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Im),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ne(IJ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Rl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Rl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Rl.BLACK_ON_WHITE}return Rl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(eC,xR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Rl.BLACK_ON_WHITE?e.add(eC,xR):i===Rl.WHITE_ON_BLACK&&e.add(eC,SR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(DR))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[lR]})}}return t})();const oQ=new Be("cdk-dir-doc",{providedIn:"root",factory:function rQ(){return Ne(Kt)}}),aQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let js=(()=>{class t{constructor(e){this.value="ltr",this.change=new Lt,e&&(this.value=function sQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?aQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(oQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const lQ=["text"],cQ=[[["mat-icon"]],"*"],uQ=["mat-icon","*"];function dQ(t,n){if(1&t&&dt(0,"mat-pseudo-checkbox",1),2&t){const e=lt();Ke("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function hQ(t,n){1&t&&dt(0,"mat-pseudo-checkbox",3),2&t&&Ke("disabled",lt().disabled)}function fQ(t,n){if(1&t&&(_e(0,"span",4),mn(1),ve()),2&t){const e=lt();Fe(),gr("(",e.group.label,")")}}const pQ=["mat-internal-form-field",""],gQ=["*"],bQ=new Be("mat-sanity-checks",{providedIn:"root",factory:function mQ(){return!0}});let $n=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!V0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(DR),Me(bQ,8),Me(Kt))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[cu,cu]})}}return t})();class tC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Zh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(wr||{});class xQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=wr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const MR=zh({passive:!0,capture:!0});class SQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ns(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,MR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,MR)))}}const AR={enterDuration:225,exitDuration:150},kR=zh({passive:!0,capture:!0}),IR=["mousedown","touchstart"],OR=["mouseup","mouseleave","touchend","touchcancel"];class Om{static{this._eventManager=new SQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ls(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...AR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function EQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new xQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=wr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const S=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),T={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===wr.FADING_OUT||n.state===wr.HIDDEN)return;const e=n.element,i={...AR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=wr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ls(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,IR.forEach(i=>{Om._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{OR.forEach(e=>{this._triggerElement.addEventListener(e,this,kR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===wr.FADING_IN?this._startFadeOutTransition(n):n.state===wr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=wr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=wr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=vR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===wr.VISIBLE||n.config.terminateOnPointerUp&&n.state===wr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(IR.forEach(e=>Om._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&OR.forEach(e=>n.removeEventListener(e,this,kR)))}}const RR=new Be("mat-ripple-global-options");let uu=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Om(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ct),ie(Si),ie(RR,8),ie(Co,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Ye.None,"matRippleColor","color"],unbounded:[Ye.None,"matRippleUnbounded","unbounded"],centered:[Ye.None,"matRippleCentered","centered"],radius:[Ye.None,"matRippleRadius","radius"],animation:[Ye.None,"matRippleAnimation","animation"],disabled:[Ye.None,"matRippleDisabled","disabled"],trigger:[Ye.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Uh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})(),PR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(ie(Co,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&dn("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ii],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),TQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n]})}}return t})();const NR=new Be("MAT_OPTION_PARENT_COMPONENT"),FR=new Be("MatOptgroup");let MQ=0;class AQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let nC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+MQ++,this.onSelectionChange=new Lt,this._stateChanges=new _t}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Fs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new AQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ti),ie(NR,8),ie(FR,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Jn(lQ,7),2&i){let r;$t(r=Vt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&xt("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Cs("id",o.id),ln("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),dn("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Ye.HasDecoratorInputTransform,"disabled","disabled",Yt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[So,ii],ngContentSelectors:uQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Ui(cQ),kt(0,dQ,1,2,"mat-pseudo-checkbox",1),wn(1),_e(2,"span",2,0),wn(4,1),ve(),kt(5,hQ,1,1,"mat-pseudo-checkbox",3)(6,fQ,2,1,"span",4),dt(7,"div",5)),2&i&&(Mn(0,o.multiple?0:-1),Fe(5),Mn(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Fe(),Mn(6,o.group&&o.group._inert?6:-1),Fe(),Ke("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[PR,uu],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),LR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[Uh,$n,TQ]})}}return t})();const jR={capture:!0},BR=["focus","click","mouseenter","touchstart"],iC="mat-ripple-loader-uninitialized",oC="mat-ripple-loader-class-name",HR="mat-ripple-loader-centered",Rm="mat-ripple-loader-disabled";let OQ=(()=>{class t{constructor(){this._document=Ne(Kt,{optional:!0}),this._animationMode=Ne(Co,{optional:!0}),this._globalRippleOptions=Ne(RR,{optional:!0}),this._platform=Ne(Si),this._ngZone=Ne(Ct),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${iC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of BR)this._document?.addEventListener(e,this._onInteraction,jR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of BR)this._document?.removeEventListener(i,this._onInteraction,jR)}configureRipple(e,i){e.setAttribute(iC,""),(i.className||!e.hasAttribute(oC))&&e.setAttribute(oC,i.className||""),i.centered&&e.setAttribute(HR,""),i.disabled&&e.setAttribute(Rm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(Rm,""):e.removeAttribute(Rm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(oC)),e.append(o);const r=new uu(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(HR),r.disabled=e.hasAttribute(Rm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(iC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ii],attrs:pQ,ngContentSelectors:gQ,decls:1,vars:0,template:function(i,o){1&i&&(Ui(),wn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const RQ=["*",[["mat-toolbar-row"]]],PQ=["*","mat-toolbar-row"];let NQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),zR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Si),ie(Kt))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&gi(r,NQ,5),2&i){let a;$t(a=Vt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(qi(o.color?"mat-"+o.color:""),dn("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[ii],ngContentSelectors:PQ,decls:2,vars:0,template:function(i,o){1&i&&(Ui(RQ),wn(0),wn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),FQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})();const Pm=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Wh(t){return new _n(n=>{po(t()).subscribe(n)})}function du(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new _n(n?o=>n.schedule(i,0,o):i)}function rC(){return ni((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class $R extends _n{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Wu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new me;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=me.EMPTY)}return n}refCount(){return rC()(this)}}function Nm(t){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function VR(t=jQ){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function jQ(){return new Pm}function Pl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,io(1),e?Nm(n):VR(()=>new Pm))}function Ua(t){return ni((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=po(t(a,Ua(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function aC(t){return t<=0?()=>vr:ni((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const cn="primary",Xh=Symbol("RouteTitle");class $Q{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hu(t){return new $Q(t)}function VQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function GR(t){return t.length>0?t[t.length-1]:null}function Bs(t){return function LQ(t){return!!t&&(t instanceof _n||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:uh(t)?hi(Promise.resolve(t)):Tt(t)}const GQ={exact:function XR(t,n,e){if(!Nl(t.segments,n.segments)||!Fm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!XR(t.children[i],n.children[i],e))return!1;return!0},subset:JR},UR={exact:function UQ(t,n){return _a(t,n)},subset:function WQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZR(t[e],n[e]))},ignored:()=>!0};function WR(t,n,e){return GQ[e.paths](t.root,n.root,e.matrixParams)&&UR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function JR(t,n,e){return QR(t,n,n.segments,e)}function QR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Nl(o,e)||n.hasChildren()||!Fm(o,e,i))}if(t.segments.length===e.length){if(!Nl(t.segments,e)||!Fm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!JR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Nl(t.segments,o)&&Fm(t.segments,o,i)&&t.children[cn])&&QR(t.children[cn],n,r,i)}}function Fm(t,n,e){return n.every((i,o)=>UR[e](t[o].parameters,i.parameters))}class fu{constructor(n=new jn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return QQ.serialize(this)}}class jn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lm(this)}}class Jh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hu(this.parameters),this._parameterMap}toString(){return eP(this)}}function Nl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new lC,providedIn:"root"})}}return t})();class lC{parse(n){const e=new lK(n);return new fu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Qh(n.root,!0)}`,i=function eK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${jm(e)}=${jm(o)}`).join("&"):`${jm(e)}=${jm(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QQ=new lC;function Lm(t){return t.segments.map(n=>eP(n)).join("/")}function Qh(t,n){if(!t.hasChildren())return Lm(t);if(n){const e=t.children[cn]?Qh(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${Qh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function JQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[Qh(t.children[cn],!1)]:[`${o}:${Qh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Lm(t)}/${e[0]}`:`${Lm(t)}/(${e.join("//")})`}}function KR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jm(t){return KR(t).replace(/%3B/gi,";")}function cC(t){return KR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bm(t){return decodeURIComponent(t)}function qR(t){return Bm(t.replace(/\+/g,"%20"))}function eP(t){return`${cC(t.path)}${function qQ(t){return Object.entries(t).map(([n,e])=>`;${cC(n)}=${cC(e)}`).join("")}(t.parameters)}`}const tK=/^[^\/()?;#]+/;function uC(t){const n=t.match(tK);return n?n[0]:""}const nK=/^[^\/()?;=#]+/,oK=/^[^=?&#]+/,aK=/^[^&#]+/;class lK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jn([],{}):new jn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new jn(n,e)),i}parseSegment(){const n=uC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new Jh(Bm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function iK(t){const n=t.match(nK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uC(this.remaining);o&&(i=o,this.capture(i))}n[Bm(e)]=Bm(i)}parseQueryParam(n){const e=function rK(t){const n=t.match(oK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function sK(t){const n=t.match(aK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=qR(e),r=qR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new jn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function tP(t){return t.segments.length>0?new jn([],{[cn]:t}):t}function nP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=nP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function cK(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new jn(t.segments.concat(n.segments),n.children)}return t}(new jn(t.segments,n))}function gu(t){return t instanceof fu}function iP(t){let n;const o=tP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new jn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function oP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return dC(o,o,o,e,i);const r=function dK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new aP(e,n,i)}(n);if(r.toRoot())return dC(o,o,new jn([],{}),e,i);const a=function hK(t,n,e){if(t.isAbsolute)return new Ym(n,!0,0);if(!e)return new Ym(n,!1,NaN);if(null===e.parent)return new Ym(e,!0,0);const i=Hm(t.commands[0])?0:1;return function fK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new N(4005,!1);o=i.segments.length}return new Ym(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?qh(a.segmentGroup,a.index,r.commands):sP(a.segmentGroup,a.index,r.commands);return dC(o,a.segmentGroup,s,e,i)}function Hm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Kh(t){return"object"==typeof t&&null!=t&&t.outlets}function dC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:rP(t,n,e);const s=tP(nP(a));return new fu(s,r,o)}function rP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:rP(r,n,e)}),new jn(t.segments,i)}class aP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Hm(i[0]))throw new N(4003,!1);const o=i.find(Kh);if(o&&o!==GR(i))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function sP(t,n,e){if(t??=new jn([],{}),0===t.segments.length&&t.hasChildren())return qh(t,n,e);const i=function gK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(Kh(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!cP(l,c,a))return r;i+=2}else{if(!cP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=qh(t.children[cn],n,e);return new jn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=sP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new jn(t.segments,o)}}function hC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=hC(new jn([],{}),0,i))}),n}function lP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function cP(t,n,e){return t==e.path&&_a(n,e.parameters)}const ef="imperative";var bn=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}(bn||{});class va{constructor(n,e){this.id=n,this.url=e}}class zm extends va{constructor(n,e,i="imperative",o=null){super(n,e),this.type=bn.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wa extends va{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=bn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ar=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ar||{}),$m=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($m||{});class mu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationSkipped}}class Vm extends va{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=bn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uP extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yK extends va{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=bn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _K extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class CK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DK{constructor(n){this.snapshot=n,this.type=bn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EK{constructor(n){this.snapshot=n,this.type=bn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dP{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=bn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class fC{}class pC{constructor(n){this.url=n}}class TK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tf,this.attachRef=null}}let tf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new TK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class hP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=gC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=gC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=mC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return mC(n,this._root).map(e=>e.value)}}function gC(t,n){if(t===n.value)return n;for(const e of n.children){const i=gC(t,e);if(i)return i}return null}function mC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=mC(t,e);if(i.length)return i.unshift(n),i}return[]}class Zr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function yu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class fP extends hP{constructor(n,e){super(n),this.snapshot=e,_C(this,n)}toString(){return this.snapshot.toString()}}function pP(t){const n=function MK(t){const r=new yC([],{},{},"",{},cn,t,null,{});return new gP("",new Zr(r,[]))}(t),e=new ci([new Jh("",{})]),i=new ci({}),o=new ci({}),r=new ci({}),a=new ci(""),s=new Fl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new fP(new Zr(s,[]),n)}class Fl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Nt(c=>c[Xh]))??Tt(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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(Nt(n=>hu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nt(n=>hu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&bP(o)&&(i.resolve[Xh]=o.title),i}class yC{get title(){return this.data?.[Xh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gP extends hP{constructor(n,e){super(e),this.url=n,_C(this,e)}toString(){return mP(this._root)}}function _C(t,n){n.value._routerState=t,n.children.forEach(e=>_C(t,e))}function mP(t){const n=t.children.length>0?` { ${t.children.map(mP).join(", ")} } `:"";return`${t.value}${n}`}function vC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_a(n.params,e.params)||t.paramsSubject.next(e.params),function ZQ(t,n){if(t.length!==n.length)return!1;for(let e=0;e_a(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||wC(t.parent,n.parent))}function bP(t){return"string"==typeof t.title||null===t.title}let CC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Lt,this.deactivateEvents=new Lt,this.attachEvents=new Lt,this.detachEvents=new Lt,this.parentContexts=Ne(tf),this.location=Ne(jo),this.changeDetector=Ne(Ti),this.environmentInjector=Ne(No),this.inputBinder=Ne(Zm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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;const 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 N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new AK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zi]})}}return t})();class AK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Fl?this.route:n===tf?this.childContexts:this.parent.get(n,e)}}const Zm=new Be("");let yP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Mm([i.queryParams,i.params,i.data]).pipe(Wi(([r,a,s],l)=>(s={...r,...a,...s},0===l?Tt(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function q$(t){const n=un(t);if(!n)return null;const e=new Hd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function nf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function IK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return nf(t,i,o);return nf(t,i)})}(t,n,e);return new Zr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>nf(t,s)),a}}const i=function OK(t){return new Fl(new ci(t.url),new ci(t.params),new ci(t.queryParams),new ci(t.fragment),new ci(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>nf(t,r));return new Zr(i,o)}}const _P="ngNavigationCancelingError";function vP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=gu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=wP(!1,ar.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function wP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[_P]=!0,e.cancellationCode=n,e}function CP(t){return!!t&&t[_P]}let xP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["ng-component"]],standalone:!0,features:[ii],decls:1,vars:0,template:function(i,o){1&i&&dt(0,"router-outlet")},dependencies:[CC],encapsulation:2})}}return t})();function xC(t){const n=t.children&&t.children.map(xC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=xP),e}function wa(t){return t.outlet||cn}function rf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class HK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),vC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new EK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new SK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(vC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),vC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=rf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class SP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Gm{constructor(n,e){this.component=n,this.route=e}}function YK(t,n,e){const i=t._root;return af(i,n?n._root:null,e,[i.value])}function _u(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Zj(t){return null!==jf(t)}(t)?n.get(t):t:i}function af(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=yu(n);return t.children.forEach(a=>{(function $K(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function VK(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nl(t.url,n.url)||!_a(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wC(t,n)||!_a(t.queryParams,n.queryParams);default:return!wC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new SP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),af(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Gm(s.outlet.component,a))}else a&&sf(n,s,o),o.canActivateChecks.push(new SP(i)),af(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>sf(s,e.getContext(a),o)),o}function sf(t,n,e){const i=yu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{sf(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new Gm(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function lf(t){return"function"==typeof t}function DP(t){return t instanceof Pm||"EmptyError"===t?.name}const Um=Symbol("INITIAL_VALUE");function vu(){return Wi(t=>Mm(t.map(n=>n.pipe(io(1),ya(Um)))).pipe(Nt(n=>{for(const e of n)if(!0!==e){if(e===Um)return Um;if(!1===e||e instanceof fu)return e}return!0}),Ii(n=>n!==Um),io(1)))}function EP(t){return function Uu(...t){return Nf(t)}(Hi(n=>{if(gu(n))throw vP(0,n)}),Nt(n=>!0===n))}class SC{constructor(n){this.segmentGroup=n||null}}class DC extends Error{constructor(n){super(),this.urlTree=n}}function wu(t){return du(new SC(t))}class cq{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Tt(i);if(o.numberOfChildren>1||!o.children[cn])return du(new N(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new DC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new fu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new jn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new N(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const EC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uq(t,n,e,i,o){const r=TC(t,n,e);return r.matched?(i=function PK(t,n){return t.providers&&!t._injector&&(t._injector=Wp(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function aq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Tt(o.map(a=>{const s=_u(a,t);return Bs(function JK(t){return t&&lf(t.canMatch)}(s)?s.canMatch(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP()):Tt(!0)}(i,n,e).pipe(Nt(a=>!0===a?r:{...EC}))):Tt(r)}function TC(t,n,e){if("**"===n.path)return function dq(t){return{matched:!0,parameters:t.length>0?GR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...EC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||VQ)(e,t,n);if(!o)return{...EC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function TP(t,n,e,i){return e.length>0&&function pq(t,n,e){return e.some(i=>Wm(t,n,i)&&wa(i)!==cn)}(t,e,i)?{segmentGroup:new jn(n,fq(i,new jn(e,t.children))),slicedSegments:[]}:0===e.length&&function gq(t,n,e){return e.some(i=>Wm(t,n,i))}(t,e,i)?{segmentGroup:new jn(t.segments,hq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new jn(t.segments,t.children),slicedSegments:e}}function hq(t,n,e,i){const o={};for(const r of e)if(Wm(t,n,r)&&!i[wa(r)]){const a=new jn([],{});o[wa(r)]=a}return{...i,...o}}function fq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&wa(i)!==cn){const o=new jn([],{});e[wa(i)]=o}return e}function Wm(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class yq{}class wq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new cq(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}recognize(){const n=TP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Nt(e=>{const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Zr(i,e),r=new gP("",o),a=function uK(t,n,e=null,i=null){return oP(iP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(Ua(i=>{if(i instanceof DC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof SC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=bC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Nt(r=>r instanceof Zr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return hi(o).pipe(nu(r=>{const a=i.children[r],s=function jK(t,n){const e=t.filter(i=>wa(i)===n);return e.push(...t.filter(i=>wa(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function HQ(t,n){return ni(function BQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Nm(null),function YQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,aC(1),e?Nm(n):VR(()=>new Pm))}(),no(r=>{if(null===r)return wu(i);const a=MP(r);return function Cq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Tt(a)}))}processSegment(n,e,i,o,r,a){return hi(e).pipe(nu(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Ua(l=>{if(l instanceof SC)return Tt(null);throw l}))),Pl(s=>!!s),Ua(s=>{if(DP(s))return function bq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Tt(new yq):wu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function mq(t,n,e,i){return!!(wa(t)===i||i!==cn&&Wm(n,e,t))&&TC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):wu(o):wu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=TC(e,o,r);if(!s)return wu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(no(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=uq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Wi(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Wi(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new yC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Sq(t){return t.data||{}}(i),wa(i),i.component??i._loadedComponent??null,i,function Dq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=TP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Nt(S=>null===S?null:new Zr(p,S)));if(0===l.length&&0===b.length)return Tt(new Zr(p,[]));const T=wa(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Nt(S=>new Zr(p,S instanceof Zr?[S]:[])))})):wu(e)))}getChildConfig(n,e,i){return e.children?Tt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Tt({routes:e._loadedRoutes,injector:e._loadedInjector}):function rq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Tt(!0):Tt(o.map(a=>{const s=_u(a,t);return Bs(function GK(t){return t&&lf(t.canLoad)}(s)?s.canLoad(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP())}(n,e,i).pipe(no(o=>o?this.configLoader.loadChildren(n,e).pipe(Hi(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function lq(t){return du(wP(!1,ar.GuardRejected))}())):Tt({routes:[],injector:n})}}function xq(t){const n=t.value.routeConfig;return n&&""===n.path}function MP(t){const n=[],e=new Set;for(const i of t){if(!xq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=MP(i.children);n.push(new Zr(i.value,o))}return n.filter(i=>!e.has(i))}function AP(t){const n=t.children.map(e=>AP(e)).flat();return[t,...n]}function MC(t){return Wi(n=>{const e=t(n);return e?hi(e).pipe(Nt(()=>n)):Tt(n)})}let kP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[Xh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Iq),providedIn:"root"})}}return t})(),Iq=(()=>{class t extends kP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(CI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Cu=new Be("",{providedIn:"root",factory:()=>({})}),xu=new Be("");let AC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ne(VA)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bs(e.loadComponent()).pipe(Nt(IP),Hi(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),wl(()=>{this.componentLoaders.delete(e)})),o=new $R(i,()=>new _t).pipe(rC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Tt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function Oq(t,n,e,i){return Bs(t.loadChildren()).pipe(Nt(IP),no(o=>o instanceof pT||Array.isArray(o)?Tt(o):hi(n.compileModuleAsync(o))),Nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(xu,[],{optional:!0,self:!0}).flat()),{routes:a.map(xC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(wl(()=>{this.childrenLoaders.delete(i)})),a=new $R(r,()=>new _t).pipe(rC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function IP(t){return function Rq(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let kC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Pq),providedIn:"root"})}}return t})(),Pq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const OP=new Be(""),RP=new Be("");function Nq(t,n,e){const i=t.get(RP),o=t.get(Kt);return t.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Fq(t){return new Promise(n=>{IE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ea(t,()=>l({transition:s,from:n,to:e})),a})}let Xm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t,this.transitionAbortSubject=new _t,this.configLoader=Ne(AC),this.environmentInjector=Ne(No),this.urlSerializer=Ne(pu),this.rootContexts=Ne(tf),this.location=Ne(bl),this.inputBindingEnabled=null!==Ne(Zm,{optional:!0}),this.titleStrategy=Ne(kP),this.options=Ne(Cu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ne(kC),this.createViewTransition=Ne(OP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new CK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new ci({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ef,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ii(r=>0!==r.id),Nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Wi(r=>{let a=!1,s=!1;return Tt(r).pipe(Wi(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),vr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.rawUrl),d,$m.IgnoredSameUrlNavigation)),l.resolve(null),vr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Tt(l).pipe(Wi(d=>{const h=this.transitions?.getValue();return this.events.next(new zm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?vr:Promise.resolve(d)}),function Eq(t,n,e,i,o,r){return no(a=>function _q(t,n,e,i,o,r,a="emptyOnly"){return new wq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Nt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Hi(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new uP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new zm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const S=pP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:S,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Tt(r)}{const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,$m.IgnoredByUrlHandlingStrategy)),l.resolve(null),vr}}),Hi(l=>{const c=new bK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Nt(l=>(this.currentTransition=r={...l,guards:YK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function QK(t,n){return no(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Tt({...e,guardsResult:!0}):function KK(t,n,e,i){return hi(t).pipe(no(o=>function oq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Tt(r.map(s=>{const l=rf(n)??o,c=_u(s,l);return Bs(function XK(t){return t&&lf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ea(l,()=>c(t,n,e,i))).pipe(Pl())})).pipe(vu()):Tt(!0)}(o.component,o.route,e,n,i)),Pl(o=>!0!==o,!0))}(a,i,o,t).pipe(no(s=>s&&function ZK(t){return"boolean"==typeof t}(s)?function qK(t,n,e,i){return hi(n).pipe(nu(o=>Am(function tq(t,n){return null!==t&&n&&n(new xK(t)),Tt(!0)}(o.route.parent,i),function eq(t,n){return null!==t&&n&&n(new DK(t)),Tt(!0)}(o.route,i),function iq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function zK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Wh(()=>Tt(a.guards.map(l=>{const c=rf(a.node)??e,u=_u(l,c);return Bs(function WK(t){return t&&lf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ea(c,()=>u(i,t))).pipe(Pl())})).pipe(vu())));return Tt(r).pipe(vu())}(t,o.path,e),function nq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Tt(!0);const o=i.map(r=>Wh(()=>{const a=rf(n)??e,s=_u(r,a);return Bs(function UK(t){return t&&lf(t.canActivate)}(s)?s.canActivate(n,t):ea(a,()=>s(n,t))).pipe(Pl())}));return Tt(o).pipe(vu())}(t,o.route,e))),Pl(o=>!0!==o,!0))}(i,r,t,n):Tt(s)),Nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),Hi(l=>{if(r.guardsResult=l.guardsResult,gu(l.guardsResult))throw vP(0,l.guardsResult);const c=new yK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ii(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",ar.GuardRejected),!1)),MC(l=>{if(l.guards.canActivateChecks.length)return Tt(l).pipe(Hi(c=>{const u=new _K(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Wi(c=>{let u=!1;return Tt(c).pipe(function Tq(t,n){return no(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Tt(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of AP(l))a.add(c);let s=0;return hi(a).pipe(nu(l=>r.has(l)?function Mq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!bP(o)&&(r[Xh]=o.title),function Aq(t,n,e,i){const o=sC(t);if(0===o.length)return Tt({});const r={};return hi(o).pipe(no(a=>function kq(t,n,e,i){const o=rf(n)??i,r=_u(t,o);return Bs(r.resolve?r.resolve(n,e):ea(o,()=>r(n,e)))}(t[a],n,e,i).pipe(Pl(),Hi(s=>{r[a]=s}))),aC(1),function zQ(t){return Nt(()=>t)}(r),Ua(a=>DP(a)?vr:du(a)))}(r,t,n,i).pipe(Nt(a=>(t._resolvedData=a,t.data=bC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=bC(l,l.parent,t).resolve,Tt(void 0))),Hi(()=>s++),aC(1),no(l=>s===a.size?Tt(e):vr))})}(this.paramsInheritanceStrategy,this.environmentInjector),Hi({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",ar.NoDataFromResolver)}}))}),Hi(c=>{const u=new vK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),MC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Hi(h=>{u.component=h}),Nt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return Mm(c(l.targetSnapshot.root)).pipe(Nm(null),io(1))}),MC(()=>this.afterPreactivation()),Wi(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?hi(u).pipe(Nt(()=>r)):Tt(r)}),Nt(l=>{const c=function kK(t,n,e){const i=nf(t,n._root,e?e._root:void 0);return new fP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),Hi(()=>{this.events.next(new fC)}),((t,n,e,i)=>Nt(o=>(new HK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),io(1),Hi({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wa(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),In(this.transitionAbortSubject.pipe(Hi(l=>{throw l}))),wl(()=>{a||s||this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ua(l=>{if(s=!0,CP(l))this.events.next(new mu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function RK(t){return CP(t)&&gu(t.url)}(l)?this.events.next(new pC(l.url)):r.resolve(!1);else{this.events.next(new Vm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return vr}))}))}cancelNavigationTransition(e,i,o){const r=new mu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Lq(t){return t!==ef}let jq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Hq),providedIn:"root"})}}return t})();class Bq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Hq=(()=>{class t extends Bq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),PP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends PP{constructor(){super(...arguments),this.location=Ne(bl),this.urlSerializer=Ne(pu),this.options=Ne(Cu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ne(kC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof zm)this.stateMemento=this.createStateMemento();else if(e instanceof bu)this.rawUrlTree=i.initialUrl;else if(e instanceof uP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof fC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof mu&&(e.code===ar.GuardRejected||e.code===ar.NoDataFromResolver)?this.restoreHistory(i):e instanceof Vm?this.restoreHistory(i,!0):e instanceof Wa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cf=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(cf||{});function NP(t,n){t.events.pipe(Ii(e=>e instanceof Wa||e instanceof mu||e instanceof Vm||e instanceof bu),Nt(e=>e instanceof Wa||e instanceof bu?cf.COMPLETE:e instanceof mu&&(e.code===ar.Redirect||e.code===ar.SupersededByNewNavigation)?cf.REDIRECTING:cf.FAILED),Ii(e=>e!==cf.REDIRECTING),io(1)).subscribe(()=>{n()})}function zq(t){throw t}const $q={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Ne(PA),this.stateManager=Ne(PP),this.options=Ne(Cu,{optional:!0})||{},this.pendingTasks=Ne(bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ne(Xm),this.urlSerializer=Ne(pu),this.location=Ne(bl),this.urlHandlingStrategy=Ne(kC),this._events=new _t,this.errorHandler=this.options.errorHandler||zq,this.navigated=!1,this.routeReuseStrategy=Ne(jq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ne(xu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ne(Zm,{optional:!0}),this.eventsSubscription=new me,this.isNgZoneEnabled=Ne(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof mu&&i.code!==ar.Redirect&&i.code!==ar.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wa)this.navigated=!0;else if(i instanceof pC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lq(o.source)};this.scheduleNavigation(a,ef,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Gq(t){return!(t instanceof fC||t instanceof pC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ef,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=iP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return oP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=gu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ef,null,i)}navigate(e,i={skipLocationChange:!1}){return function Zq(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return NP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new _t,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Wa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function TD(t,n,e){return function e8(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?ED:Cd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(ie(Ao),ie(Fl),sa("tabindex"),ie(La),ie(Zt),ie(ml))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&xt("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&ln("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ye.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Yt],skipLocationChange:[Ye.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[Ye.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[So,Zi]})}}return t})();class FP{}let Xq=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ii(e=>e instanceof Wa),nu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Wp(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return hi(o).pipe(su())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Tt(null);const r=o.pipe(no(a=>null===a?Tt(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?hi([r,this.loader.loadComponent(i)]).pipe(su()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(Ao),Me(VA),Me(No),Me(FP),Me(AC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const IC=new Be("");let LP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof bu&&e.code===$m.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dP&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dP(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){k_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function Ca(t,n){return{\u0275kind:t,\u0275providers:n}}function BP(){const t=Ne(di);return n=>{const e=t.get(Hr);if(n!==e.components[0])return;const i=t.get(Ao),o=t.get(HP);1===t.get(OC)&&i.initialNavigation(),t.get(YP,null,fn.Optional)?.setUpPreloading(),t.get(IC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const HP=new Be("",{factory:()=>new _t}),OC=new Be("",{providedIn:"root",factory:()=>1}),YP=new Be("");function qq(t){return Ca(0,[{provide:YP,useExisting:Xq},{provide:FP,useExisting:t}])}function tee(t){return Ca(9,[{provide:OP,useValue:Nq},{provide:RP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const zP=new Be("ROUTER_FORROOT_GUARD"),nee=[bl,{provide:pu,useClass:lC},Ao,tf,{provide:Fl,useFactory:function jP(t){return t.routerState.root},deps:[Ao]},AC,[]];let $P=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[nee,[],{provide:xu,multi:!0,useValue:e},{provide:zP,useFactory:aee,deps:[[Ao,new ls,new oc]]},{provide:Cu,useValue:i||{}},i?.useHash?{provide:ml,useClass:oV}:{provide:ml,useClass:Rk},{provide:IC,useFactory:()=>{const t=Ne(C9),n=Ne(Ct),e=Ne(Cu),i=Ne(Xm),o=Ne(pu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new LP(o,i,t,n,e)}},i?.preloadingStrategy?qq(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?see(i):[],i?.bindToComponentInputs?Ca(8,[yP,{provide:Zm,useExisting:yP}]).\u0275providers:[],i?.enableViewTransitions?tee().\u0275providers:[],[{provide:VP,useFactory:BP},{provide:ew,multi:!0,useExisting:VP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:xu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(zP,8))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function aee(t){return"guarded"}function see(t){return["disabled"===t.initialNavigation?Ca(3,[{provide:Kv,multi:!0,useFactory:()=>{const n=Ne(Ao);return()=>{n.setUpLocationChangeListener()}}},{provide:OC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ca(2,[{provide:OC,useValue:0},{provide:Kv,multi:!0,deps:[di],useFactory:n=>{const e=n.get(nV,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Ao),r=n.get(HP);NP(o,()=>{i(!0)}),n.get(Xm).afterPreactivation=()=>(i(!0),r.closed?Tt(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const VP=new Be("");var cee=function(n){return function uee(t){return!!t&&"object"==typeof t}(n)&&!function dee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function pee(t){return t.$$typeof===fee}(t)}(n)},fee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function df(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Su(function gee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function mee(t,n,e){return t.concat(n).map(function(i){return df(i,e)})}function ZP(t){return Object.keys(t).concat(function yee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function GP(t,n){try{return n in t}catch{return!1}}function Su(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||mee,e.isMergeableObject=e.isMergeableObject||cee,e.cloneUnlessOtherwiseSpecified=df;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function vee(t,n,e){var i={};return e.isMergeableObject(t)&&ZP(t).forEach(function(o){i[o]=df(t[o],e)}),ZP(n).forEach(function(o){(function _ee(t,n){return GP(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=GP(t,o)&&e.isMergeableObject(n[o])?function bee(t,n){if(!n.customMerge)return Su;var e=n.customMerge(t);return"function"==typeof e?e:Su}(o,e)(t[o],n[o],e):df(n[o],e))}),i}(t,n,e):df(n,e)}Su.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Su(i,o,e)},{})};var RC=Su;function PC(t){return t instanceof HTMLElement}function Ll(t){return"function"==typeof t}function hf(t){return"string"==typeof t}function go(t){return void 0===t}class NC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function UP(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const Du=Math.min,jl=Math.max,Jm=Math.round,Qm=Math.floor,Hs=t=>({x:t,y:t}),Eee={left:"right",right:"left",bottom:"top",top:"bottom"},Tee={start:"end",end:"start"};function LC(t,n,e){return jl(t,Du(n,e))}function Eu(t,n){return"function"==typeof t?t(n):t}function Bl(t){return t.split("-")[0]}function Km(t){return t.split("-")[1]}function jC(t){return"x"===t?"y":"x"}function BC(t){return"y"===t?"height":"width"}function qm(t){return["top","bottom"].includes(Bl(t))?"y":"x"}function HC(t){return jC(qm(t))}function YC(t){return t.replace(/start|end/g,n=>Tee[n])}function eb(t){return t.replace(/left|right|bottom|top/g,n=>Eee[n])}function QP(t){return"number"!=typeof t?function Oee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function tb(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const Ree=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Pee=["mainAxis","crossAxis","limiter"];function KP(t,n,e){let{reference:i,floating:o}=t;const r=qm(n),a=HC(n),s=BC(a),l=Bl(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(Km(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Nee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=KP(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,re;const ce="y"===p?"width":"height",G=["top","left"].includes(Bl(r)),pe=a.reference[h]-a.floating[ce]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:S.crossAxis),ye=a.reference[h]+a.reference[ce]+(G?0:(null==(re=s.offset)?void 0:re[h])||0)-(G?S.crossAxis:0);bye&&(b=ye)}return{[p]:g,[h]:b}}}};function Ys(t){return eN(t)?(t.nodeName||"").toLowerCase():"#document"}function sr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function Xa(t){var n;return null==(n=(eN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function eN(t){return t instanceof Node||t instanceof sr(t).Node}function Ja(t){return t instanceof Element||t instanceof sr(t).Element}function xa(t){return t instanceof HTMLElement||t instanceof sr(t).HTMLElement}function tN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof sr(t).ShadowRoot)}function ff(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Cr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Hee(t){return["table","td","th"].includes(Ys(t))}function $C(t){const n=VC(),e=Cr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function VC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nb(t){return["html","body","#document"].includes(Ys(t))}function Cr(t){return sr(t).getComputedStyle(t)}function ib(t){return Ja(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tu(t){if("html"===Ys(t))return t;const n=t.assignedSlot||t.parentNode||tN(t)&&t.host||Xa(t);return tN(n)?n.host:n}function nN(t){const n=Tu(t);return nb(n)?t.ownerDocument?t.ownerDocument.body:t.body:xa(n)&&ff(n)?n:nN(n)}function ob(t,n){var e;void 0===n&&(n=[]);const i=nN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=sr(i);return o?n.concat(r,r.visualViewport||[],ff(i)?i:[]):n.concat(i,ob(i))}function iN(t){const n=Cr(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=xa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=Jm(e)!==r||Jm(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function ZC(t){return Ja(t)?t:t.contextElement}function Mu(t){const n=ZC(t);if(!xa(n))return Hs(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=iN(n);let a=(r?Jm(e.width):e.width)/i,s=(r?Jm(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const zee=Hs(0);function oN(t){const n=sr(t);return VC()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:zee}function Hl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=ZC(t);let a=Hs(1);n&&(i?Ja(i)&&(a=Mu(i)):a=Mu(t));const s=function $ee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==sr(t))&&n}(r,e,i)?oN(r):Hs(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=sr(r),p=i&&Ja(i)?sr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Mu(g),T=g.getBoundingClientRect(),S=Cr(g),H=T.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,re=T.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=re,g=sr(g).frameElement}}return tb({width:u,height:d,x:l,y:c})}function rN(t){return Hl(Xa(t)).left+ib(t).scrollLeft}function aN(t,n,e){let i;if("viewport"===n)i=function Uee(t,n){const e=sr(t),i=Xa(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=VC();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function Gee(t){const n=Xa(t),e=ib(t),i=t.ownerDocument.body,o=jl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=jl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+rN(t);const s=-e.scrollTop;return"rtl"===Cr(i).direction&&(a+=jl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(Xa(t));else if(Ja(n))i=function Wee(t,n){const e=Hl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=xa(t)?Mu(t):Hs(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=oN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return tb(i)}function sN(t,n){const e=Tu(t);return!(e===n||!Ja(e)||nb(e))&&("fixed"===Cr(e).position||sN(e,n))}function Xee(t,n){const e=n.get(t);if(e)return e;let i=ob(t).filter(s=>Ja(s)&&"body"!==Ys(s)),o=null;const r="fixed"===Cr(t).position;let a=r?Tu(t):t;for(;Ja(a)&&!nb(a);){const s=Cr(a),l=$C(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||ff(a)&&!l&&sN(t,a))?i=i.filter(u=>u!==a):o=s,a=Tu(a)}return n.set(t,i),i}function Kee(t,n,e){const i=xa(n),o=Xa(n),r="fixed"===e,a=Hl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=Hs(0);if(i||!i&&!r)if(("body"!==Ys(n)||ff(o))&&(s=ib(n)),i){const c=Hl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=rN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lN(t,n){return xa(t)&&"fixed"!==Cr(t).position?n?n(t):t.offsetParent:null}function cN(t,n){const e=sr(t);if(!xa(t))return e;let i=lN(t,n);for(;i&&Hee(i)&&"static"===Cr(i).position;)i=lN(i,n);return i&&("html"===Ys(i)||"body"===Ys(i)&&"static"===Cr(i).position&&!$C(i))?e:i||function Yee(t){let n=Tu(t);for(;xa(n)&&!nb(n);){if($C(n))return n;n=Tu(n)}return null}(t)||e}const qee=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||cN,s=this.getDimensions;return{reference:Kee(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),tte={convertOffsetParentRelativeRectToViewportRelativeRect:function Vee(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=xa(e),r=Xa(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=Hs(1);const l=Hs(0);if((o||!o&&"fixed"!==i)&&(("body"!==Ys(e)||ff(r))&&(a=ib(e)),xa(e))){const c=Hl(e);s=Mu(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xa,getClippingRect:function Jee(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?Xee(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=aN(n,u,o);return c.top=jl(d.top,c.top),c.right=Du(d.right,c.right),c.bottom=Du(d.bottom,c.bottom),c.left=jl(d.left,c.left),c},aN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:cN,getElementRects:qee,getClientRects:function Zee(t){return Array.from(t.getClientRects())},getDimensions:function Qee(t){return iN(t)},getScale:Mu,isElement:Ja,isRTL:function ete(t){return"rtl"===Cr(t).direction}};function rte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function dte(t,n){const e={strategy:"absolute",middleware:[]},i=function hte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return XP(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Eu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,S=JP(u,Ree),H=Bl(o),re=Bl(s)===s,ce=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(re||!T?[eb(s)]:function Aee(t){const n=eb(t);return[YC(t),n,YC(n)]}(s));!p&&"none"!==b&&G.push(...function Iee(t,n,e,i){const o=Km(t);let r=function kee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}(Bl(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(YC)))),r}(s,T,b,ce));const pe=[s,...G],ye=yield qP(e,S),be=[];let Pe=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(ye[H]),h){const Je=function Mee(t,n,e){void 0===e&&(e=!1);const i=Km(t),o=HC(t),r=BC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=eb(a)),[a,eb(a)]}(o,a,ce);be.push(ye[Je[0]],ye[Je[1]])}if(Pe=[...Pe,{placement:o,overflows:be}],!be.every(Je=>Je<=0)){var je,Xe;const Je=((null==(je=r.flip)?void 0:je.index)||0)+1,st=pe[Je];if(st)return{data:{index:Je,overflows:Pe},reset:{placement:st}};let ht=null==(Xe=Pe.filter(Se=>Se.overflows[0]<=0).sort((Se,He)=>Se.overflows[1]-He.overflows[1])[0])?void 0:Xe.placement;if(!ht)switch(g){case"bestFit":{var Re;const Se=null==(Re=Pe.map(He=>[He.placement,He.overflows.filter(We=>We>0).reduce((We,nt)=>We+nt,0)]).sort((He,We)=>He[1]-We[1])[0])?void 0:Re[0];Se&&(ht=Se);break}case"initialPlacement":ht=s}if(o!==ht)return{reset:{placement:ht}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Eu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:re,y:ce}=H;return{x:re,y:ce}}}}=a,u=JP(a,Pee),d={x:i,y:o},h=yield qP(e,u),p=qm(Bl(r)),g=jC(p);let b=d[g],T=d[p];s&&(b=LC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=LC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const S=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},S,{data:{x:S.x-i,y:S.y-o}})})()}}({limiter:Bee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Eu(t,n)||{};if(null==l)return{};const u=QP(c),d={x:e,y:i},h=HC(o),p=BC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",S=b?"bottom":"right",H=b?"clientHeight":"clientWidth",re=r.reference[p]+r.reference[h]-d[h]-r.floating[p],ce=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const ye=re/2-ce/2,be=pe/2-g[p]/2-1,Pe=Du(u[T],be),je=Du(u[S],be),Xe=Pe,Re=pe-g[p]-je,Je=pe/2-g[p]/2+ye,st=LC(Xe,Je,Re),Se=null!=Km(o)&&Je!=st&&r.reference[p]/2-(Je{o&&S.addEventListener("scroll",e,{passive:!0}),r&&S.addEventListener("resize",e)});const d=c&&s?function nte(t,n){let i,e=null;const o=Xa(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-Qm(u)+"px "+-Qm(o.clientWidth-(c+d))+"px "+-Qm(o.clientHeight-(u+h))+"px "+-Qm(c)+"px",threshold:jl(0,Du(1,l))||1};let re=!0;function ce(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!re)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}re=!1}try{e=new IntersectionObserver(ce,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(ce,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(S=>{let[H]=S;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Hl(t):null;return l&&function T(){const S=Hl(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&e(),b=S,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(S=>{o&&S.removeEventListener("scroll",e),r&&S.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function lte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:tte},e),r=mo({},o.platform,{_c:i});return Nee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function cte(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function ute(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function lr(){}function fte(t,n){for(const e in n)t[e]=n[e];return t}function uN(t){return t()}function dN(){return Object.create(null)}function pf(t){t.forEach(uN)}function GC(t){return"function"==typeof t}function Qa(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Au(t,n){t.appendChild(n)}function Gr(t,n,e){t.insertBefore(n,e||null)}function xr(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t){return document.createElement(t)}function hN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fN(t){return document.createTextNode(t)}function rb(){return fN(" ")}function ab(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function qn(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const bte=["width","height"];function pN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===bte.indexOf(i)?t[i]=n[i]:qn(t,i,n[i])}function ku(t,n,e){t.classList[e?"add":"remove"](n)}let gf;function mf(t){gf=t}function gN(){if(!gf)throw new Error("Function called outside component initialization");return gf}function UC(t){gN().$$.after_update.push(t)}const Iu=[],Ou=[];let Ru=[];const mN=[],vte=Promise.resolve();let WC=!1;function XC(t){Ru.push(t)}const JC=new Set;let Pu=0;function bN(){if(0!==Pu)return;const t=gf;do{try{for(;Pu{sb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Vl(t){t&&t.c()}function zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||XC(()=>{const a=t.$$.on_mount.map(uN).filter(GC);t.$$.on_destroy?t.$$.on_destroy.push(...a):pf(a),t.$$.on_mount=[]}),r.forEach(XC)}function $s(t,n){const e=t.$$;null!==e.fragment&&(function xte(t){const n=[],e=[];Ru.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),Ru=n}(e.after_update),pf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ka(t,n,e,i,o,r,a,s=[-1]){const l=gf;mf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:lr,not_equal:o,bound:dN(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:dN(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Dte(t,n){-1===t.$$.dirty[0]&&(Iu.push(t),function wte(){WC||(WC=!0,vte.then(bN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function pte(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Ete(t){let n,e,i,o,r;return{c(){n=Sa("button"),qn(n,"aria-label",e=t[3]?t[3]:null),qn(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],qn(n,"tabindex","0")},m(a,s){Gr(a,n,s),n.innerHTML=t[5],o||(r=ab(n,"click",function(){GC(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&qn(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&qn(n,"class",i),4&s&&(n.disabled=t[2])},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Tte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Ll(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class Mte extends qa{constructor(n){super(),Ka(this,n,Tte,Ete,Qa,{config:6,step:7})}}function yN(t,n,e){const i=t.slice();return i[2]=n[e],i}function _N(t){let n,e,i=t[1],o=[];for(let a=0;aDi(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),$l())},i(o){e||(Fn(i),e=!0)},o(o){Di(i),e=!1},d(o){o&&xr(n),i&&i.d()}}}function kte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Ite extends qa{constructor(n){super(),Ka(this,n,kte,Ate,Qa,{step:0})}}function Ote(t){let n,e,i,o,r;return{c(){n=Sa("button"),e=Sa("span"),e.textContent="\xd7",qn(e,"aria-hidden","true"),qn(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),qn(n,"class","shepherd-cancel-icon"),qn(n,"type","button")},m(a,s){Gr(a,n,s),Au(n,e),o||(r=ab(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&qn(n,"aria-label",i)},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Rte(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Pte extends qa{constructor(n){super(),Ka(this,n,Rte,Ote,Qa,{cancelIcon:0,step:2})}}function Nte(t){let n;return{c(){n=Sa("h3"),qn(n,"id",t[1]),qn(n,"class","shepherd-title")},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function Fte(t,n,e){let{labelId:i,element:o,title:r}=n;return UC(()=>{Ll(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Lte extends qa{constructor(n){super(),Ka(this,n,Fte,Nte,Qa,{labelId:1,element:0,title:2})}}function wN(t){let n,e;return n=new Lte({props:{labelId:t[0],title:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function CN(t){let n,e;return n=new Pte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function jte(t){let n,e,i,o=t[2]&&wN(t),r=t[3]&&t[3].enabled&&CN(t);return{c(){n=Sa("header"),o&&o.c(),e=rb(),r&&r.c(),qn(n,"class","shepherd-header")},m(a,s){Gr(a,n,s),o&&o.m(n,null),Au(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&Fn(o,1)):(o=wN(a),o.c(),Fn(o,1),o.m(n,e)):o&&(zl(),Di(o,1,1,()=>{o=null}),$l()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&Fn(r,1)):(r=CN(a),r.c(),Fn(r,1),r.m(n,null)):r&&(zl(),Di(r,1,1,()=>{r=null}),$l())},i(a){i||(Fn(o),Fn(r),i=!0)},o(a){Di(o),Di(r),i=!1},d(a){a&&xr(n),o&&o.d(),r&&r.d()}}}function Bte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Hte extends qa{constructor(n){super(),Ka(this,n,Bte,jte,Qa,{labelId:0,step:1})}}function Yte(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-text"),qn(n,"id",t[1])},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function zte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return UC(()=>{let{text:s}=r.options;Ll(s)&&(s=s.call(r)),PC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class $te extends qa{constructor(n){super(),Ka(this,n,zte,Yte,Qa,{descriptionId:1,element:0,step:2})}}function xN(t){let n,e;return n=new Hte({props:{labelId:t[1],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function SN(t){let n,e;return n=new $te({props:{descriptionId:t[0],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function DN(t){let n,e;return n=new Ite({props:{step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function Vte(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&xN(t),c=o&&SN(t),u=a&&DN(t);return{c(){n=Sa("div"),l&&l.c(),i=rb(),c&&c.c(),r=rb(),u&&u.c(),qn(n,"class","shepherd-content")},m(d,h){Gr(d,n,h),l&&l.m(n,null),Au(n,i),c&&c.m(n,null),Au(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&Fn(l,1)):(l=xN(d),l.c(),Fn(l,1),l.m(n,i)):l&&(zl(),Di(l,1,1,()=>{l=null}),$l()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&Fn(c,1)):(c=SN(d),c.c(),Fn(c,1),c.m(n,r)):c&&(zl(),Di(c,1,1,()=>{c=null}),$l()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&Fn(u,1)):(u=DN(d),u.c(),Fn(u,1),u.m(n,null)):u&&(zl(),Di(u,1,1,()=>{u=null}),$l())},i(d){s||(Fn(l),Fn(c),Fn(u),s=!0)},o(d){Di(l),Di(c),Di(u),s=!1},d(d){d&&xr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function Zte(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class Gte extends qa{constructor(n){super(),Ka(this,n,Zte,Vte,Qa,{descriptionId:0,labelId:1,step:2})}}function EN(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-arrow"),qn(n,"data-popper-arrow","")},m(e,i){Gr(e,n,i)},d(e){e&&xr(n)}}}function Ute(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&EN();i=new Gte({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function Kte(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function _te(t){gN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),UC(()=>{g!==u.options.classes&&function T(){(function S(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function ce(G){Ou[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class qte extends qa{constructor(n){super(),Ka(this,n,Kte,Ute,Qa,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class QC extends NC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?WP(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,UP(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function ste(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),PC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Dee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Ll(e.element)&&(e.element=e.element.call(t)),hf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Ll(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new qte({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Ll(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Cee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=RC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function ate(t,n){return{floatingUIOptions:RC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${FC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function See(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function xee(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),rte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function nne(t){let n,e,i,o,r;return{c(){n=hN("svg"),e=hN("path"),qn(e,"d",t[2]),qn(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Gr(a,n,s),Au(n,e),t[11](n),o||(r=ab(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&qn(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&qn(n,"class",i)},i:lr,o:lr,d(a){a&&xr(n),t[11](null),o=!1,r()}}}function MN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:MN(t.parentElement)}function one(t,n,e){let{element:i,openingProperties:o}=n;FC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),S()}function d(ce=0,G=0,pe,ye){if(ye){const{y:be,height:Pe}=function ine(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(ye,pe),{x:je,width:Xe,left:Re}=ye.getBoundingClientRect();e(4,o={width:Xe+2*ce,height:Pe+2*ce,x:(je||Re)-ce,y:be-ce,r:G})}else c()}function p(){e(1,r=!0)}c();const g=ce=>{ce.preventDefault()};function S(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=ce=>{"element"in ce&&e(0,i=ce.element),"openingProperties"in ce&&e(4,o=ce.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function tne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,ce=>{ce.stopPropagation()},o,()=>i,c,u,d,function h(ce){S(),ce.tour.options.useModalOverlay?(function H(ce){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=ce.options,ye=MN(ce.target),be=()=>{a=void 0,d(G,pe,ye,ce.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(ce),p()):u()},p,function re(ce){Ou[ce?"unshift":"push"](()=>{i=ce,e(0,i)})}]}class rne extends qa{constructor(n){super(),Ka(this,n,one,nne,Qa,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Zl=new NC,sne=typeof window>"u";class AN{constructor(){}}function cne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Zl,sne?{Tour:AN,Step:AN}:{Tour:class ane extends NC{constructor(n={}){return super(n),UP(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=WP(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Zl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof QC?i.tour=this:i=new QC(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Zl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=hf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Ll(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function ene(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Zl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}PC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Zl.activeTour=this}_setupModal(){this.modal=new rne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${FC()}`}},Step:QC});let kN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(cne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function lne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Zl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;I(7850);const dne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var re,S=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(re=e.wasmBinary);var ce=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Zn("no native wasm support detected");var G,Je,st,Mt,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(xe,fe,we){for(var Oe=fe+we,rt=fe;xe[rt]&&!(rt>=Oe);)++rt;if(rt-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,rt));for(var mt="";fe>10,56320|1023&zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function je(xe,fe){return xe?Pe(st,xe,fe):""}function en(){var xe=G.buffer;e.HEAP_DATA_VIEW=Mt=new DataView(xe),e.HEAP8=Je=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=st=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var an=[],sn=[],$o=[],ft=0,Pt=null,ri=null;function Zn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var dr;function Jr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Zu(xe){try{if(xe==dr&&re)return new Uint8Array(re);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Zn(fe)}}function Vb(xe,fe,we){return function cx(xe){return re||"function"!=typeof fetch?Promise.resolve().then(function(){return Zu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Zu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Zn(Oe)})}function uhe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function ux(xe){return Mt.getInt32(xe,!0)}function dx(xe){return Mt.getUint32(xe,!0)}function Zb(xe,fe){Mt.setUint32(xe,fe,!0)}function Tr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Oj(fe);return we&&function Xe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var rt=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Je,we,fe),we}function hx(xe){for(;xe.length>0;)xe.shift()(e)}function Of(xe,fe){Je.set(xe,fe)}function Gb(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Je[xe>>0];case"i16":return function fhe(xe){return Mt.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return ux(4*(xe>>2));case"float":return function dhe(xe){return Mt.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function hhe(xe){return Mt.getFloat64(xe,!0)}(8*(xe>>3));case"*":return dx(4*(xe>>2));default:Zn("invalid type for getValue: "+fe)}}e.locateFile?Jr(dr="soundswallower.web.wasm")||(dr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(dr)):dr=new URL(I(3970),I.b).href;var Rf={varargs:void 0,get:function(){return Rf.varargs+=4,ux(4*(Rf.varargs-4>>2))},getStr:function(xe){return je(xe)}};function She(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),en(),1}catch{}}var fx={};function Pf(){if(!Pf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in fx)void 0===fx[we]?delete fe[we]:fe[we]=fx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Pf.strings=Oe}return Pf.strings}var Fhe=[null,[],[]];function Lhe(xe,fe){var we=Fhe[xe];0===fe||10===fe?((1===xe?S:H)(Pe(we,0)),we.length=0):we.push(fe)}var Ub,Bhe={d:function phe(xe,fe,we){return Rf.varargs=we,0},g:function ghe(xe,fe){},i:function mhe(xe,fe,we){return Rf.varargs=we,0},r:function bhe(xe,fe,we,Oe){},e:function yhe(xe,fe,we,Oe){Rf.varargs=Oe},f:function _he(xe,fe){},n:function vhe(xe,fe,we,Oe,rt,mt,Dt){return-52},o:function whe(xe,fe,we,Oe,rt,mt){},j:function Che(){return Date.now()},m:function xhe(){return 2147483648},l:function Dhe(xe){var Hn,fe=st.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var rt=1;rt<=4;rt*=2){var mt=fe*(1+.2/rt);if(mt=Math.min(mt,xe+100663296),She(Math.min(we,(Hn=Math.max(xe,mt))+(65536-Hn%65536)%65536)))return!0}return!1},p:function Mhe(xe,fe){var we=0;return Pf().forEach(function(Oe,rt){var mt=fe+we;Zb(4*(xe+4*rt>>2),mt),function The(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Je[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function Ahe(xe,fe){var we=Pf();Zb(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(rt){Oe+=rt.length+1}),Zb(4*(fe>>2),Oe),0},a:function Ihe(xe,fe){!function khe(xe){(function ct(){return ce})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new uhe(xe))}(xe)},b:function Rhe(xe){return 52},h:function Phe(xe,fe,we,Oe){return 52},k:function Nhe(xe,fe,we,Oe,rt){return 70},c:function jhe(xe,fe,we,Oe){for(var rt=0,mt=0;mt>2)),Rt=dx(4*(fe+4>>2));fe+=8;for(var Hn=0;Hn>2),rt),0}},Oj=(function che(){var xe={a:Bhe};function fe(Oe,rt){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,en(),function sx(xe){sn.unshift(xe)}(e.asm.t),function xn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==Pt&&(clearInterval(Pt),Pt=null),ri)){var fe=ri;ri=null,fe()}}(),mt}if(function ai(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function lhe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Jr(fe)||"function"!=typeof fetch?Vb(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(rt){return WebAssembly.instantiateStreaming(rt,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),Vb(fe,we,Oe)})})})(re,dr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Oj=e._malloc=e.asm.K).apply(null,arguments)});function Rj(){function xe(){Ub||(Ub=!0,e.calledRun=!0,!pe&&(function ro(){hx(sn)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Er(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),$o.unshift(xe);var xe;hx($o)}()))}ft>0||(function yn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),an.unshift(xe);var xe;hx(an)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ri=function xe(){Ub||Rj(),Ub||(ri=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Pj(xe){return px.apply(this,arguments)}function px(){return(px=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Qr(xe){return gx.apply(this,arguments)}function gx(){return(gx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,rt=e._malloc(Oe);if(0==rt)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return Of(fe,rt),Je[rt+Oe]=0,e._s3file_init(rt,Oe-1)})).apply(this,arguments)}return Rj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function rpe(xe){return e.modelBase+xe},e.load_json=Pj,e.Decoder=class spe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=Tr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return je(e._config_serialize_json(fe))}set_config(fe,we){const Oe=Tr(fe),rt=e._decoder_config(this.cdecoder),mt=e._config_typeof(rt,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=Tr(we);e._config_set_str(rt,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(rt,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(rt,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,rt),e._free(we)}get_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&rt){const Dt=e._config_str(Oe,we);mt=0==Dt?null:je(Dt)}else 4&rt?mt=e._config_float(Oe,we):2&rt?mt=e._config_int(Oe,we):16&rt&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${rt} for parameter ${fe}`);return mt}has_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=0!=e._config_typeof(Oe,we);return e._free(we),rt}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Pj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Qr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),rt=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,rt,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Qr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Qr(fe),rt=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,rt,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,rt){var mt=this;return(0,y.Z)(function*(){const Dt=yield Qr(fe),Rt=yield Qr(we);var Hn,zi;try{Hn=yield Qr(Oe),zi=0}catch{Hn=0,zi=yield Qr(rt)}if(e._load_gmm(mt.cdecoder,Dt,Rt,zi,Hn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Qr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Qr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const rt=fe.get_config("jsgf");null!=rt&&(Oe=yield Qr(rt));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Qr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const rt=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(rt);Of(new Uint8Array(fe.buffer,fe.byteOffset,rt),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,rt/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),je(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const rt=je(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(rt)}lookup_word(fe){this.assert_initialized();const we=Tr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:je(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._endpointer_process(this.cep,rt);if(e._free(rt),0!=mt){const Dt=new Int16Array(Je.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,rt,we.length,mt);if(e._free(mt),e._free(rt),0!=Dt){const Rt=Gb(mt,"i32"),Hn=new Int16Array(Je.buffer,Dt,2*Rt);return Float32Array.from(Hn,zi=>zi>0?zi/32767:zi/32768)}return null}},e.ready});var lb,Vs=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Vs||{});let IN=(()=>{class t{constructor(){this.modelLoaded=!1,this.mode=Vs.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new lb.Decoder;return i.initialize().finally(()=>{e.modelLoaded=!0,i.delete()})})()}loadModule$(){return hi(void 0===lb?dne().then(e=>(lb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new _n(s=>{const l=new lb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zs=I(9884);const Nu=new WeakSet,ON=new WeakMap,qC=new WeakMap,RN=new WeakMap,e1=new WeakMap,cb=new WeakMap,PN=new WeakMap,t1=new WeakMap,n1=new WeakMap,o1=new WeakMap,NN={construct:()=>NN},FN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,LN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(FN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(FN)}return[e.join(";"),i]},jN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},BN=t=>{if(!(t=>{try{new new Proxy(t,NN)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Ur=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},ub=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},HN=(t,n,e,i)=>{const o=Ur(t,n),r=ub(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},bf=t=>Ur(PN,t),Fu=t=>{if(Nu.has(t))throw new Error("The AudioNode is already stored.");Nu.add(t),bf(t).forEach(n=>n(!0))},YN=t=>"port"in t,yf=t=>{if(!Nu.has(t))throw new Error("The AudioNode is not stored.");Nu.delete(t),bf(t).forEach(n=>n(!1))},r1=(t,n)=>{!YN(t)&&n.every(e=>0===e.size)&&yf(t)},xne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,db=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Da=()=>new DOMException("","IndexSizeError"),a1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Da():i}})},Ene={numberOfChannels:1},Yo=-34028234663852886e22,ko=-Yo,es=t=>Nu.has(t),Mne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Io=t=>Ur(ON,t),_f=t=>Ur(RN,t),s1=(t,n)=>{const{activeInputs:e}=Io(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||s1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:YN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=_f(o);void 0!==r&&r.activeInputs.forEach(([a])=>s1(a,n))}es(t)&&yf(t)},fb=t=>"context"in t,vf=t=>fb(t[0]),Gl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},$N=(t,n,[e,i],o)=>{Gl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},VN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Gl(r,[e,i],a=>a[0]===e,o)},Lu=t=>"inputs"in t,pb=(t,n,e,i)=>{if(Lu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},ZN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},GN=(t,n)=>{if(!bf(t).delete(n))throw new Error("Missing the expected event listener.")},UN=(t,n,e)=>{const i=Ur(t,n),o=ub(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},gb=(t,n,e,i)=>{Lu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},oi=t=>Ur(qC,t),wf=t=>Ur(e1,t),Ul=t=>t1.has(t),mb=t=>!Nu.has(t),WN=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),l1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},bb=t=>"context"in t,c1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Io(n),a=ZN(o[i],t,e);return null===a?[HN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(GN(t,r),a&&!n&&!Ul(t)&&gb(oi(t),oi(e),i,o)),es(e)){const{activeInputs:s}=Io(e);r1(e,s)}},u1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=_f(n),r=ZN(i,t,e);return null===r?[UN(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(GN(t,o),r&&!n&&!Ul(t)&&oi(t).disconnect(wf(e),i))};class XN{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function yb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const JN=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},_b=(t,n)=>{const e=[];for(let i=0;iS+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Io(n),p=yield((t,n)=>{const e=Ur(o1,t),i=oi(n);return Ur(e,i)})(i,n),g=_b(o.numberOfInputs,o.channelCount),b=_b(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((S,H)=>({...S,[H]:new Float32Array(128)}),{});for(let S=0;S0&&null!==e)for(let H=0;H{yb(e,T,H,c+re,S)});for(let H=0;H0===h.activeInputs[G].size?[]:ce),re=s(S/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let ce=0,G=0;ce{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},Mie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},vb=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Fie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Vie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Ri=()=>new DOMException("","InvalidStateError"),wb=()=>new DOMException("","InvalidAccessError"),noe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},KN=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},li=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Yi=(t,n)=>{li(t,n,"channelCount"),li(t,n,"channelCountMode"),li(t,n,"channelInterpretation")},qN=t=>"function"==typeof t.getFloatTimeDomainData,mi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},d1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},h1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},eF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),joe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),tF=(t,n)=>{const e=t.createBiquadFilter();return Yi(e,n),mi(e,n,"Q"),mi(e,n,"detune"),mi(e,n,"frequency"),mi(e,n,"gain"),li(e,n,"type"),e},Cf=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Yi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Ri()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Ri()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Ri()}})})(e),e},ju=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),nF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Yi(e,n),mi(e,n,"delayTime"),e},zo=(t,n)=>{const e=t.createGain();return Yi(e,n),mi(e,n,"gain"),e};function Woe(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function Xoe(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function iF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=Xoe(e,n),e[0]+=t[i];return e}const xf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),hre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},gre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},yre={disableNormalization:!1},Tre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},oF=()=>new DOMException("","UnknownError"),Rre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},rF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),aF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Sf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},sF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;sF(t,n,e+1e-7)}},f1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},lF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},p1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},cF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),ju(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Bu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},Xre=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Gl),Jre=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Gl),Qre=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(ub),uF=new WeakMap,Kre=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(uF),cr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Wr=typeof window>"u"?null:window,dF=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Yi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return li(o,i,"fftSize"),li(o,i,"maxDecibels"),li(o,i,"minDecibels"),li(o,i,"smoothingTimeConstant"),t(qN,()=>qN(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Io),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Io,g1,Ul),qre=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(dF,oi,oo),ei=(t=>n=>{const e=t.get(n);if(void 0===e)throw Ri();return e})(cb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Wr),Bn=(t=>n=>null!==t&&n instanceof t)(Ji),hF=new WeakMap,fF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Bu),ts=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Wr),m1=(t=>n=>null!==t&&n instanceof t)(ts),b1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Wr),pF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Wr),Hu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Wr),Ei=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(S,H,re,ce){super(re),this._context=S,this._nativeAudioNode=re;const G=u(S);d(G)&&!0!==e(WN,()=>WN(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=bb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{bb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(re),qC.set(this,re),PN.set(this,new Set),"closed"!==S.state&&H&&Fu(this),t(this,ce,re)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(S){this._nativeAudioNode.channelCount=S}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(S){this._nativeAudioNode.channelCountMode=S}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(S){this._nativeAudioNode.channelInterpretation=S}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(S,H=0,re=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const ce=u(this._context),G=g(ce);if(h(S)||p(S))throw r();if(fb(S)){const be=oi(S);try{const je=pb(this._nativeAudioNode,be,H,re),Xe=mb(this);(G||Xe)&&this._nativeAudioNode.disconnect(...je),"closed"!==this.context.state&&!Xe&&mb(S)&&Fu(S)}catch(je){throw 12===je.code?r():je}if(n(this,S,H,re,G)){const je=l([this],S);l1(je,i(G))}return S}const pe=wf(S);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||mb(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=_f(n),{outputs:a}=Io(t),s=bf(t),l=c=>{const u=oi(t),d=wf(n);if(c){const h=UN(r,t,e);$N(o,t,h,!1),!i&&!Ul(t)&&u.connect(d,e)}else{const h=((t,n,e)=>ub(t,i=>i[0]===n&&i[1]===e))(o,t,e);VN(r,h,!1),!i&&!Ul(t)&&u.disconnect(d,e)}};return!!Gl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),es(t)?$N(o,t,[e,l],!0):VN(r,[t,e,l],!0),!0)})(this,S,H,G)){const be=l([this],S);l1(be,i(G))}}disconnect(S,H,re){let ce;const G=u(this._context),pe=g(G);if(void 0===S)ce=((t,n)=>{const e=Io(t),i=[];for(const o of e.outputs)vf(o)?c1(t,n,...o):u1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof S){if(S<0||S>=this.numberOfOutputs)throw o();ce=((t,n,e)=>{const i=Io(t),o=[];for(const r of i.outputs)r[1]===e&&(vf(r)?c1(t,n,...r):u1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,S)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||fb(S)&&void 0!==re&&(re<0||re>=S.numberOfInputs))throw o();if(ce=((t,n,e,i,o)=>{const r=Io(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(vf(a)?c1(t,n,...a):u1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,S,H,re),0===ce.length)throw r()}for(const ye of ce){const be=l([this],ye);l1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,S,H)=>{const{activeInputs:re,passiveInputs:ce}=r(b),{outputs:G}=r(g),pe=s(g),ye=be=>{const Pe=l(b),je=l(g);if(be){const Xe=HN(ce,g,T,S);t(re,g,Xe,!1),!H&&!d(g)&&e(je,Pe,T,S),h(b)&&Fu(b)}else{const Xe=i(re,g,T,S);n(ce,S,Xe,!1),!H&&!d(g)&&o(je,Pe,T,S);const Re=a(b);if(0===Re)u(b)&&r1(b,re);else{const Je=p.get(b);void 0!==Je&&clearTimeout(Je),p.set(b,setTimeout(()=>{u(b)&&r1(b,re)},1e3*Re))}}};return!!c(G,[b,T,S],be=>be[0]===b&&be[1]===T&&be[2]===S,!0)&&(pe.add(ye),u(g)?t(re,g,[T,S,ye],!0):n(ce,S,[g,T,ye],!0),!0)}})(Xre,Jre,pb,Qre,gb,Io,Kre,bf,oi,Gl,es,Ul,mb),cr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(vf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(t1,gb,Io,oi,wf,es),Da,wb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(vf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(pb,t1,Io,oi,wf,ei,es,Bn),((t,n,e)=>function i(o,r){const a=fb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(hF,Io,Ur),fF,ei,m1,b1,pF,Bn,Hu),eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...xne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ei,qre,Da,dF,ei,Bn),y1=new WeakSet,gF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Wr),mF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),_1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Bj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Ene,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),a1(g)):n(db,()=>db(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Bj.prototype||t.has(u)}}})(y1,cr,yo,gF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(gF),_1,v1),Cb=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})(zo),bF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(g1,_f,Ul),Ea=(t=>(n,e,i)=>t(e,n,i))(bF),Yu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Yi(p,h),mi(p,h,"playbackRate"),li(p,h,"buffer"),li(p,h,"loop"),li(p,h,"loopEnd"),li(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Ri();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||d1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||h1(p),t(d,p),p})(Cb,cr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},f1,lF,p1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Sf),cF),Ta=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(_f),bF),nae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,Yu,oi,Ta,oo),Xr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,S=null)=>{const H=b.value,re=new Zs.AutomationEventList(H),ce=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(re):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===S?b.minValue:S},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===ce&&re.flush(p.context.currentTime),re.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const ye=Array.from(re).pop();null===ce&&re.flush(p.context.currentTime),re.add(o(pe));const be=Array.from(re).pop();b.cancelScheduledValues(pe),ye!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===ce&&re.flush(p.context.currentTime),re.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,ye){if(0===pe)throw new RangeError;if(!Number.isFinite(ye)||ye<0)throw new RangeError;const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(a(pe,ye)),b.exponentialRampToValueAtTime(pe,ye),G},linearRampToValueAtTime(pe,ye){const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(s(pe,ye)),b.linearRampToValueAtTime(pe,ye),G},setTargetAtTime:(pe,ye,be)=>(null===ce&&re.flush(p.context.currentTime),re.add(l(pe,ye,be)),b.setTargetAtTime(pe,ye,be),G),setValueAtTime:(pe,ye)=>(null===ce&&re.flush(p.context.currentTime),re.add(c(pe,ye)),b.setValueAtTime(pe,ye),G),setValueCurveAtTime(pe,ye,be){const Pe=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const je=ye+be,Xe=p.context.sampleRate,Re=Math.ceil(ye*Xe),Je=Math.floor(je*Xe),st=Je-Re,ht=new Float32Array(st);for(let He=0;He(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(RN),hF,e1,0,Zs.createCancelAndHoldAutomationEvent,Zs.createCancelScheduledValuesAutomationEvent,Zs.createExponentialRampToValueAutomationEvent,Zs.createLinearRampToValueAutomationEvent,Zs.createSetTargetAutomationEvent,Zs.createSetValueAutomationEvent,Zs.createSetValueCurveAutomationEvent,ts,sF),iae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Mne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,ko,Yo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Fu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),es(this)&&yf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ei,nae,Xr,Ri,Yu,ei,Bn,Bu),oae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ei,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Da,Ri,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})(zo,Sf),ei,Bn,oo),rae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,tF,oi,Ta,oo),Xl=(t=>(n,e)=>t.set(n,e))(uF),aae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...oie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,ko,Yo),this._detune=n(this,g,p.detune,1200*Math.log2(ko),-1200*Math.log2(ko)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(ko),Yo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ei,Xr,rae,wb,tF,ei,Bn,Xl),Gs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Gl,b1),sae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Ri,Gs),Us=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Yi(o,i),o})(ts,sae),lae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Us,oi,oo),cae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...lie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ei,lae,Us,ei,Bn),uae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Cf,oi,oo),dae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...die,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ei,uae,Cf,ei,Bn),hae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i(ju(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Cb,Yu,zo,Gs),zu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Yi(s,a),mi(s,a,"offset"),n(i,()=>i(r))||d1(s),n(o,()=>o(r))||h1(s),t(r,s),s})(Cb,cr,hae,f1,p1),fae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,zu,oi,Ta,oo),pae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...bie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,ko,Yo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ei,Xr,fae,zu,ei,Bn,Bu),yF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Yi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),li(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Sf),gae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(yF,oi,oo),mae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...wie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ei,gae,yF,ei,Bn,Xl),bae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ea,nF,oi,Ta,oo),yae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Mie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ei,Xr,bae,nF,ei,Bn,Xl),_F=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Yi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return mi(i,e,"attack"),mi(i,e,"knee"),mi(i,e,"ratio"),mi(i,e,"release"),mi(i,e,"threshold"),i})(yo),_ae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,_F,oi,Ta,oo),vae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Fie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ei,Xr,_ae,_F,yo,ei,Bn,Xl),wae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,zo,oi,Ta,oo),Cae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Vie,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,ko,Yo)}get gain(){return this._gain}})(Ei,Xr,wae,zo,ei,Bn),xae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=eF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Pe=be.inputBuffer,je=be.outputBuffer,Xe=Pe.numberOfChannels;for(let Re=0;ReS.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>S.dispatchEvent(be[0]),getFrequencyResponse(be,Pe,je){if(be.length!==Pe.length||Pe.length!==je.length)throw t();const Xe=be.length;for(let Re=0;ReS.removeEventListener(be[0],be[1],be[2])},S)})(wb,Ri,xf,yo),xb=((t,n,e,i)=>o=>t(Wl,()=>Wl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(cr,zo,xf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})(zo,Ji)),Sae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const S=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,S,S.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Yi(o,i),o})(xae),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...noe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw wb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ei,Dae,Sae,ei,Bn,Xl),Tae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:S,upX:H,upY:re,upZ:ce}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),ye=a(c);let be=!1,Pe=[0,0,-1,0,1,0],je=[0,0,0];const Xe=()=>{if(be)return;be=!0;const ht=i(c,256,9,0);ht.onaudioprocess=({inputBuffer:Se})=>{const He=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];He.some((nt,St)=>nt!==Pe[St])&&(u.setOrientation(...He),Pe=He);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((nt,St)=>nt!==je[St])&&(u.setPosition(...We),je=We)},pe.connect(ht)},Re=ht=>Se=>{Se!==Pe[ht]&&(Pe[ht]=Se,u.setOrientation(...Pe))},Je=ht=>Se=>{Se!==je[ht]&&(je[ht]=Se,u.setPosition(...je))},st=(ht,Se,He)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ht),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const nt=t({context:l},ye,We.offset,ko,Yo);return s(nt,"value",St=>()=>St.call(nt),St=>Mt=>{try{St.call(nt,Mt)}catch(en){if(9!==en.code)throw en}Xe(),ye&&He(Mt)}),nt.cancelAndHoldAtTime=(St=nt.cancelAndHoldAtTime,ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en}),nt.cancelScheduledValues=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.cancelScheduledValues),nt.exponentialRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.exponentialRampToValueAtTime),nt.linearRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.linearRampToValueAtTime),nt.setTargetAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setTargetAtTime),nt.setValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueAtTime),nt.setValueCurveAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueCurveAtTime),nt;var St};return{forwardX:st(0,0,Re(0)),forwardY:st(1,0,Re(1)),forwardZ:st(2,-1,Re(2)),positionX:st(6,0,Je(0)),positionY:st(7,0,Je(1)),positionZ:st(8,0,Je(2)),upX:st(3,0,Re(3)),upY:st(4,1,Re(4)),upZ:st(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return S},get upX(){return H},get upY(){return re},get upZ(){return ce}}})(Xr,Us,zu,xf,yo,rF,Bn,Sf),vF=new WeakMap,w1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,cb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(oae,Tae,fF,Bn,vF,Bu),wF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Yi(l,s),mi(l,s,"detune"),mi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):li(l,s,"type"),n(e,()=>e(a))||d1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||h1(l),t(a,l),l})(Cb,cr,f1,lF,p1,cF),Mae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ea,wF,oi,Ta,oo),Aae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...hre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ei,Xr,wF,Mae,ei,Bn,Bu),CF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Yu),kae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Yi(c,l),Yi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,S=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return S},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,ye=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);ye[0]=G[0],be[0]=-G[pe-1];const Pe=Math.ceil((pe+1)/2),je=(pe+1)/2-1;for(let Xe=1;Xed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o(ju(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(S)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(CF,Ri,zo,aF,Gs),Sb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Yi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();li(c,{curve:u},"curve"),li(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(CF,Ri,kae,aF,Gs,ts,Sf),Iae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:S,orientationZ:H,panningModel:re,positionX:ce,positionY:G,positionZ:pe,refDistance:ye,rolloffFactor:be,...Pe})=>{const je=u.createPanner();if(Pe.channelCount>2||"max"===Pe.channelCountMode)throw a();Yi(je,Pe);const Xe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Xe,channelInterpretation:"speakers",numberOfInputs:6}),Je=i(u,{...Pe,gain:1}),st=i(u,{...Xe,gain:1}),ht=i(u,{...Xe,gain:0}),Se=i(u,{...Xe,gain:0}),He=i(u,{...Xe,gain:0}),We=i(u,{...Xe,gain:0}),nt=i(u,{...Xe,gain:0}),St=o(u,256,6,1),Mt=r(u,{...Xe,curve:new Float32Array([1,1]),oversample:"none"});let en=[T,S,H],Rn=[ce,G,pe];const an=new Float32Array(1);St.onaudioprocess=({inputBuffer:ct})=>{const yn=[l(ct,an,0),l(ct,an,1),l(ct,an,2)];yn.some((Er,Xs)=>Er!==en[Xs])&&(je.setOrientation(...yn),en=yn);const ro=[l(ct,an,3),l(ct,an,4),l(ct,an,5)];ro.some((Er,Xs)=>Er!==Rn[Xs])&&(je.setPosition(...ro),Rn=ro)},Object.defineProperty(ht.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(He.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(nt.gain,"defaultValue",{get:()=>0});const sn={get bufferSize(){},get channelCount(){return je.channelCount},set channelCount(ct){if(ct>2)throw a();Je.channelCount=ct,je.channelCount=ct},get channelCountMode(){return je.channelCountMode},set channelCountMode(ct){if("max"===ct)throw a();Je.channelCountMode=ct,je.channelCountMode=ct},get channelInterpretation(){return je.channelInterpretation},set channelInterpretation(ct){Je.channelInterpretation=ct,je.channelInterpretation=ct},get coneInnerAngle(){return je.coneInnerAngle},set coneInnerAngle(ct){je.coneInnerAngle=ct},get coneOuterAngle(){return je.coneOuterAngle},set coneOuterAngle(ct){je.coneOuterAngle=ct},get coneOuterGain(){return je.coneOuterGain},set coneOuterGain(ct){if(ct<0||ct>1)throw n();je.coneOuterGain=ct},get context(){return je.context},get distanceModel(){return je.distanceModel},set distanceModel(ct){je.distanceModel=ct},get inputs(){return[Je]},get maxDistance(){return je.maxDistance},set maxDistance(ct){if(ct<0)throw new RangeError;je.maxDistance=ct},get numberOfInputs(){return je.numberOfInputs},get numberOfOutputs(){return je.numberOfOutputs},get orientationX(){return st.gain},get orientationY(){return ht.gain},get orientationZ(){return Se.gain},get panningModel(){return je.panningModel},set panningModel(ct){je.panningModel=ct},get positionX(){return He.gain},get positionY(){return We.gain},get positionZ(){return nt.gain},get refDistance(){return je.refDistance},set refDistance(ct){if(ct<0)throw new RangeError;je.refDistance=ct},get rolloffFactor(){return je.rolloffFactor},set rolloffFactor(ct){if(ct<0)throw new RangeError;je.rolloffFactor=ct},addEventListener:(...ct)=>Je.addEventListener(ct[0],ct[1],ct[2]),dispatchEvent:(...ct)=>Je.dispatchEvent(ct[0]),removeEventListener:(...ct)=>Je.removeEventListener(ct[0],ct[1],ct[2])};return d!==sn.coneInnerAngle&&(sn.coneInnerAngle=d),h!==sn.coneOuterAngle&&(sn.coneOuterAngle=h),p!==sn.coneOuterGain&&(sn.coneOuterGain=p),g!==sn.distanceModel&&(sn.distanceModel=g),b!==sn.maxDistance&&(sn.maxDistance=b),T!==sn.orientationX.value&&(sn.orientationX.value=T),S!==sn.orientationY.value&&(sn.orientationY.value=S),H!==sn.orientationZ.value&&(sn.orientationZ.value=H),re!==sn.panningModel&&(sn.panningModel=re),ce!==sn.positionX.value&&(sn.positionX.value=ce),G!==sn.positionY.value&&(sn.positionY.value=G),pe!==sn.positionZ.value&&(sn.positionZ.value=pe),ye!==sn.refDistance&&(sn.refDistance=ye),be!==sn.rolloffFactor&&(sn.rolloffFactor=be),(1!==en[0]||0!==en[1]||0!==en[2])&&je.setOrientation(...en),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&je.setPosition(...Rn),c(ju(sn,je),()=>{Je.connect(je),t(Je,Mt,0,0),Mt.connect(st).connect(Re,0,0),Mt.connect(ht).connect(Re,0,1),Mt.connect(Se).connect(Re,0,2),Mt.connect(He).connect(Re,0,3),Mt.connect(We).connect(Re,0,4),Mt.connect(nt).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Je.disconnect(je),s(Je,Mt,0,0),Mt.disconnect(st),st.disconnect(Re),Mt.disconnect(ht),ht.disconnect(Re),Mt.disconnect(Se),Se.disconnect(Re),Mt.disconnect(He),He.disconnect(Re),Mt.disconnect(We),We.disconnect(Re),Mt.disconnect(nt),nt.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(pb,Ri,Us,zo,xf,Sb,yo,gb,rF,Gs),xF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Yi(i,e),mi(i,e,"orientationX"),mi(i,e,"orientationY"),mi(i,e,"orientationZ"),mi(i,e,"positionX"),mi(i,e,"positionY"),mi(i,e,"positionZ"),li(i,e,"coneInnerAngle"),li(i,e,"coneOuterAngle"),li(i,e,"coneOuterGain"),li(i,e,"distanceModel"),li(i,e,"maxDistance"),li(i,e,"panningModel"),li(i,e,"refDistance"),li(i,e,"rolloffFactor"),i)})(Iae),Oae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,S=r(g);const H={channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation},re={...H,coneInnerAngle:S.coneInnerAngle,coneOuterAngle:S.coneOuterAngle,coneOuterGain:S.coneOuterGain,distanceModel:S.distanceModel,maxDistance:S.maxDistance,panningModel:S.panningModel,refDistance:S.refDistance,rolloffFactor:S.rolloffFactor},ce=bo(S,b);if("bufferSize"in S)T=i(b,{...H,gain:1});else if(!ce){const G={...re,orientationX:S.orientationX.value,orientationY:S.orientationY.value,orientationZ:S.orientationZ.value,positionX:S.positionX.value,positionY:S.positionY.value,positionZ:S.positionZ.value};S=o(b,G)}if(u.set(b,null===T?S:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Je=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Je.connect(Re.destination),d=(0,y.Z)(function*(){const st=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ht=(0,y.Z)(function*(Se,He){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===He?1:0});return yield s(Re,Se,We.offset),We});return function(Se,He){return ht.apply(this,arguments)}}()));for(let ht=0;ht<6;ht+=1)st[ht].connect(Je,0,ht),st[ht].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const ye=[];for(let Re=0;Reht!==be[Se])||st.some((ht,Se)=>ht!==Pe[Se])){be=Je,Pe=st;const ht=Re/b.sampleRate;je.gain.setValueAtTime(0,ht),je=i(b,{...H,gain:0}),Xe=o(b,{...re,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Pe[0],positionY:Pe[1],positionZ:Pe[2]}),je.gain.setValueAtTime(1,ht),pe.connect(je).connect(Xe.inputs[0]),Xe.connect(T)}}return T}return ce?(yield t(b,g.orientationX,S.orientationX),yield t(b,g.orientationY,S.orientationY),yield t(b,g.orientationZ,S.orientationZ),yield t(b,g.positionX,S.positionX),yield t(b,g.positionY,S.positionY),yield t(b,g.positionZ,S.positionZ)):(yield s(b,g.orientationX,S.orientationX),yield s(b,g.orientationY,S.orientationY),yield s(b,g.orientationZ,S.orientationZ),yield s(b,g.positionX,S.positionX),yield s(b,g.positionY,S.positionY),yield s(b,g.positionZ,S.positionZ)),Lu(S)?yield l(g,b,S.inputs[0]):yield l(g,b,S),S});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ea,Us,zu,zo,xF,oi,Ji,Ta,oo,xb),Rae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...gre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,ko,Yo),this._orientationY=n(this,p,h.orientationY,ko,Yo),this._orientationZ=n(this,p,h.orientationZ,ko,Yo),this._positionX=n(this,p,h.positionX,ko,Yo),this._positionY=n(this,p,h.positionY,ko,Yo),this._positionZ=n(this,p,h.positionZ,ko,Yo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ei,Xr,xF,Oae,ei,Bn,Xl),Pae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Da),Nae=((t,n,e,i)=>class Hj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...yre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Hj.prototype||e.has(r)}})(Pae,ei,new WeakSet),Fae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,S,H)=>{if(1===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385);for(let Pe=0;Pe<16385;Pe+=1){const je=Pe/16384*l;H[Pe]=Math.cos(je),re[Pe]=Math.sin(je)}const ce=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),ye=e(g,{...c,gain:0}),be=i(g,{...u,curve:re});return{connectGraph(){b.connect(ce),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(ye),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(ce.gain),be.connect(ye.gain),ce.connect(S,0,0),ye.connect(S,0,1)},disconnectGraph(){b.disconnect(ce),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(ye),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(ce.gain),be.disconnect(ye.gain),ce.disconnect(S,0,0),ye.disconnect(S,0,1)}}})(g,T,S,H);if(2===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385),ce=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let He=0;He<16385;He+=1)if(He>pe){const We=(He-pe)/(16384-pe)*l;H[He]=Math.cos(We),re[He]=Math.sin(We),ce[He]=0,G[He]=1}else{const We=He/(16384-pe)*l;H[He]=1,re[He]=0,ce[He]=Math.cos(We),G[He]=Math.sin(We)}const ye=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Pe=i(g,{...u,curve:H}),je=e(g,{...c,gain:0}),Xe=i(g,{...u,curve:re}),Re=i(g,{...u,curve:s}),Je=e(g,{...c,gain:0}),st=i(g,{...u,curve:ce}),ht=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(ye),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),ye.connect(be,0),ye.connect(je,0),ye.connect(Je,1),ye.connect(ht,1),Re.connect(T),T.connect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.connect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.connect(void 0===st.inputs?st:st.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.connect(be.gain),Xe.connect(je.gain),st.connect(Je.gain),Se.connect(ht.gain),be.connect(S,0,0),Je.connect(S,0,0),je.connect(S,0,1),ht.connect(S,0,1)},disconnectGraph(){b.disconnect(ye),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),ye.disconnect(be,0),ye.disconnect(je,0),ye.disconnect(Je,1),ye.disconnect(ht,1),Re.disconnect(T),T.disconnect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.disconnect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.disconnect(void 0===st.inputs?st:st.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.disconnect(be.gain),Xe.disconnect(je.gain),st.disconnect(Je.gain),Se.disconnect(ht.gain),be.disconnect(S,0,0),Je.disconnect(S,0,0),je.disconnect(S,0,1),ht.disconnect(S,0,1)}}})(g,T,S,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:S,...H})=>{if("max"===T)throw o();const re=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),ce=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:S});let{connectGraph:pe,disconnectGraph:ye}=p(g,b,ce,G,re);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return ce.channelCount},set channelCount(Re){ce.channelCount!==Re&&(Pe&&ye(),({connectGraph:pe,disconnectGraph:ye}=p(g,Re,ce,G,re)),Pe&&pe()),ce.channelCount=Re},get channelCountMode(){return ce.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();ce.channelCountMode=Re},get channelInterpretation(){return ce.channelInterpretation},set channelInterpretation(Re){ce.channelInterpretation=Re},get context(){return ce.context},get inputs(){return[ce]},get numberOfInputs(){return ce.numberOfInputs},get numberOfOutputs(){return ce.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>ce.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>ce.dispatchEvent(Re[0]),removeEventListener:(...Re)=>ce.removeEventListener(Re[0],Re[1],Re[2])};let Pe=!1;return r(ju(be,re),()=>{pe(),Pe=!0},()=>{ye(),Pe=!1})}})(Us,Cf,zo,Sb,yo,Gs),SF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Yi(r,i),mi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Fae,yo),Lae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),Lu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,SF,oi,Ta,oo),jae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Tre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ei,Xr,SF,Lae,ei,Bn),Bae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Sb,oi,oo),Hae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Rre,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ei,Ri,Sb,Bae,ei,Bn,Xl),DF=(t=>null!==t&&t.isSecureContext)(Wr),C1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Wr),EF=new WeakMap,Yae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(EF,Ji),zae=DF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const S=u.get(g);if(void 0!==S&&S.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const re=r(g),ce=void 0===re.audioWorklet?o(b).then(([G,pe])=>{const[ye,be]=LN(G,pe);return e(`${ye};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(re.currentTime,re.sampleRate,()=>G(class{},void 0,(pe,ye)=>{if(""===pe.trim())throw n();const be=n1.get(re);if(void 0!==be){if(be.has(pe))throw n();BN(ye),jN(ye.parameterDescriptors),be.set(pe,ye)}else BN(ye),jN(ye.parameterDescriptors),n1.set(re,new Map([[pe,ye]]))},re.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],ye])=>{const be=p+1;p=be;const[Pe,je]=LN(G,pe),ht=new Blob([`${Pe};((AudioWorkletProcessor,registerProcessor)=>{${je}\n})(${ye?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${ye?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${ye?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ht);return re.audioWorklet.addModule(Se,T).then(()=>{if(s(re))return re;const He=a(re);return He.audioWorklet.addModule(Se,T).then(()=>He)}).then(He=>{if(null===l)throw new SyntaxError;try{new l(He,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,ce]])):H.set(b,ce),ce.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),ce}})(cr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Wr),C1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ei,Yae,Bn,Hu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Hu,Ji),Wr):void 0,$ae=((t,n)=>e=>t(e)||n(e))(m1,Bn),Vae=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(QN(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield QN(h)}catch{}});return function(){return H.apply(this,arguments)}}(),S=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),a1(H)),t.add(H),T().then(()=>g(H))},H=>{S(null===H?new DOMException("","EncodingError"):H)})}catch(H){S(H)}})})(y1,cr,0,0,new WeakSet,ei,$ae,db,Wl,_1,v1),TF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,S,H,re)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(ye,be)=>t(this,ye,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,ye){return new e({length:pe,numberOfChannels:G,sampleRate:ye})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,ye={disableNormalization:!1}){return new S(this,{...ye,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new re(this)}decodeAudioData(G,pe,ye){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof ye&&ye(be),be})}})(zae,eae,tae,iae,aae,cae,dae,pae,mae,Vae,yae,vae,Cae,Eae,w1,Aae,Rae,Nae,jae,Hae),Zae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ei,0,ei,Bn),Gae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Yi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...yoe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ei,0,ei,Bn),Uae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ei,0,ei,Bn),Wae=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Ri,Bn),Xae=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ei,Wae,ei),Jae=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{s1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(TF,Ri,yo,oF,Zae,Gae,Uae,Xae,ts),x1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(vF),MF=((t=>{})(x1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return bb(e)?r.connect(e,0,o):r.connect(e,0)})(Da)),Kae=(t=>(n,e)=>{t(n).delete(e)})(x1),AF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?vb(t,n,e).disconnect():bb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?vb(t,n,i).disconnect(e,0):vb(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):vb(t,n,i).disconnect(e,0))(Da),kF=new WeakMap,qae=((t,n)=>e=>n(t,e))(kF,Ur),ese=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const S=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(S.some(ft=>ft<1))throw l();if(S.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,re=S.reduce((ft,Pt)=>ft+Pt,0),ce=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+ce>6||re>6)throw l();const G=new MessageChannel,pe=[],ye=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===Pt?ko:Pt},minValue:{get:()=>void 0===ri?Yo:ri}}),be.push(xn)}const Pe=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+ce)}),je=eF(g,p.sampleRate),Xe=s(p,je,H+ce,Math.max(1,re)),Re=o(p,{channelCount:Math.max(1,re),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,re)}),Je=[];for(let ft=0;ft{const ri=be[Pt];return ri.connect(Pe,0,H+Pt),ri.start(0),[ft,ri.offset]}));Pe.connect(Xe);let ht=T.channelInterpretation,Se=null;const He=0===T.numberOfOutputs?[Xe]:Je,We={get bufferSize(){return je},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ht},set channelInterpretation(ft){for(const Pt of pe)Pt.channelInterpretation=ft;ht=ft},get context(){return Xe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return st},get port(){return G.port2},addEventListener:(...ft)=>Xe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,He),disconnect:c.bind(null,He),dispatchEvent:(...ft)=>Xe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Xe.removeEventListener(ft[0],ft[1],ft[2])},nt=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...Pt)=>{if("message"===Pt[0]){const ri="function"==typeof Pt[1]?Pt[1]:"object"==typeof Pt[1]&&null!==Pt[1]&&"function"==typeof Pt[1].handleEvent?Pt[1].handleEvent:null;if(null!==ri){const ai=nt.get(Pt[1]);void 0!==ai?Pt[1]=ai:(Pt[1]=xn=>{u(p.currentTime,p.sampleRate,()=>ri(xn))},nt.set(ri,Pt[1]))}}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])}),G.port1.removeEventListener=(ft=>(...Pt)=>{if("message"===Pt[0]){const ri=nt.get(Pt[1]);void 0!==ri&&(nt.delete(Pt[1]),Pt[1]=ri)}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let Mt=null;((t,n,e,i)=>{let o=o1.get(t);void 0===o&&(o=new WeakMap,o1.set(t,o));const r=joe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>Mt=ft);const Rn=_b(T.numberOfInputs,T.channelCount),an=_b(T.numberOfOutputs,S),sn=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:Pt})=>({...ft,[Pt]:new Float32Array(128)}),{});let $o=!0;const Vn=()=>{T.numberOfOutputs>0&&Xe.disconnect(Re);for(let ft=0,Pt=0;ft{if(null!==Mt){const ri=d(We);for(let ai=0;ai{yb(ft,sn,xn,H+Zn,ai)});for(let xn=0;xn{if(ri[Jr].size>0)return ct.set(Jr,je/128),Vo;const Zu=ct.get(Jr);return void 0===Zu?[]:(Vo.every(cx=>cx.every(Vb=>0===Vb))&&(1===Zu?ct.delete(Jr):ct.set(Jr,Zu-1)),Vo)});$o=u(p.currentTime+ai/p.sampleRate,p.sampleRate,()=>Mt.process(xn,an,sn));for(let Vo=0,Jr=0;VoXe.connect(ro).connect(p.destination),Xs=()=>{Xe.disconnect(ro),ro.disconnect()};return Er(),h(We,()=>{if($o){Xs(),T.numberOfOutputs>0&&Xe.connect(Re);for(let ft=0,Pt=0;ft{$o&&(Er(),Vn()),yn=!1})})(MF,Da,Ri,Us,Cf,zu,zo,xf,yo,AF,C1,qae,Gs);let Db=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(Ua(s=>(this.toastr.error(s.message,"Ah, el fichero no se puede acceder. Intente otra vez m\xE1s tarde.",{timeOut:1e4}),Tt(s))),Nt(s=>s),io(1))}loadAudioBufferFromFile$(e,i){var o=new Jae({sampleRate:i});return hi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(vl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ur={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI"},"private":true,"singleFileBundleVersion":"1.5.1","singleFileBundleTimestamp":"2024-10-18+17-15-26"}')},rse={title:"Bienvenidos al Studio de ReadAlong",text:"\xA1Crear un ReadAlong es f\xE1cil! Esta gu\xEDa le mostrar\xE1 todas las funcionalidades del Studio.",attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"intro"},ase={title:"A\xF1adir sus datos",text:"Para crear su ReadAlong, necesitar\xE1 a\xF1adir su texto y su audio.",attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"data"},sse={title:"Escribir su texto",text:"Puede escribir su texto directamente en el Studio de ReadAlong si selecciona la opci\xF3n \xABescribir\xBB.",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"text-write"},RF={title:"Usar un fichero de texto",text:"Puede usar tambi\xE9n un fichero de texto (.txt) o un fichero en el formato RAS (.readalong).",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"text-file"},lse={title:"Grabar su propio audio",text:"Puede grabar su propio audio para que sea preprocesado si utiliza el micr\xF3fono en su buscador.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"audio-record"},PF={title:"Usar un fichero de audio",text:"Tambi\xE9n puede seleccionar un fichero .wav o .mp3 para su ReadAlong.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"audio-file"},cse={title:"Seleccionar su idioma",text:"Luego, opcionalmente, puede seleccionar el idioma de su ReadAlong.",attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"language"},use={title:"Seleccionar su idioma",text:"En la mayor\xEDa de los casos, la opci\xF3n predeterminada est\xE1 bien, \xA1simplemente deje esta opci\xF3n seleccionada!",attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"generic-language"},dse={title:"Seleccionar su idioma",text:"Por otro lado, si sus resultados no son adecuados con la opci\xF3n predeterminada, puede elegir un idioma de esta lista. Si no puede encontrar el suyo, siempre puede agregarlo. Comience leyendo nuestra serie de entradas de blog (en ingl\xE9s) para aprender c\xF3mo agregar su idioma, o cont\xE1ctenos para obtener m\xE1s informaci\xF3n.",attachTo:{element:"#specific-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"specific-language"},Df={title:"\xA1Eso es todo!",text:"Una vez que haya hecho esto, puede hacer clic en el bot\xF3n \xABPr\xF3ximo\xBB aqu\xED para que el Studio cree su ReadAlong. (Esto puede llevar varios segundos.)",attachTo:{element:"#next-step",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo"}],id:"create-readalong"},hse={title:"\xA1Listo!",text:"Su ReadAlong ha sido creado.",attachTo:{element:"#readalong",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"step-two-intro"},NF={title:"Ver su ReadAlong",text:"Hacer clic en \xABplay\xBB hace pasar el audio y resalta el texto al mismo tiempo. \xA1Int\xE9ntelo!",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-play"},FF={title:"Ver su ReadAlong",text:"Darle clic a una palabra tambi\xE9n pasar\xE1 el audio correspondiente.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-play-word"},LF={title:"Editar su ReadAlong",text:"Puede editar el texto aqu\xED para a\xF1adir un T\xEDtulo o un Subt\xEDtulo a su ReadAlong.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-change-title"},Eb={title:"Editar su ReadAlong",text:"Puede a\xF1adir una imagen a cada p\xE1gina de su ReadAlong aqu\xED.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-add-image"},Tb={title:"Editar su ReadAlong",text:"Usted puede a\xF1adir una traducci\xF3n o alguna informaci\xF3n adicional para cada oraci\xF3n en su ReadAlong si le da clic al \xEDcono + aqu\xED. Si m\xE1s tarde quiere borrar la traducci\xF3n, utilice el \xEDcono - una vez que haya a\xF1adido la traducci\xF3n.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-add-translation"},Mb={title:"Exporte su ReadAlong",text:"Cuando est\xE9 satisfecho con su ReadAlong, puede exportarlo si selecciona un formato de descarga y le da clic al bot\xF3n de descarga (con la flecha apuntando hacia abajo). Puede seleccionar uno de los siguientes formatos: "+"
  • "+"HTML offline: su ReadAlong en un documento HTML \xFAnico que no necesita acceso a la web para funcionar,"+"
  • "+"Archivos web comprimidos: todos sus archivos de ReadAlong en una carpeta que puede ser alojada en un servidor web,"+"
  • "+"Ficheros de Elan y Praat: formatos de descarga utilizados por ling\xFCistas documentales,"+"
  • "+"Subt\xEDtulos SRT y WebVTT: formatos de descarga utilizados para a\xF1adir subt\xEDtulos a un video."+"
",attachTo:{element:"div.download__buttons",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-export"},fse={title:"Editar los inputs de su ReadAlong",text:"Si quiere cambiar su audio o su texto puede regresar al Paso 1 y hacer cambios ah\xED o crear un nuevo ReadAlong. "+"Pero tenga cuidado, regresar al paso anterior quiere decir que perder\xE1 sus traducciones y sus im\xE1genes."+"

"+"Advertencia: Utilizar la fecha de atr\xE1s del buscador hace que usted salga de la app y puede que tambi\xE9n borre todo su texto y su audio as\xED que se debe evitar usar este bot\xF3n. "+"En su lugar, use el bot\xF3n \xABPaso 1\xBB para regresar y cambiar su texto o audio.",attachTo:{element:"div.mat-horizontal-stepper-header-container",on:"botton-start"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Terminar",type:"cancel"}],id:"readalong-back"},pse={title:"Editor para su ReadAlong exportados",text:"Este editor le permite modificar su ReadAlong exportado. Tenga en cuenta que esta herramienta solo acepta el formato HTML offline.",attachTo:{element:"#editor",on:"bottom-center"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},jF={title:"Seleccione un fichero",text:"Seleccione un fichero HTML offline. O, puede usar el fichero HTML offline incluido en el formato de descarga Archivos web comprimidos. Para continuar el tour, a\xF1adiremos un ejemplo de ReadAlong para usted.",attachTo:{element:"#updateRAS",on:"bottom-middle"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-warning",text:"Pr\xF3ximo"}]},gse={title:"\xA1Listo!",text:"Su ReadAlong esta listo para ser editado.",attachTo:{element:"#readalongContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},mse={title:"Barra de herramientas de audio",text:"Aqu\xED est\xE1 una representaci\xF3n visual de su audio y el alineamiento de su texto. Puede ajustar el alineamiento de su audio y texto y corregir errores de ortograf\xEDa aqu\xED. Haga clic en \xABpr\xF3ximo\xBB para ver c\xF3mo.",attachTo:{element:"#audioToolbar",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},bse={title:"Zoom de la visualizaci\xF3n del audio y texto",text:"Utiliza los controles de zoom para centrarse en una secci\xF3n del audio y texto.",attachTo:{element:"#zoomControls",on:"top-end"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},BF={title:"Visualizaci\xF3n del alineamiento de texto y audio",text:"Esto representa visualmente el alineamiento audio-texto de su ReadAlong. Haga clic en la forma de onda para escuchar una palabra. Mueve las barras en los bordes de una palabra para ajustar su alineamiento. Luego haga clic en el \xABplay\xBB bot\xF3n del ReadAlong para observar los resultados de sus ajustes en el resaltado de texto de su ReadAlong.",attachTo:{element:"#wavesurferContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},HF={title:"Corregir errores de ortograf\xEDa",text:"Puede corregir errores de ortograf\xEDa haciendo clic en una palabra y edit\xE1ndola.",attachTo:{element:"#wavesurferContainer",on:"left"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]};let S1=(()=>{class t{constructor(e,i){this.http=e,this.fileService=i,this.JS_BUNDLE_URL="assets/bundle.js",this.FONTS_BUNDLE_URL="assets/fonts.b64.css",this.jsAndFontsBundle$=new ci(null),this.getBundle$().subscribe(o=>{this.jsAndFontsBundle$.next(o)})}getBundle$(){return Dh([this.http.get(this.JS_BUNDLE_URL,{responseType:"blob"}).pipe(Wi(e=>this.fileService.readFileAsData$(e))),this.http.get(this.FONTS_BUNDLE_URL,{responseType:"blob"}).pipe(Wi(e=>this.fileService.readFileAsData$(e)))])}utf8_to_b64(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(i,o){return String.fromCharCode(parseInt(o,16))}))}b64_to_utf8(e){return decodeURIComponent(Array.prototype.map.call(window.atob(e),function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}xmlToB64(e){return this.utf8_to_b64((new XMLSerializer).serializeToString(e))}blobToB64(e){return new Promise((i,o)=>{const r=new FileReader;r.onloadend=()=>i(r.result),r.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(Db))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var D1=function(t){return t.generic="generic",t.specific="specific",t}(D1||{});let E1=(()=>{class t{constructor(e){this._formBuilder=e,this.slots={title:"T\xEDtulo",subtitle:"Subt\xEDtulo"},this.lastStepperIndex=0,this.temporaryBlob=void 0,this.b64Inputs$=new ci(["",null]),this.render$=new ci(!1),this.langMode$=new ci(D1.generic),this.langControl$=new $r({value:"und",disabled:"specific"!==this.langMode$.value},Rs.required),this.textControl$=new $r(null,Rs.required),this.audioControl$=new $r(null,Rs.required),this.$textInput=new ci(""),this.uploadFormGroup=this._formBuilder.group({lang:this.langControl$,text:this.textControl$,audio:this.audioControl$}),this.inputMethod={audio:"mic",text:"edit"},this.langMode$.subscribe(i=>{i===D1.generic?this.langControl$.disable():this.langControl$.enable()})}static{this.\u0275fac=function(i){return new(i||t)(Me(wO))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var yse=I(990),_se=I.n(yse);function YF(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vse(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wse=[["\xdf","ss"],["\u1e9e","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["\u0150","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["\u0170","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["\u0151","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["\u0171","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["\u1e9e","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01a1","o"],["\u01a0","O"],["\u01b0","u"],["\u01af","U"],["\u1ea1","a"],["\u1ea0","A"],["\u1ea3","a"],["\u1ea2","A"],["\u1ea5","a"],["\u1ea4","A"],["\u1ea7","a"],["\u1ea6","A"],["\u1ea9","a"],["\u1ea8","A"],["\u1eab","a"],["\u1eaa","A"],["\u1ead","a"],["\u1eac","A"],["\u1eaf","a"],["\u1eae","A"],["\u1eb1","a"],["\u1eb0","A"],["\u1eb3","a"],["\u1eb2","A"],["\u1eb5","a"],["\u1eb4","A"],["\u1eb7","a"],["\u1eb6","A"],["\u1eb9","e"],["\u1eb8","E"],["\u1ebb","e"],["\u1eba","E"],["\u1ebd","e"],["\u1ebc","E"],["\u1ebf","e"],["\u1ebe","E"],["\u1ec1","e"],["\u1ec0","E"],["\u1ec3","e"],["\u1ec2","E"],["\u1ec5","e"],["\u1ec4","E"],["\u1ec7","e"],["\u1ec6","E"],["\u1ec9","i"],["\u1ec8","I"],["\u1ecb","i"],["\u1eca","I"],["\u1ecd","o"],["\u1ecc","O"],["\u1ecf","o"],["\u1ece","O"],["\u1ed1","o"],["\u1ed0","O"],["\u1ed3","o"],["\u1ed2","O"],["\u1ed5","o"],["\u1ed4","O"],["\u1ed7","o"],["\u1ed6","O"],["\u1ed9","o"],["\u1ed8","O"],["\u1edb","o"],["\u1eda","O"],["\u1edd","o"],["\u1edc","O"],["\u1edf","o"],["\u1ede","O"],["\u1ee1","o"],["\u1ee0","O"],["\u1ee3","o"],["\u1ee2","O"],["\u1ee5","u"],["\u1ee4","U"],["\u1ee7","u"],["\u1ee6","U"],["\u1ee9","u"],["\u1ee8","U"],["\u1eeb","u"],["\u1eea","U"],["\u1eed","u"],["\u1eec","U"],["\u1eef","u"],["\u1eee","U"],["\u1ef1","u"],["\u1ef0","U"],["\u1ef3","y"],["\u1ef2","Y"],["\u1ef5","y"],["\u1ef4","Y"],["\u1ef7","y"],["\u1ef6","Y"],["\u1ef9","y"],["\u1ef8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062a","t"],["\u062b","th"],["\u062c","j"],["\u062d","h"],["\u062e","kh"],["\u062f","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063a","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064a","y"],["\u064e\u200e","a"],["\u064f","u"],["\u0650\u200e","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06a9","k"],["\u06af","g"],["\u067e","p"],["\u0698","zh"],["\u06cc","y"],["\u06f0","0"],["\u06f1","1"],["\u06f2","2"],["\u06f3","3"],["\u06f4","4"],["\u06f5","5"],["\u06f6","6"],["\u06f7","7"],["\u06f8","8"],["\u06f9","9"],["\u067c","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\ufeab","d"],["\ufead","r"],["\u0693","r"],["\ufeaf","z"],["\u0696","g"],["\u069a","x"],["\u06ab","g"],["\u06bc","n"],["\u06c0","e"],["\u06d0","e"],["\u06cd","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06ba","n"],["\u06c1","h"],["\u06be","h"],["\u06d2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044a\u0435","ye"],["\u042a\u0435","Ye"],["\u044a\u0415","yE"],["\u042a\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044b\u0439","iy"],["\u042b\u0439","Iy"],["\u042b\u0419","IY"],["\u044b\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041a","K"],["\u043a","k"],["\u041b","L"],["\u043b","l"],["\u041c","M"],["\u043c","m"],["\u041d","N"],["\u043d","n"],["\u041e","O"],["\u043e","o"],["\u041f","P"],["\u043f","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042a",""],["\u044a",""],["\u042b","Y"],["\u044b","y"],["\u042c",""],["\u044c",""],["\u042d","E"],["\u044d","e"],["\u042e","Yu"],["\u044e","yu"],["\u042f","Ya"],["\u044f","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021b","t"],["\u021a","T"],["\u0163","t"],["\u0162","T"],["\u015f","s"],["\u015e","S"],["\xe7","c"],["\xc7","C"],["\u011f","g"],["\u011e","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056a","zh"],["\u053a","Zh"],["\u056b","i"],["\u053b","I"],["\u056c","l"],["\u053c","L"],["\u056d","kh"],["\u053d","Kh"],["\u056e","ts"],["\u053e","Ts"],["\u056f","k"],["\u053f","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057a","p"],["\u054a","P"],["\u057b","j"],["\u054b","J"],["\u057c","r"],["\u054c","R"],["\u057d","s"],["\u054d","S"],["\u057e","v"],["\u054e","V"],["\u057f","t"],["\u054f","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10d0","a"],["\u10d1","b"],["\u10d2","g"],["\u10d3","d"],["\u10d4","e"],["\u10d5","v"],["\u10d6","z"],["\u10d7","t"],["\u10d8","i"],["\u10d9","k"],["\u10da","l"],["\u10db","m"],["\u10dc","n"],["\u10dd","o"],["\u10de","p"],["\u10df","zh"],["\u10e0","r"],["\u10e1","s"],["\u10e2","t"],["\u10e3","u"],["\u10e4","ph"],["\u10e5","q"],["\u10e6","gh"],["\u10e7","k"],["\u10e8","sh"],["\u10e9","ch"],["\u10ea","ts"],["\u10eb","dz"],["\u10ec","ts"],["\u10ed","tch"],["\u10ee","kh"],["\u10ef","j"],["\u10f0","h"],["\u010d","c"],["\u010f","d"],["\u011b","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016f","u"],["\u017e","z"],["\u010c","C"],["\u010e","D"],["\u011a","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016e","U"],["\u017d","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078a","f"],["\u078b","dh"],["\u078c","th"],["\u078d","l"],["\u078e","g"],["\u078f","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079a","kh"],["\u079b","th"],["\u079c","z"],["\u079d","sh"],["\u079e","s"],["\u079f","d"],["\u07a0","t"],["\u07a1","z"],["\u07a2","a"],["\u07a3","gh"],["\u07a4","q"],["\u07a5","w"],["\u07a6","a"],["\u07a7","aa"],["\u07a8","i"],["\u07a9","ee"],["\u07aa","u"],["\u07ab","oo"],["\u07ac","e"],["\u07ad","ey"],["\u07ae","o"],["\u07af","oa"],["\u07b0",""],["\u03b1","a"],["\u03b2","v"],["\u03b3","g"],["\u03b4","d"],["\u03b5","e"],["\u03b6","z"],["\u03b7","i"],["\u03b8","th"],["\u03b9","i"],["\u03ba","k"],["\u03bb","l"],["\u03bc","m"],["\u03bd","n"],["\u03be","ks"],["\u03bf","o"],["\u03c0","p"],["\u03c1","r"],["\u03c3","s"],["\u03c4","t"],["\u03c5","y"],["\u03c6","f"],["\u03c7","x"],["\u03c8","ps"],["\u03c9","o"],["\u03ac","a"],["\u03ad","e"],["\u03af","i"],["\u03cc","o"],["\u03cd","y"],["\u03ae","i"],["\u03ce","o"],["\u03c2","s"],["\u03ca","i"],["\u03b0","y"],["\u03cb","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039a","K"],["\u039b","L"],["\u039c","M"],["\u039d","N"],["\u039e","KS"],["\u039f","O"],["\u03a0","P"],["\u03a1","R"],["\u03a3","S"],["\u03a4","T"],["\u03a5","Y"],["\u03a6","F"],["\u03a7","X"],["\u03a8","PS"],["\u03a9","O"],["\u0386","A"],["\u0388","E"],["\u038a","I"],["\u038c","O"],["\u038e","Y"],["\u0389","I"],["\u038f","O"],["\u03aa","I"],["\u03ab","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012b","i"],["\u0137","k"],["\u013c","l"],["\u0146","n"],["\u016b","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012a","I"],["\u0136","K"],["\u013b","L"],["\u0145","N"],["\u016a","U"],["\u010d","c"],["\u0161","s"],["\u017e","z"],["\u010c","C"],["\u0160","S"],["\u017d","Z"],["\u0105","a"],["\u010d","c"],["\u0119","e"],["\u0117","e"],["\u012f","i"],["\u0161","s"],["\u0173","u"],["\u016b","u"],["\u017e","z"],["\u0104","A"],["\u010c","C"],["\u0118","E"],["\u0116","E"],["\u012e","I"],["\u0160","S"],["\u0172","U"],["\u016a","U"],["\u040c","Kj"],["\u045c","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040a","Nj"],["\u045a","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015b","s"],["\u017a","z"],["\u017c","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015a","S"],["\u0179","Z"],["\u017b","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xa2","c"],["\xa5","Y"],["\u07ff","b"],["\u09f3","t"],["\u0af1","Bo"],["\u0e3f","B"],["\u20a0","CE"],["\u20a1","C"],["\u20a2","Cr"],["\u20a3","F"],["\u20a5","m"],["\u20a6","N"],["\u20a7","Pt"],["\u20a8","Rs"],["\u20a9","W"],["\u20ab","s"],["\u20ac","E"],["\u20ad","K"],["\u20ae","T"],["\u20af","Dp"],["\u20b0","S"],["\u20b1","P"],["\u20b2","G"],["\u20b3","A"],["\u20b4","S"],["\u20b5","C"],["\u20b6","tt"],["\u20b7","S"],["\u20b8","T"],["\u20b9","R"],["\u20ba","L"],["\u20bd","P"],["\u20bf","B"],["\ufe69","$"],["\uffe0","c"],["\uffe5","Y"],["\uffe6","W"],["\u{1d400}","A"],["\u{1d401}","B"],["\u{1d402}","C"],["\u{1d403}","D"],["\u{1d404}","E"],["\u{1d405}","F"],["\u{1d406}","G"],["\u{1d407}","H"],["\u{1d408}","I"],["\u{1d409}","J"],["\u{1d40a}","K"],["\u{1d40b}","L"],["\u{1d40c}","M"],["\u{1d40d}","N"],["\u{1d40e}","O"],["\u{1d40f}","P"],["\u{1d410}","Q"],["\u{1d411}","R"],["\u{1d412}","S"],["\u{1d413}","T"],["\u{1d414}","U"],["\u{1d415}","V"],["\u{1d416}","W"],["\u{1d417}","X"],["\u{1d418}","Y"],["\u{1d419}","Z"],["\u{1d41a}","a"],["\u{1d41b}","b"],["\u{1d41c}","c"],["\u{1d41d}","d"],["\u{1d41e}","e"],["\u{1d41f}","f"],["\u{1d420}","g"],["\u{1d421}","h"],["\u{1d422}","i"],["\u{1d423}","j"],["\u{1d424}","k"],["\u{1d425}","l"],["\u{1d426}","m"],["\u{1d427}","n"],["\u{1d428}","o"],["\u{1d429}","p"],["\u{1d42a}","q"],["\u{1d42b}","r"],["\u{1d42c}","s"],["\u{1d42d}","t"],["\u{1d42e}","u"],["\u{1d42f}","v"],["\u{1d430}","w"],["\u{1d431}","x"],["\u{1d432}","y"],["\u{1d433}","z"],["\u{1d434}","A"],["\u{1d435}","B"],["\u{1d436}","C"],["\u{1d437}","D"],["\u{1d438}","E"],["\u{1d439}","F"],["\u{1d43a}","G"],["\u{1d43b}","H"],["\u{1d43c}","I"],["\u{1d43d}","J"],["\u{1d43e}","K"],["\u{1d43f}","L"],["\u{1d440}","M"],["\u{1d441}","N"],["\u{1d442}","O"],["\u{1d443}","P"],["\u{1d444}","Q"],["\u{1d445}","R"],["\u{1d446}","S"],["\u{1d447}","T"],["\u{1d448}","U"],["\u{1d449}","V"],["\u{1d44a}","W"],["\u{1d44b}","X"],["\u{1d44c}","Y"],["\u{1d44d}","Z"],["\u{1d44e}","a"],["\u{1d44f}","b"],["\u{1d450}","c"],["\u{1d451}","d"],["\u{1d452}","e"],["\u{1d453}","f"],["\u{1d454}","g"],["\u{1d456}","i"],["\u{1d457}","j"],["\u{1d458}","k"],["\u{1d459}","l"],["\u{1d45a}","m"],["\u{1d45b}","n"],["\u{1d45c}","o"],["\u{1d45d}","p"],["\u{1d45e}","q"],["\u{1d45f}","r"],["\u{1d460}","s"],["\u{1d461}","t"],["\u{1d462}","u"],["\u{1d463}","v"],["\u{1d464}","w"],["\u{1d465}","x"],["\u{1d466}","y"],["\u{1d467}","z"],["\u{1d468}","A"],["\u{1d469}","B"],["\u{1d46a}","C"],["\u{1d46b}","D"],["\u{1d46c}","E"],["\u{1d46d}","F"],["\u{1d46e}","G"],["\u{1d46f}","H"],["\u{1d470}","I"],["\u{1d471}","J"],["\u{1d472}","K"],["\u{1d473}","L"],["\u{1d474}","M"],["\u{1d475}","N"],["\u{1d476}","O"],["\u{1d477}","P"],["\u{1d478}","Q"],["\u{1d479}","R"],["\u{1d47a}","S"],["\u{1d47b}","T"],["\u{1d47c}","U"],["\u{1d47d}","V"],["\u{1d47e}","W"],["\u{1d47f}","X"],["\u{1d480}","Y"],["\u{1d481}","Z"],["\u{1d482}","a"],["\u{1d483}","b"],["\u{1d484}","c"],["\u{1d485}","d"],["\u{1d486}","e"],["\u{1d487}","f"],["\u{1d488}","g"],["\u{1d489}","h"],["\u{1d48a}","i"],["\u{1d48b}","j"],["\u{1d48c}","k"],["\u{1d48d}","l"],["\u{1d48e}","m"],["\u{1d48f}","n"],["\u{1d490}","o"],["\u{1d491}","p"],["\u{1d492}","q"],["\u{1d493}","r"],["\u{1d494}","s"],["\u{1d495}","t"],["\u{1d496}","u"],["\u{1d497}","v"],["\u{1d498}","w"],["\u{1d499}","x"],["\u{1d49a}","y"],["\u{1d49b}","z"],["\u{1d49c}","A"],["\u{1d49e}","C"],["\u{1d49f}","D"],["\u{1d4a2}","g"],["\u{1d4a5}","J"],["\u{1d4a6}","K"],["\u{1d4a9}","N"],["\u{1d4aa}","O"],["\u{1d4ab}","P"],["\u{1d4ac}","Q"],["\u{1d4ae}","S"],["\u{1d4af}","T"],["\u{1d4b0}","U"],["\u{1d4b1}","V"],["\u{1d4b2}","W"],["\u{1d4b3}","X"],["\u{1d4b4}","Y"],["\u{1d4b5}","Z"],["\u{1d4b6}","a"],["\u{1d4b7}","b"],["\u{1d4b8}","c"],["\u{1d4b9}","d"],["\u{1d4bb}","f"],["\u{1d4bd}","h"],["\u{1d4be}","i"],["\u{1d4bf}","j"],["\u{1d4c0}","h"],["\u{1d4c1}","l"],["\u{1d4c2}","m"],["\u{1d4c3}","n"],["\u{1d4c5}","p"],["\u{1d4c6}","q"],["\u{1d4c7}","r"],["\u{1d4c8}","s"],["\u{1d4c9}","t"],["\u{1d4ca}","u"],["\u{1d4cb}","v"],["\u{1d4cc}","w"],["\u{1d4cd}","x"],["\u{1d4ce}","y"],["\u{1d4cf}","z"],["\u{1d4d0}","A"],["\u{1d4d1}","B"],["\u{1d4d2}","C"],["\u{1d4d3}","D"],["\u{1d4d4}","E"],["\u{1d4d5}","F"],["\u{1d4d6}","G"],["\u{1d4d7}","H"],["\u{1d4d8}","I"],["\u{1d4d9}","J"],["\u{1d4da}","K"],["\u{1d4db}","L"],["\u{1d4dc}","M"],["\u{1d4dd}","N"],["\u{1d4de}","O"],["\u{1d4df}","P"],["\u{1d4e0}","Q"],["\u{1d4e1}","R"],["\u{1d4e2}","S"],["\u{1d4e3}","T"],["\u{1d4e4}","U"],["\u{1d4e5}","V"],["\u{1d4e6}","W"],["\u{1d4e7}","X"],["\u{1d4e8}","Y"],["\u{1d4e9}","Z"],["\u{1d4ea}","a"],["\u{1d4eb}","b"],["\u{1d4ec}","c"],["\u{1d4ed}","d"],["\u{1d4ee}","e"],["\u{1d4ef}","f"],["\u{1d4f0}","g"],["\u{1d4f1}","h"],["\u{1d4f2}","i"],["\u{1d4f3}","j"],["\u{1d4f4}","k"],["\u{1d4f5}","l"],["\u{1d4f6}","m"],["\u{1d4f7}","n"],["\u{1d4f8}","o"],["\u{1d4f9}","p"],["\u{1d4fa}","q"],["\u{1d4fb}","r"],["\u{1d4fc}","s"],["\u{1d4fd}","t"],["\u{1d4fe}","u"],["\u{1d4ff}","v"],["\u{1d500}","w"],["\u{1d501}","x"],["\u{1d502}","y"],["\u{1d503}","z"],["\u{1d504}","A"],["\u{1d505}","B"],["\u{1d507}","D"],["\u{1d508}","E"],["\u{1d509}","F"],["\u{1d50a}","G"],["\u{1d50d}","J"],["\u{1d50e}","K"],["\u{1d50f}","L"],["\u{1d510}","M"],["\u{1d511}","N"],["\u{1d512}","O"],["\u{1d513}","P"],["\u{1d514}","Q"],["\u{1d516}","S"],["\u{1d517}","T"],["\u{1d518}","U"],["\u{1d519}","V"],["\u{1d51a}","W"],["\u{1d51b}","X"],["\u{1d51c}","Y"],["\u{1d51e}","a"],["\u{1d51f}","b"],["\u{1d520}","c"],["\u{1d521}","d"],["\u{1d522}","e"],["\u{1d523}","f"],["\u{1d524}","g"],["\u{1d525}","h"],["\u{1d526}","i"],["\u{1d527}","j"],["\u{1d528}","k"],["\u{1d529}","l"],["\u{1d52a}","m"],["\u{1d52b}","n"],["\u{1d52c}","o"],["\u{1d52d}","p"],["\u{1d52e}","q"],["\u{1d52f}","r"],["\u{1d530}","s"],["\u{1d531}","t"],["\u{1d532}","u"],["\u{1d533}","v"],["\u{1d534}","w"],["\u{1d535}","x"],["\u{1d536}","y"],["\u{1d537}","z"],["\u{1d538}","A"],["\u{1d539}","B"],["\u{1d53b}","D"],["\u{1d53c}","E"],["\u{1d53d}","F"],["\u{1d53e}","G"],["\u{1d540}","I"],["\u{1d541}","J"],["\u{1d542}","K"],["\u{1d543}","L"],["\u{1d544}","M"],["\u{1d546}","N"],["\u{1d54a}","S"],["\u{1d54b}","T"],["\u{1d54c}","U"],["\u{1d54d}","V"],["\u{1d54e}","W"],["\u{1d54f}","X"],["\u{1d550}","Y"],["\u{1d552}","a"],["\u{1d553}","b"],["\u{1d554}","c"],["\u{1d555}","d"],["\u{1d556}","e"],["\u{1d557}","f"],["\u{1d558}","g"],["\u{1d559}","h"],["\u{1d55a}","i"],["\u{1d55b}","j"],["\u{1d55c}","k"],["\u{1d55d}","l"],["\u{1d55e}","m"],["\u{1d55f}","n"],["\u{1d560}","o"],["\u{1d561}","p"],["\u{1d562}","q"],["\u{1d563}","r"],["\u{1d564}","s"],["\u{1d565}","t"],["\u{1d566}","u"],["\u{1d567}","v"],["\u{1d568}","w"],["\u{1d569}","x"],["\u{1d56a}","y"],["\u{1d56b}","z"],["\u{1d56c}","A"],["\u{1d56d}","B"],["\u{1d56e}","C"],["\u{1d56f}","D"],["\u{1d570}","E"],["\u{1d571}","F"],["\u{1d572}","G"],["\u{1d573}","H"],["\u{1d574}","I"],["\u{1d575}","J"],["\u{1d576}","K"],["\u{1d577}","L"],["\u{1d578}","M"],["\u{1d579}","N"],["\u{1d57a}","O"],["\u{1d57b}","P"],["\u{1d57c}","Q"],["\u{1d57d}","R"],["\u{1d57e}","S"],["\u{1d57f}","T"],["\u{1d580}","U"],["\u{1d581}","V"],["\u{1d582}","W"],["\u{1d583}","X"],["\u{1d584}","Y"],["\u{1d585}","Z"],["\u{1d586}","a"],["\u{1d587}","b"],["\u{1d588}","c"],["\u{1d589}","d"],["\u{1d58a}","e"],["\u{1d58b}","f"],["\u{1d58c}","g"],["\u{1d58d}","h"],["\u{1d58e}","i"],["\u{1d58f}","j"],["\u{1d590}","k"],["\u{1d591}","l"],["\u{1d592}","m"],["\u{1d593}","n"],["\u{1d594}","o"],["\u{1d595}","p"],["\u{1d596}","q"],["\u{1d597}","r"],["\u{1d598}","s"],["\u{1d599}","t"],["\u{1d59a}","u"],["\u{1d59b}","v"],["\u{1d59c}","w"],["\u{1d59d}","x"],["\u{1d59e}","y"],["\u{1d59f}","z"],["\u{1d5a0}","A"],["\u{1d5a1}","B"],["\u{1d5a2}","C"],["\u{1d5a3}","D"],["\u{1d5a4}","E"],["\u{1d5a5}","F"],["\u{1d5a6}","G"],["\u{1d5a7}","H"],["\u{1d5a8}","I"],["\u{1d5a9}","J"],["\u{1d5aa}","K"],["\u{1d5ab}","L"],["\u{1d5ac}","M"],["\u{1d5ad}","N"],["\u{1d5ae}","O"],["\u{1d5af}","P"],["\u{1d5b0}","Q"],["\u{1d5b1}","R"],["\u{1d5b2}","S"],["\u{1d5b3}","T"],["\u{1d5b4}","U"],["\u{1d5b5}","V"],["\u{1d5b6}","W"],["\u{1d5b7}","X"],["\u{1d5b8}","Y"],["\u{1d5b9}","Z"],["\u{1d5ba}","a"],["\u{1d5bb}","b"],["\u{1d5bc}","c"],["\u{1d5bd}","d"],["\u{1d5be}","e"],["\u{1d5bf}","f"],["\u{1d5c0}","g"],["\u{1d5c1}","h"],["\u{1d5c2}","i"],["\u{1d5c3}","j"],["\u{1d5c4}","k"],["\u{1d5c5}","l"],["\u{1d5c6}","m"],["\u{1d5c7}","n"],["\u{1d5c8}","o"],["\u{1d5c9}","p"],["\u{1d5ca}","q"],["\u{1d5cb}","r"],["\u{1d5cc}","s"],["\u{1d5cd}","t"],["\u{1d5ce}","u"],["\u{1d5cf}","v"],["\u{1d5d0}","w"],["\u{1d5d1}","x"],["\u{1d5d2}","y"],["\u{1d5d3}","z"],["\u{1d5d4}","A"],["\u{1d5d5}","B"],["\u{1d5d6}","C"],["\u{1d5d7}","D"],["\u{1d5d8}","E"],["\u{1d5d9}","F"],["\u{1d5da}","G"],["\u{1d5db}","H"],["\u{1d5dc}","I"],["\u{1d5dd}","J"],["\u{1d5de}","K"],["\u{1d5df}","L"],["\u{1d5e0}","M"],["\u{1d5e1}","N"],["\u{1d5e2}","O"],["\u{1d5e3}","P"],["\u{1d5e4}","Q"],["\u{1d5e5}","R"],["\u{1d5e6}","S"],["\u{1d5e7}","T"],["\u{1d5e8}","U"],["\u{1d5e9}","V"],["\u{1d5ea}","W"],["\u{1d5eb}","X"],["\u{1d5ec}","Y"],["\u{1d5ed}","Z"],["\u{1d5ee}","a"],["\u{1d5ef}","b"],["\u{1d5f0}","c"],["\u{1d5f1}","d"],["\u{1d5f2}","e"],["\u{1d5f3}","f"],["\u{1d5f4}","g"],["\u{1d5f5}","h"],["\u{1d5f6}","i"],["\u{1d5f7}","j"],["\u{1d5f8}","k"],["\u{1d5f9}","l"],["\u{1d5fa}","m"],["\u{1d5fb}","n"],["\u{1d5fc}","o"],["\u{1d5fd}","p"],["\u{1d5fe}","q"],["\u{1d5ff}","r"],["\u{1d600}","s"],["\u{1d601}","t"],["\u{1d602}","u"],["\u{1d603}","v"],["\u{1d604}","w"],["\u{1d605}","x"],["\u{1d606}","y"],["\u{1d607}","z"],["\u{1d608}","A"],["\u{1d609}","B"],["\u{1d60a}","C"],["\u{1d60b}","D"],["\u{1d60c}","E"],["\u{1d60d}","F"],["\u{1d60e}","G"],["\u{1d60f}","H"],["\u{1d610}","I"],["\u{1d611}","J"],["\u{1d612}","K"],["\u{1d613}","L"],["\u{1d614}","M"],["\u{1d615}","N"],["\u{1d616}","O"],["\u{1d617}","P"],["\u{1d618}","Q"],["\u{1d619}","R"],["\u{1d61a}","S"],["\u{1d61b}","T"],["\u{1d61c}","U"],["\u{1d61d}","V"],["\u{1d61e}","W"],["\u{1d61f}","X"],["\u{1d620}","Y"],["\u{1d621}","Z"],["\u{1d622}","a"],["\u{1d623}","b"],["\u{1d624}","c"],["\u{1d625}","d"],["\u{1d626}","e"],["\u{1d627}","f"],["\u{1d628}","g"],["\u{1d629}","h"],["\u{1d62a}","i"],["\u{1d62b}","j"],["\u{1d62c}","k"],["\u{1d62d}","l"],["\u{1d62e}","m"],["\u{1d62f}","n"],["\u{1d630}","o"],["\u{1d631}","p"],["\u{1d632}","q"],["\u{1d633}","r"],["\u{1d634}","s"],["\u{1d635}","t"],["\u{1d636}","u"],["\u{1d637}","v"],["\u{1d638}","w"],["\u{1d639}","x"],["\u{1d63a}","y"],["\u{1d63b}","z"],["\u{1d63c}","A"],["\u{1d63d}","B"],["\u{1d63e}","C"],["\u{1d63f}","D"],["\u{1d640}","E"],["\u{1d641}","F"],["\u{1d642}","G"],["\u{1d643}","H"],["\u{1d644}","I"],["\u{1d645}","J"],["\u{1d646}","K"],["\u{1d647}","L"],["\u{1d648}","M"],["\u{1d649}","N"],["\u{1d64a}","O"],["\u{1d64b}","P"],["\u{1d64c}","Q"],["\u{1d64d}","R"],["\u{1d64e}","S"],["\u{1d64f}","T"],["\u{1d650}","U"],["\u{1d651}","V"],["\u{1d652}","W"],["\u{1d653}","X"],["\u{1d654}","Y"],["\u{1d655}","Z"],["\u{1d656}","a"],["\u{1d657}","b"],["\u{1d658}","c"],["\u{1d659}","d"],["\u{1d65a}","e"],["\u{1d65b}","f"],["\u{1d65c}","g"],["\u{1d65d}","h"],["\u{1d65e}","i"],["\u{1d65f}","j"],["\u{1d660}","k"],["\u{1d661}","l"],["\u{1d662}","m"],["\u{1d663}","n"],["\u{1d664}","o"],["\u{1d665}","p"],["\u{1d666}","q"],["\u{1d667}","r"],["\u{1d668}","s"],["\u{1d669}","t"],["\u{1d66a}","u"],["\u{1d66b}","v"],["\u{1d66c}","w"],["\u{1d66d}","x"],["\u{1d66e}","y"],["\u{1d66f}","z"],["\u{1d670}","A"],["\u{1d671}","B"],["\u{1d672}","C"],["\u{1d673}","D"],["\u{1d674}","E"],["\u{1d675}","F"],["\u{1d676}","G"],["\u{1d677}","H"],["\u{1d678}","I"],["\u{1d679}","J"],["\u{1d67a}","K"],["\u{1d67b}","L"],["\u{1d67c}","M"],["\u{1d67d}","N"],["\u{1d67e}","O"],["\u{1d67f}","P"],["\u{1d680}","Q"],["\u{1d681}","R"],["\u{1d682}","S"],["\u{1d683}","T"],["\u{1d684}","U"],["\u{1d685}","V"],["\u{1d686}","W"],["\u{1d687}","X"],["\u{1d688}","Y"],["\u{1d689}","Z"],["\u{1d68a}","a"],["\u{1d68b}","b"],["\u{1d68c}","c"],["\u{1d68d}","d"],["\u{1d68e}","e"],["\u{1d68f}","f"],["\u{1d690}","g"],["\u{1d691}","h"],["\u{1d692}","i"],["\u{1d693}","j"],["\u{1d694}","k"],["\u{1d695}","l"],["\u{1d696}","m"],["\u{1d697}","n"],["\u{1d698}","o"],["\u{1d699}","p"],["\u{1d69a}","q"],["\u{1d69b}","r"],["\u{1d69c}","s"],["\u{1d69d}","t"],["\u{1d69e}","u"],["\u{1d69f}","v"],["\u{1d6a0}","w"],["\u{1d6a1}","x"],["\u{1d6a2}","y"],["\u{1d6a3}","z"],["\u{1d6a4}","l"],["\u{1d6a5}","j"],["\u{1d6e2}","A"],["\u{1d6e3}","B"],["\u{1d6e4}","G"],["\u{1d6e5}","D"],["\u{1d6e6}","E"],["\u{1d6e7}","Z"],["\u{1d6e8}","I"],["\u{1d6e9}","TH"],["\u{1d6ea}","I"],["\u{1d6eb}","K"],["\u{1d6ec}","L"],["\u{1d6ed}","M"],["\u{1d6ee}","N"],["\u{1d6ef}","KS"],["\u{1d6f0}","O"],["\u{1d6f1}","P"],["\u{1d6f2}","R"],["\u{1d6f3}","TH"],["\u{1d6f4}","S"],["\u{1d6f5}","T"],["\u{1d6f6}","Y"],["\u{1d6f7}","F"],["\u{1d6f8}","x"],["\u{1d6f9}","PS"],["\u{1d6fa}","O"],["\u{1d6fb}","D"],["\u{1d6fc}","a"],["\u{1d6fd}","b"],["\u{1d6fe}","g"],["\u{1d6ff}","d"],["\u{1d700}","e"],["\u{1d701}","z"],["\u{1d702}","i"],["\u{1d703}","th"],["\u{1d704}","i"],["\u{1d705}","k"],["\u{1d706}","l"],["\u{1d707}","m"],["\u{1d708}","n"],["\u{1d709}","ks"],["\u{1d70a}","o"],["\u{1d70b}","p"],["\u{1d70c}","r"],["\u{1d70d}","s"],["\u{1d70e}","s"],["\u{1d70f}","t"],["\u{1d710}","y"],["\u{1d711}","f"],["\u{1d712}","x"],["\u{1d713}","ps"],["\u{1d714}","o"],["\u{1d715}","d"],["\u{1d716}","E"],["\u{1d717}","TH"],["\u{1d718}","K"],["\u{1d719}","f"],["\u{1d71a}","r"],["\u{1d71b}","p"],["\u{1d71c}","A"],["\u{1d71d}","V"],["\u{1d71e}","G"],["\u{1d71f}","D"],["\u{1d720}","E"],["\u{1d721}","Z"],["\u{1d722}","I"],["\u{1d723}","TH"],["\u{1d724}","I"],["\u{1d725}","K"],["\u{1d726}","L"],["\u{1d727}","M"],["\u{1d728}","N"],["\u{1d729}","KS"],["\u{1d72a}","O"],["\u{1d72b}","P"],["\u{1d72c}","S"],["\u{1d72d}","TH"],["\u{1d72e}","S"],["\u{1d72f}","T"],["\u{1d730}","Y"],["\u{1d731}","F"],["\u{1d732}","X"],["\u{1d733}","PS"],["\u{1d734}","O"],["\u{1d735}","D"],["\u{1d736}","a"],["\u{1d737}","v"],["\u{1d738}","g"],["\u{1d739}","d"],["\u{1d73a}","e"],["\u{1d73b}","z"],["\u{1d73c}","i"],["\u{1d73d}","th"],["\u{1d73e}","i"],["\u{1d73f}","k"],["\u{1d740}","l"],["\u{1d741}","m"],["\u{1d742}","n"],["\u{1d743}","ks"],["\u{1d744}","o"],["\u{1d745}","p"],["\u{1d746}","r"],["\u{1d747}","s"],["\u{1d748}","s"],["\u{1d749}","t"],["\u{1d74a}","y"],["\u{1d74b}","f"],["\u{1d74c}","x"],["\u{1d74d}","ps"],["\u{1d74e}","o"],["\u{1d74f}","a"],["\u{1d750}","e"],["\u{1d751}","i"],["\u{1d752}","k"],["\u{1d753}","f"],["\u{1d754}","r"],["\u{1d755}","p"],["\u{1d756}","A"],["\u{1d757}","B"],["\u{1d758}","G"],["\u{1d759}","D"],["\u{1d75a}","E"],["\u{1d75b}","Z"],["\u{1d75c}","I"],["\u{1d75d}","TH"],["\u{1d75e}","I"],["\u{1d75f}","K"],["\u{1d760}","L"],["\u{1d761}","M"],["\u{1d762}","N"],["\u{1d763}","KS"],["\u{1d764}","O"],["\u{1d765}","P"],["\u{1d766}","R"],["\u{1d767}","TH"],["\u{1d768}","S"],["\u{1d769}","T"],["\u{1d76a}","Y"],["\u{1d76b}","F"],["\u{1d76c}","X"],["\u{1d76d}","PS"],["\u{1d76e}","O"],["\u{1d76f}","D"],["\u{1d770}","a"],["\u{1d771}","v"],["\u{1d772}","g"],["\u{1d773}","d"],["\u{1d774}","e"],["\u{1d775}","z"],["\u{1d776}","i"],["\u{1d777}","th"],["\u{1d778}","i"],["\u{1d779}","k"],["\u{1d77a}","l"],["\u{1d77b}","m"],["\u{1d77c}","n"],["\u{1d77d}","ks"],["\u{1d77e}","o"],["\u{1d77f}","p"],["\u{1d780}","r"],["\u{1d781}","s"],["\u{1d782}","s"],["\u{1d783}","t"],["\u{1d784}","y"],["\u{1d785}","f"],["\u{1d786}","x"],["\u{1d787}","ps"],["\u{1d788}","o"],["\u{1d789}","a"],["\u{1d78a}","e"],["\u{1d78b}","i"],["\u{1d78c}","k"],["\u{1d78d}","f"],["\u{1d78e}","r"],["\u{1d78f}","p"],["\u{1d790}","A"],["\u{1d791}","V"],["\u{1d792}","G"],["\u{1d793}","D"],["\u{1d794}","E"],["\u{1d795}","Z"],["\u{1d796}","I"],["\u{1d797}","TH"],["\u{1d798}","I"],["\u{1d799}","K"],["\u{1d79a}","L"],["\u{1d79b}","M"],["\u{1d79c}","N"],["\u{1d79d}","KS"],["\u{1d79e}","O"],["\u{1d79f}","P"],["\u{1d7a0}","S"],["\u{1d7a1}","TH"],["\u{1d7a2}","S"],["\u{1d7a3}","T"],["\u{1d7a4}","Y"],["\u{1d7a5}","F"],["\u{1d7a6}","X"],["\u{1d7a7}","PS"],["\u{1d7a8}","O"],["\u{1d7a9}","D"],["\u{1d7aa}","av"],["\u{1d7ab}","g"],["\u{1d7ac}","d"],["\u{1d7ad}","e"],["\u{1d7ae}","z"],["\u{1d7af}","i"],["\u{1d7b0}","i"],["\u{1d7b1}","th"],["\u{1d7b2}","i"],["\u{1d7b3}","k"],["\u{1d7b4}","l"],["\u{1d7b5}","m"],["\u{1d7b6}","n"],["\u{1d7b7}","ks"],["\u{1d7b8}","o"],["\u{1d7b9}","p"],["\u{1d7ba}","r"],["\u{1d7bb}","s"],["\u{1d7bc}","s"],["\u{1d7bd}","t"],["\u{1d7be}","y"],["\u{1d7bf}","f"],["\u{1d7c0}","x"],["\u{1d7c1}","ps"],["\u{1d7c2}","o"],["\u{1d7c3}","a"],["\u{1d7c4}","e"],["\u{1d7c5}","i"],["\u{1d7c6}","k"],["\u{1d7c7}","f"],["\u{1d7c8}","r"],["\u{1d7c9}","p"],["\u{1d7ca}","F"],["\u{1d7cb}","f"],["\u249c","(a)"],["\u249d","(b)"],["\u249e","(c)"],["\u249f","(d)"],["\u24a0","(e)"],["\u24a1","(f)"],["\u24a2","(g)"],["\u24a3","(h)"],["\u24a4","(i)"],["\u24a5","(j)"],["\u24a6","(k)"],["\u24a7","(l)"],["\u24a8","(m)"],["\u24a9","(n)"],["\u24aa","(o)"],["\u24ab","(p)"],["\u24ac","(q)"],["\u24ad","(r)"],["\u24ae","(s)"],["\u24af","(t)"],["\u24b0","(u)"],["\u24b1","(v)"],["\u24b2","(w)"],["\u24b3","(x)"],["\u24b4","(y)"],["\u24b5","(z)"],["\u24b6","(A)"],["\u24b7","(B)"],["\u24b8","(C)"],["\u24b9","(D)"],["\u24ba","(E)"],["\u24bb","(F)"],["\u24bc","(G)"],["\u24bd","(H)"],["\u24be","(I)"],["\u24bf","(J)"],["\u24c0","(K)"],["\u24c1","(L)"],["\u24c3","(N)"],["\u24c4","(O)"],["\u24c5","(P)"],["\u24c6","(Q)"],["\u24c7","(R)"],["\u24c8","(S)"],["\u24c9","(T)"],["\u24ca","(U)"],["\u24cb","(V)"],["\u24cc","(W)"],["\u24cd","(X)"],["\u24ce","(Y)"],["\u24cf","(Z)"],["\u24d0","(a)"],["\u24d1","(b)"],["\u24d2","(b)"],["\u24d3","(c)"],["\u24d4","(e)"],["\u24d5","(f)"],["\u24d6","(g)"],["\u24d7","(h)"],["\u24d8","(i)"],["\u24d9","(j)"],["\u24da","(k)"],["\u24db","(l)"],["\u24dc","(m)"],["\u24dd","(n)"],["\u24de","(o)"],["\u24df","(p)"],["\u24e0","(q)"],["\u24e1","(r)"],["\u24e2","(s)"],["\u24e3","(t)"],["\u24e4","(u)"],["\u24e5","(v)"],["\u24e6","(w)"],["\u24e7","(x)"],["\u24e8","(y)"],["\u24e9","(z)"],["\u010a","C"],["\u010b","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017b","Z"],["\u017c","z"],["\u{1d7ce}","0"],["\u{1d7cf}","1"],["\u{1d7d0}","2"],["\u{1d7d1}","3"],["\u{1d7d2}","4"],["\u{1d7d3}","5"],["\u{1d7d4}","6"],["\u{1d7d5}","7"],["\u{1d7d6}","8"],["\u{1d7d7}","9"],["\u{1d7d8}","0"],["\u{1d7d9}","1"],["\u{1d7da}","2"],["\u{1d7db}","3"],["\u{1d7dc}","4"],["\u{1d7dd}","5"],["\u{1d7de}","6"],["\u{1d7df}","7"],["\u{1d7e0}","8"],["\u{1d7e1}","9"],["\u{1d7e2}","0"],["\u{1d7e3}","1"],["\u{1d7e4}","2"],["\u{1d7e5}","3"],["\u{1d7e6}","4"],["\u{1d7e7}","5"],["\u{1d7e8}","6"],["\u{1d7e9}","7"],["\u{1d7ea}","8"],["\u{1d7eb}","9"],["\u{1d7ec}","0"],["\u{1d7ed}","1"],["\u{1d7ee}","2"],["\u{1d7ef}","3"],["\u{1d7f0}","4"],["\u{1d7f1}","5"],["\u{1d7f2}","6"],["\u{1d7f3}","7"],["\u{1d7f4}","8"],["\u{1d7f5}","9"],["\u{1d7f6}","0"],["\u{1d7f7}","1"],["\u{1d7f8}","2"],["\u{1d7f9}","3"],["\u{1d7fa}","4"],["\u{1d7fb}","5"],["\u{1d7fc}","6"],["\u{1d7fd}","7"],["\u{1d7fe}","8"],["\u{1d7ff}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246a","11"],["\u246b","12"],["\u246c","13"],["\u246d","14"],["\u246e","15"],["\u246f","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247a","7"],["\u247b","8"],["\u247c","9"],["\u247d","10"],["\u247e","11"],["\u247f","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248a","3."],["\u248b","4."],["\u248c","5."],["\u248d","6."],["\u248e","7."],["\u248f","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249a","19."],["\u249b","20."],["\u24ea","0"],["\u24eb","11"],["\u24ec","12"],["\u24ed","13"],["\u24ee","14"],["\u24ef","15"],["\u24f0","16"],["\u24f1","17"],["\u24f2","18"],["\u24f3","19"],["\u24f4","20"],["\u24f5","1"],["\u24f6","2"],["\u24f7","3"],["\u24f8","4"],["\u24f9","5"],["\u24fa","6"],["\u24fb","7"],["\u24fc","8"],["\u24fd","9"],["\u24fe","10"],["\u24ff","0"],["\u{1f670}","&"],["\u{1f671}","&"],["\u{1f672}","&"],["\u{1f673}","&"],["\u{1f674}","&"],["\u{1f675}","&"],["\u{1f676}",'"'],["\u{1f677}",'"'],["\u{1f678}",'"'],["\u203d","?!"],["\u{1f679}","?!"],["\u{1f67a}","?!"],["\u{1f67b}","?!"],["\u{1f67c}","/"],["\u{1f67d}","\\"],["\u{1f707}","AR"],["\u{1f708}","V"],["\u{1f709}","V"],["\u{1f706}","VR"],["\u{1f705}","VF"],["\u{1f729}","2"],["\u{1f72a}","5"],["\u{1f761}","f"],["\u{1f762}","W"],["\u{1f763}","U"],["\u{1f767}","V"],["\u{1f768}","T"],["\u{1f76a}","V"],["\u{1f76b}","MB"],["\u{1f76c}","VB"],["\u{1f772}","3B"],["\u{1f773}","3B"],["\u{1f4af}","100"],["\u{1f519}","BACK"],["\u{1f51a}","END"],["\u{1f51b}","ON!"],["\u{1f51c}","SOON"],["\u{1f51d}","TOP"],["\u{1f51e}","18"],["\u{1f524}","abc"],["\u{1f520}","ABCD"],["\u{1f521}","abcd"],["\u{1f522}","1234"],["\u{1f523}","T&@%"],["#\ufe0f\u20e3","#"],["*\ufe0f\u20e3","*"],["0\ufe0f\u20e3","0"],["1\ufe0f\u20e3","1"],["2\ufe0f\u20e3","2"],["3\ufe0f\u20e3","3"],["4\ufe0f\u20e3","4"],["5\ufe0f\u20e3","5"],["6\ufe0f\u20e3","6"],["7\ufe0f\u20e3","7"],["8\ufe0f\u20e3","8"],["9\ufe0f\u20e3","9"],["\u{1f51f}","10"],["\u{1f170}\ufe0f","A"],["\u{1f171}\ufe0f","B"],["\u{1f18e}","AB"],["\u{1f191}","CL"],["\u{1f17e}\ufe0f","O"],["\u{1f17f}","P"],["\u{1f198}","SOS"],["\u{1f172}","C"],["\u{1f173}","D"],["\u{1f174}","E"],["\u{1f175}","F"],["\u{1f176}","G"],["\u{1f177}","H"],["\u{1f178}","I"],["\u{1f179}","J"],["\u{1f17a}","K"],["\u{1f17b}","L"],["\u{1f17c}","M"],["\u{1f17d}","N"],["\u{1f180}","Q"],["\u{1f181}","R"],["\u{1f182}","S"],["\u{1f183}","T"],["\u{1f184}","U"],["\u{1f185}","V"],["\u{1f186}","W"],["\u{1f187}","X"],["\u{1f188}","Y"],["\u{1f189}","Z"]],Sse=[["&"," and "],["\u{1f984}"," unicorn "],["\u2665"," love "]];function zF(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);const e=(n={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...n}).preserveLeadingUnderscore&&t.startsWith("_"),i=n.preserveTrailingDash&&t.endsWith("-");t=function xse(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);n={customReplacements:[],...n};const e=new Map([...wse,...n.customReplacements]);return(t=((t,n)=>{for(const[e,i]of n)t=t.replace(new RegExp(vse(e),"g"),i);return t})(t=t.normalize(),e)).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").normalize()}(t,{customReplacements:new Map([...Sse,...n.customReplacements])}),n.decamelize&&(t=(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(t));const r=(t=>{let n="a-z\\d";if(n+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const e of t.preserveCharacters){if(e===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);n+=YF(e)}return new RegExp(`[^${n}]+`,"g")})(n);return n.lowercase&&(t=t.toLowerCase()),t=(t=(t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(r,n.separator)).replace(/\\/g,""),n.separator&&(t=((t,n)=>{const e=YF(n);return t.replace(new RegExp(`${e}{2,}`,"g"),n).replace(new RegExp(`^${e}|${e}$`,"g"),"")})(t,n.separator)),e&&(t=`_${t}`),i&&(t=`${t}-`),t}var Ase=I(1651),$F=I(217),kse=I(5965),Ise=I.n(kse);const VF={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(VF);const Ose=VF,ZF={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(ZF);const Rse=ZF;var $u,Ef,Jl,Sr=function(t,n,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:n.get(t)};$u=new WeakMap,Ef=new WeakMap,Jl=new WeakMap;const Fse=new class Pse{constructor(...n){$u.set(this,new Map),Ef.set(this,new Map),Jl.set(this,new Map);for(const e of n)this.define(e)}define(n,e=!1){for(let[i,o]of Object.entries(n)){i=i.toLowerCase(),o=o.map(s=>s.toLowerCase()),Sr(this,Jl,"f").has(i)||Sr(this,Jl,"f").set(i,new Set);const r=Sr(this,Jl,"f").get(i);let a=!0;for(let s of o){const l=s.startsWith("*");if(s=l?s.slice(1):s,r?.add(s),a&&Sr(this,Ef,"f").set(i,s),a=!1,l)continue;const c=Sr(this,$u,"f").get(s);if(c&&c!=i&&!e)throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);Sr(this,$u,"f").set(s,i)}}return this}getType(n){if("string"!=typeof n)return null;const e=n.replace(/^.*[/\\]/,"").toLowerCase(),i=e.replace(/^.*\./,"").toLowerCase();return i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Sr(this,Jl,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Sr(this,$u,"f"),extensions:Sr(this,Ef,"f")}}}(Rse,Ose)._freeze();var Ma=function(t){return t.eaf="eaf",t.textgrid="textgrid",t.srt="srt",t.vtt="vtt",t.html="html",t.zip="zip",t}(Ma||{});let GF=(()=>{class t{constructor(e){this.http=e,this.baseURL=ur.apiBaseURL}convertRasFormat$(e,i){return this.http.post(this.baseURL+"/convert_alignment/"+i,e,{responseType:"blob"})}assembleReadalong$(e){return this.http.post(this.baseURL+"/assemble",e)}getLangs$(){return this.http.get(this.baseURL+"/langs")}static{this.\u0275fac=function(i){return new(i||t)(Me(iu))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),UF=(()=>{class t{constructor(){this.$currentAudio=new ci(null),this.$currentText=new ci(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),T1=(()=>{class t{constructor(e,i,o,r){this.uploadService=e,this.rasService=i,this.b64Service=o,this.toastr=r,this.unsubscribe$=new _t,this.xmlSerializer=new XMLSerializer,this.readmeFile=new Blob(["Web Deployment Guide\n\nThis bundle has everything you need to host your ReadAlong on your own server.\n\nYour audio, (optional) image, and alignment (.readalong) assets are stored in the assets folder.\n\nThe plain text used to create your ReadAlong is also stored here along with an example index.html file.\n\nYour index.html file demonstrates the snippet and imports needed to host the ReadAlong on your server.\n\nPlease host all assets on your server, include the font and package imports defined in the index.html in your website's imports, and include the corresponding snippet everywhere you would like your ReadAlong to be displayed.\n "],{type:"text/plain"})}updateTranslations(e,i){return(0,y.Z)(function*(){const o=yield i.getTranslations();if(0==Object.keys(o).length)return!1;{const r=e.querySelectorAll("s:not(.sentence__translation)"),a=new Set(Array.from(e.querySelectorAll(".editable__translation")).map(s=>s.id));return r.forEach(s=>{if(s.id in o&&!a.has(s.id)){let l=document.createElementNS(null,"s");l.setAttribute("do-not-align","true"),l.setAttribute("id",s.id),l.setAttribute("class","sentence__translation editable__translation"),l.setAttribute("xml:lang","eng"),l.append(o[s.id]),s.insertAdjacentElement("afterend",l)}s.id in o&&null===o[s.id]&&a.has(s.id)&&e.querySelector(`#${s.id}.sentence__translation`)?.remove()}),!0}})()}updateImages(e,i=!0,o="image",r){var a=this;return(0,y.Z)(function*(){const s=yield r.getImages(),l=e.querySelectorAll("div[type=page]"),c=[];for(const[u,d]of Object.entries(s)){let h=l[parseInt(u)];if(h&&d){h.querySelectorAll("graphic").forEach(b=>b.remove());let p=e.createElementNS(null,"graphic"),g=yield fetch(d).then(b=>b.blob());if(g=yield(0,Ase.compress)(g,.75),i){let b=yield a.b64Service.blobToB64(g);p.setAttribute("url",b)}else{const b=Fse.getExtension(g.type),T=`${o}-${u}.${b}`;c.push({blob:g,path:T}),p.setAttribute("url",`${T}`)}h.appendChild(p)}else null===d&&h.querySelectorAll("graphic").forEach(p=>p.remove())}return!!i||c})()}registerDownloadEvent(e){window.plausible("Download",{props:{fileType:e}})}createSingleFileBlob(e,i,o,r){var a=this;return(0,y.Z)(function*(){yield a.updateImages(e,!0,"image",i),yield a.updateTranslations(e,i);let s=a.b64Service.xmlToB64(e);if(null!==a.b64Service.jsAndFontsBundle$.value)return new Blob([`\n \n \n \n \n \n \n ${o.title}\n \n + diff --git a/pr-preview/pr-356/fr/main.7a80440daa88bc6f.js b/pr-preview/pr-356/fr/main.2f2955592467ea9f.js similarity index 99% rename from pr-preview/pr-356/fr/main.7a80440daa88bc6f.js rename to pr-preview/pr-356/fr/main.2f2955592467ea9f.js index 97ede23e..13682268 100644 --- a/pr-preview/pr-356/fr/main.7a80440daa88bc6f.js +++ b/pr-preview/pr-356/fr/main.2f2955592467ea9f.js @@ -1,6 +1,6 @@ globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"fr"}); "use strict";(function(global,_global$ng,_global$ng2,_global$ng2$common,_global$ng$common,_global$ng$common$loc){(_global$ng=global.ng)!==null&&_global$ng!==void 0?_global$ng:global.ng={};(_global$ng2$common=(_global$ng2=global.ng).common)!==null&&_global$ng2$common!==void 0?_global$ng2$common:_global$ng2.common={};(_global$ng$common$loc=(_global$ng$common=global.ng.common).locales)!==null&&_global$ng$common$loc!==void 0?_global$ng$common$loc:_global$ng$common.locales={};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(i===0||i===1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["fr"]=["fr",[["AM","PM"],u,u],u,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]],u,[["av. J.-C.","ap. J.-C."],u,["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xE0' {0}",u],[",","\u202F",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{"ARS":["$AR","$"],"AUD":["$AU","$"],"BEF":["FB"],"BMD":["$BM","$"],"BND":["$BN","$"],"BYN":[u,"\u0440."],"BZD":["$BZ","$"],"CAD":["$CA","$"],"CLP":["$CL","$"],"CNY":[u,"\xA5"],"COP":["$CO","$"],"CYP":["\xA3CY"],"EGP":[u,"\xA3E"],"FJD":["$FJ","$"],"FKP":["\xA3FK","\xA3"],"FRF":["F"],"GBP":["\xA3GB","\xA3"],"GIP":["\xA3GI","\xA3"],"HKD":[u,"$"],"IEP":["\xA3IE"],"ILP":["\xA3IL"],"ITL":["\u20A4IT"],"JPY":[u,"\xA5"],"KMF":[u,"FC"],"LBP":["\xA3LB","\xA3L"],"MTP":["\xA3MT"],"MXN":["$MX","$"],"NAD":["$NA","$"],"NIO":[u,"$C"],"NZD":["$NZ","$"],"PHP":[u,"\u20B1"],"RHD":["$RH"],"RON":[u,"L"],"RWF":[u,"FR"],"SBD":["$SB","$"],"SGD":["$SG","$"],"SRD":["$SR","$"],"TOP":[u,"$T"],"TTD":["$TT","$"],"TWD":[u,"NT$"],"USD":["$US","$"],"UYU":["$UY","$"],"WST":["$WS"],"XCD":[u,"$"],"XPF":["FCFP"],"ZMW":[u,"Kw"]},"ltr",plural,[[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","du matin","de l\u2019apr\xE8s-midi","du soir","du matin"]],[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","matin","apr\xE8s-midi","soir","nuit"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]]})(globalThis);; -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,I)=>{var y={"./read-along.entry.js":[9154,154]};function z(E){if(!I.o(y,E))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+E+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[E],k=v[0];return I.e(v[1]).then(()=>I(k))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},3442:(C,de,I)=>{"use strict";I.d(de,{b:()=>ti,g:()=>B,h:()=>K,r:()=>os});var y=I(5861);let E,v,k=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",P={},U=ne=>"object"==(ne=typeof ne)||"function"===ne;function X(ne){var N,Ie,Ee;return null!==(Ee=null===(Ie=null===(N=ne.head)||void 0===N?void 0:N.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const K=(ne,N,...Ie)=>{let Ee=null,Ve=null,it=!1,qe=!1;const ot=[],bt=wt=>{for(let Ot=0;Otwt[Ot]).join(" "))}}if("function"==typeof ne)return ne(null===N?{}:N,ot,se);const vt=q(ne,null);return vt.$attrs$=N,ot.length>0&&(vt.$children$=ot),vt.$key$=Ve,vt},q=(ne,N)=>({$flags$:0,$tag$:ne,$text$:N,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},se={forEach:(ne,N)=>ne.map(Q).forEach(N),map:(ne,N)=>ne.map(Q).map(N).map(le)},Q=ne=>({vattrs:ne.$attrs$,vchildren:ne.$children$,vkey:ne.$key$,vname:ne.$name$,vtag:ne.$tag$,vtext:ne.$text$}),le=ne=>{if("function"==typeof ne.vtag){const Ie=Object.assign({},ne.vattrs);return ne.vkey&&(Ie.key=ne.vkey),ne.vname&&(Ie.name=ne.vname),K(ne.vtag,Ie,...ne.vchildren||[])}const N=q(ne.vtag,ne.vtext);return N.$attrs$=ne.vattrs,N.$children$=ne.vchildren,N.$key$=ne.vkey,N.$name$=ne.vname,N},B=ne=>fr(ne).$hostElement$,f=new WeakMap,D=(ne,N)=>"sc-"+ne.$tagName$,R=(ne,N,Ie,Ee,Ve,it)=>{if(Ie!==Ee){let qe=kr(ne,N),ot=N.toLowerCase();if("class"===N){const bt=ne.classList,vt=A(Ie),wt=A(Ee);bt.remove(...vt.filter(Ot=>Ot&&!wt.includes(Ot))),bt.add(...wt.filter(Ot=>Ot&&!vt.includes(Ot)))}else if("style"===N){for(const bt in Ie)(!Ee||null==Ee[bt])&&(bt.includes("-")?ne.style.removeProperty(bt):ne.style[bt]="");for(const bt in Ee)(!Ie||Ee[bt]!==Ie[bt])&&(bt.includes("-")?ne.style.setProperty(bt,Ee[bt]):ne.style[bt]=Ee[bt])}else if("key"!==N)if("ref"===N)Ee&&Ee(ne);else if(qe||"o"!==N[0]||"n"!==N[1]){const bt=U(Ee);if((qe||bt&&null!==Ee)&&!Ve)try{if(ne.tagName.includes("-"))ne[N]=Ee;else{const wt=Ee??"";"list"===N?qe=!1:(null==Ie||ne[N]!=wt)&&(ne[N]=wt)}}catch{}let vt=!1;ot!==(ot=ot.replace(/^xlink\:?/,""))&&(N=ot,vt=!0),null==Ee||!1===Ee?(!1!==Ee||""===ne.getAttribute(N))&&(vt?ne.removeAttributeNS(x,N):ne.removeAttribute(N)):(!qe||4&it||Ve)&&!bt&&(Ee=!0===Ee?"":Ee,vt?ne.setAttributeNS(x,N,Ee):ne.setAttribute(N,Ee))}else if(N="-"===N[2]?N.slice(3):kr(rs,ot)?ot.slice(2):ot[2]+N.slice(3),Ie||Ee){const bt=N.endsWith(_);N=N.replace(he,""),Ie&&yi.rel(ne,N,Ie,bt),Ee&&yi.ael(ne,N,Ee,bt)}}},Z=/\s/,A=ne=>ne?ne.split(Z):[],_="Capture",he=new RegExp(_+"$"),ue=(ne,N,Ie,Ee)=>{const Ve=11===N.$elm$.nodeType&&N.$elm$.host?N.$elm$.host:N.$elm$,it=ne&&ne.$attrs$||P,qe=N.$attrs$||P;for(Ee of De(Object.keys(it)))Ee in qe||R(Ve,Ee,it[Ee],void 0,Ie,N.$flags$);for(Ee of De(Object.keys(qe)))R(Ve,Ee,it[Ee],qe[Ee],Ie,N.$flags$)};function De(ne){return ne.includes("ref")?[...ne.filter(N=>"ref"!==N),"ref"]:ne}const Qe=(ne,N,Ie,Ee)=>{const Ve=N.$children$[Ie];let qe,ot,it=0;if(null!==Ve.$text$)qe=Ve.$elm$=Zo.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Zo.createElement(Ve.$tag$),ue(null,Ve,!1),(ne=>null!=ne)(E)&&qe["s-si"]!==E&&qe.classList.add(qe["s-si"]=E),Ve.$children$)for(it=0;it{let ot,qe=ne;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=it;++Ve)Ee[Ve]&&(ot=Qe(null,Ie,Ve),ot&&(Ee[Ve].$elm$=ot,qe.insertBefore(ot,N)))},Ce=(ne,N,Ie)=>{for(let Ee=N;Ee<=Ie;++Ee){const Ve=ne[Ee];if(Ve){const it=Ve.$elm$;Et(Ve),it&&it.remove()}}},at=(ne,N,Ie=!1)=>ne.$tag$===N.$tag$&&(!!Ie||ne.$key$===N.$key$),ut=(ne,N,Ie=!1)=>{const Ee=N.$elm$=ne.$elm$,Ve=ne.$children$,it=N.$children$,ot=N.$text$;null===ot?("slot"===N.$tag$&&!k||ue(ne,N,!1),null!==Ve&&null!==it?((ne,N,Ie,Ee,Ve=!1)=>{let Vi,nn,it=0,qe=0,ot=0,bt=0,vt=N.length-1,wt=N[0],Ot=N[vt],fi=Ee.length-1,Gn=Ee[0],Yn=Ee[fi];for(;it<=vt&&qe<=fi;)if(null==wt)wt=N[++it];else if(null==Ot)Ot=N[--vt];else if(null==Gn)Gn=Ee[++qe];else if(null==Yn)Yn=Ee[--fi];else if(at(wt,Gn,Ve))ut(wt,Gn,Ve),wt=N[++it],Gn=Ee[++qe];else if(at(Ot,Yn,Ve))ut(Ot,Yn,Ve),Ot=N[--vt],Yn=Ee[--fi];else if(at(wt,Yn,Ve))ut(wt,Yn,Ve),ne.insertBefore(wt.$elm$,Ot.$elm$.nextSibling),wt=N[++it],Yn=Ee[--fi];else if(at(Ot,Gn,Ve))ut(Ot,Gn,Ve),ne.insertBefore(Ot.$elm$,wt.$elm$),Ot=N[--vt],Gn=Ee[++qe];else{for(ot=-1,bt=it;bt<=vt;++bt)if(N[bt]&&null!==N[bt].$key$&&N[bt].$key$===Gn.$key$){ot=bt;break}ot>=0?(nn=N[ot],nn.$tag$!==Gn.$tag$?Vi=Qe(N&&N[qe],Ie,ot):(ut(nn,Gn,Ve),N[ot]=void 0,Vi=nn.$elm$),Gn=Ee[++qe]):(Vi=Qe(N&&N[qe],Ie,qe),Gn=Ee[++qe]),Vi&&wt.$elm$.parentNode.insertBefore(Vi,wt.$elm$)}it>vt?yt(ne,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(N,it,vt)})(Ee,Ve,N,it,Ie):null!==it?(null!==ne.$text$&&(Ee.textContent=""),yt(Ee,null,N,it,0,it.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):ne.$text$!==ot&&(Ee.data=ot)},Et=ne=>{ne.$attrs$&&ne.$attrs$.ref&&ne.$attrs$.ref(null),ne.$children$&&ne.$children$.map(Et)},w=(ne,N)=>{N&&!ne.$onRenderResolve$&&N["s-p"]&&N["s-p"].push(new Promise(Ie=>ne.$onRenderResolve$=Ie))},Ae=(ne,N)=>{if(ne.$flags$|=16,!(4&ne.$flags$))return w(ne,ne.$ancestorComponent$),bx(()=>ke(ne,N));ne.$flags$|=512},ke=(ne,N)=>{const Ee=ne.$lazyInstance$;let Ve;return N&&(ne.$flags$|=256,ne.$queuedListeners$&&(ne.$queuedListeners$.map(([it,qe])=>Ue(Ee,it,qe)),ne.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),ae(Ve,()=>me(ne,Ee,N))},ae=(ne,N)=>te(ne)?ne.then(N):N(),te=ne=>ne instanceof Promise||ne&&ne.then&&"function"==typeof ne.then,me=function(){var ne=(0,y.Z)(function*(N,Ie,Ee){var Ve;const it=N.$hostElement$,ot=it["s-rc"];Ee&&(ne=>{const N=ne.$cmpMeta$,Ie=ne.$hostElement$,Ee=N.$flags$,it=((ne,N,Ie)=>{var Ee;const Ve=D(N),it=_n.get(Ve);if(ne=11===ne.nodeType?ne:Zo,it)if("string"==typeof it){let ot,qe=f.get(ne=ne.head||ne);if(qe||f.set(ne,qe=new Set),!qe.has(Ve)){{ot=Zo.createElement("style"),ot.innerHTML=it;const bt=null!==(Ee=yi.$nonce$)&&void 0!==Ee?Ee:X(Zo);null!=bt&&ot.setAttribute("nonce",bt),ne.insertBefore(ot,ne.querySelector("link"))}4&N.$flags$&&(ot.innerHTML+=V),qe&&qe.add(Ve)}}else ne.adoptedStyleSheets.includes(it)||(ne.adoptedStyleSheets=[...ne.adoptedStyleSheets,it]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),N);10&Ee&&(Ie["s-sc"]=it,Ie.classList.add(it+"-h"))})(N);ze(N,Ie,it,Ee),ot&&(ot.map(vt=>vt()),it["s-rc"]=void 0);{const vt=null!==(Ve=it["s-p"])&&void 0!==Ve?Ve:[],wt=()=>Ge(N);0===vt.length?wt():(Promise.all(vt).then(wt),N.$flags$|=4,vt.length=0)}});return function(Ie,Ee,Ve){return ne.apply(this,arguments)}}(),ze=(ne,N,Ie,Ee)=>{try{N=N.render(),ne.$flags$&=-17,ne.$flags$|=2,((ne,N,Ie=!1)=>{const Ee=ne.$hostElement$,Ve=ne.$cmpMeta$,it=ne.$vnode$||q(null,null),qe=(ne=>ne&&ne.$tag$===J)(N)?N:K(null,null,N);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([ot,bt])=>qe.$attrs$[bt]=Ee[ot])),Ie&&qe.$attrs$)for(const ot of Object.keys(qe.$attrs$))Ee.hasAttribute(ot)&&!["key","ref","style","class"].includes(ot)&&(qe.$attrs$[ot]=Ee[ot]);qe.$tag$=null,qe.$flags$|=4,ne.$vnode$=qe,qe.$elm$=it.$elm$=Ee.shadowRoot||Ee,E=Ee["s-sc"],k=0!=(1&Ve.$flags$),ut(it,qe,Ie)})(ne,N,Ee)}catch(Ve){$i(Ve,ne.$hostElement$)}return null},Ge=ne=>{const Ie=ne.$hostElement$,Ve=ne.$lazyInstance$,it=ne.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&ne.$flags$?Ue(Ve,"componentDidUpdate"):(ne.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),ne.$onReadyResolve$(Ie),it||Te()),ne.$onInstanceResolve$(Ie),ne.$onRenderResolve$&&(ne.$onRenderResolve$(),ne.$onRenderResolve$=void 0),512&ne.$flags$&&Nt(()=>Ae(ne,!1)),ne.$flags$&=-517},Te=ne=>{pt(Zo.documentElement),Nt(()=>((ne,N,Ie)=>{const Ee=yi.ce("appload",{detail:{namespace:"web-component"}});return ne.dispatchEvent(Ee),Ee})(rs))},Ue=(ne,N,Ie)=>{if(ne&&ne[N])try{return ne[N](Ie)}catch(Ee){$i(Ee)}},pt=ne=>ne.classList.add("hydrated"),Dn=(ne,N,Ie)=>{var Ee;const Ve=ne.prototype;if(N.$members$){ne.watchers&&(N.$watchers$=ne.watchers);const it=Object.entries(N.$members$);if(it.map(([qe,[ot]])=>{31&ot||2&Ie&&32&ot?Object.defineProperty(Ve,qe,{get(){return((ne,N)=>fr(this).$instanceValues$.get(N))(0,qe)},set(bt){((ne,N,Ie,Ee)=>{const Ve=fr(ne),it=Ve.$hostElement$,qe=Ve.$instanceValues$.get(N),ot=Ve.$flags$,bt=Ve.$lazyInstance$;Ie=((ne,N)=>null==ne||U(ne)?ne:4&N?"false"!==ne&&(""===ne||!!ne):2&N?parseFloat(ne):1&N?String(ne):ne)(Ie,Ee.$members$[N][0]);const vt=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&ot)||void 0===qe)&&Ie!==qe&&!vt&&(Ve.$instanceValues$.set(N,Ie),bt)){if(Ee.$watchers$&&128&ot){const Ot=Ee.$watchers$[N];Ot&&Ot.map(fi=>{try{bt[fi](Ie,qe,N)}catch(Gn){$i(Gn,it)}})}2==(18&ot)&&Ae(Ve,!1)}})(this,qe,bt,N)},configurable:!0,enumerable:!0}):1&Ie&&64&ot&&Object.defineProperty(Ve,qe,{value(...bt){var vt;const wt=fr(this);return null===(vt=wt?.$onInstancePromise$)||void 0===vt?void 0:vt.then(()=>{var Ot;return null===(Ot=wt.$lazyInstance$)||void 0===Ot?void 0:Ot[qe](...bt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(ot,bt,vt){yi.jmp(()=>{var wt;const Ot=qe.get(ot);if(this.hasOwnProperty(Ot))vt=this[Ot],delete this[Ot];else{if(Ve.hasOwnProperty(Ot)&&"number"==typeof this[Ot]&&this[Ot]==vt)return;if(null==Ot){const fi=fr(this),Gn=fi?.$flags$;if(Gn&&!(8&Gn)&&128&Gn&&vt!==bt){const Yn=fi.$lazyInstance$,Vi=null===(wt=N.$watchers$)||void 0===wt?void 0:wt[ot];Vi?.forEach(nn=>{null!=Yn[nn]&&Yn[nn].call(Yn,vt,bt,ot)})}return}}this[Ot]=(null!==vt||"boolean"!=typeof this[Ot])&&vt})},ne.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=N.$watchers$)&&void 0!==Ee?Ee:{}),...it.filter(([ot,bt])=>15&bt[0]).map(([ot,bt])=>{var vt;const wt=bt[1]||ot;return qe.set(wt,ot),512&bt[0]&&(null===(vt=N.$attrsToReflect$)||void 0===vt||vt.push([ot,wt])),wt})]))}}return ne},hn=function(){var ne=(0,y.Z)(function*(N,Ie,Ee,Ve){let it;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(it=Nf(Ee),it.then){const wt=()=>{};it=yield it,wt()}it.isProxied||(Ee.$watchers$=it.watchers,Dn(it,Ee,2),it.isProxied=!0);const vt=()=>{};Ie.$flags$|=8;try{new it(Ie)}catch(wt){$i(wt)}Ie.$flags$&=-9,Ie.$flags$|=128,vt()}else it=N.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(it.style){let vt=it.style;const wt=D(Ee);if(!_n.has(wt)){const Ot=()=>{};((ne,N,Ie)=>{let Ee=_n.get(ne);Ff&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=N:Ee.replaceSync(N)):Ee=N,_n.set(ne,Ee)})(wt,vt,!!(1&Ee.$flags$)),Ot()}}}const qe=Ie.$ancestorComponent$,ot=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(ot):ot()});return function(Ie,Ee,Ve,it){return ne.apply(this,arguments)}}(),bi=ne=>{Ue(ne,"disconnectedCallback")},hr=function(){var ne=(0,y.Z)(function*(N){if(!(1&yi.$flags$)){const Ie=fr(N);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?bi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>bi(Ie.$lazyInstance$))}});return function(Ie){return ne.apply(this,arguments)}}(),ti=(ne,N={})=>{var Ie;const Ve=[],it=N.exclude||[],qe=rs.customElements,ot=Zo.head,bt=ot.querySelector("meta[charset]"),vt=Zo.createElement("style"),wt=[];let Ot,fi=!0;Object.assign(yi,N),yi.$resourcesUrl$=new URL(N.resourcesUrl||"./",Zo.baseURI).href;let Gn=!1;if(ne.map(Yn=>{Yn[1].map(Vi=>{var nn;const Ir={$flags$:Vi[0],$tagName$:Vi[1],$members$:Vi[2],$listeners$:Vi[3]};4&Ir.$flags$&&(Gn=!0),Ir.$members$=Vi[2],Ir.$listeners$=Vi[3],Ir.$attrsToReflect$=[],Ir.$watchers$=null!==(nn=Vi[4])&&void 0!==nn?nn:{};const Ju=Ir.$tagName$,En=class extends HTMLElement{constructor(nc){super(nc),Aa(nc=this,Ir),1&Ir.$flags$&&nc.attachShadow({mode:"open"})}connectedCallback(){Ot&&(clearTimeout(Ot),Ot=null),fi?wt.push(this):yi.jmp(()=>(ne=>{if(!(1&yi.$flags$)){const N=fr(ne),Ie=N.$cmpMeta$,Ee=()=>{};if(1&N.$flags$)Ar(ne,N,Ie.$listeners$),N?.$lazyInstance$||N?.$onReadyPromise$&&N.$onReadyPromise$.then(()=>{});else{N.$flags$|=1;{let Ve=ne;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(N,N.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[it]])=>{if(31&it&&ne.hasOwnProperty(Ve)){const qe=ne[Ve];delete ne[Ve],ne[Ve]=qe}}),hn(ne,N,Ie)}Ee()}})(this))}disconnectedCallback(){yi.jmp(()=>hr(this))}componentOnReady(){return fr(this).$onReadyPromise$}};Ir.$lazyBundleId$=Yn[0],!it.includes(Ju)&&!qe.get(Ju)&&(Ve.push(Ju),qe.define(Ju,Dn(En,Ir,1)))})}),Ve.length>0&&(Gn&&(vt.textContent+=V),vt.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",vt.innerHTML.length)){vt.setAttribute("data-styles","");const Yn=null!==(Ie=yi.$nonce$)&&void 0!==Ie?Ie:X(Zo);null!=Yn&&vt.setAttribute("nonce",Yn),ot.insertBefore(vt,bt?bt.nextSibling:ot.firstChild)}fi=!1,wt.length?wt.map(Yn=>Yn.connectedCallback()):yi.jmp(()=>Ot=setTimeout(Te,30))},Ar=(ne,N,Ie,Ee)=>{Ie&&Ie.map(([Ve,it,qe])=>{const ot=_o(ne,Ve),bt=Js(N,qe),vt=tc(Ve);yi.ael(ot,it,bt,vt),(N.$rmListeners$=N.$rmListeners$||[]).push(()=>yi.rel(ot,it,bt,vt))})},Js=(ne,N)=>Ie=>{try{256&ne.$flags$?ne.$lazyInstance$[N](Ie):(ne.$queuedListeners$=ne.$queuedListeners$||[]).push([N,Ie])}catch(Ee){$i(Ee)}},_o=(ne,N)=>8&N?rs:ne,tc=ne=>Wb?{passive:0!=(1&ne),capture:0!=(2&ne)}:0!=(2&ne),Kr=new WeakMap,fr=ne=>Kr.get(ne),os=(ne,N)=>Kr.set(N.$lazyInstance$=ne,N),Aa=(ne,N)=>{const Ie={$flags$:0,$hostElement$:ne,$cmpMeta$:N,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),ne["s-p"]=[],ne["s-rc"]=[],Ar(ne,Ie,N.$listeners$),Kr.set(ne,Ie)},kr=(ne,N)=>N in ne,$i=(ne,N)=>(0,console.error)(ne,N),Uu=new Map,Nf=(ne,N,Ie)=>{const Ee=ne.$tagName$.replace(/-/g,"_"),Ve=ne.$lazyBundleId$,it=Uu.get(Ve);if(it)return it[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=ot=>(Uu.set(Ve,ot),ot[Ee]);if("read-along"===Ve)return I.e(154).then(I.bind(I,9154)).then(qe,$i)}return I(8718)(`./${Ve}.entry.js`).then(qe=>(Uu.set(Ve,qe),qe[Ee]),$i)},_n=new Map,rs=typeof window<"u"?window:{},Zo=rs.document||{head:{}},yi={$flags$:0,$resourcesUrl$:"",jmp:ne=>ne(),raf:ne=>requestAnimationFrame(ne),ael:(ne,N,Ie,Ee)=>ne.addEventListener(N,Ie,Ee),rel:(ne,N,Ie,Ee)=>ne.removeEventListener(N,Ie,Ee),ce:(ne,N)=>new CustomEvent(ne,N)},Wb=(()=>{let ne=!1;try{Zo.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ne=!0}}))}catch{}return ne})(),Ff=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ci=[],Wu=[],ni=(ne,N)=>Ie=>{ne.push(Ie),j||(j=!0,N&&4&yi.$flags$?Nt(Xu):yi.raf(Xu))},Pn=ne=>{for(let N=0;N{Pn(ci),Pn(Wu),(j=ci.length>0)&&yi.raf(Xu)},Nt=ne=>Promise.resolve(void 0).then(ne),bx=ni(Wu,!0)},1656:(C,de,I)=>{"use strict";var y=I(5861);let E=null,k=1;const L=Symbol("SIGNAL");function j(t){const n=E;return E=t,n}function O(t){if((!ge(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==k)){if(!t.producerMustRecompute(t)&&!ee(t))return t.dirty=!1,void(t.lastCleanEpoch=k);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=k}}function ee(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const ae=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function te(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class me{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof ae?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof ae?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ae(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof me){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&te(e,n)}remove(n){const{_finalizers:e}=this;e&&te(e,n),n instanceof me&&n._removeParent(this)}}me.EMPTY=(()=>{const t=new me;return t.closed=!0,t})();const ze=me.EMPTY;function Ge(t){return t instanceof me||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function At(){}const Dn=Mr("C",void 0,void 0);function Mr(t,n,e){return{kind:t,value:n,error:e}}let bi=null;function hr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!bi;if(n&&(bi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=bi;if(bi=null,e)throw i}}else t()}class Ar extends me{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Aa}static create(n,e,i){return new is(n,e,i)}next(n){this.isStopped?os(function ao(t){return Mr("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?os(function hn(t){return Mr("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?os(Dn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Js=Function.prototype.bind;function _o(t,n){return Js.call(t,n)}class tc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Kr(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Kr(i)}else Kr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Kr(e)}}}class is extends Ar{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new tc(o)}}function Kr(t){Ue.useDeprecatedSynchronousErrorHandling?function ti(t){Ue.useDeprecatedSynchronousErrorHandling&&bi&&(bi.errorThrown=!0,bi.error=t)}(t):et(t)}function os(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Aa={closed:!0,next:At,error:function fr(t){throw t},complete:At},kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function $i(t){return t}function Nf(t){return 0===t.length?$i:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let _n=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function yi(t){return t&&t instanceof Ar||function Zo(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new is(e,i,o);return hr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=rs(i))((o,r)=>{const a=new is({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[kr](){return this}pipe(...e){return Nf(e)(this)}toPromise(e){return new(e=rs(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function rs(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Wb=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _t=(()=>{class t extends _n{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ff(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Wb}next(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new me(()=>{this.currentObservers=null,te(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new _n;return e.source=this,e}}return t.create=(n,e)=>new Ff(n,e),t})();class Ff extends _t{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class ci extends _t{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Wu(t){return Ae(t?.lift)}function ni(t){return n=>{if(Wu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new Xu(t,n,e,i,o)}class Xu extends Ar{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Nt(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const ne="https://g.co/ng/security#xss";class N extends Error{constructor(n,e){super(function Ie(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function bt(t){return{toString:t}.toString()}const wt="__parameters__";function Yn(t,n,e){return bt(()=>{const i=function Gn(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(wt)?l[wt]:Object.defineProperty(l,wt,{value:[]})[wt];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const nn=globalThis;function En(t){for(let n in t)if(t[n]===En)return n;throw Error("Could not find renamed property on target object.")}function nc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Xb(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Yj=En({__forward_ref__:En});function Sn(t){return t.__forward_ref__=Sn,t.toString=function(){return Pi(this())},t}function jt(t){return Lf(t)?t():t}function Lf(t){return"function"==typeof t&&t.hasOwnProperty(Yj)&&t.__forward_ref__===Sn}function as(t,n,e){t!=n&&function Ft(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function jf(t){return yx(t,Hf)||yx(t,_x)}function yx(t,n){return t.hasOwnProperty(n)?t[n]:null}function Bf(t){return t&&(t.hasOwnProperty(Jb)||t.hasOwnProperty(Uj))?t[Jb]:null}const Hf=En({\u0275prov:En}),Jb=En({\u0275inj:En}),_x=En({ngInjectableDef:En}),Uj=En({ngInjectorDef:En});class Be{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ty(t){return t&&!!t.\u0275providers}const Qu=En({\u0275cmp:En}),ny=En({\u0275dir:En}),iy=En({\u0275pipe:En}),wx=En({\u0275mod:En}),ka=En({\u0275fac:En}),Ku=En({__NG_ELEMENT_ID__:En}),Cx=En({__NG_ENV_ID__:En});function Gt(t){return"string"==typeof t?t:null==t?"":String(t)}function oy(t,n){throw new N(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let ry;function xx(){return ry}function Oo(t){const n=ry;return ry=t,n}function Sx(t,n,e){const i=jf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void oy()}const qu={},ay="__NG_DI_FLAG__",Yf="ngTempTokenPath",qj=/\n/gm,Dx="__source";let ic;function ss(t){const n=ic;return ic=t,n}function n3(t,n=fn.Default){if(void 0===ic)throw new N(-203,!1);return null===ic?Sx(t,void 0,n):ic.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(xx()||n3)(jt(t),n)}function Ne(t,n=fn.Default){return Me(t,zf(n))}function zf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sy(t){const n=[];for(let e=0;eArray.isArray(e)?rc(e,n):n(e))}function Tx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $f(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Wo(t,n,e){let i=ac(t,n);return i>=0?t[1|i]=e:(i=~i,function Mx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function cy(t,n){const e=ac(t,n);if(e>=0)return t[1|e]}function ac(t,n){return function Ax(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Rr(i))return!1;a=!0}}}}else{if(!a&&!Rr(i)&&!Rr(l))return!1;if(a&&Rr(l))continue;a=!1,i=l|1&i}}return Rr(i)||a}function Rr(t){return 0==(1&t)}function p3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Rr(a)&&(n+=Fx(r,o),o=""),i=a,r=r||!Rr(i);e++}return""!==o&&(n+=Fx(r,o)),n}function gn(t){return bt(()=>{const n=jx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Or.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""};Bx(e);const i=t.dependencies;return e.directiveDefs=Uf(i,!1),e.pipeDefs=Uf(i,!0),e.id=function D3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function C3(t){return un(t)||Ni(t)}function x3(t){return null!==t}function on(t){return bt(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Lx(t,n){if(null==t)return qr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Ye.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Ye.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return bt(()=>{const n=jx(t);return Bx(n),n})}function Po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function un(t){return t[Qu]||null}function Ni(t){return t[ny]||null}function Qi(t){return t[iy]||null}function so(t,n){const e=t[wx]||null;if(!e&&!0===n)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function jx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||qr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lx(t.inputs,n),outputs:Lx(t.outputs),debugInfo:null}}function Bx(t){t.features?.forEach(n=>n(t))}function Uf(t,n){if(!t)return null;const e=n?Qi:C3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(x3)}function sc(t){return{\u0275providers:t}}function E3(...t){return{\u0275providers:fy(0,t),\u0275fromNgModule:!0}}function fy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return rc(n,a=>{const s=a;Wf(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Hx(o,r),e}function Hx(t,n){for(let e=0;e{n(r,i)})}}function Wf(t,n,e,i){if(!(t=jt(t)))return!1;let o=null,r=Bf(t);const a=!r&&un(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Bf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)Wf(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{rc(r.imports,u=>{Wf(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Hx(c,n)}if(!s){const c=Qs(o)||(()=>new o);n({provide:o,useFactory:c,deps:vn},o),n({provide:uy,useValue:o,multi:!0},o),n({provide:Ks,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;py(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function py(t,n){for(let e of t)ty(e)&&(e=e.\u0275providers),Array.isArray(e)?py(e,n):n(e)}const T3=En({provide:String,useValue:En});function gy(t){return null!==t&&"object"==typeof t&&T3 in t}function qs(t){return"function"==typeof t}const my=new Be(""),Xf={},A3={};let by;function Jf(){return void 0===by&&(by=new Zf),by}class No{}class lc extends No{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_y(n,a=>this.processProvider(a)),this.records.set(kx,cc(void 0,this)),o.has("environment")&&this.records.set(No,cc(void 0,this));const r=this.records.get(my);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(uy,vn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ss(this),i=Oo(void 0);try{return n()}finally{ss(e),Oo(i)}}get(n,e=qu,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Cx))return n[Cx](this);i=zf(i);const r=ss(this),a=Oo(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function P3(t){return"function"==typeof t||"object"==typeof t&&t instanceof Be}(n)&&jf(n);l=c&&this.injectableDefInScope(c)?cc(yy(n),Xf):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?Jf():this.parent).get(n,e=i&fn.Optional&&e===qu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Yf]=s[Yf]||[]).unshift(Pi(n)),r)throw s;return function o3(t,n,e,i){const o=t[Yf];throw n[Dx]&&o.unshift(n[Dx]),t.message=function r3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Pi(n);if(Array.isArray(n))o=n.map(Pi).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(qj,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Yf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Oo(a),ss(r)}}resolveInjectorInitializers(){const n=j(null),e=ss(this),i=Oo(void 0);try{const r=this.get(Ks,vn,fn.Self);for(const a of r)a()}finally{ss(e),Oo(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Pi(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(n){let e=qs(n=jt(n))?n:jt(n&&n.provide);const i=function I3(t){return gy(t)?cc(void 0,t.useValue):cc($x(t),Xf)}(n);if(!qs(n)&&!0===n.multi){let o=this.records.get(e);o||(o=cc(void 0,Xf,!0),o.factory=()=>sy(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===Xf&&(e.value=A3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function R3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=jt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function yy(t){const n=jf(t),e=null!==n?n.factory:Qs(t);if(null!==e)return e;if(t instanceof Be)throw new N(204,!1);if(t instanceof Function)return function k3(t){if(t.length>0)throw new N(204,!1);const e=function Gj(t){return t&&(t[Hf]||t[_x])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new N(204,!1)}function $x(t,n,e){let i;if(qs(t)){const o=jt(t);return Qs(o)||yy(o)}if(gy(t))i=()=>jt(t.useValue);else if(function zx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sy(t.deps||[]));else if(function Yx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(jt(t.useExisting));else{const o=jt(t&&(t.useClass||t.provide));if(!function O3(t){return!!t.deps}(t))return Qs(o)||yy(o);i=()=>new o(...sy(t.deps))}return i}function cc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function _y(t,n){for(const e of t)Array.isArray(e)?_y(e,n):e&&ty(e)?_y(e.\u0275providers,n):n(e)}function ea(t,n){t instanceof lc&&t.assertNotDestroyed();const i=ss(t),o=Oo(void 0);try{return n()}finally{ss(i),Oo(o)}}function Vx(){return void 0!==xx()||null!=function t3(){return ic}()}const si=0,tt=1,It=2,_i=3,Pr=4,lo=5,Xo=6,dc=7,Un=8,Ki=9,Nr=10,Bt=11,id=12,Gx=13,hc=14,ui=15,od=16,fc=17,Ia=18,rd=19,Ux=20,us=21,qf=22,el=23,Ut=25,wy=1,ta=7,pc=9,vi=10;var Cy=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Cy||{});function co(t){return Array.isArray(t)&&"object"==typeof t[wy]}function uo(t){return Array.isArray(t)&&!0===t[wy]}function xy(t){return 0!=(4&t.flags)}function tl(t){return t.componentOffset>-1}function tp(t){return 1==(1&t.flags)}function Fr(t){return!!t.template}function Sy(t){return 0!=(512&t[It])}class U3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qx(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Zi(){return Kx}function Kx(t){return t.type.prototype.ngOnChanges&&(t.setInput=X3),W3}function W3(){const t=eS(this),n=t?.current;if(n){const e=t.previous;if(e===qr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function X3(t,n,e,i,o){const r=this.declaredInputs[i],a=eS(t)||function J3(t,n){return t[qx]=n}(t,{previous:qr,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new U3(c&&c.currentValue,e,l===qr),Qx(t,n,o,e)}Zi.ngInherit=!0;const qx="__ngSimpleChanges__";function eS(t){return t[qx]||null}const na=function(t,n,e){},tS="svg";let iS=!1;function Ln(t){for(;Array.isArray(t);)t=t[si];return t}function sd(t,n){return Ln(n[t])}function vo(t,n){return Ln(n[t.index])}function ld(t,n){return t.data[n]}function gc(t,n){return t[n]}function Jo(t,n){const e=n[t];return co(e)?e:e[si]}function Ay(t){return 128==(128&t[It])}function ia(t,n){return null==n?null:t[n]}function oS(t){t[fc]=0}function n4(t){1024&t[It]||(t[It]|=1024,Ay(t)&&cd(t))}function ky(t){return!!(9216&t[It]||t[el]?.dirty)}function Iy(t){t[Nr].changeDetectionScheduler?.notify(1),ky(t)?cd(t):64&t[It]&&(function K3(){return iS}()?(t[It]|=1024,cd(t)):t[Nr].changeDetectionScheduler?.notify())}function cd(t){t[Nr].changeDetectionScheduler?.notify();let n=nl(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Ay(n));)n=nl(n)}function np(t,n){if(256==(256&t[It]))throw new N(911,!1);null===t[us]&&(t[us]=[]),t[us].push(n)}function nl(t){const n=t[_i];return uo(n)?n[_i]:n}const Ht={lFrame:pS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sS(){return Ht.bindingsEnabled}function mc(){return null!==Ht.skipHydrationRootTNode}function Le(){return Ht.lFrame.lView}function pn(){return Ht.lFrame.tView}function Xt(t){return Ht.lFrame.contextLView=t,t[Un]}function Jt(t){return Ht.lFrame.contextLView=null,t}function Nn(){let t=lS();for(;null!==t&&64===t.type;)t=t.parent;return t}function lS(){return Ht.lFrame.currentTNode}function ud(){const t=Ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function oa(t,n){const e=Ht.lFrame;e.currentTNode=t,e.isParent=n}function Ry(){return Ht.lFrame.isParent}function Py(){Ht.lFrame.isParent=!1}function wo(){const t=Ht.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Lr(){return Ht.lFrame.bindingIndex++}function Ra(t){const n=Ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function dS(t){Ht.lFrame.inI18n=t}function f4(t,n){const e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ny(n)}function Ny(t){Ht.lFrame.currentDirectiveIndex=t}function Fy(t){const n=Ht.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Ly(){return Ht.lFrame.currentQueryIndex}function ip(t){Ht.lFrame.currentQueryIndex=t}function g4(t){const n=t[tt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function hS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=g4(r),null===o||(r=r[hc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ht.lFrame=fS();return i.currentTNode=n,i.lView=t,!0}function jy(t){const n=fS(),e=t[tt];Ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function fS(){const t=Ht.lFrame,n=null===t?null:t.child;return null===n?pS(t):n}function pS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function gS(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mS=gS;function By(){const t=gS();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Ht.lFrame.selectedIndex}function il(t){Ht.lFrame.selectedIndex=t}function Wn(){const t=Ht.lFrame;return ld(t.tView,t.selectedIndex)}function op(){Ht.lFrame.currentNamespace=tS}let yS=!0;function dd(){return yS}function ra(t){yS=t}function rp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[fc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,vS(s,r)):vS(s,r)}const bc=-1;class hd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function zy(t){return t!==bc}function fd(t){return 32767&t}function pd(t,n){let e=function E4(t){return t>>16}(t),i=n;for(;e>0;)i=i[hc],e--;return i}let $y=!0;function lp(t){const n=$y;return $y=t,n}const wS=255,CS=5;let T4=0;const aa={};function cp(t,n){const e=xS(t,n);if(-1!==e)return e;const i=n[tt];i.firstCreatePass&&(t.injectorIndex=n.length,Vy(i.data,t),Vy(n,null),Vy(i.blueprint,null));const o=up(t,n),r=t.injectorIndex;if(zy(o)){const a=fd(o),s=pd(o,n),l=s[tt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function Vy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function up(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kS(o),null===i)return bc;if(e++,o=o[hc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return bc}function Zy(t,n,e){!function M4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ku)&&(i=e[Ku]),null==i&&(i=e[Ku]=T4++);const o=i&wS;n.data[t+(o>>CS)]|=1<=0?n&wS:O4:n}(e);if("function"==typeof r){if(!hS(n,t,i))return i&fn.Host?SS(o,0,i):DS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;oy()}finally{mS()}}else if("number"==typeof r){let a=null,s=xS(t,n),l=bc,c=i&fn.Host?n[ui][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?up(t,n):n[s+8],l!==bc&&AS(i,!1)?(a=n[tt],s=fd(l),n=pd(l,n)):s=-1);-1!==s;){const u=n[tt];if(MS(r,s,u.data)){const d=k4(s,n,e,a,i,c);if(d!==aa)return d}l=n[s+8],l!==bc&&AS(i,n[tt].data[s+8]===c)&&MS(r,s,n)?(a=u,s=fd(l),n=pd(l,n)):s=-1}}return o}function k4(t,n,e,i,o,r){const a=n[tt],s=a.data[t+8],u=dp(s,a,e,null==i?tl(s)&&$y:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ol(n,a,u,s):aa}function dp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Fr(p)&&p.type===e)return l}return null}function ol(t,n,e,i){let o=t[e];const r=n.data;if(function C4(t){return t instanceof hd}(o)){const a=o;a.resolving&&function Jj(t,n){throw n&&n.join(" > "),new N(-200,t)}(function Tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gt(t)}(r[e]));const s=lp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Oo(a.injectImpl):null;hS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function v4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Kx(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Oo(c),lp(s),a.resolving=!1,mS()}}return o}function MS(t,n,e){return!!(e[n+(t>>CS)]&1<{const n=t.prototype.constructor,e=n[ka]||Gy(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[ka]||Gy(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Gy(t){return Lf(t)?()=>{const n=Gy(jt(t));return n&&n()}:Qs(t)}function kS(t){const n=t[tt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function sa(t){return function A4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=qu}static{this.NULL=new Zf}static create(e,i){if(Array.isArray(e))return NS({name:""},i,e,"");{const o=e.name??"";return NS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(kx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Wy(t){return t.ngOriginalError}class Qo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Wy(n);for(;e&&Wy(e);)e=Wy(e);return e||null}}const jS=new Be("",{providedIn:"root",factory:()=>Ne(Qo).handleError.bind(void 0)});let vc=(()=>{class t{static{this.__NG_ELEMENT_ID__=z4}static{this.__NG_ENV_ID__=e=>e}}return t})();class Y4 extends vc{constructor(n){super(),this._lView=n}onDestroy(n){return np(this._lView,n),()=>function Oy(t,n){if(null===t[us])return;const e=t[us].indexOf(n);-1!==e&&t[us].splice(e,1)}(this._lView,n)}}function z4(){return new Y4(Le())}function $4(){return wc(Nn(),Le())}function wc(t,n){return new Zt(vo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=$4}}return t})();function HS(t){return t instanceof Zt?t.nativeElement:t}function Xy(t){return n=>{setTimeout(t,void 0,n)}}const Lt=class V4 extends _t{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Vx()&&(this.destroyRef=Ne(vc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=Xy(r),o&&(o=Xy(o)),a&&(a=Xy(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof me&&n.add(s),s}};function Z4(){return this._results[Symbol.iterator]()}class ds{get changes(){return this._changes??=new Lt}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=ds.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Z4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function c3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;if5}),f5="ng",aD=new Be(""),Pa=new Be("",{providedIn:"platform",factory:()=>"unknown"}),Co=new Be(""),e_=new Be("",{providedIn:"root",factory:()=>hs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sD=()=>null;function l_(t,n,e=!1){return sD(t,n,e)}const hD=new Be("",{providedIn:"root",factory:()=>!1});let xp,Sp;function Sc(t){return function h_(){if(void 0===xp&&(xp=null,nn.trustedTypes))try{xp=nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xp}()?.createHTML(t)||t}function f_(){if(void 0===Sp&&(Sp=null,nn.trustedTypes))try{Sp=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sp}function pD(t){return f_()?.createHTML(t)||t}function mD(t){return f_()?.createScriptURL(t)||t}class rl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class T5 extends rl{getTypeName(){return"HTML"}}class M5 extends rl{getTypeName(){return"Style"}}class A5 extends rl{getTypeName(){return"Script"}}class k5 extends rl{getTypeName(){return"URL"}}class I5 extends rl{getTypeName(){return"ResourceURL"}}function Ko(t){return t instanceof rl?t.changingThisBreaksApplicationSecurity:t}function la(t,n){const e=function O5(t){return t instanceof rl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${ne})`)}return e===n}function bD(t){const n=new B5(t);return function H5(){try{return!!(new window.DOMParser).parseFromString(Sc(""),"text/html")}catch{return!1}}()?new j5(n):n}class j5{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class B5{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Sc(n),e}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dp(t){return(t=String(t)).match(Y5)?t:"unsafe:"+t}function Na(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function wd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const yD=Na("area,br,col,hr,img,wbr"),_D=Na("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vD=Na("rp,rt"),p_=wd(yD,wd(_D,Na("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wd(vD,Na("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wd(vD,_D)),g_=Na("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wD=wd(g_,Na("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Na("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),z5=Na("script,style,template");class $5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=G5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=Z5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=CD(n).toLowerCase();if(!p_.hasOwnProperty(e))return this.sanitizedSomething=!0,!z5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=CD(n).toLowerCase();p_.hasOwnProperty(e)&&!yD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(SD(n))}}function Z5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw xD(n);return n}function G5(t){const n=t.firstChild;if(n&&function V5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw xD(n);return n}function CD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function xD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const U5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W5=/([^\#-~ |!])/g;function SD(t){return t.replace(/&/g,"&").replace(U5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(W5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ep;function DD(t,n){let e=null;try{Ep=Ep||bD(t);let i=n?String(n):"";e=Ep.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Ep.getInertBodyElement(i)}while(i!==r);return Sc((new $5).sanitizeChildren(m_(e)||e))}finally{if(e){const i=m_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function m_(t){return"content"in t&&function X5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Gi||{});function b_(t){const n=xd();return n?pD(n.sanitize(Gi.HTML,t)||""):la(t,"HTML")?pD(Ko(t)):DD(hs(),Gt(t))}function Cd(t){const n=xd();return n?n.sanitize(Gi.URL,t)||"":la(t,"URL")?Ko(t):Dp(Gt(t))}function ED(t){const n=xd();if(n)return mD(n.sanitize(Gi.RESOURCE_URL,t)||"");if(la(t,"ResourceURL"))return mD(Ko(t));throw new N(904,!1)}function xd(){const t=Le();return t&&t[Nr].sanitizer}const t8=/^>|^->||--!>|)/g,i8="\u200b$1\u200b";function qo(t){return t instanceof Function?t():t}var ps=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ps||{});let w_;function C_(t,n){return w_(t,n)}function Ec(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[si]);const s=Ln(i);0===t&&null!==e?null==o?BD(n,e,s):al(n,e,s,o||null,!0):1===t&&null!==e?al(n,e,s,o||null,!0):2===t?function Ed(t,n,e){const i=Ip(t,n);i&&function C8(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function D8(t,n,e,i,o){const r=e[ta];r!==Ln(e)&&Ec(n,t,i,r,o);for(let s=vi;sn.replace(n8,i8))}(n))}function Ap(t,n,e){return t.createElement(n,e)}function FD(t,n){n[Nr].changeDetectionScheduler?.notify(1),Rp(t,n,n[Bt],2,null,null)}function LD(t,n){const e=t[pc],i=e.indexOf(n);e.splice(i,1)}function Sd(t,n){if(t.length<=vi)return;const e=vi+n,i=t[e];if(i){const o=i[od];null!==o&&o!==t&&LD(o,i),n>0&&(t[e-1][Pr]=i[Pr]);const r=$f(t,vi+n);!function g8(t,n){FD(t,n),n[si]=null,n[lo]=null}(i[tt],i);const a=r[Ia];null!==a&&a.detachView(r[tt]),i[_i]=null,i[Pr]=null,i[It]&=-129}return i}function kp(t,n){if(!(256&n[It])){const e=n[Bt];e.destroyNode&&Rp(t,n,e,3,null,null),function b8(t){let n=t[id];if(!n)return D_(t[tt],t);for(;n;){let e=null;if(co(n))e=n[id];else{const i=n[vi];i&&(e=i)}if(!e){for(;n&&!n[Pr]&&n!==t;)co(n)&&D_(n[tt],n),n=n[_i];null===n&&(n=t),co(n)&&D_(n[tt],n),e=n&&n[Pr]}n=e}}(n)}}function D_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[el]&&function se(t){if(B(t),ge(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[dc]=null);const o=n[us];if(null!==o){n[us]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Or.None||r===Or.Emulated)return null}return vo(i,e)}}function al(t,n,e,i,o){t.insertBefore(n,e,i,o)}function BD(t,n,e){t.appendChild(n,e)}function HD(t,n,e,i,o){null!==i?al(t,n,e,i,o):BD(t,n,e)}function Ip(t,n){return t.parentNode(n)}function YD(t,n,e){return $D(t,n,e)}function zD(t,n,e){return 40&t.type?vo(t,e):null}let T_,$D=zD;function VD(t,n){$D=t,T_=n}function Op(t,n,e,i){const o=E_(t,i,n),r=n[Bt],s=YD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lUt&&JD(t,n,Ut,!1),na(a?2:0,o),e(i,o)}finally{il(r),na(a?3:1,o)}}function O_(t,n,e){if(xy(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function tE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Ye.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?nE(i,e,c,s,l):nE(i,e,c,s)}return i}function nE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Lo(t,n,e,i,o,r,a,s){const l=vo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(H_(t,e,u,i,o),tl(n)&&function j8(t,n){const e=Jo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function L8(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function F_(t,n,e,i){if(sS()){const o=null===i?null:{"":-1},r=function V8(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Td(t,e,o.hostVars,Qt),o)}function ca(t,n,e,i,o,r){const a=vo(t,n);!function j_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Gt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Bt],a,r,t.value,e,i,o)}function J8(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Pr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cd(t.lView)},consumerOnSignalRead(){this.lView[el]=this}},fE=100;function Lp(t,n=!0,e=0){const i=t[Nr],o=i.rendererFactory;o.begin?.();try{!function rB(t,n){$_(t,n);let e=0;for(;ky(t);){if(e===fE)throw new N(103,!1);e++,$_(t,1)}}(t,e)}catch(a){throw n&&Fp(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function aB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Nr].inlineEffectRunner?.flush(),jy(n);let a=null,s=null;(function sB(t){return 2!==t.type})(t)&&(s=function tB(t){return t[el]??function nB(t){const n=hE.pop()??Object.create(oB);return n.lView=t,n}(t)}(n),a=function q(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{oS(n),function uS(t){return Ht.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&KD(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&ap(n,d,null)}else{const d=t.preOrderHooks;null!==d&&sp(n,d,0,null),Hy(n,0)}if(function lB(t){for(let n=JS(t);null!==n;n=QS(n)){if(!(n[It]&Cy.HasTransplantedViews))continue;const e=n[pc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function iB(t){t.lView[el]!==t&&(t.lView=null,hE.push(t))}(s)),By()}}function pE(t,n){for(let e=JS(t);null!==e;e=QS(e))for(let i=vi;i-1&&(Sd(n,i),$f(e,i))}this._attachedToViewContainer=!1}kp(this._lView[tt],this._lView)}onDestroy(n){np(this._lView,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){Iy(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,FD(this._lView[tt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n,Iy(this._lView)}}let xo=(()=>{class t{static{this.__NG_ELEMENT_ID__=hB}}return t})();const uB=xo,dB=class extends uB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=Md(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Od(o)}};function hB(){return jp(Nn(),Le())}function jp(t,n){return 4&t.type?new dB(n,t,wc(t,n)):null}let CE=()=>null;function Ac(t,n){return CE(t,n)}class $p{}class FB{}class xE{}class jB{resolveComponentFactory(n){throw function LB(t){const n=Error(`No component factory found for ${Pi(t)}.`);return n.ngComponent=t,n}(n)}}let sl=(()=>{class t{static{this.NULL=new jB}}return t})();class X_{}let La=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function BB(){const t=Le(),e=Jo(Nn().index,t);return(co(e)?e:t)[Bt]}()}}return t})(),HB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const J_={},DE=new Set;function ua(t){DE.has(t)||(DE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function EE(...t){}class Ct{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lt(!1),this.onMicrotaskEmpty=new Lt(!1),this.onStable=new Lt(!1),this.onError=new Lt(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function YB(){const t="function"==typeof nn.requestAnimationFrame;let n=nn[t?"requestAnimationFrame":"setTimeout"],e=nn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function VB(t){const n=()=>{!function $B(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(nn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,K_(t),t.isCheckStableRunning=!0,Q_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),K_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function ZB(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return TE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ME(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return TE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ME(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,K_(t),Q_(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new N(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,zB,EE,EE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const zB={};function Q_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function K_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function TE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ME(t){t._nesting--,Q_(t)}class AE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lt,this.onMicrotaskEmpty=new Lt,this.onStable=new Lt,this.onError=new Lt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var ll=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ll||{});const kE={destroy(){}};function IE(t,n){!n&&function Qf(t){if(!Vx())throw new N(-203,!1)}();const e=n?.injector??Ne(di);if(!function fs(t){return"browser"===(t??Ne(di)).get(Pa)}(e))return kE;ua("NgAfterNextRender");const i=e.get(Ld),o=i.handler??=new RE,r=n?.phase??ll.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(vc).onDestroy(a),l=ea(e,()=>new OE(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class OE{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Ne(Ct),this.errorHandler=Ne(Qo,{optional:!0}),Ne($p,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class RE{constructor(){this.executingCallbacks=!1,this.buckets={[ll.EarlyRead]:new Set,[ll.Write]:new Set,[ll.MixedReadWrite]:new Set,[ll.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ld=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Zp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&WD(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function o6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=a6}}return t})();function a6(){return HE(Nn(),Le())}const s6=jo,jE=class extends s6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return wc(this._hostTNode,this._hostLView)}get injector(){return new Li(this._hostTNode,this._hostLView)}get parentInjector(){const n=up(this._hostTNode,this._hostLView);if(zy(n)){const e=pd(n,this._hostLView),i=fd(n);return new Li(e[tt].data[i+8],e)}return new Li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=BE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Ac(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Mc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function nd(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new Hd(un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(No,null);b&&(r=b)}const u=un(l.componentType??{}),d=Ac(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Mc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function t4(t){return uo(t[_i])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[_i],c=new jE(l,l[lo],l[_i]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Ad(a,o,r,i),n.attachToViewContainerRef(),Tx(nv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=BE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);i&&($f(nv(this._lContainer),e),kp(i[tt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);return i&&null!=$f(nv(this._lContainer),e)?new Od(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function BE(t){return t[8]}function nv(t){return t[8]||(t[8]=[])}function HE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=rE(i,n,null,t),n[t.index]=e,Np(n,e)),YE(e,n,t,i),new jE(e,t,n)}let YE=function $E(t,n,e,i){if(t[ta])return;let o;o=8&e.type?Ln(i):function l6(t,n){const e=t[Bt],i=e.createComment(""),o=vo(n,t);return al(e,Ip(e,o),i,function x8(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[ta]=o},iv=()=>!1;class ov{constructor(n){this.queryList=n,this.matches=null}clone(){return new ov(this.queryList)}setDirty(){this.queryList.setDirty()}}class rv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class av{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=vi;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=td(o.hostAttrs,e=td(e,o.hostAttrs))}}(i)}function M6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Up(t){return t===qr?{}:t===vn?[]:t}function k6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function I6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function O6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function So(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class cl{}class pT{}class hv extends cl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FE(this);const o=so(n);this._bootstrapComponents=qo(o.bootstrap),this._r3Injector=FS(n,e,[{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver},...i],Pi(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fv extends pT{constructor(n){super(),this.moduleType=n}create(n){return new hv(this.moduleType,n,[])}}class gT extends cl{constructor(n){super(),this.componentFactoryResolver=new FE(this),this.instance=null;const e=new lc([...n.providers,{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],n.parent||Jf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wp(t,n,e=null){return new gT({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jp(t){return!!pv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function pv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function da(t,n,e){return t[n]=e}function wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ul(t,n,e,i){const o=wi(t,n,e);return wi(t,n+1,i)||o}function kt(t,n,e,i,o,r,a,s){const l=Le(),c=pn(),u=t+Ut,d=c.firstCreatePass?function Z6(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Tc(n,t,4,a||null,ia(c,s));F_(n,e,u,ia(c,l)),rp(n,u);const d=u.tView=N_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];oa(d,!1);const h=mT(c,l,d,t);dd()&&Op(c,l,h,d),fo(h,l);const p=rE(h,l,h,d);return l[u]=p,Np(l,p),function zE(t,n,e){return iv(t,n,e)}(p,d,l),tp(d)&&R_(c,l,d),null!=a&&P_(l,d,s),kt}let mT=function bT(t,n,e,i){return ra(!0),n[Bt].createComment("")};function ln(t,n,e,i){const o=Le();return wi(o,Lr(),n)&&(pn(),ca(Wn(),o,t,n,e,i)),ln}function jc(t,n,e,i){return wi(t,Lr(),e)?n+Gt(e)+i:Qt}function Bc(t,n,e,i,o,r){const s=ul(t,function Oa(){return Ht.lFrame.bindingIndex}(),e,o);return Ra(2),s?n+Gt(e)+i+Gt(o)+r:Qt}function ig(t,n){return t<<17|n<<2}function _s(t){return t>>17&32767}function Sv(t){return 2|t}function hl(t){return(131068&t)>>2}function Dv(t,n){return-131069&t|n<<2}function Ev(t){return 1|t}function WT(t,n,e,i){const o=t[e+1],r=null===n;let a=i?_s(o):hl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];A7(t[a],n)&&(s=!0,t[a+1]=i?Ev(c):Sv(c)),a=i?_s(c):hl(c)}s&&(t[e+1]=i?Sv(o):Ev(o))}function A7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ac(t,n)>=0}const ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XT(t){return t.substring(ji.key,ji.keyEnd)}function JT(t,n){const e=ji.textEnd;return e===n?-1:(n=ji.keyEnd=function R7(t,n,e){for(;n32;)n++;return n}(t,ji.key=n,e),Gc(t,n,e))}function Gc(t,n,e){for(;n=0;e=JT(n,e))Wo(t,XT(n),!0)}function jr(t,n,e,i){const o=Le(),r=pn(),a=Ra(2);r.firstUpdatePass&&nM(r,t,a,i),n!==Qt&&wi(o,a,n)&&oM(r,r.data[ho()],o,o[Bt],t,o[a+1]=function V7(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Pi(Ko(t)))),t}(n,e),i,a)}function Br(t,n,e,i){const o=pn(),r=Ra(2);o.firstUpdatePass&&nM(o,null,r,i);const a=Le();if(e!==Qt&&wi(a,r,e)){const s=o.data[ho()];if(aM(s,i)&&!tM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=Xb(l,e||"")),Tv(o,s,a,e,i)}else!function $7(t,n,e,i,o,r,a,s){o===Qt&&(o=vn);let l=0,c=0,u=0=t.expandoStartIndex}function nM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=tM(t,e);aM(r,i)&&null===n&&!a&&(n=!1),n=function L7(t,n,e,i){const o=Fy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Ud(e=Mv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Mv(o,t,n,e,i),null===r){let l=function j7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==hl(i))return t[_s(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Mv(null,t,n,l[1],i),l=Ud(l,n.attrs,i),function B7(t,n,e,i){t[_s(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function H7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=_s(t[s+1]);t[i+1]=ig(h,s),0!==h&&(t[h+1]=Dv(t[h+1],i)),t[s+1]=function D7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ig(s,0),0!==s&&(t[s+1]=Dv(t[s+1],i)),s=i;else t[i+1]=ig(l,0),0===s?s=i:t[l+1]=Dv(t[l+1],i),l=i;c&&(t[i+1]=Sv(t[i+1])),WT(t,u,i,!0),WT(t,u,i,!1),function M7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&ac(r,n)>=0&&(e[i+1]=Ev(e[i+1]))}(n,u,t,i,r),a=ig(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Mv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===Qt&&(h=d?vn:void 0);let p=d?cy(h,i):u===i?h:void 0;if(c&&!og(p)&&(p=cy(l,i)),og(p)&&(s=p,a))return s;const g=t[o+1];o=a?_s(g):hl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=cy(l,i))}return s}function og(t){return void 0!==t}function aM(t,n){return 0!=(t.flags&(n?8:16))}function Av(t,n,e){Br(Wo,fa,jc(Le(),t,n,e),!0)}class eH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function kv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function Iv(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function sM(t,n,e,i,o){if(Iv(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function lM(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class cM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function Mn(t,n,e){ua("NgControlFlow");const i=Le(),o=Lr(),r=Ov(i,Ut+t);if(wi(i,o,n)){const s=j(null);try{if(z_(r,0),-1!==n){const l=Rv(i[tt],Ut+n),c=Ac(r,l.tView.ssrId);Ad(r,Md(i,l,e,{dehydratedView:c}),0,Mc(l,c))}}finally{j(s)}}else{const s=uE(r,0);void 0!==s&&(s[Un]=e)}}class nH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-vi}}function rg(t,n){return n}class oH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function ag(t,n,e,i,o,r,a,s,l,c,u,d,h){ua("NgControlFlow");const p=void 0!==l,g=Le(),b=s?a.bind(g[ui][Un]):a,T=new oH(p,b);g[Ut+t]=T,kt(t+1,n,e,i,o,r),p&&kt(t+2,l,c,u,d,h)}class rH extends eH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-vi}at(n){return this.getLView(n)[Un].$implicit}attach(n,e){const i=e[Xo];this.needsIndexUpdate||=n!==this.length,Ad(this.lContainer,e,n,Mc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function aH(t,n){return Sd(t,n)}(this.lContainer,n)}create(n,e){const i=Ac(this.lContainer,this.templateTNode.tView.ssrId);return Md(this.hostLView,this.templateTNode,new nH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){kp(n[tt],n)}updateValue(n,e){this.getLView(n)[Un].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=Lr(),l=0===a.length;if(wi(i,s,l)){const c=e+2,u=Ov(i,c);if(l){const d=Rv(o,c),h=Ac(u,d.tView.ssrId);Ad(u,Md(i,d,void 0,{dehydratedView:h}),0,Mc(d,h))}else z_(u,0)}}}finally{j(n)}}function Ov(t,n){return t[n]}function Rv(t,n){return ld(t,n)}function _e(t,n,e,i){const o=Le(),r=pn(),a=Ut+t,s=o[Bt],l=r.firstCreatePass?function lH(t,n,e,i,o,r){const a=n.consts,l=Tc(n,t,2,i,ia(a,o));return F_(n,e,l,ia(a,r)),null!==l.attrs&&Zp(l,l.attrs,!1),null!==l.mergedAttrs&&Zp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=uM(r,o,l,s,n,t);o[a]=c;const u=tp(l);return oa(l,!0),XD(s,c,l),!function $d(t){return 32==(32&t.flags)}(l)&&dd()&&Op(r,o,c,l),0===function i4(){return Ht.lFrame.elementDepthCount}()&&fo(c,o),function o4(){Ht.lFrame.elementDepthCount++}(),u&&(R_(r,o,l),O_(r,l,o)),null!==i&&P_(o,l),_e}function ve(){let t=Nn();Ry()?Py():(t=t.parent,oa(t,!1));const n=t;(function a4(t){return Ht.skipHydrationRootTNode===t})(n)&&function u4(){Ht.skipHydrationRootTNode=null}(),function r4(){Ht.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(rp(e,t),xy(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function S4(t){return 0!=(8&t.flags)}(n)&&Tv(e,n,Le(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function D4(t){return 0!=(16&t.flags)}(n)&&Tv(e,n,Le(),n.stylesWithoutHost,!1),ve}function dt(t,n,e,i){return _e(t,n,e,i),ve(),dt}let uM=(t,n,e,i,o,r)=>(ra(!0),Ap(i,o,function bS(){return Ht.lFrame.currentNamespace}()));function Wd(t,n,e){const i=Le(),o=pn(),r=t+Ut,a=o.firstCreatePass?function dH(t,n,e,i,o){const r=n.consts,a=ia(r,i),s=Tc(n,t,8,"ng-container",a);return null!==a&&Zp(s,a,!0),F_(n,e,s,ia(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];oa(a,!0);const s=dM(o,i,a,t);return i[r]=s,dd()&&Op(o,i,s,a),fo(s,i),tp(a)&&(R_(o,i,a),O_(o,a,i)),null!=e&&P_(i,a),Wd}function Xd(){let t=Nn();const n=pn();return Ry()?Py():(t=t.parent,oa(t,!1)),n.firstCreatePass&&(rp(n,t),xy(t)&&n.queries.elementEnd(t)),Xd}function ws(t,n,e){return Wd(t,n,e),Xd(),ws}let dM=(t,n,e,i)=>(ra(!0),S_(n[Bt],""));function On(){return Le()}function Cs(t,n,e){const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!0),Cs}function Pv(t,n,e){const i=Le();if(wi(i,Lr(),n)){const r=pn(),a=Wn();Lo(r,a,i,t,n,cE(Fy(r.data),a,i),e,!0)}return Pv}const Wc="en-US",lg={marker:"element"},cg={marker:"ICU"};var Bo=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Bo||{});let pM=Wc;function mM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?zD(t,0,e):Ln(e[o])}function bM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];_M(i)||wH(i,n)&&null===CH(i)&&xH(i,n.index)}}function _M(t){return!(64&t.type)}function wH(t,n){return _M(n)||t.index>n.index}function CH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function xH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(VD(mM,bM),t.insertBeforeIndex=n)}function EH(t,n,e){const i=I_(t,e,64,null,null);return yM(n,i),i}let qd=(t,n,e,i)=>(ra(!0),function xM(t,n,e){const i=t[Bt];switch(e){case Node.COMMENT_NODE:return S_(i,n);case Node.TEXT_NODE:return x_(i,n);case Node.ELEMENT_NODE:return Ap(i,n,null)}}(t,e,i));function NH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function ug(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:vn}function a(){if(n0?e[s]:(t.push(n,i),r(e[tt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const dg=/\ufffd(\d+):?\d*\ufffd/gi,LH=/\ufffd(\d+)\ufffd/,AM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,eh="\ufffd",jH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,BH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,HH=/\uE500/g;function kM(t,n,e,i,o,r,a){const s=Td(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Nv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);AM.test(l)?i.push(WH(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function XH(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=bD(hs()).getInertBodyElement(s),g=m_(p)||p;return g?PM(t,n,e,i,o,c,u,d,g,r,l,0):0}function PM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Td(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(p_.hasOwnProperty(T)){Fv(r,lg,T,c,g),n.data[g]=T;const ce=b.attributes;for(let pe=0;pe>>Bo.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=qd(t,u,n[r],(a&Bo.COMMENT)===Bo.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=dd()),c&&null!==e&&h&&al(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),dS(!0)}function to(){dS(!1)}function Wt(t,n,e){eo(t,n,e),to()}function hg(t,n={}){return function sY(t,n={}){let e=t;if(eY.test(t)){const i={},o=[0];e=e.replace(tY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(aY),S=T?parseInt(T[1],10):0,H=rY.test(b);c.push([S,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(iY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(oY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function xt(t,n,e,i){const o=Le(),r=pn(),a=Nn();return Lv(r,o,o[Bt],a,t,n,i),xt}function Lv(t,n,e,i,o,r,a){const s=tp(i),c=t.firstCreatePass&&lE(t),u=n[Un],d=sE(n);let h=!0;if(3&i.type||a){const b=vo(i,n),T=a?a(b):b,S=d.length,H=a?ce=>a(Ln(ce[i.index])):i.index;let re=null;if(!a&&s&&(re=function uY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==re)(re.__ngLastListenerFn__||re).__ngNextListenerFn__=r,re.__ngLastListenerFn__=r,h=!1;else{r=HM(i,n,u,r,!1);const ce=e.listen(T,o,r);d.push(r,ce),c&&c.push(o,H,S,S+1)}}else r=HM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Jo(t.index,n):n);let l=BM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=BM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function lt(t=1){return function m4(t){return(Ht.lFrame.contextLView=function rS(t,n){for(;t>0;)n=n[hc],t--;return n}(t,Ht.lFrame.contextLView))[Un]}(t)}function dY(t,n){let e=null;const i=function g3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(ra(!0),x_(n[Bt],i));function Ho(t){return gr("",t,""),Ho}function gr(t,n,e){const i=Le(),o=jc(i,t,n,e);return o!==Qt&&Fa(i,ho(),o),gr}function jv(t,n,e,i,o){const r=Le(),a=Bc(r,t,n,e,i,o);return a!==Qt&&Fa(r,ho(),a),jv}function nh(t,n,e){qE(n)&&(n=n());const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!1),nh}function pg(t,n){const e=qE(t);return e&&t.set(n),e}function ih(t,n){const e=Le(),i=pn(),o=Nn();return Lv(i,e,e[Bt],o,t,n),ih}function Bv(t,n,e,i,o){if(t=jt(t),Array.isArray(t))for(let r=0;r>20;if(qs(t)||!t.multi){const p=new hd(c,o,ie),g=Yv(l,n,o?u:u+h,d);-1===g?(Zy(cp(s,a),r,l),Hv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=Yv(l,n,u+h,d),g=Yv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){Zy(cp(s,a),r,l);const S=function kY(t,n,e,i,o){const r=new hd(t,e,ie);return r.multi=[],r.index=n,r.componentProviders=0,hA(r,o,i&&!e),r}(o?AY:MY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=S),Hv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(S),a.push(S)}else Hv(r,t,p>-1?p:g,hA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Hv(t,n,e,i){const o=qs(n),r=function M3(t){return!!t.useClass}(n);if(o||r){const l=(r?jt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Yv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function TY(t,n,e){const i=pn();if(i.firstCreatePass){const o=Fr(t);Bv(e,i.data,i.blueprint,o,!0),Bv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let IY=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=fy(0,e.type),o=i.length>0?Wp([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(No))})}}return t})();function ii(t){ua("NgStandalone"),t.getStandaloneInjector=n=>n.get(IY).getOrCreateStandaloneInjector(t)}function oh(t,n,e,i){return pA(Le(),wo(),t,n,e,i)}function rh(t,n,e,i,o){return function gA(t,n,e,i,o,r,a){const s=n+e;return ul(t,s,o,r)?da(t,s+2,a?i.call(a,o,r):i(o,r)):ah(t,s+2)}(Le(),wo(),t,n,e,i,o)}function ah(t,n){const e=t[n];return e===Qt?void 0:e}function pA(t,n,e,i,o,r){const a=n+e;return wi(t,a,o)?da(t,a+1,r?i.call(r,o):i(o)):ah(t,a+1)}function Jc(t,n){const e=pn();let i;const o=t+Ut;e.firstCreatePass?(i=function zY(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Qs(i.type)),s=Oo(ie);try{const l=lp(!1),c=r();return lp(l),function gY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Le(),o,c),c}finally{Oo(s)}}function Qc(t,n,e){const i=t+Ut,o=Le(),r=gc(o,i);return function sh(t,n){return t[tt].data[n].pure}(o,i)?pA(o,wo(),n,r.transform,e,r):r.transform(e)}function $v(t,n){return jp(t,n)}let PA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const BA=new Be(""),yg=new Be("");let Qv,Xv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Qv||(function Bz(t){Qv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(Ct),Me(Jv),Me(yg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Jv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Qv?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function uh(t){return!!t&&"function"==typeof t.then}function HA(t){return!!t&&"function"==typeof t.subscribe}const Kv=new Be("");let qv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ne(Kv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(uh(r))e.push(r);else if(HA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ew=new Be("");function $A(t,n){return Array.isArray(n)?n.reduce($A,t):{...t,...n}}let Hr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(jS),this.afterRenderEffectManager=Ne(Ld),this.externalTestViews=new Set,this.beforeRender=new _t,this.afterTick=new _t,this.componentTypes=[],this.components=[],this.isStable=Ne(bs).hasPendingTasks.pipe(Nt(e=>!e)),this._injector=Ne(No)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof xE;if(!this._injector.get(qv).done)throw!o&&function cs(t){const n=un(t)||Ni(t)||Qi(t);return null!==n&&n.standalone}(e),new N(405,!1);let a;a=o?e:this._injector.get(sl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Hz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(cl),c=a.create(di.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),_g(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new N(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===fE)throw new N(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)zz(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;_g(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(ew,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>_g(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _g(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function zz(t,n,e){!n&&!tw(t)||function $z(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Lp(t,n,i)}(t,e,n)}function tw(t){return ky(t)}class Vz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let VA=(()=>{class t{compileModuleSync(e){return new fv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=qo(so(e).declarations).reduce((a,s)=>{const l=un(s);return l&&a.push(new Hd(l)),a},[]);return new Vz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uz=(()=>{class t{constructor(){this.zone=Ne(Ct),this.applicationRef=Ne(Hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Wz(){const t=Ne(Ct),n=Ne(Qo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Jz=(()=>{class t{constructor(){this.subscription=new me,this.initialized=!1,this.zone=Ne(Ct),this.pendingTasks=Ne(bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const pa=new Be("",{providedIn:"root",factory:()=>Ne(pa,fn.Optional|fn.SkipSelf)||function Qz(){return typeof $localize<"u"&&$localize.locale||Wc}()}),nw=new Be("");let WA=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function GB(t="zone.js",n){return"noop"===t?new AE:"zone.js"===t?new Ct(n):t}(i?.ngZone,function UA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function B6(t,n,e){return new hv(t,n,e)}(e.moduleType,this.injector,function GA(t){return[{provide:Ct,useFactory:t},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Uz,{optional:!0});return()=>n.initialize()}},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Jz);return()=>{n.initialize()}}},{provide:jS,useFactory:Wz}]}(()=>o)),a=r.injector.get(Qo,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{_g(this._modules,r),s.unsubscribe()})}),function zA(t,n,e){try{const i=e();return uh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(qv);return s.runInitializers(),s.donePromise.then(()=>(function gM(t){"string"==typeof t&&(pM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(pa,Wc)||Wc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=$A({},i);return function Gz(t,n,e){const i=new fv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Hr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new N(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(di))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ss=null;const XA=new Be("");function JA(t,n,e=[]){const i=`Platform: ${n}`,o=new Be(i);return(r=[])=>{let a=iw();if(!a||a.injector.get(XA,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function e$(t){if(Ss&&!Ss.get(XA,!1))throw new N(400,!1);(function YA(){!function _(t){Z=t}(()=>{throw new N(600,!1)})})(),Ss=t;const n=t.get(WA);(function KA(t){t.get(aD,null)?.forEach(e=>e())})(t)}(function QA(t=[],n){return di.create({name:n,providers:[{provide:my,useValue:"platform"},{provide:nw,useValue:new Set([()=>Ss=null])},...t]})}(s,i))}return function t$(t){const n=iw();if(!n)throw new N(401,!1);return n}()}}function iw(){return Ss?.get(WA)??null}let Ti=(()=>{class t{static{this.__NG_ELEMENT_ID__=i$}}return t})();function i$(t){return function o$(t,n,e){if(tl(t)&&!e){const i=Jo(t.index,n);return new Od(i,i)}return 47&t.type?new Od(n[ui],n):null}(Nn(),Le(),16==(16&t))}class nk{constructor(){}supports(n){return Jp(n)}create(n){return new u$(n)}}const c$=(t,n)=>n;class u${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||c$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new d$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new ik),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ik),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class d${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class h${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ik{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new h$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ok(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new p$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class p${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ak(){return new lw([new nk])}let lw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:ak})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ak()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new N(901,!1)}}return t})();function sk(){return new xg([new rk])}let xg=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:sk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||sk()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new N(901,!1)}}return t})();const b$=JA(null,"core",[]);let y$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Hr))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function Yt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Ds(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Ak(t){const n=j(null);try{return t()}finally{j(n)}}let kk=null;function ja(){return kk}class tV{}const Kt=new Be("");let dw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(iV),providedIn:"platform"})}}return t})();const nV=new Be("");let iV=(()=>{class t extends dw{constructor(){super(),this._doc=Ne(Kt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function hw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Ik(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ba(t){return t&&"?"!==t[0]?"?"+t:t}let ml=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Rk),providedIn:"root"})}}return t})();const Ok=new Be("");let Rk=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(Kt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return hw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ba(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oV=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=hw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),bl=(()=>{class t{constructor(e){this._subject=new Lt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function sV(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Ik(Pk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ba(i))}normalize(e){return t.stripTrailingSlash(function aV(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Pk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=Ba}static{this.joinWithSlash=hw}static{this.stripTrailingSlash=Ik}static{this.\u0275fac=function(i){return new(i||t)(Me(ml))}}static{this.\u0275prov=$e({token:t,factory:()=>function rV(){return new bl(Me(ml))}(),providedIn:"root"})}}return t})();function Pk(t){return t.replace(/\/index.html$/,"")}function $k(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Cw=/\s+/,Vk=[];let Zk=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=Vk,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cw):Vk}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Cw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Ye.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class GV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new GV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),Uk(s,o)}});for(let o=0,r=i.length;o{Uk(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo),ie(lw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Uk(t,n){t.context.$implicit=n.item}let Es=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new UV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wk("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wk("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class UV{constructor(){this.$implicit=null,this.ngIf=null}}function Wk(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(n)}'.`)}let Jk=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:ps.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(xg),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Hg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(ie(jo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zi]})}}return t})();class KV{createSubscription(n,e){return Ak(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Ak(()=>n.unsubscribe())}}class qV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const e9=new qV,t9=new KV;let Ew=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(uh(e))return e9;if(HA(e))return t9;throw function zr(t,n){return new N(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(ie(Ti,16))}}static{this.\u0275pipe=Po({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),yl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const Kk="browser";function qk(t){return t===Kk}function eI(t){return"server"===t}let C9=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>qk(Ne(Pa))?new x9(Ne(Kt),window):new D9})}}return t})();class x9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function S9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class D9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class tI{}class q9 extends tV{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kw extends q9{static makeCurrent(){!function eV(t){kk??=t}(new kw)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).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"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function eZ(){return mh=mh||document.querySelector("base"),mh?mh.getAttribute("href"):null}();return null==e?null:function tZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){mh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return $k(document.cookie,n)}}let mh=null,iZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Iw=new Be("");let uI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Iw),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class dI{constructor(n){this._doc=n}}const Ow="ng-app-id";let hI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Ow}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Ow),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ow,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(mp),Me(e_,8),Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Rw={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/MathML/"},Pw=/%COMP%/g,sZ=new Be("",{providedIn:"root",factory:()=>!0});function pI(t,n){return n.map(e=>e.replace(Pw,t))}let Nw=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eI(s),this.defaultRenderer=new Fw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Or.ShadowDom&&(i={...i,encapsulation:Or.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof mI?o.applyToHost(e):o instanceof Lw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Or.Emulated:r=new mI(l,c,i,this.appId,u,a,s,d);break;case Or.ShadowDom:return new dZ(l,c,e,i,a,s,this.nonce,d);default:r=new Lw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(uI),Me(hI),Me(mp),Me(sZ),Me(Kt),Me(Pa),Me(Ct),Me(e_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Fw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Rw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(gI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(gI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new N(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Rw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Rw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(ps.DashCase|ps.Important)?n.style.setProperty(e,i,o&ps.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ps.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=ja().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function gI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class dZ extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=pI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Lw extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?pI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mI extends Lw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function lZ(t){return"_ngcontent-%COMP%".replace(Pw,t)}(c),this.hostAttr=function cZ(t){return"_nghost-%COMP%".replace(Pw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let hZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const bI=["alt","control","meta","shift"],fZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let gZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ja().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),bI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=fZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),bI.forEach(a=>{a!==o&&(0,pZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const _I=[{provide:Pa,useValue:Kk},{provide:aD,useValue:function mZ(){kw.makeCurrent()},multi:!0},{provide:Kt,useFactory:function yZ(){return function h5(t){qy=t}(document),document},deps:[]}],_Z=JA(b$,"browser",_I),vZ=new Be(""),vI=[{provide:yg,useClass:class nZ{addToWindow(n){nn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new N(5103,!1);return r},nn.getAllAngularTestabilities=()=>n.getAllTestabilities(),nn.getAllAngularRootElements=()=>n.getAllRootElements(),nn.frameworkStabilizers||(nn.frameworkStabilizers=[]),nn.frameworkStabilizers.push(i=>{const o=nn.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ja().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Xv,deps:[Ct,Jv,yg]},{provide:Xv,useClass:Xv,deps:[Ct,Jv,yg]}],wI=[{provide:my,useValue:"root"},{provide:Qo,useFactory:function bZ(){return new Qo},deps:[]},{provide:Iw,useClass:hZ,multi:!0,deps:[Kt,Ct,Pa]},{provide:Iw,useClass:gZ,multi:!0,deps:[Kt]},Nw,hI,uI,{provide:X_,useExisting:Nw},{provide:tI,useClass:iZ,deps:[]},[]];let jw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:mp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(vZ,12))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[...wI,...vI],imports:[yl,y$]})}}return t})(),wZ=(()=>{class t{constructor(e){this._doc=e,this._dom=ja()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return CZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const CZ={httpEquiv:"http-equiv"};let CI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$g=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(EZ),o},providedIn:"root"})}}return t})(),EZ=(()=>{class t extends $g{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Gi.NONE:return i;case Gi.HTML:return la(i,"HTML")?Ko(i):DD(this._doc,String(i)).toString();case Gi.STYLE:return la(i,"Style")?Ko(i):i;case Gi.SCRIPT:if(la(i,"Script"))return Ko(i);throw new N(5200,!1);case Gi.URL:return la(i,"URL")?Ko(i):Dp(String(i));case Gi.RESOURCE_URL:if(la(i,"ResourceURL"))return Ko(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(e){return function R5(t){return new T5(t)}(e)}bypassSecurityTrustStyle(e){return function P5(t){return new M5(t)}(e)}bypassSecurityTrustScript(e){return function N5(t){return new A5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new k5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function L5(t){return new I5(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zt||{});const za="*";function _l(t,n){return{type:zt.Trigger,name:t,definitions:n,options:{}}}function $a(t,n=null){return{type:zt.Animate,styles:n,timings:t}}function Vg(t,n=null){return{type:zt.Group,steps:t,options:n}}function ki(t){return{type:zt.Style,styles:t,offset:null}}function nr(t,n,e){return{type:zt.State,name:t,styles:n,options:e}}function ga(t,n,e=null){return{type:zt.Transition,expr:t,animation:n,options:e}}function yh(t=null){return{type:zt.AnimateChild,options:t}}function _h(t,n,e=null){return{type:zt.Query,selector:t,animation:n,options:e}}class vh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class EI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const TI=["toast-component",""];function IZ(t,n){if(1&t){const e=On();_e(0,"button",5),xt("click",function(){return Xt(e),Jt(lt().remove())}),_e(1,"span",6),mn(2,"\xd7"),ve()()}}function OZ(t,n){if(1&t&&(Wd(0),mn(1),Xd()),2&t){const e=lt(2);Fe(),gr("[",e.duplicatesCount+1,"]")}}function RZ(t,n){if(1&t&&(_e(0,"div"),mn(1),kt(2,OZ,2,1,"ng-container",4),ve()),2&t){const e=lt();qi(e.options.titleClass),ln("aria-label",e.title),Fe(),gr(" ",e.title," "),Fe(),Ke("ngIf",e.duplicatesCount)}}function PZ(t,n){if(1&t&&dt(0,"div",7),2&t){const e=lt();qi(e.options.messageClass),Ke("innerHTML",e.message,b_)}}function NZ(t,n){if(1&t&&(_e(0,"div",8),mn(1),ve()),2&t){const e=lt();qi(e.options.messageClass),ln("aria-label",e.message),Fe(),gr(" ",e.message," ")}}function FZ(t,n){if(1&t&&(_e(0,"div"),dt(1,"div",9),ve()),2&t){const e=lt();Fe(),vs("width",e.width+"%")}}class $Z{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class VZ{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class ZZ{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _t;_activate=new _t;_manualClose=new _t;_resetTimeout=new _t;_countDuplicate=new _t;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Zg{toastId;config;message;title;toastType;toastRef;_onTap=new _t;_onAction=new _t;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const AI=new Be("ToastConfig");class GZ extends VZ{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let UZ=(()=>{class t{_document=Ne(Kt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class WZ{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let XZ=(()=>{class t{_overlayContainer=Ne(UZ);_componentFactoryResolver=Ne(sl);_appRef=Ne(Hr);_document=Ne(Kt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new GZ(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new WZ(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Gi.HTML,i));const u=new ZZ(l),d=new Zg(this.index,r,c,o,e,u),p=di.create({providers:[{provide:Zg,useValue:d}],parent:this._injector}),g=new $Z(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(AI),Me(XZ),Me(di),Me($g),Me(Ct))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const JZ={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(ie(vl),ie(Zg),ie(Ct))};static \u0275cmp=gn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&xt("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Pv("@flyInOut",o.state),qi(o.toastClasses),vs("display",o.displayStyle))},standalone:!0,features:[ii],attrs:TI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&kt(0,IZ,3,0,"button",0)(1,RZ,3,5,"div",1)(2,PZ,1,3,"div",2)(3,NZ,2,4,"div",3)(4,FZ,2,2,"div",4),2&i&&(Ke("ngIf",o.options.closeButton),Fe(),Ke("ngIf",o.title),Fe(),Ke("ngIf",o.message&&o.options.enableHtml),Fe(),Ke("ngIf",o.message&&!o.options.enableHtml),Fe(),Ke("ngIf",o.options.progressBar))},dependencies:[Es],encapsulation:2,data:{animation:[_l("flyInOut",[nr("inactive",ki({opacity:0})),nr("active",ki({opacity:1})),nr("removed",ki({opacity:0})),ga("inactive => active",$a("{{ easeTime }}ms {{ easing }}")),ga("active => removed",$a("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},QZ=(t={})=>sc([{provide:AI,useValue:{default:JZ,config:t}}]);let KZ=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[QZ(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=on({type:t});static \u0275inj=qt({})}return t})();function kI(t){return t&&Ae(t.schedule)}function Hw(t){return t[t.length-1]}function II(t){return Ae(Hw(t))?t.pop():void 0}function wh(t){return kI(Hw(t))?t.pop():void 0}function Ts(t){return this instanceof Ts?(this.v=t,this):new Ts(t)}function LI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Vw(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Zw=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function jI(t){return Ae(t?.then)}function BI(t){return Ae(t[kr])}function HI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function YI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zI=function _G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $I(t){return Ae(t?.[zI])}function VI(t){return function FI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Ts(e.read());if(o)return yield Ts(void 0);yield yield Ts(i)}}finally{e.releaseLock()}})}function ZI(t){return Ae(t?.getReader)}function po(t){if(t instanceof _n)return t;if(null!=t){if(BI(t))return function vG(t){return new _n(n=>{const e=t[kr]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Zw(t))return function wG(t){return new _n(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,et)})}(t);if(HI(t))return GI(t);if($I(t))return function xG(t){return new _n(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ZI(t))return function SG(t){return GI(VI(t))}(t)}throw YI(t)}function GI(t){return new _n(n=>{(function DG(t,n){var e,i,o,r;return function PI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=LI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Va(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function UI(t,n=0){return ni((e,i)=>{e.subscribe(Pn(i,o=>Va(i,t,()=>i.next(o),n),()=>Va(i,t,()=>i.complete(),n),o=>Va(i,t,()=>i.error(o),n)))})}function WI(t,n=0){return ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function XI(t,n){if(!t)throw new Error("Iterable cannot be null");return new _n(e=>{Va(e,n,()=>{const i=t[Symbol.asyncIterator]();Va(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hi(t,n){return n?function IG(t,n){if(null!=t){if(BI(t))return function EG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(Zw(t))return function MG(t,n){return new _n(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(jI(t))return function TG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(HI(t))return XI(t,n);if($I(t))return function AG(t,n){return new _n(e=>{let i;return Va(e,n,()=>{i=t[zI](),Va(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(ZI(t))return function kG(t,n){return XI(VI(t),n)}(t,n)}throw YI(t)}(t,n):po(t)}function Tt(...t){return hi(t,wh(t))}function no(t,n,e=1/0){return Ae(n)?no((i,o)=>Nt((r,a)=>n(i,r,o,a))(po(t(i,o))),e):("number"==typeof n&&(e=n),ni((i,o)=>function OG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;po(e(b,u++)).subscribe(Pn(n,S=>{o?.(S),r?p(S):n.next(S)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(S)):g(S)}h()}catch(S){n.error(S)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function nu(t,n){return Ae(n)?no(t,n,1):no(t,1)}function Ii(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function wl(t){return ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Wi(t,n){return ni((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;po(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Gg{}class Ug{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new yr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class RG{encodeKey(n){return JI(n)}encodeValue(n){return JI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const NG=/%(\d[a-f0-9])/gi,FG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function JI(t){return encodeURIComponent(t).replace(NG,(n,e)=>FG[e]??n)}function Wg(t){return`${t}`}class Ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function PG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Wg):[Wg(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ms({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Wg(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Wg(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class LG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function QI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function KI(t){return typeof Blob<"u"&&t instanceof Blob}function qI(t){return typeof FormData<"u"&&t instanceof FormData}class Ch{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function jG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new yr,this.context??=new LG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Ch(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var As=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(As||{});class Gw{constructor(n,e=xh.Ok,i="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xg extends Gw{constructor(n={}){super(n),this.type=As.ResponseHeader}clone(n={}){return new Xg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cl extends Gw{constructor(n={}){super(n),this.type=As.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Cl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Za extends Gw{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var xh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(xh||{});function Uw(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let iu=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Ch)r=e;else{let l,c;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(c=o.params instanceof Ms?o.params:new Ms({fromObject:o.params})),r=new Ch(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Tt(r).pipe(nu(l=>this.handler.handle(l)));if(e instanceof Ch||"events"===o.observe)return a;const s=a.pipe(Ii(l=>l instanceof Cl));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Nt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Nt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Uw(o,i))}post(e,i,o={}){return this.request("POST",e,Uw(o,i))}put(e,i,o={}){return this.request("PUT",e,Uw(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Gg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function t2(t,n){return n(t)}function VG(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const GG=new Be(""),Sh=new Be(""),n2=new Be(""),o2=new Be("");function UG(){let t=null;return(n,e)=>{null===t&&(t=(Ne(GG,{optional:!0})??[]).reduceRight(VG,t2));const i=Ne(bs),o=i.add();return t(n,e).pipe(wl(()=>i.remove(o)))}}let r2=(()=>{class t extends Gg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ne(bs);const o=Ne(o2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Sh),...this.injector.get(n2,[])]));this.chain=o.reduceRight((r,a)=>function ZG(t,n,e){return(i,o)=>ea(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),t2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(wl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ug),Me(No))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const KG=/^\)\]\}',?\n/;let s2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new N(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?hi(i.\u0275loadImpl()):Tt(null)).pipe(Wi(()=>new _n(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new yr(a.getAllResponseHeaders()),S=function qG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new Xg({headers:T,status:a.status,statusText:b,url:S}),l},u=()=>{let{headers:b,status:T,statusText:S,url:H}=c(),re=null;T!==xh.NoContent&&(re=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=re?xh.Ok:0);let ce=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof re){const G=re;re=re.replace(KG,"");try{re=""!==re?JSON.parse(re):null}catch(pe){re=G,ce&&(ce=!1,re={error:pe,text:re})}}ce?(r.next(new Cl({body:re,headers:b,status:T,statusText:S,url:H||void 0})),r.complete()):r.error(new Za({error:re,headers:b,status:T,statusText:S,url:H||void 0}))},d=b=>{const{url:T}=c(),S=new Za({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(S)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:As.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:As.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:As.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(tI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Jw=new Be(""),l2=new Be("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),c2=new Be("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class u2{}let nU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(Pa),Me(l2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function iU(t,n){const e=t.url.toLowerCase();if(!Ne(Jw)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ne(u2).getToken(),o=Ne(c2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ks=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ks||{});function xl(t,n){return{\u0275kind:t,\u0275providers:n}}function oU(...t){const n=[iu,s2,r2,{provide:Gg,useExisting:r2},{provide:Ug,useExisting:s2},{provide:Sh,useValue:iU,multi:!0},{provide:Jw,useValue:!0},{provide:u2,useClass:nU}];for(const e of t)n.push(...e.\u0275providers);return sc(n)}const d2=new Be("");let aU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[oU(xl(ks.LegacyInterceptors,[{provide:d2,useFactory:UG},{provide:Sh,useExisting:d2,multi:!0}]))]})}}return t})();const{isArray:hU}=Array,{getPrototypeOf:fU,prototype:pU,keys:gU}=Object;function y2(t){if(1===t.length){const n=t[0];if(hU(n))return{args:n,keys:null};if(function mU(t){return t&&"object"==typeof t&&fU(t)===pU}(n)){const e=gU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:bU}=Array;function Qw(t){return Nt(n=>function yU(t,n){return bU(n)?t(...n):t(n)}(t,n))}function _2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Dh(...t){const n=II(t),{args:e,keys:i}=y2(t),o=new _n(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?_2(i,s):s),r.complete())}))}});return n?o.pipe(Qw(n)):o}let v2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Sl=(()=>{class t extends v2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[rn]})}}return t})();const ir=new Be(""),vU={provide:ir,useExisting:Sn(()=>Eh),multi:!0},CU=new Be("");let Eh=(()=>{class t extends v2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wU(){const t=ja()?ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt),ie(CU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&xt("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Cn([vU]),rn]})}}return t})();function Is(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function C2(t){return null!=t&&"number"==typeof t.length}const Xi=new Be(""),Os=new Be(""),xU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rs{static min(n){return function x2(t){return n=>{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return D2(n)}static requiredTrue(n){return function E2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function T2(t){return Is(t.value)||xU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function M2(t){return n=>Is(n.value)||!C2(n.value)?null:n.value.lengthC2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function k2(t){if(!t)return Qg;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Is(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return F2(n)}static composeAsync(n){return L2(n)}}function D2(t){return Is(t.value)?{required:!0}:null}function Qg(t){return null}function I2(t){return null!=t}function O2(t){return uh(t)?hi(t):t}function R2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function P2(t,n){return n.map(e=>e(t))}function N2(t){return t.map(n=>function SU(t){return!t.validate}(n)?n:e=>n.validate(e))}function F2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return R2(P2(e,n))}}function Kw(t){return null!=t?F2(N2(t)):null}function L2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return Dh(P2(e,n).map(O2)).pipe(Nt(R2))}}function qw(t){return null!=t?L2(N2(t)):null}function j2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function B2(t){return t._rawValidators}function H2(t){return t._rawAsyncValidators}function e0(t){return t?Array.isArray(t)?t:[t]:[]}function Kg(t,n){return Array.isArray(t)?t.includes(n):t===n}function Y2(t,n){const e=e0(n);return e0(t).forEach(o=>{Kg(e,o)||e.push(o)}),e}function z2(t,n){return e0(n).filter(e=>!Kg(t,e))}class $2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Kw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=qw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Mo extends $2{get formDirective(){return null}get path(){return null}}class ma extends $2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class V2{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qg=(()=>{class t extends V2{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(ma,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&dn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[rn]})}}return t})();const Th="VALID",tm="INVALID",ou="PENDING",Mh="DISABLED";function o0(t){return(nm(t)?t.validators:t)||null}function r0(t,n){return(nm(n)?n.asyncValidators:t)||null}function nm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function G2(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new N(1e3,"");if(!i[e])throw new N(1001,"")}function U2(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new N(1002,"")})}class im{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Th}get invalid(){return this.status===tm}get pending(){return this.status==ou}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Y2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Y2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(z2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(z2(n,this._rawAsyncValidators))}hasValidator(n){return Kg(this._rawValidators,n)}hasAsyncValidator(n){return Kg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ou,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Th,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Th||this.status===ou)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:Th}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ou,this._hasOwnPendingAsyncValidator=!0;const e=O2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Lt,this.statusChanges=new Lt}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?tm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ou)?ou:this._anyControlsHaveStatus(tm)?tm:Th}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){nm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function AU(t){return Array.isArray(t)?Kw(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kU(t){return Array.isArray(t)?qw(t):t||null}(this._rawAsyncValidators)}}class Ah extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){U2(this,0,n),Object.keys(n).forEach(i=>{G2(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class W2 extends Ah{}const Dl=new Be("CallSetDisabledState",{providedIn:"root",factory:()=>kh}),kh="always";function Ih(t,n,e=kh){a0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function OU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X2(t,n)})}(t,n),function PU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function RU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X2(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function IU(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function rm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),sm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function am(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function a0(t,n){const e=B2(t);null!==n.validator?t.setValidators(j2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=H2(t);null!==n.asyncValidator?t.setAsyncValidators(j2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();am(n._rawValidators,o),am(n._rawAsyncValidators,o)}function sm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=B2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=H2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return am(n._rawValidators,i),am(n._rawAsyncValidators,i),e}function X2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J2(t,n){a0(t,n)}function l0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Q2(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function c0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Eh?e=r:function LU(t){return Object.getPrototypeOf(t.constructor)===Sl}(r)?i=r:o=r}),o||i||e||null}const BU={provide:Mo,useExisting:Sn(()=>Rh)},Oh=(()=>Promise.resolve())();let Rh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Lt,this.form=new Ah({},Kw(e),qw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Oh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ih(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path),o=new Ah({});J2(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Oh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Q2(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Ye.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([BU]),rn]})}}return t})();function K2(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function q2(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const $r=class extends im{constructor(n=null,e,i){super(o0(e),r0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),nm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=q2(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){K2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){K2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){q2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},zU={provide:ma,useExisting:Sn(()=>Ph)},nO=(()=>Promise.resolve())();let Ph=(()=>{class t extends ma{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new $r,this._registered=!1,this.name="",this.update=new Lt,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=c0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),l0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ih(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){nO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Yt(i);nO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function om(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(ie(Mo,9),ie(Xi,10),ie(Os,10),ie(ir,10),ie(Ti,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Cn([zU]),rn,Zi]})}}return t})();const u0=new Be(""),WU={provide:ma,useExisting:Sn(()=>d0)};let d0=(()=>{class t extends ma{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Lt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=c0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&rm(i,this,!1),Ih(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}l0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(ir,10),ie(u0,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Ye.None,"formControl","form"],isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Cn([WU]),rn,Zi]})}}return t})();const XU={provide:Mo,useExisting:Sn(()=>Nh)};let Nh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Lt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ih(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){rm(e.control||null,e,!1),function jU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Q2(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(rm(i||null,e),(t=>t instanceof $r)(o)&&(Ih(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);J2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function NU(t,n){return sm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a0(this.form,this),this._oldForm&&sm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Ye.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([XU]),rn,Zi]})}}return t})(),El=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Zi]})}}return t})();const sW={provide:Xi,useExisting:Sn(()=>lm),multi:!0};let lm=(()=>{class t extends El{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Yt,this.createValidator=e=>D2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&ln("required",o._enabled?"":null)},inputs:{required:"required"},features:[Cn([sW]),rn]})}}return t})(),yO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();class _O extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){U2(this,0,n),n.forEach((i,o)=>{G2(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function vO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return vO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Ah(o,r)}record(e,i=null){const o=this._reduceControls(e);return new W2(o,i)}control(e,i,o){let r={};return this.useNonNullable?(vO(i)?r=i:(r.validators=i,r.asyncValidators=o),new $r(e,{...r,nonNullable:!0})):new $r(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new _O(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof $r||e instanceof im?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),CO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})(),fW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})();function xO(t){return new N(3e3,!1)}function Ps(t){switch(t.length){case 0:return new vh;case 1:return t[0];default:return new EI(t)}}function SO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case za:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function FW(t){return new N(3502,!1)}();return r}function b0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&y0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&y0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&y0(e,"destroy",t)))}}function y0(t,n,e){const r=_0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function _0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function or(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function DO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const WW=(()=>typeof document>"u"?null:document.documentElement)();function v0(t){const n=t.parentNode||t.host||null;return n===WW?null:n}let Tl=null,EO=!1;function TO(t,n){for(;n;){if(n===t)return!0;n=v0(n)}return!1}function MO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let w0=(()=>{class t{validateStyleProperty(e){return function JW(t){Tl||(Tl=function QW(){return typeof document<"u"?document.body:null}()||{},EO=!!Tl.style&&"WebkitAppearance"in Tl.style);let n=!0;return Tl.style&&!function XW(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Tl.style,!n&&EO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return TO(e,i)}getParentElement(e){return v0(e)}query(e,i,o){return MO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new vh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class C0{static{this.NOOP=new w0}}class x0{}const qW=1e3,S0="ng-enter",cm="ng-leave",um="ng-trigger",dm=".ng-trigger",kO="ng-animating",D0=".ng-animating";function Ga(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:E0(parseFloat(n[1]),n[2])}function E0(t,n){return"s"===n?t*qW:t}function hm(t,n,e){return t.hasOwnProperty("duration")?t:function tX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(xO()),{duration:0,delay:0,easing:""};o=E0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=E0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function pW(){return new N(3100,!1)}()),s=!0),r<0&&(n.push(function gW(){return new N(3101,!1)}()),s=!0),s&&n.splice(l,0,xO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function ba(t,n,e){n.forEach((i,o)=>{const r=M0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ml(t,n){n.forEach((e,i)=>{const o=M0(i);t.style[o]=""})}function Fh(t){return Array.isArray(t)?1==t.length?t[0]:function TZ(t,n=null){return{type:zt.Sequence,steps:t,options:n}}(t):t}const T0=new RegExp("{{\\s*(.+?)\\s*}}","g");function OO(t){let n=[];if("string"==typeof t){let e;for(;e=T0.exec(t);)n.push(e[1]);T0.lastIndex=0}return n}function Lh(t,n,e){const i=`${t}`,o=i.replace(T0,(r,a)=>{let s=n[a];return null==s&&(e.push(function bW(t){return new N(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const oX=/-+([a-z0-9])/g;function M0(t){return t.replace(oX,(...n)=>n[1].toUpperCase())}function rr(t,n,e){switch(n.type){case zt.Trigger:return t.visitTrigger(n,e);case zt.State:return t.visitState(n,e);case zt.Transition:return t.visitTransition(n,e);case zt.Sequence:return t.visitSequence(n,e);case zt.Group:return t.visitGroup(n,e);case zt.Animate:return t.visitAnimate(n,e);case zt.Keyframes:return t.visitKeyframes(n,e);case zt.Style:return t.visitStyle(n,e);case zt.Reference:return t.visitReference(n,e);case zt.AnimateChild:return t.visitAnimateChild(n,e);case zt.AnimateRef:return t.visitAnimateRef(n,e);case zt.Query:return t.visitQuery(n,e);case zt.Stagger:return t.visitStagger(n,e);default:throw function yW(t){return new N(3004,!1)}()}}function A0(t,n){return window.getComputedStyle(t)[n]}const sX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RO extends x0{normalizePropertyName(n,e){return M0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(sX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function _W(t,n){return new N(3005,!1)}())}return a+r}}const fm="*";const pm=new Set(["true","1"]),gm=new Set(["false","0"]);function PO(t,n){const e=pm.has(t)||gm.has(t),i=pm.has(n)||gm.has(n);return(o,r)=>{let a=t==fm||t==o,s=n==fm||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?pm.has(t):gm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?pm.has(n):gm.has(n)),a&&s}}const dX=new RegExp("s*:selfs*,?","g");function k0(t,n,e,i){return new hX(t).build(n,e,i)}class hX{constructor(n){this._driver=n}build(n,e,i){const o=new gX(e);return this._resetContextStyleTimingState(o),rr(this,Fh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function vW(){return new N(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==zt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==zt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function wW(){return new N(3007,!1)}())}),{type:zt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{OO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function CW(t,n){return new N(3008,!1)}(0,r.values()))}return{type:zt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=rr(this,Fh(n.animation),e),o=function lX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function cX(t,n,e){if(":"==t[0]){const l=function uX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function IW(t){return new N(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(PO(o,a)),"<"==r[0]&&(o!=fm||a!=fm)&&n.push(PO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:zt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Al(n.options)}}visitSequence(n,e){return{type:zt.Sequence,steps:n.steps.map(i=>rr(this,i,e)),options:Al(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=rr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:zt.Group,steps:r,options:Al(n.options)}}visitAnimate(n,e){const i=function bX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return I0(hm(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=I0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=hm(e,n);return I0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ki({});if(r.type==zt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=ki(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:zt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===za?i.push(s):e.errors.push(new N(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:zt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function SW(t,n,e,i,o){return new N(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function iX(t,n,e){const i=n.params||{},o=OO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function mW(t){return new N(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:zt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new N(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(S=>{const H=this._makeStyleAst(S,e);let re=null!=H.offset?H.offset:function mX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),ce=0;return null!=re&&(r++,ce=H.offset=re),l=l||ce<0||ce>1,s=s||ce0&&r{const re=h>0?H==p?1:h*H:a[H],ce=re*T;e.currentTime=g+b.delay+ce,b.duration=ce,this._validateStyleAst(S,e),S.offset=re,i.styles.push(S)}),i}visitReference(n,e){return{type:zt.Reference,animation:rr(this,Fh(n.animation),e),options:Al(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:zt.AnimateChild,options:Al(n.options)}}visitAnimateRef(n,e){return{type:zt.AnimateRef,animation:this.visitReference(n.animation,e),options:Al(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function fX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(dX,"")),t=t.replace(/@\*/g,dm).replace(/@\w+/g,e=>dm+"-"+e.slice(1)).replace(/:animating/g,D0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,or(e.collectedStyles,e.currentQuerySelector,new Map);const s=rr(this,Fh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:zt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Al(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function AW(){return new N(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:hm(n.timings,e.errors,!0);return{type:zt.Stagger,animation:rr(this,Fh(n.animation),e),timings:i,options:null}}}class gX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Al(t){return t?(t={...t}).params&&(t.params=function pX(t){return t?{...t}:null}(t.params)):t={},t}function I0(t,n,e){return{duration:t,delay:n,easing:e}}function O0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class mm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const vX=new RegExp(":enter","g"),CX=new RegExp(":leave","g");function R0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new xX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class xX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new mm;const d=new P0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ga(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),rr(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[O0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ga(Lh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ga(i.duration):null,s=null!=i.delay?Ga(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),rr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==zt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=bm);const a=Ga(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>rr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ga(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),rr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return hm(e.params?Lh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==zt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ga(o.delay):0;r&&(e.previousNode.type===zt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),rr(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;rr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const bm={};class P0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ym(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ga(i.duration)),null!=i.delay&&(o.delay=Ga(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Lh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new P0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=bm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new SX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(vX,"."+this._enterClassName)).replace(CX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function kW(t){return new N(3014,!1)}()),s}}class ym{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ym(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||za),this._currentKeyframe.set(e,za);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function DX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,za)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Lh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??za),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===za&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return O0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class SX extends ym{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",LO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",LO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return O0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function LO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function jO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const N0={};class BO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function EX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||N0,g=this.buildStyles(i,s&&s.params||N0,d),b=l&&l.params||N0,T=this.buildStyles(o,b,d),S=new Set,H=new Map,re=new Map,ce="void"===o,G={params:HO(b,h),delay:this.ast.options?.delay},pe=u?[]:R0(n,e,this.ast.animation,r,a,g,T,G,c,d);let ye=0;return pe.forEach(be=>{ye=Math.max(be.duration+be.delay,ye)}),d.length?jO(e,this._triggerName,i,o,ce,g,T,[],[],H,re,ye,d):(pe.forEach(be=>{const Pe=be.element,je=or(H,Pe,new Set);be.preStyleProps.forEach(Re=>je.add(Re));const Xe=or(re,Pe,new Set);be.postStyleProps.forEach(Re=>Xe.add(Re)),Pe!==e&&S.add(Pe)}),jO(e,this._triggerName,i,o,ce,g,T,pe,[...S.values()],H,re,ye))}}function HO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class TX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=HO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Lh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class AX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new TX(o.style,o.options&&o.options.params||{},i))}),YO(this.states,"true","1"),YO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new BO(n,o,this.states))}),this.fallbackTransition=function kX(t,n,e){return new BO(t,{type:zt.Transition,animation:{type:zt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function YO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const IX=new mm;class OX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=k0(this._driver,e,i,[]);if(i.length)throw function LW(t){return new N(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=SO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=R0(this._driver,e,r,S0,cm,new Map,new Map,i,IX,o),a.forEach(u=>{const d=or(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function jW(){return new N(3300,!1)}()),a=[]),o.length)throw function BW(t){return new N(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,za))})});const c=Ps(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function HW(t){return new N(3301,!1)}();return e}listen(n,e,i,o){const r=_0(e,"","","");return b0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const zO="ng-animate-queued",F0="ng-animate-disabled",LX=[],$O={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vr="__ng_removed";class L0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function zX(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const jh="void",j0=new L0(jh);class BX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,_r(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YW(t,n){return new N(3302,!1)}();if(null==i||0==i.length)throw function zW(t){return new N(3303,!1)}();if(!function $X(t){return"start"==t||"done"==t}(i))throw function $W(t,n){return new N(3400,!1)}();const r=or(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=or(this._engine.statesByElement,n,new Map);return s.has(e)||(_r(n,um),_r(n,um+"-"+e),s.set(e,j0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function VW(t){return new N(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new B0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(_r(n,um),_r(n,um+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new L0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=j0),c.value!==jh&&l.value===c.value){if(!function GX(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ml(n,T),ba(n,S)})}return}const h=or(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(_r(n,zO),a.onStart(()=>{ru(n,zO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let S=T.indexOf(a);S>=0&&T.splice(S,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,dm,!0);i.forEach(o=>{if(o[Vr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,jh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Ps(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||j0,u=new L0(jh),d=new B0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Vr];(!r||r===$O)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){_r(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=_0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,b0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class HX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new BX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(_m(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!_m(e))return;const r=e[Vr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),_r(n,F0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ru(n,F0))}removeNode(n,e,i){if(_m(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Vr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return _m(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,dm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,D0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ps(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Vr];if(e&&e.setForRemoval){if(n[Vr]=$O,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(F0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ps(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function ZW(t){return new N(3402,!1)}()}_flushAnimations(n,e){const i=new mm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const He=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=S0+b++;g.set(He,We),Se.forEach(nt=>_r(nt,We))});const T=[],S=new Set,H=new Set;for(let Se=0;SeS.add(nt)):H.add(He))}const re=new Map,ce=GO(h,Array.from(S));ce.forEach((Se,He)=>{const We=cm+b++;re.set(He,We),Se.forEach(nt=>_r(nt,We))}),n.push(()=>{p.forEach((Se,He)=>{const We=g.get(He);Se.forEach(nt=>ru(nt,We))}),ce.forEach((Se,He)=>{const We=re.get(He);Se.forEach(nt=>ru(nt,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const nt=We.player,St=We.element;if(G.push(nt),this.collectedEnterElements.length){const Vn=St[Vr];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(We.triggerName)){const ct=Vn.previousTriggersValues.get(We.triggerName),yn=this.statesByElement.get(We.element);if(yn&&yn.has(We.triggerName)){const ro=yn.get(We.triggerName);ro.value=ct,yn.set(We.triggerName,ro)}}return void nt.destroy()}}const Mt=!d||!this.driver.containsElement(d,St),en=re.get(St),Rn=g.get(St),an=this._buildInstruction(We,i,Rn,en,Mt);if(an.errors&&an.errors.length)return void pe.push(an);if(Mt)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);if(We.isFallbackTransition)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);const sn=[];an.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||sn.push(Vn)}),an.timelines=sn,i.append(St,an.timelines),a.push({instruction:an,player:nt,element:St}),an.queriedElements.forEach(Vn=>or(s,Vn,[]).push(nt)),an.preStyleProps.forEach((Vn,ct)=>{if(Vn.size){let yn=l.get(ct);yn||l.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))}}),an.postStyleProps.forEach((Vn,ct)=>{let yn=c.get(ct);yn||c.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))})});if(pe.length){const Se=[];pe.forEach(He=>{Se.push(function GW(t,n){return new N(3505,!1)}())}),G.forEach(He=>He.destroy()),this.reportError(Se)}const ye=new Map,be=new Map;a.forEach(Se=>{const He=Se.element;i.has(He)&&(be.set(He,He),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,ye))}),o.forEach(Se=>{const He=Se.element;this._getPreviousPlayers(He,!1,Se.namespaceId,Se.triggerName,null).forEach(nt=>{or(ye,He,[]).push(nt),nt.destroy()})});const Pe=T.filter(Se=>WO(Se,l,c)),je=new Map;ZO(je,this.driver,H,c,za).forEach(Se=>{WO(Se,l,c)&&Pe.push(Se)});const Re=new Map;p.forEach((Se,He)=>{ZO(Re,this.driver,new Set(Se),l,"!")}),Pe.forEach(Se=>{const He=je.get(Se),We=Re.get(Se);je.set(Se,new Map([...He?.entries()??[],...We?.entries()??[]]))});const Je=[],st=[],ht={};a.forEach(Se=>{const{element:He,player:We,instruction:nt}=Se;if(i.has(He)){if(u.has(He))return We.onDestroy(()=>ba(He,nt.toStyles)),We.disabled=!0,We.overrideTotalTime(nt.totalTime),void o.push(We);let St=ht;if(be.size>1){let en=He;const Rn=[];for(;en=en.parentNode;){const an=be.get(en);if(an){St=an;break}Rn.push(en)}Rn.forEach(an=>be.set(an,St))}const Mt=this._buildAnimation(We.namespaceId,nt,ye,r,Re,je);if(We.setRealPlayer(Mt),St===ht)Je.push(We);else{const en=this.playersByElement.get(St);en&&en.length&&(We.parentPlayer=Ps(en)),o.push(We)}}else Ml(He,nt.fromStyles),We.onDestroy(()=>ba(He,nt.toStyles)),st.push(We),u.has(He)&&o.push(We)}),st.forEach(Se=>{const He=r.get(Se.element);if(He&&He.length){const We=Ps(He);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!Mt.destroyed);St.length?VX(this,He,St):this.processLeaveNode(He)}return T.length=0,Je.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const He=this.players.indexOf(Se);this.players.splice(He,1)}),Se.play()}),Je}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==jh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=or(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ml(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Vr];if(T&&T.removedBeforeQueried)return new vh(g.duration,g.delay);const S=b!==l,H=function ZX(t){const n=[];return UO(t,n),n}((i.get(b)||LX).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===b),re=r.get(b),ce=a.get(b),G=SO(this._normalizer,g.keyframes,re,ce),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),S){const ye=new B0(n,s,b);ye.setRealPlayer(pe),c.push(ye)}return pe});c.forEach(g=>{or(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function YX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>_r(g,kO));const p=Ps(h);return p.onDestroy(()=>{u.forEach(g=>ru(g,kO)),ba(l,e.toStyles)}),d.forEach(g=>{or(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new vh(n.duration,n.delay)}}class B0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new vh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>b0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){or(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function _m(t){return t&&1===t.nodeType}function VO(t,n){const e=t.style.display;return t.style.display=n??"none",e}function ZO(t,n,e,i,o){const r=[];e.forEach(l=>r.push(VO(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Vr]=jX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>VO(l,r[s++])),a}function GO(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function _r(t,n){t.classList?.add(n)}function ru(t,n){t.classList?.remove(n)}function VX(t,n,e){Ps(e).onDone(()=>t.processLeaveNode(n))}function UO(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Bh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new HX(n.body,e,i,o),this._timelineEngine=new OX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=k0(this._driver,r,l,[]);if(l.length)throw function NW(t,n){return new N(3404,!1)}();s=function MX(t,n,e){return new AX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=DO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=DO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Hh{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Hh.initialStylesByElement.get(n);o||Hh.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ba(this._element,this._initialStyles),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Hh.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),ba(this._element,this._initialStyles),this._state=3)}}function H0(t){let n=null;return t.forEach((e,i)=>{(function WX(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class XO{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:A0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class JO{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return TO(n,e)}getParentElement(n){return v0(n)}query(n,e,i){return MO(n,e,i)}computeStyle(n,e,i){return A0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof XO);(function rX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function nX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function aX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,A0(t,s)))}}return n}(n,d,c);const h=function UX(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=H0(n[0]),n.length>1&&(i=H0(n[n.length-1]))):n instanceof Map&&(e=H0(n)),e||i?new Hh(t,e,i):null}(n,d);return new XO(n,d,l,h)}}const QO="@.disabled";class KO{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==QO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class XX extends KO{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function JX(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function QX(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class KX{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new KO("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new XX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let qX=(()=>{class t extends Bh{constructor(e,i,o){super(e,i,o,Ne($p,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(C0),Me(x0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const qO=[{provide:x0,useFactory:function eJ(){return new RO}},{provide:Bh,useClass:qX},{provide:X_,useFactory:function tJ(t,n,e){return new KX(t,n,e)},deps:[Nw,Bh,Ct]}],Y0=[{provide:C0,useFactory:()=>new JO},{provide:Co,useValue:"BrowserAnimations"},...qO],eR=[{provide:C0,useClass:w0},{provide:Co,useValue:"NoopAnimations"},...qO];let z0,nJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?eR:Y0}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:Y0,imports:[jw]})}}return t})();try{z0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{z0=!1}let au,Si=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?qk(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!z0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const tR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nR(){if(au)return au;if("object"!=typeof document||!document)return au=new Set(tR),au;let t=document.createElement("input");return au=new Set(tR.filter(n=>(t.setAttribute("type",n),t.type===n))),au}let Yh,kl,$0;function zh(t){return function iJ(){if(null==Yh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function oJ(){if(null==kl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kl=!1,kl;if("scrollBehavior"in document.documentElement.style)kl=!0;else{const t=Element.prototype.scrollTo;kl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kl}function Cm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ns(t){return t.composedPath?t.composedPath()[0]:t.target}function V0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fs(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Hi(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?ni((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):$i}class vJ extends me{constructor(n,e){super()}schedule(n,e=0){return this}}const Dm={setInterval(t,n,...e){const{delegate:i}=Dm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Dm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class W0 extends vJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Dm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Dm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,te(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const X0={now:()=>(X0.delegate||Date).now(),delegate:void 0};class Vh{constructor(n,e=Vh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Vh.now=X0.now;class J0 extends Vh{constructor(n,e=Vh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Q0=new J0(W0),wJ=Q0;function aR(t,n=Q0){return ni((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const vr=new _n(t=>t.complete());function io(t){return t<=0?()=>vr:ni((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function sR(t){return Ii((n,e)=>t<=e)}function K0(t,n=$i){return t=t??xJ,ni((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function xJ(t,n){return t===n}function In(t){return ni((n,e)=>{po(t).subscribe(Pn(e,()=>e.complete(),At)),!e.closed&&n.subscribe(e)})}let SJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[SJ]})}}return t})();function Em(t){return null!=t&&"false"!=`${t}`}function cR(t,n=0){return function DJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Tm(t){return Array.isArray(t)?t:[t]}function Oi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ls(t){return t instanceof Zt?t.nativeElement:t}function Mm(...t){const n=wh(t),e=II(t),{args:i,keys:o}=y2(t);if(0===i.length)return hi([],n);const r=new _n(function EJ(t,n,e=$i){return i=>{uR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=hi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>_2(o,a):$i));return e?r.pipe(Qw(e)):r}function uR(t,n,e){t?Va(e,t,n):n()}function su(t=1/0){return no($i,t)}function Am(...t){return function TJ(){return su(1)}()(hi(t,wh(t)))}function ya(...t){const n=wh(t);return ni((e,i)=>{(n?Am(t,e,n):Am(t,e)).subscribe(i)})}const dR=new Set;let Il,MJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function AJ(t,n){if(!dR.has(t))try{Il||(Il=document.createElement("style"),n&&(Il.nonce=n),Il.setAttribute("type","text/css"),document.head.appendChild(Il)),Il.sheet&&(Il.sheet.insertRule(`@media ${t} {body{ }}`,0),dR.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(e_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let IJ=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _t}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hR(Tm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Mm(hR(Tm(e)).map(a=>this._registerQuery(a).observable));return r=Am(r.pipe(io(1)),r.pipe(sR(1),aR(0))),r.pipe(Nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new _n(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ya(i),Nt(({matches:a})=>({query:e,matches:a})),In(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(MJ),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function pR(t,n,e){const i=gR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function gR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class mR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _t,this._typeaheadSubscription=me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new _t,this.change=new _t,n instanceof ds&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Hi(e=>this._pressedLetters.push(e)),aR(n),Ii(()=>this._pressedLetters.length>0),Nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof ds?this._items.toArray():this._items}}class NJ extends mR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class FJ extends mR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let q0=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function jJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function LJ(t){try{return t.frameElement}catch{return null}}(function GJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=yR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function VJ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function ZJ(t){return!function HJ(t){return function zJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function BJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function YJ(t){return function $J(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bR(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bR(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(t){if(!bR(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class UJ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(io(1)).subscribe(n)}}let _R=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new UJ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(q0),Me(Ct),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return 0===t.buttons||0===t.detail}function wR(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const WJ=new Be("cdk-input-modality-detector-options"),XJ={ignoreKeys:[18,17,224,91,16]},lu=zh({passive:!0,capture:!0});let JJ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ci(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ns(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vR(a)?"keyboard":"mouse"),this._mostRecentTarget=Ns(a))},this._onTouchstart=a=>{wR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ns(a))},this._options={...XJ,...r},this.modalityDetected=this._modality.pipe(sR(1)),this.modalityChanged=this.modalityDetected.pipe(K0()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,lu),o.addEventListener("mousedown",this._onMousedown,lu),o.addEventListener("touchstart",this._onTouchstart,lu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lu),document.removeEventListener("mousedown",this._onMousedown,lu),document.removeEventListener("touchstart",this._onTouchstart,lu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Ct),Me(Kt),Me(WJ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const QJ=new Be("liveAnnouncerElement",{providedIn:"root",factory:function KJ(){return null}}),qJ=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let eQ=0,tQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _t,this._rootNodeFocusAndBlurListener=s=>{for(let c=Ns(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||km.IMMEDIATE}monitor(e,i=!1){const o=Ls(e);if(!this._platform.isBrowser||1!==o.nodeType)return Tt();const r=function aJ(t){if(function rJ(){if(null==$0){const t=typeof document<"u"?document.head:null;$0=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $0}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new _t,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ls(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ls(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===km.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===km.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Ns(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Im)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Im),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ne(IJ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Rl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Rl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Rl.BLACK_ON_WHITE}return Rl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(eC,xR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Rl.BLACK_ON_WHITE?e.add(eC,xR):i===Rl.WHITE_ON_BLACK&&e.add(eC,SR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(DR))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[lR]})}}return t})();const oQ=new Be("cdk-dir-doc",{providedIn:"root",factory:function rQ(){return Ne(Kt)}}),aQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let js=(()=>{class t{constructor(e){this.value="ltr",this.change=new Lt,e&&(this.value=function sQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?aQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(oQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const lQ=["text"],cQ=[[["mat-icon"]],"*"],uQ=["mat-icon","*"];function dQ(t,n){if(1&t&&dt(0,"mat-pseudo-checkbox",1),2&t){const e=lt();Ke("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function hQ(t,n){1&t&&dt(0,"mat-pseudo-checkbox",3),2&t&&Ke("disabled",lt().disabled)}function fQ(t,n){if(1&t&&(_e(0,"span",4),mn(1),ve()),2&t){const e=lt();Fe(),gr("(",e.group.label,")")}}const pQ=["mat-internal-form-field",""],gQ=["*"],bQ=new Be("mat-sanity-checks",{providedIn:"root",factory:function mQ(){return!0}});let $n=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!V0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(DR),Me(bQ,8),Me(Kt))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[cu,cu]})}}return t})();class tC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Zh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(wr||{});class xQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=wr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const MR=zh({passive:!0,capture:!0});class SQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ns(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,MR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,MR)))}}const AR={enterDuration:225,exitDuration:150},kR=zh({passive:!0,capture:!0}),IR=["mousedown","touchstart"],OR=["mouseup","mouseleave","touchend","touchcancel"];class Om{static{this._eventManager=new SQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ls(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...AR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function EQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new xQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=wr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const S=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),T={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===wr.FADING_OUT||n.state===wr.HIDDEN)return;const e=n.element,i={...AR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=wr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ls(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,IR.forEach(i=>{Om._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{OR.forEach(e=>{this._triggerElement.addEventListener(e,this,kR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===wr.FADING_IN?this._startFadeOutTransition(n):n.state===wr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=wr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=wr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=vR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===wr.VISIBLE||n.config.terminateOnPointerUp&&n.state===wr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(IR.forEach(e=>Om._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&OR.forEach(e=>n.removeEventListener(e,this,kR)))}}const RR=new Be("mat-ripple-global-options");let uu=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Om(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ct),ie(Si),ie(RR,8),ie(Co,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Ye.None,"matRippleColor","color"],unbounded:[Ye.None,"matRippleUnbounded","unbounded"],centered:[Ye.None,"matRippleCentered","centered"],radius:[Ye.None,"matRippleRadius","radius"],animation:[Ye.None,"matRippleAnimation","animation"],disabled:[Ye.None,"matRippleDisabled","disabled"],trigger:[Ye.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Uh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})(),PR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(ie(Co,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&dn("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ii],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),TQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n]})}}return t})();const NR=new Be("MAT_OPTION_PARENT_COMPONENT"),FR=new Be("MatOptgroup");let MQ=0;class AQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let nC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+MQ++,this.onSelectionChange=new Lt,this._stateChanges=new _t}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Fs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new AQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ti),ie(NR,8),ie(FR,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Jn(lQ,7),2&i){let r;$t(r=Vt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&xt("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Cs("id",o.id),ln("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),dn("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Ye.HasDecoratorInputTransform,"disabled","disabled",Yt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[So,ii],ngContentSelectors:uQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Ui(cQ),kt(0,dQ,1,2,"mat-pseudo-checkbox",1),wn(1),_e(2,"span",2,0),wn(4,1),ve(),kt(5,hQ,1,1,"mat-pseudo-checkbox",3)(6,fQ,2,1,"span",4),dt(7,"div",5)),2&i&&(Mn(0,o.multiple?0:-1),Fe(5),Mn(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Fe(),Mn(6,o.group&&o.group._inert?6:-1),Fe(),Ke("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[PR,uu],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),LR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[Uh,$n,TQ]})}}return t})();const jR={capture:!0},BR=["focus","click","mouseenter","touchstart"],iC="mat-ripple-loader-uninitialized",oC="mat-ripple-loader-class-name",HR="mat-ripple-loader-centered",Rm="mat-ripple-loader-disabled";let OQ=(()=>{class t{constructor(){this._document=Ne(Kt,{optional:!0}),this._animationMode=Ne(Co,{optional:!0}),this._globalRippleOptions=Ne(RR,{optional:!0}),this._platform=Ne(Si),this._ngZone=Ne(Ct),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${iC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of BR)this._document?.addEventListener(e,this._onInteraction,jR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of BR)this._document?.removeEventListener(i,this._onInteraction,jR)}configureRipple(e,i){e.setAttribute(iC,""),(i.className||!e.hasAttribute(oC))&&e.setAttribute(oC,i.className||""),i.centered&&e.setAttribute(HR,""),i.disabled&&e.setAttribute(Rm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(Rm,""):e.removeAttribute(Rm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(oC)),e.append(o);const r=new uu(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(HR),r.disabled=e.hasAttribute(Rm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(iC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ii],attrs:pQ,ngContentSelectors:gQ,decls:1,vars:0,template:function(i,o){1&i&&(Ui(),wn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const RQ=["*",[["mat-toolbar-row"]]],PQ=["*","mat-toolbar-row"];let NQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),zR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Si),ie(Kt))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&gi(r,NQ,5),2&i){let a;$t(a=Vt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(qi(o.color?"mat-"+o.color:""),dn("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[ii],ngContentSelectors:PQ,decls:2,vars:0,template:function(i,o){1&i&&(Ui(RQ),wn(0),wn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),FQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})();const Pm=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Wh(t){return new _n(n=>{po(t()).subscribe(n)})}function du(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new _n(n?o=>n.schedule(i,0,o):i)}function rC(){return ni((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class $R extends _n{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Wu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new me;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=me.EMPTY)}return n}refCount(){return rC()(this)}}function Nm(t){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function VR(t=jQ){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function jQ(){return new Pm}function Pl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,io(1),e?Nm(n):VR(()=>new Pm))}function Ua(t){return ni((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=po(t(a,Ua(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function aC(t){return t<=0?()=>vr:ni((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const cn="primary",Xh=Symbol("RouteTitle");class $Q{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hu(t){return new $Q(t)}function VQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function GR(t){return t.length>0?t[t.length-1]:null}function Bs(t){return function LQ(t){return!!t&&(t instanceof _n||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:uh(t)?hi(Promise.resolve(t)):Tt(t)}const GQ={exact:function XR(t,n,e){if(!Nl(t.segments,n.segments)||!Fm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!XR(t.children[i],n.children[i],e))return!1;return!0},subset:JR},UR={exact:function UQ(t,n){return _a(t,n)},subset:function WQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZR(t[e],n[e]))},ignored:()=>!0};function WR(t,n,e){return GQ[e.paths](t.root,n.root,e.matrixParams)&&UR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function JR(t,n,e){return QR(t,n,n.segments,e)}function QR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Nl(o,e)||n.hasChildren()||!Fm(o,e,i))}if(t.segments.length===e.length){if(!Nl(t.segments,e)||!Fm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!JR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Nl(t.segments,o)&&Fm(t.segments,o,i)&&t.children[cn])&&QR(t.children[cn],n,r,i)}}function Fm(t,n,e){return n.every((i,o)=>UR[e](t[o].parameters,i.parameters))}class fu{constructor(n=new jn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return QQ.serialize(this)}}class jn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lm(this)}}class Jh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hu(this.parameters),this._parameterMap}toString(){return eP(this)}}function Nl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new lC,providedIn:"root"})}}return t})();class lC{parse(n){const e=new lK(n);return new fu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Qh(n.root,!0)}`,i=function eK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${jm(e)}=${jm(o)}`).join("&"):`${jm(e)}=${jm(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QQ=new lC;function Lm(t){return t.segments.map(n=>eP(n)).join("/")}function Qh(t,n){if(!t.hasChildren())return Lm(t);if(n){const e=t.children[cn]?Qh(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${Qh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function JQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[Qh(t.children[cn],!1)]:[`${o}:${Qh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Lm(t)}/${e[0]}`:`${Lm(t)}/(${e.join("//")})`}}function KR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jm(t){return KR(t).replace(/%3B/gi,";")}function cC(t){return KR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bm(t){return decodeURIComponent(t)}function qR(t){return Bm(t.replace(/\+/g,"%20"))}function eP(t){return`${cC(t.path)}${function qQ(t){return Object.entries(t).map(([n,e])=>`;${cC(n)}=${cC(e)}`).join("")}(t.parameters)}`}const tK=/^[^\/()?;#]+/;function uC(t){const n=t.match(tK);return n?n[0]:""}const nK=/^[^\/()?;=#]+/,oK=/^[^=?&#]+/,aK=/^[^&#]+/;class lK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jn([],{}):new jn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new jn(n,e)),i}parseSegment(){const n=uC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new Jh(Bm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function iK(t){const n=t.match(nK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uC(this.remaining);o&&(i=o,this.capture(i))}n[Bm(e)]=Bm(i)}parseQueryParam(n){const e=function rK(t){const n=t.match(oK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function sK(t){const n=t.match(aK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=qR(e),r=qR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new jn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function tP(t){return t.segments.length>0?new jn([],{[cn]:t}):t}function nP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=nP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function cK(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new jn(t.segments.concat(n.segments),n.children)}return t}(new jn(t.segments,n))}function gu(t){return t instanceof fu}function iP(t){let n;const o=tP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new jn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function oP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return dC(o,o,o,e,i);const r=function dK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new aP(e,n,i)}(n);if(r.toRoot())return dC(o,o,new jn([],{}),e,i);const a=function hK(t,n,e){if(t.isAbsolute)return new Ym(n,!0,0);if(!e)return new Ym(n,!1,NaN);if(null===e.parent)return new Ym(e,!0,0);const i=Hm(t.commands[0])?0:1;return function fK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new N(4005,!1);o=i.segments.length}return new Ym(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?qh(a.segmentGroup,a.index,r.commands):sP(a.segmentGroup,a.index,r.commands);return dC(o,a.segmentGroup,s,e,i)}function Hm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Kh(t){return"object"==typeof t&&null!=t&&t.outlets}function dC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:rP(t,n,e);const s=tP(nP(a));return new fu(s,r,o)}function rP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:rP(r,n,e)}),new jn(t.segments,i)}class aP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Hm(i[0]))throw new N(4003,!1);const o=i.find(Kh);if(o&&o!==GR(i))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function sP(t,n,e){if(t??=new jn([],{}),0===t.segments.length&&t.hasChildren())return qh(t,n,e);const i=function gK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(Kh(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!cP(l,c,a))return r;i+=2}else{if(!cP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=qh(t.children[cn],n,e);return new jn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=sP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new jn(t.segments,o)}}function hC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=hC(new jn([],{}),0,i))}),n}function lP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function cP(t,n,e){return t==e.path&&_a(n,e.parameters)}const ef="imperative";var bn=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}(bn||{});class va{constructor(n,e){this.id=n,this.url=e}}class zm extends va{constructor(n,e,i="imperative",o=null){super(n,e),this.type=bn.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wa extends va{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=bn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ar=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ar||{}),$m=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($m||{});class mu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationSkipped}}class Vm extends va{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=bn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uP extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yK extends va{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=bn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _K extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class CK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DK{constructor(n){this.snapshot=n,this.type=bn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EK{constructor(n){this.snapshot=n,this.type=bn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dP{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=bn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class fC{}class pC{constructor(n){this.url=n}}class TK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tf,this.attachRef=null}}let tf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new TK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class hP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=gC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=gC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=mC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return mC(n,this._root).map(e=>e.value)}}function gC(t,n){if(t===n.value)return n;for(const e of n.children){const i=gC(t,e);if(i)return i}return null}function mC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=mC(t,e);if(i.length)return i.unshift(n),i}return[]}class Zr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function yu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class fP extends hP{constructor(n,e){super(n),this.snapshot=e,_C(this,n)}toString(){return this.snapshot.toString()}}function pP(t){const n=function MK(t){const r=new yC([],{},{},"",{},cn,t,null,{});return new gP("",new Zr(r,[]))}(t),e=new ci([new Jh("",{})]),i=new ci({}),o=new ci({}),r=new ci({}),a=new ci(""),s=new Fl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new fP(new Zr(s,[]),n)}class Fl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Nt(c=>c[Xh]))??Tt(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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(Nt(n=>hu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nt(n=>hu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&bP(o)&&(i.resolve[Xh]=o.title),i}class yC{get title(){return this.data?.[Xh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gP extends hP{constructor(n,e){super(e),this.url=n,_C(this,e)}toString(){return mP(this._root)}}function _C(t,n){n.value._routerState=t,n.children.forEach(e=>_C(t,e))}function mP(t){const n=t.children.length>0?` { ${t.children.map(mP).join(", ")} } `:"";return`${t.value}${n}`}function vC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_a(n.params,e.params)||t.paramsSubject.next(e.params),function ZQ(t,n){if(t.length!==n.length)return!1;for(let e=0;e_a(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||wC(t.parent,n.parent))}function bP(t){return"string"==typeof t.title||null===t.title}let CC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Lt,this.deactivateEvents=new Lt,this.attachEvents=new Lt,this.detachEvents=new Lt,this.parentContexts=Ne(tf),this.location=Ne(jo),this.changeDetector=Ne(Ti),this.environmentInjector=Ne(No),this.inputBinder=Ne(Zm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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;const 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 N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new AK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zi]})}}return t})();class AK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Fl?this.route:n===tf?this.childContexts:this.parent.get(n,e)}}const Zm=new Be("");let yP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Mm([i.queryParams,i.params,i.data]).pipe(Wi(([r,a,s],l)=>(s={...r,...a,...s},0===l?Tt(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function q$(t){const n=un(t);if(!n)return null;const e=new Hd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function nf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function IK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return nf(t,i,o);return nf(t,i)})}(t,n,e);return new Zr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>nf(t,s)),a}}const i=function OK(t){return new Fl(new ci(t.url),new ci(t.params),new ci(t.queryParams),new ci(t.fragment),new ci(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>nf(t,r));return new Zr(i,o)}}const _P="ngNavigationCancelingError";function vP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=gu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=wP(!1,ar.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function wP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[_P]=!0,e.cancellationCode=n,e}function CP(t){return!!t&&t[_P]}let xP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["ng-component"]],standalone:!0,features:[ii],decls:1,vars:0,template:function(i,o){1&i&&dt(0,"router-outlet")},dependencies:[CC],encapsulation:2})}}return t})();function xC(t){const n=t.children&&t.children.map(xC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=xP),e}function wa(t){return t.outlet||cn}function rf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class HK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),vC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new EK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new SK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(vC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),vC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=rf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class SP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Gm{constructor(n,e){this.component=n,this.route=e}}function YK(t,n,e){const i=t._root;return af(i,n?n._root:null,e,[i.value])}function _u(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Zj(t){return null!==jf(t)}(t)?n.get(t):t:i}function af(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=yu(n);return t.children.forEach(a=>{(function $K(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function VK(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nl(t.url,n.url)||!_a(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wC(t,n)||!_a(t.queryParams,n.queryParams);default:return!wC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new SP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),af(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Gm(s.outlet.component,a))}else a&&sf(n,s,o),o.canActivateChecks.push(new SP(i)),af(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>sf(s,e.getContext(a),o)),o}function sf(t,n,e){const i=yu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{sf(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new Gm(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function lf(t){return"function"==typeof t}function DP(t){return t instanceof Pm||"EmptyError"===t?.name}const Um=Symbol("INITIAL_VALUE");function vu(){return Wi(t=>Mm(t.map(n=>n.pipe(io(1),ya(Um)))).pipe(Nt(n=>{for(const e of n)if(!0!==e){if(e===Um)return Um;if(!1===e||e instanceof fu)return e}return!0}),Ii(n=>n!==Um),io(1)))}function EP(t){return function Uu(...t){return Nf(t)}(Hi(n=>{if(gu(n))throw vP(0,n)}),Nt(n=>!0===n))}class SC{constructor(n){this.segmentGroup=n||null}}class DC extends Error{constructor(n){super(),this.urlTree=n}}function wu(t){return du(new SC(t))}class cq{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Tt(i);if(o.numberOfChildren>1||!o.children[cn])return du(new N(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new DC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new fu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new jn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new N(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const EC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uq(t,n,e,i,o){const r=TC(t,n,e);return r.matched?(i=function PK(t,n){return t.providers&&!t._injector&&(t._injector=Wp(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function aq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Tt(o.map(a=>{const s=_u(a,t);return Bs(function JK(t){return t&&lf(t.canMatch)}(s)?s.canMatch(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP()):Tt(!0)}(i,n,e).pipe(Nt(a=>!0===a?r:{...EC}))):Tt(r)}function TC(t,n,e){if("**"===n.path)return function dq(t){return{matched:!0,parameters:t.length>0?GR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...EC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||VQ)(e,t,n);if(!o)return{...EC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function TP(t,n,e,i){return e.length>0&&function pq(t,n,e){return e.some(i=>Wm(t,n,i)&&wa(i)!==cn)}(t,e,i)?{segmentGroup:new jn(n,fq(i,new jn(e,t.children))),slicedSegments:[]}:0===e.length&&function gq(t,n,e){return e.some(i=>Wm(t,n,i))}(t,e,i)?{segmentGroup:new jn(t.segments,hq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new jn(t.segments,t.children),slicedSegments:e}}function hq(t,n,e,i){const o={};for(const r of e)if(Wm(t,n,r)&&!i[wa(r)]){const a=new jn([],{});o[wa(r)]=a}return{...i,...o}}function fq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&wa(i)!==cn){const o=new jn([],{});e[wa(i)]=o}return e}function Wm(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class yq{}class wq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new cq(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}recognize(){const n=TP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Nt(e=>{const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Zr(i,e),r=new gP("",o),a=function uK(t,n,e=null,i=null){return oP(iP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(Ua(i=>{if(i instanceof DC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof SC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=bC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Nt(r=>r instanceof Zr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return hi(o).pipe(nu(r=>{const a=i.children[r],s=function jK(t,n){const e=t.filter(i=>wa(i)===n);return e.push(...t.filter(i=>wa(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function HQ(t,n){return ni(function BQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Nm(null),function YQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,aC(1),e?Nm(n):VR(()=>new Pm))}(),no(r=>{if(null===r)return wu(i);const a=MP(r);return function Cq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Tt(a)}))}processSegment(n,e,i,o,r,a){return hi(e).pipe(nu(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Ua(l=>{if(l instanceof SC)return Tt(null);throw l}))),Pl(s=>!!s),Ua(s=>{if(DP(s))return function bq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Tt(new yq):wu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function mq(t,n,e,i){return!!(wa(t)===i||i!==cn&&Wm(n,e,t))&&TC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):wu(o):wu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=TC(e,o,r);if(!s)return wu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(no(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=uq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Wi(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Wi(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new yC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Sq(t){return t.data||{}}(i),wa(i),i.component??i._loadedComponent??null,i,function Dq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=TP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Nt(S=>null===S?null:new Zr(p,S)));if(0===l.length&&0===b.length)return Tt(new Zr(p,[]));const T=wa(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Nt(S=>new Zr(p,S instanceof Zr?[S]:[])))})):wu(e)))}getChildConfig(n,e,i){return e.children?Tt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Tt({routes:e._loadedRoutes,injector:e._loadedInjector}):function rq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Tt(!0):Tt(o.map(a=>{const s=_u(a,t);return Bs(function GK(t){return t&&lf(t.canLoad)}(s)?s.canLoad(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP())}(n,e,i).pipe(no(o=>o?this.configLoader.loadChildren(n,e).pipe(Hi(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function lq(t){return du(wP(!1,ar.GuardRejected))}())):Tt({routes:[],injector:n})}}function xq(t){const n=t.value.routeConfig;return n&&""===n.path}function MP(t){const n=[],e=new Set;for(const i of t){if(!xq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=MP(i.children);n.push(new Zr(i.value,o))}return n.filter(i=>!e.has(i))}function AP(t){const n=t.children.map(e=>AP(e)).flat();return[t,...n]}function MC(t){return Wi(n=>{const e=t(n);return e?hi(e).pipe(Nt(()=>n)):Tt(n)})}let kP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[Xh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Iq),providedIn:"root"})}}return t})(),Iq=(()=>{class t extends kP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(CI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Cu=new Be("",{providedIn:"root",factory:()=>({})}),xu=new Be("");let AC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ne(VA)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bs(e.loadComponent()).pipe(Nt(IP),Hi(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),wl(()=>{this.componentLoaders.delete(e)})),o=new $R(i,()=>new _t).pipe(rC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Tt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function Oq(t,n,e,i){return Bs(t.loadChildren()).pipe(Nt(IP),no(o=>o instanceof pT||Array.isArray(o)?Tt(o):hi(n.compileModuleAsync(o))),Nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(xu,[],{optional:!0,self:!0}).flat()),{routes:a.map(xC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(wl(()=>{this.childrenLoaders.delete(i)})),a=new $R(r,()=>new _t).pipe(rC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function IP(t){return function Rq(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let kC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Pq),providedIn:"root"})}}return t})(),Pq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const OP=new Be(""),RP=new Be("");function Nq(t,n,e){const i=t.get(RP),o=t.get(Kt);return t.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Fq(t){return new Promise(n=>{IE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ea(t,()=>l({transition:s,from:n,to:e})),a})}let Xm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t,this.transitionAbortSubject=new _t,this.configLoader=Ne(AC),this.environmentInjector=Ne(No),this.urlSerializer=Ne(pu),this.rootContexts=Ne(tf),this.location=Ne(bl),this.inputBindingEnabled=null!==Ne(Zm,{optional:!0}),this.titleStrategy=Ne(kP),this.options=Ne(Cu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ne(kC),this.createViewTransition=Ne(OP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new CK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new ci({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ef,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ii(r=>0!==r.id),Nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Wi(r=>{let a=!1,s=!1;return Tt(r).pipe(Wi(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),vr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.rawUrl),d,$m.IgnoredSameUrlNavigation)),l.resolve(null),vr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Tt(l).pipe(Wi(d=>{const h=this.transitions?.getValue();return this.events.next(new zm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?vr:Promise.resolve(d)}),function Eq(t,n,e,i,o,r){return no(a=>function _q(t,n,e,i,o,r,a="emptyOnly"){return new wq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Nt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Hi(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new uP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new zm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const S=pP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:S,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Tt(r)}{const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,$m.IgnoredByUrlHandlingStrategy)),l.resolve(null),vr}}),Hi(l=>{const c=new bK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Nt(l=>(this.currentTransition=r={...l,guards:YK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function QK(t,n){return no(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Tt({...e,guardsResult:!0}):function KK(t,n,e,i){return hi(t).pipe(no(o=>function oq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Tt(r.map(s=>{const l=rf(n)??o,c=_u(s,l);return Bs(function XK(t){return t&&lf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ea(l,()=>c(t,n,e,i))).pipe(Pl())})).pipe(vu()):Tt(!0)}(o.component,o.route,e,n,i)),Pl(o=>!0!==o,!0))}(a,i,o,t).pipe(no(s=>s&&function ZK(t){return"boolean"==typeof t}(s)?function qK(t,n,e,i){return hi(n).pipe(nu(o=>Am(function tq(t,n){return null!==t&&n&&n(new xK(t)),Tt(!0)}(o.route.parent,i),function eq(t,n){return null!==t&&n&&n(new DK(t)),Tt(!0)}(o.route,i),function iq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function zK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Wh(()=>Tt(a.guards.map(l=>{const c=rf(a.node)??e,u=_u(l,c);return Bs(function WK(t){return t&&lf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ea(c,()=>u(i,t))).pipe(Pl())})).pipe(vu())));return Tt(r).pipe(vu())}(t,o.path,e),function nq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Tt(!0);const o=i.map(r=>Wh(()=>{const a=rf(n)??e,s=_u(r,a);return Bs(function UK(t){return t&&lf(t.canActivate)}(s)?s.canActivate(n,t):ea(a,()=>s(n,t))).pipe(Pl())}));return Tt(o).pipe(vu())}(t,o.route,e))),Pl(o=>!0!==o,!0))}(i,r,t,n):Tt(s)),Nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),Hi(l=>{if(r.guardsResult=l.guardsResult,gu(l.guardsResult))throw vP(0,l.guardsResult);const c=new yK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ii(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",ar.GuardRejected),!1)),MC(l=>{if(l.guards.canActivateChecks.length)return Tt(l).pipe(Hi(c=>{const u=new _K(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Wi(c=>{let u=!1;return Tt(c).pipe(function Tq(t,n){return no(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Tt(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of AP(l))a.add(c);let s=0;return hi(a).pipe(nu(l=>r.has(l)?function Mq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!bP(o)&&(r[Xh]=o.title),function Aq(t,n,e,i){const o=sC(t);if(0===o.length)return Tt({});const r={};return hi(o).pipe(no(a=>function kq(t,n,e,i){const o=rf(n)??i,r=_u(t,o);return Bs(r.resolve?r.resolve(n,e):ea(o,()=>r(n,e)))}(t[a],n,e,i).pipe(Pl(),Hi(s=>{r[a]=s}))),aC(1),function zQ(t){return Nt(()=>t)}(r),Ua(a=>DP(a)?vr:du(a)))}(r,t,n,i).pipe(Nt(a=>(t._resolvedData=a,t.data=bC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=bC(l,l.parent,t).resolve,Tt(void 0))),Hi(()=>s++),aC(1),no(l=>s===a.size?Tt(e):vr))})}(this.paramsInheritanceStrategy,this.environmentInjector),Hi({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",ar.NoDataFromResolver)}}))}),Hi(c=>{const u=new vK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),MC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Hi(h=>{u.component=h}),Nt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return Mm(c(l.targetSnapshot.root)).pipe(Nm(null),io(1))}),MC(()=>this.afterPreactivation()),Wi(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?hi(u).pipe(Nt(()=>r)):Tt(r)}),Nt(l=>{const c=function kK(t,n,e){const i=nf(t,n._root,e?e._root:void 0);return new fP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),Hi(()=>{this.events.next(new fC)}),((t,n,e,i)=>Nt(o=>(new HK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),io(1),Hi({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wa(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),In(this.transitionAbortSubject.pipe(Hi(l=>{throw l}))),wl(()=>{a||s||this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ua(l=>{if(s=!0,CP(l))this.events.next(new mu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function RK(t){return CP(t)&&gu(t.url)}(l)?this.events.next(new pC(l.url)):r.resolve(!1);else{this.events.next(new Vm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return vr}))}))}cancelNavigationTransition(e,i,o){const r=new mu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Lq(t){return t!==ef}let jq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Hq),providedIn:"root"})}}return t})();class Bq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Hq=(()=>{class t extends Bq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),PP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends PP{constructor(){super(...arguments),this.location=Ne(bl),this.urlSerializer=Ne(pu),this.options=Ne(Cu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ne(kC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof zm)this.stateMemento=this.createStateMemento();else if(e instanceof bu)this.rawUrlTree=i.initialUrl;else if(e instanceof uP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof fC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof mu&&(e.code===ar.GuardRejected||e.code===ar.NoDataFromResolver)?this.restoreHistory(i):e instanceof Vm?this.restoreHistory(i,!0):e instanceof Wa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cf=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(cf||{});function NP(t,n){t.events.pipe(Ii(e=>e instanceof Wa||e instanceof mu||e instanceof Vm||e instanceof bu),Nt(e=>e instanceof Wa||e instanceof bu?cf.COMPLETE:e instanceof mu&&(e.code===ar.Redirect||e.code===ar.SupersededByNewNavigation)?cf.REDIRECTING:cf.FAILED),Ii(e=>e!==cf.REDIRECTING),io(1)).subscribe(()=>{n()})}function zq(t){throw t}const $q={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Ne(PA),this.stateManager=Ne(PP),this.options=Ne(Cu,{optional:!0})||{},this.pendingTasks=Ne(bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ne(Xm),this.urlSerializer=Ne(pu),this.location=Ne(bl),this.urlHandlingStrategy=Ne(kC),this._events=new _t,this.errorHandler=this.options.errorHandler||zq,this.navigated=!1,this.routeReuseStrategy=Ne(jq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ne(xu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ne(Zm,{optional:!0}),this.eventsSubscription=new me,this.isNgZoneEnabled=Ne(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof mu&&i.code!==ar.Redirect&&i.code!==ar.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wa)this.navigated=!0;else if(i instanceof pC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lq(o.source)};this.scheduleNavigation(a,ef,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Gq(t){return!(t instanceof fC||t instanceof pC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ef,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=iP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return oP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=gu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ef,null,i)}navigate(e,i={skipLocationChange:!1}){return function Zq(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return NP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new _t,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Wa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function TD(t,n,e){return function e8(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?ED:Cd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(ie(Ao),ie(Fl),sa("tabindex"),ie(La),ie(Zt),ie(ml))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&xt("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&ln("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ye.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Yt],skipLocationChange:[Ye.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[Ye.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[So,Zi]})}}return t})();class FP{}let Xq=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ii(e=>e instanceof Wa),nu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Wp(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return hi(o).pipe(su())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Tt(null);const r=o.pipe(no(a=>null===a?Tt(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?hi([r,this.loader.loadComponent(i)]).pipe(su()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(Ao),Me(VA),Me(No),Me(FP),Me(AC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const IC=new Be("");let LP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof bu&&e.code===$m.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dP&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dP(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){k_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function Ca(t,n){return{\u0275kind:t,\u0275providers:n}}function BP(){const t=Ne(di);return n=>{const e=t.get(Hr);if(n!==e.components[0])return;const i=t.get(Ao),o=t.get(HP);1===t.get(OC)&&i.initialNavigation(),t.get(YP,null,fn.Optional)?.setUpPreloading(),t.get(IC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const HP=new Be("",{factory:()=>new _t}),OC=new Be("",{providedIn:"root",factory:()=>1}),YP=new Be("");function qq(t){return Ca(0,[{provide:YP,useExisting:Xq},{provide:FP,useExisting:t}])}function tee(t){return Ca(9,[{provide:OP,useValue:Nq},{provide:RP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const zP=new Be("ROUTER_FORROOT_GUARD"),nee=[bl,{provide:pu,useClass:lC},Ao,tf,{provide:Fl,useFactory:function jP(t){return t.routerState.root},deps:[Ao]},AC,[]];let $P=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[nee,[],{provide:xu,multi:!0,useValue:e},{provide:zP,useFactory:aee,deps:[[Ao,new ls,new oc]]},{provide:Cu,useValue:i||{}},i?.useHash?{provide:ml,useClass:oV}:{provide:ml,useClass:Rk},{provide:IC,useFactory:()=>{const t=Ne(C9),n=Ne(Ct),e=Ne(Cu),i=Ne(Xm),o=Ne(pu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new LP(o,i,t,n,e)}},i?.preloadingStrategy?qq(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?see(i):[],i?.bindToComponentInputs?Ca(8,[yP,{provide:Zm,useExisting:yP}]).\u0275providers:[],i?.enableViewTransitions?tee().\u0275providers:[],[{provide:VP,useFactory:BP},{provide:ew,multi:!0,useExisting:VP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:xu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(zP,8))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function aee(t){return"guarded"}function see(t){return["disabled"===t.initialNavigation?Ca(3,[{provide:Kv,multi:!0,useFactory:()=>{const n=Ne(Ao);return()=>{n.setUpLocationChangeListener()}}},{provide:OC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ca(2,[{provide:OC,useValue:0},{provide:Kv,multi:!0,deps:[di],useFactory:n=>{const e=n.get(nV,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Ao),r=n.get(HP);NP(o,()=>{i(!0)}),n.get(Xm).afterPreactivation=()=>(i(!0),r.closed?Tt(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const VP=new Be("");var cee=function(n){return function uee(t){return!!t&&"object"==typeof t}(n)&&!function dee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function pee(t){return t.$$typeof===fee}(t)}(n)},fee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function df(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Su(function gee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function mee(t,n,e){return t.concat(n).map(function(i){return df(i,e)})}function ZP(t){return Object.keys(t).concat(function yee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function GP(t,n){try{return n in t}catch{return!1}}function Su(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||mee,e.isMergeableObject=e.isMergeableObject||cee,e.cloneUnlessOtherwiseSpecified=df;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function vee(t,n,e){var i={};return e.isMergeableObject(t)&&ZP(t).forEach(function(o){i[o]=df(t[o],e)}),ZP(n).forEach(function(o){(function _ee(t,n){return GP(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=GP(t,o)&&e.isMergeableObject(n[o])?function bee(t,n){if(!n.customMerge)return Su;var e=n.customMerge(t);return"function"==typeof e?e:Su}(o,e)(t[o],n[o],e):df(n[o],e))}),i}(t,n,e):df(n,e)}Su.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Su(i,o,e)},{})};var RC=Su;function PC(t){return t instanceof HTMLElement}function Ll(t){return"function"==typeof t}function hf(t){return"string"==typeof t}function go(t){return void 0===t}class NC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function UP(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const Du=Math.min,jl=Math.max,Jm=Math.round,Qm=Math.floor,Hs=t=>({x:t,y:t}),Eee={left:"right",right:"left",bottom:"top",top:"bottom"},Tee={start:"end",end:"start"};function LC(t,n,e){return jl(t,Du(n,e))}function Eu(t,n){return"function"==typeof t?t(n):t}function Bl(t){return t.split("-")[0]}function Km(t){return t.split("-")[1]}function jC(t){return"x"===t?"y":"x"}function BC(t){return"y"===t?"height":"width"}function qm(t){return["top","bottom"].includes(Bl(t))?"y":"x"}function HC(t){return jC(qm(t))}function YC(t){return t.replace(/start|end/g,n=>Tee[n])}function eb(t){return t.replace(/left|right|bottom|top/g,n=>Eee[n])}function QP(t){return"number"!=typeof t?function Oee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function tb(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const Ree=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Pee=["mainAxis","crossAxis","limiter"];function KP(t,n,e){let{reference:i,floating:o}=t;const r=qm(n),a=HC(n),s=BC(a),l=Bl(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(Km(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Nee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=KP(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,re;const ce="y"===p?"width":"height",G=["top","left"].includes(Bl(r)),pe=a.reference[h]-a.floating[ce]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:S.crossAxis),ye=a.reference[h]+a.reference[ce]+(G?0:(null==(re=s.offset)?void 0:re[h])||0)-(G?S.crossAxis:0);bye&&(b=ye)}return{[p]:g,[h]:b}}}};function Ys(t){return eN(t)?(t.nodeName||"").toLowerCase():"#document"}function sr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function Xa(t){var n;return null==(n=(eN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function eN(t){return t instanceof Node||t instanceof sr(t).Node}function Ja(t){return t instanceof Element||t instanceof sr(t).Element}function xa(t){return t instanceof HTMLElement||t instanceof sr(t).HTMLElement}function tN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof sr(t).ShadowRoot)}function ff(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Cr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Hee(t){return["table","td","th"].includes(Ys(t))}function $C(t){const n=VC(),e=Cr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function VC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nb(t){return["html","body","#document"].includes(Ys(t))}function Cr(t){return sr(t).getComputedStyle(t)}function ib(t){return Ja(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tu(t){if("html"===Ys(t))return t;const n=t.assignedSlot||t.parentNode||tN(t)&&t.host||Xa(t);return tN(n)?n.host:n}function nN(t){const n=Tu(t);return nb(n)?t.ownerDocument?t.ownerDocument.body:t.body:xa(n)&&ff(n)?n:nN(n)}function ob(t,n){var e;void 0===n&&(n=[]);const i=nN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=sr(i);return o?n.concat(r,r.visualViewport||[],ff(i)?i:[]):n.concat(i,ob(i))}function iN(t){const n=Cr(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=xa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=Jm(e)!==r||Jm(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function ZC(t){return Ja(t)?t:t.contextElement}function Mu(t){const n=ZC(t);if(!xa(n))return Hs(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=iN(n);let a=(r?Jm(e.width):e.width)/i,s=(r?Jm(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const zee=Hs(0);function oN(t){const n=sr(t);return VC()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:zee}function Hl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=ZC(t);let a=Hs(1);n&&(i?Ja(i)&&(a=Mu(i)):a=Mu(t));const s=function $ee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==sr(t))&&n}(r,e,i)?oN(r):Hs(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=sr(r),p=i&&Ja(i)?sr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Mu(g),T=g.getBoundingClientRect(),S=Cr(g),H=T.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,re=T.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=re,g=sr(g).frameElement}}return tb({width:u,height:d,x:l,y:c})}function rN(t){return Hl(Xa(t)).left+ib(t).scrollLeft}function aN(t,n,e){let i;if("viewport"===n)i=function Uee(t,n){const e=sr(t),i=Xa(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=VC();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function Gee(t){const n=Xa(t),e=ib(t),i=t.ownerDocument.body,o=jl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=jl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+rN(t);const s=-e.scrollTop;return"rtl"===Cr(i).direction&&(a+=jl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(Xa(t));else if(Ja(n))i=function Wee(t,n){const e=Hl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=xa(t)?Mu(t):Hs(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=oN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return tb(i)}function sN(t,n){const e=Tu(t);return!(e===n||!Ja(e)||nb(e))&&("fixed"===Cr(e).position||sN(e,n))}function Xee(t,n){const e=n.get(t);if(e)return e;let i=ob(t).filter(s=>Ja(s)&&"body"!==Ys(s)),o=null;const r="fixed"===Cr(t).position;let a=r?Tu(t):t;for(;Ja(a)&&!nb(a);){const s=Cr(a),l=$C(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||ff(a)&&!l&&sN(t,a))?i=i.filter(u=>u!==a):o=s,a=Tu(a)}return n.set(t,i),i}function Kee(t,n,e){const i=xa(n),o=Xa(n),r="fixed"===e,a=Hl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=Hs(0);if(i||!i&&!r)if(("body"!==Ys(n)||ff(o))&&(s=ib(n)),i){const c=Hl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=rN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lN(t,n){return xa(t)&&"fixed"!==Cr(t).position?n?n(t):t.offsetParent:null}function cN(t,n){const e=sr(t);if(!xa(t))return e;let i=lN(t,n);for(;i&&Hee(i)&&"static"===Cr(i).position;)i=lN(i,n);return i&&("html"===Ys(i)||"body"===Ys(i)&&"static"===Cr(i).position&&!$C(i))?e:i||function Yee(t){let n=Tu(t);for(;xa(n)&&!nb(n);){if($C(n))return n;n=Tu(n)}return null}(t)||e}const qee=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||cN,s=this.getDimensions;return{reference:Kee(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),tte={convertOffsetParentRelativeRectToViewportRelativeRect:function Vee(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=xa(e),r=Xa(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=Hs(1);const l=Hs(0);if((o||!o&&"fixed"!==i)&&(("body"!==Ys(e)||ff(r))&&(a=ib(e)),xa(e))){const c=Hl(e);s=Mu(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xa,getClippingRect:function Jee(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?Xee(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=aN(n,u,o);return c.top=jl(d.top,c.top),c.right=Du(d.right,c.right),c.bottom=Du(d.bottom,c.bottom),c.left=jl(d.left,c.left),c},aN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:cN,getElementRects:qee,getClientRects:function Zee(t){return Array.from(t.getClientRects())},getDimensions:function Qee(t){return iN(t)},getScale:Mu,isElement:Ja,isRTL:function ete(t){return"rtl"===Cr(t).direction}};function rte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function dte(t,n){const e={strategy:"absolute",middleware:[]},i=function hte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return XP(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Eu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,S=JP(u,Ree),H=Bl(o),re=Bl(s)===s,ce=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(re||!T?[eb(s)]:function Aee(t){const n=eb(t);return[YC(t),n,YC(n)]}(s));!p&&"none"!==b&&G.push(...function Iee(t,n,e,i){const o=Km(t);let r=function kee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}(Bl(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(YC)))),r}(s,T,b,ce));const pe=[s,...G],ye=yield qP(e,S),be=[];let Pe=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(ye[H]),h){const Je=function Mee(t,n,e){void 0===e&&(e=!1);const i=Km(t),o=HC(t),r=BC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=eb(a)),[a,eb(a)]}(o,a,ce);be.push(ye[Je[0]],ye[Je[1]])}if(Pe=[...Pe,{placement:o,overflows:be}],!be.every(Je=>Je<=0)){var je,Xe;const Je=((null==(je=r.flip)?void 0:je.index)||0)+1,st=pe[Je];if(st)return{data:{index:Je,overflows:Pe},reset:{placement:st}};let ht=null==(Xe=Pe.filter(Se=>Se.overflows[0]<=0).sort((Se,He)=>Se.overflows[1]-He.overflows[1])[0])?void 0:Xe.placement;if(!ht)switch(g){case"bestFit":{var Re;const Se=null==(Re=Pe.map(He=>[He.placement,He.overflows.filter(We=>We>0).reduce((We,nt)=>We+nt,0)]).sort((He,We)=>He[1]-We[1])[0])?void 0:Re[0];Se&&(ht=Se);break}case"initialPlacement":ht=s}if(o!==ht)return{reset:{placement:ht}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Eu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:re,y:ce}=H;return{x:re,y:ce}}}}=a,u=JP(a,Pee),d={x:i,y:o},h=yield qP(e,u),p=qm(Bl(r)),g=jC(p);let b=d[g],T=d[p];s&&(b=LC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=LC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const S=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},S,{data:{x:S.x-i,y:S.y-o}})})()}}({limiter:Bee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Eu(t,n)||{};if(null==l)return{};const u=QP(c),d={x:e,y:i},h=HC(o),p=BC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",S=b?"bottom":"right",H=b?"clientHeight":"clientWidth",re=r.reference[p]+r.reference[h]-d[h]-r.floating[p],ce=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const ye=re/2-ce/2,be=pe/2-g[p]/2-1,Pe=Du(u[T],be),je=Du(u[S],be),Xe=Pe,Re=pe-g[p]-je,Je=pe/2-g[p]/2+ye,st=LC(Xe,Je,Re),Se=null!=Km(o)&&Je!=st&&r.reference[p]/2-(Je{o&&S.addEventListener("scroll",e,{passive:!0}),r&&S.addEventListener("resize",e)});const d=c&&s?function nte(t,n){let i,e=null;const o=Xa(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-Qm(u)+"px "+-Qm(o.clientWidth-(c+d))+"px "+-Qm(o.clientHeight-(u+h))+"px "+-Qm(c)+"px",threshold:jl(0,Du(1,l))||1};let re=!0;function ce(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!re)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}re=!1}try{e=new IntersectionObserver(ce,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(ce,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(S=>{let[H]=S;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Hl(t):null;return l&&function T(){const S=Hl(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&e(),b=S,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(S=>{o&&S.removeEventListener("scroll",e),r&&S.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function lte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:tte},e),r=mo({},o.platform,{_c:i});return Nee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function cte(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function ute(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function lr(){}function fte(t,n){for(const e in n)t[e]=n[e];return t}function uN(t){return t()}function dN(){return Object.create(null)}function pf(t){t.forEach(uN)}function GC(t){return"function"==typeof t}function Qa(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Au(t,n){t.appendChild(n)}function Gr(t,n,e){t.insertBefore(n,e||null)}function xr(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t){return document.createElement(t)}function hN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fN(t){return document.createTextNode(t)}function rb(){return fN(" ")}function ab(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function qn(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const bte=["width","height"];function pN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===bte.indexOf(i)?t[i]=n[i]:qn(t,i,n[i])}function ku(t,n,e){t.classList[e?"add":"remove"](n)}let gf;function mf(t){gf=t}function gN(){if(!gf)throw new Error("Function called outside component initialization");return gf}function UC(t){gN().$$.after_update.push(t)}const Iu=[],Ou=[];let Ru=[];const mN=[],vte=Promise.resolve();let WC=!1;function XC(t){Ru.push(t)}const JC=new Set;let Pu=0;function bN(){if(0!==Pu)return;const t=gf;do{try{for(;Pu{sb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Vl(t){t&&t.c()}function zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||XC(()=>{const a=t.$$.on_mount.map(uN).filter(GC);t.$$.on_destroy?t.$$.on_destroy.push(...a):pf(a),t.$$.on_mount=[]}),r.forEach(XC)}function $s(t,n){const e=t.$$;null!==e.fragment&&(function xte(t){const n=[],e=[];Ru.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),Ru=n}(e.after_update),pf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ka(t,n,e,i,o,r,a,s=[-1]){const l=gf;mf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:lr,not_equal:o,bound:dN(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:dN(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Dte(t,n){-1===t.$$.dirty[0]&&(Iu.push(t),function wte(){WC||(WC=!0,vte.then(bN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function pte(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Ete(t){let n,e,i,o,r;return{c(){n=Sa("button"),qn(n,"aria-label",e=t[3]?t[3]:null),qn(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],qn(n,"tabindex","0")},m(a,s){Gr(a,n,s),n.innerHTML=t[5],o||(r=ab(n,"click",function(){GC(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&qn(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&qn(n,"class",i),4&s&&(n.disabled=t[2])},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Tte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Ll(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class Mte extends qa{constructor(n){super(),Ka(this,n,Tte,Ete,Qa,{config:6,step:7})}}function yN(t,n,e){const i=t.slice();return i[2]=n[e],i}function _N(t){let n,e,i=t[1],o=[];for(let a=0;aDi(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),$l())},i(o){e||(Fn(i),e=!0)},o(o){Di(i),e=!1},d(o){o&&xr(n),i&&i.d()}}}function kte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Ite extends qa{constructor(n){super(),Ka(this,n,kte,Ate,Qa,{step:0})}}function Ote(t){let n,e,i,o,r;return{c(){n=Sa("button"),e=Sa("span"),e.textContent="\xd7",qn(e,"aria-hidden","true"),qn(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),qn(n,"class","shepherd-cancel-icon"),qn(n,"type","button")},m(a,s){Gr(a,n,s),Au(n,e),o||(r=ab(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&qn(n,"aria-label",i)},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Rte(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Pte extends qa{constructor(n){super(),Ka(this,n,Rte,Ote,Qa,{cancelIcon:0,step:2})}}function Nte(t){let n;return{c(){n=Sa("h3"),qn(n,"id",t[1]),qn(n,"class","shepherd-title")},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function Fte(t,n,e){let{labelId:i,element:o,title:r}=n;return UC(()=>{Ll(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Lte extends qa{constructor(n){super(),Ka(this,n,Fte,Nte,Qa,{labelId:1,element:0,title:2})}}function wN(t){let n,e;return n=new Lte({props:{labelId:t[0],title:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function CN(t){let n,e;return n=new Pte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function jte(t){let n,e,i,o=t[2]&&wN(t),r=t[3]&&t[3].enabled&&CN(t);return{c(){n=Sa("header"),o&&o.c(),e=rb(),r&&r.c(),qn(n,"class","shepherd-header")},m(a,s){Gr(a,n,s),o&&o.m(n,null),Au(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&Fn(o,1)):(o=wN(a),o.c(),Fn(o,1),o.m(n,e)):o&&(zl(),Di(o,1,1,()=>{o=null}),$l()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&Fn(r,1)):(r=CN(a),r.c(),Fn(r,1),r.m(n,null)):r&&(zl(),Di(r,1,1,()=>{r=null}),$l())},i(a){i||(Fn(o),Fn(r),i=!0)},o(a){Di(o),Di(r),i=!1},d(a){a&&xr(n),o&&o.d(),r&&r.d()}}}function Bte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Hte extends qa{constructor(n){super(),Ka(this,n,Bte,jte,Qa,{labelId:0,step:1})}}function Yte(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-text"),qn(n,"id",t[1])},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function zte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return UC(()=>{let{text:s}=r.options;Ll(s)&&(s=s.call(r)),PC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class $te extends qa{constructor(n){super(),Ka(this,n,zte,Yte,Qa,{descriptionId:1,element:0,step:2})}}function xN(t){let n,e;return n=new Hte({props:{labelId:t[1],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function SN(t){let n,e;return n=new $te({props:{descriptionId:t[0],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function DN(t){let n,e;return n=new Ite({props:{step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function Vte(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&xN(t),c=o&&SN(t),u=a&&DN(t);return{c(){n=Sa("div"),l&&l.c(),i=rb(),c&&c.c(),r=rb(),u&&u.c(),qn(n,"class","shepherd-content")},m(d,h){Gr(d,n,h),l&&l.m(n,null),Au(n,i),c&&c.m(n,null),Au(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&Fn(l,1)):(l=xN(d),l.c(),Fn(l,1),l.m(n,i)):l&&(zl(),Di(l,1,1,()=>{l=null}),$l()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&Fn(c,1)):(c=SN(d),c.c(),Fn(c,1),c.m(n,r)):c&&(zl(),Di(c,1,1,()=>{c=null}),$l()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&Fn(u,1)):(u=DN(d),u.c(),Fn(u,1),u.m(n,null)):u&&(zl(),Di(u,1,1,()=>{u=null}),$l())},i(d){s||(Fn(l),Fn(c),Fn(u),s=!0)},o(d){Di(l),Di(c),Di(u),s=!1},d(d){d&&xr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function Zte(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class Gte extends qa{constructor(n){super(),Ka(this,n,Zte,Vte,Qa,{descriptionId:0,labelId:1,step:2})}}function EN(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-arrow"),qn(n,"data-popper-arrow","")},m(e,i){Gr(e,n,i)},d(e){e&&xr(n)}}}function Ute(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&EN();i=new Gte({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function Kte(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function _te(t){gN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),UC(()=>{g!==u.options.classes&&function T(){(function S(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function ce(G){Ou[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class qte extends qa{constructor(n){super(),Ka(this,n,Kte,Ute,Qa,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class QC extends NC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?WP(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,UP(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function ste(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),PC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Dee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Ll(e.element)&&(e.element=e.element.call(t)),hf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Ll(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new qte({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Ll(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Cee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=RC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function ate(t,n){return{floatingUIOptions:RC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${FC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function See(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function xee(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),rte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function nne(t){let n,e,i,o,r;return{c(){n=hN("svg"),e=hN("path"),qn(e,"d",t[2]),qn(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Gr(a,n,s),Au(n,e),t[11](n),o||(r=ab(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&qn(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&qn(n,"class",i)},i:lr,o:lr,d(a){a&&xr(n),t[11](null),o=!1,r()}}}function MN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:MN(t.parentElement)}function one(t,n,e){let{element:i,openingProperties:o}=n;FC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),S()}function d(ce=0,G=0,pe,ye){if(ye){const{y:be,height:Pe}=function ine(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(ye,pe),{x:je,width:Xe,left:Re}=ye.getBoundingClientRect();e(4,o={width:Xe+2*ce,height:Pe+2*ce,x:(je||Re)-ce,y:be-ce,r:G})}else c()}function p(){e(1,r=!0)}c();const g=ce=>{ce.preventDefault()};function S(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=ce=>{"element"in ce&&e(0,i=ce.element),"openingProperties"in ce&&e(4,o=ce.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function tne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,ce=>{ce.stopPropagation()},o,()=>i,c,u,d,function h(ce){S(),ce.tour.options.useModalOverlay?(function H(ce){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=ce.options,ye=MN(ce.target),be=()=>{a=void 0,d(G,pe,ye,ce.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(ce),p()):u()},p,function re(ce){Ou[ce?"unshift":"push"](()=>{i=ce,e(0,i)})}]}class rne extends qa{constructor(n){super(),Ka(this,n,one,nne,Qa,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Zl=new NC,sne=typeof window>"u";class AN{constructor(){}}function cne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Zl,sne?{Tour:AN,Step:AN}:{Tour:class ane extends NC{constructor(n={}){return super(n),UP(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=WP(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Zl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof QC?i.tour=this:i=new QC(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Zl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=hf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Ll(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function ene(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Zl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}PC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Zl.activeTour=this}_setupModal(){this.modal=new rne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${FC()}`}},Step:QC});let kN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(cne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function lne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Zl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;I(7850);const dne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var re,S=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(re=e.wasmBinary);var ce=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Zn("no native wasm support detected");var G,Je,st,Mt,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(xe,fe,we){for(var Oe=fe+we,rt=fe;xe[rt]&&!(rt>=Oe);)++rt;if(rt-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,rt));for(var mt="";fe>10,56320|1023&zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function je(xe,fe){return xe?Pe(st,xe,fe):""}function en(){var xe=G.buffer;e.HEAP_DATA_VIEW=Mt=new DataView(xe),e.HEAP8=Je=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=st=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var an=[],sn=[],$o=[],ft=0,Pt=null,ri=null;function Zn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var dr;function Jr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Zu(xe){try{if(xe==dr&&re)return new Uint8Array(re);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Zn(fe)}}function Vb(xe,fe,we){return function cx(xe){return re||"function"!=typeof fetch?Promise.resolve().then(function(){return Zu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Zu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Zn(Oe)})}function uhe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function ux(xe){return Mt.getInt32(xe,!0)}function dx(xe){return Mt.getUint32(xe,!0)}function Zb(xe,fe){Mt.setUint32(xe,fe,!0)}function Tr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Oj(fe);return we&&function Xe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var rt=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Je,we,fe),we}function hx(xe){for(;xe.length>0;)xe.shift()(e)}function Of(xe,fe){Je.set(xe,fe)}function Gb(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Je[xe>>0];case"i16":return function fhe(xe){return Mt.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return ux(4*(xe>>2));case"float":return function dhe(xe){return Mt.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function hhe(xe){return Mt.getFloat64(xe,!0)}(8*(xe>>3));case"*":return dx(4*(xe>>2));default:Zn("invalid type for getValue: "+fe)}}e.locateFile?Jr(dr="soundswallower.web.wasm")||(dr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(dr)):dr=new URL(I(3970),I.b).href;var Rf={varargs:void 0,get:function(){return Rf.varargs+=4,ux(4*(Rf.varargs-4>>2))},getStr:function(xe){return je(xe)}};function She(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),en(),1}catch{}}var fx={};function Pf(){if(!Pf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in fx)void 0===fx[we]?delete fe[we]:fe[we]=fx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Pf.strings=Oe}return Pf.strings}var Fhe=[null,[],[]];function Lhe(xe,fe){var we=Fhe[xe];0===fe||10===fe?((1===xe?S:H)(Pe(we,0)),we.length=0):we.push(fe)}var Ub,Bhe={d:function phe(xe,fe,we){return Rf.varargs=we,0},g:function ghe(xe,fe){},i:function mhe(xe,fe,we){return Rf.varargs=we,0},r:function bhe(xe,fe,we,Oe){},e:function yhe(xe,fe,we,Oe){Rf.varargs=Oe},f:function _he(xe,fe){},n:function vhe(xe,fe,we,Oe,rt,mt,Dt){return-52},o:function whe(xe,fe,we,Oe,rt,mt){},j:function Che(){return Date.now()},m:function xhe(){return 2147483648},l:function Dhe(xe){var Hn,fe=st.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var rt=1;rt<=4;rt*=2){var mt=fe*(1+.2/rt);if(mt=Math.min(mt,xe+100663296),She(Math.min(we,(Hn=Math.max(xe,mt))+(65536-Hn%65536)%65536)))return!0}return!1},p:function Mhe(xe,fe){var we=0;return Pf().forEach(function(Oe,rt){var mt=fe+we;Zb(4*(xe+4*rt>>2),mt),function The(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Je[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function Ahe(xe,fe){var we=Pf();Zb(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(rt){Oe+=rt.length+1}),Zb(4*(fe>>2),Oe),0},a:function Ihe(xe,fe){!function khe(xe){(function ct(){return ce})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new uhe(xe))}(xe)},b:function Rhe(xe){return 52},h:function Phe(xe,fe,we,Oe){return 52},k:function Nhe(xe,fe,we,Oe,rt){return 70},c:function jhe(xe,fe,we,Oe){for(var rt=0,mt=0;mt>2)),Rt=dx(4*(fe+4>>2));fe+=8;for(var Hn=0;Hn>2),rt),0}},Oj=(function che(){var xe={a:Bhe};function fe(Oe,rt){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,en(),function sx(xe){sn.unshift(xe)}(e.asm.t),function xn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==Pt&&(clearInterval(Pt),Pt=null),ri)){var fe=ri;ri=null,fe()}}(),mt}if(function ai(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function lhe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Jr(fe)||"function"!=typeof fetch?Vb(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(rt){return WebAssembly.instantiateStreaming(rt,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),Vb(fe,we,Oe)})})})(re,dr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Oj=e._malloc=e.asm.K).apply(null,arguments)});function Rj(){function xe(){Ub||(Ub=!0,e.calledRun=!0,!pe&&(function ro(){hx(sn)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Er(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),$o.unshift(xe);var xe;hx($o)}()))}ft>0||(function yn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),an.unshift(xe);var xe;hx(an)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ri=function xe(){Ub||Rj(),Ub||(ri=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Pj(xe){return px.apply(this,arguments)}function px(){return(px=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Qr(xe){return gx.apply(this,arguments)}function gx(){return(gx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,rt=e._malloc(Oe);if(0==rt)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return Of(fe,rt),Je[rt+Oe]=0,e._s3file_init(rt,Oe-1)})).apply(this,arguments)}return Rj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function rpe(xe){return e.modelBase+xe},e.load_json=Pj,e.Decoder=class spe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=Tr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return je(e._config_serialize_json(fe))}set_config(fe,we){const Oe=Tr(fe),rt=e._decoder_config(this.cdecoder),mt=e._config_typeof(rt,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=Tr(we);e._config_set_str(rt,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(rt,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(rt,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,rt),e._free(we)}get_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&rt){const Dt=e._config_str(Oe,we);mt=0==Dt?null:je(Dt)}else 4&rt?mt=e._config_float(Oe,we):2&rt?mt=e._config_int(Oe,we):16&rt&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${rt} for parameter ${fe}`);return mt}has_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=0!=e._config_typeof(Oe,we);return e._free(we),rt}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Pj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Qr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),rt=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,rt,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Qr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Qr(fe),rt=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,rt,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,rt){var mt=this;return(0,y.Z)(function*(){const Dt=yield Qr(fe),Rt=yield Qr(we);var Hn,zi;try{Hn=yield Qr(Oe),zi=0}catch{Hn=0,zi=yield Qr(rt)}if(e._load_gmm(mt.cdecoder,Dt,Rt,zi,Hn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Qr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Qr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const rt=fe.get_config("jsgf");null!=rt&&(Oe=yield Qr(rt));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Qr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const rt=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(rt);Of(new Uint8Array(fe.buffer,fe.byteOffset,rt),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,rt/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),je(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const rt=je(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(rt)}lookup_word(fe){this.assert_initialized();const we=Tr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:je(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._endpointer_process(this.cep,rt);if(e._free(rt),0!=mt){const Dt=new Int16Array(Je.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,rt,we.length,mt);if(e._free(mt),e._free(rt),0!=Dt){const Rt=Gb(mt,"i32"),Hn=new Int16Array(Je.buffer,Dt,2*Rt);return Float32Array.from(Hn,zi=>zi>0?zi/32767:zi/32768)}return null}},e.ready});var lb,Vs=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Vs||{});let IN=(()=>{class t{constructor(){this.modelLoaded=!1,this.mode=Vs.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new lb.Decoder;return i.initialize().finally(()=>{e.modelLoaded=!0,i.delete()})})()}loadModule$(){return hi(void 0===lb?dne().then(e=>(lb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new _n(s=>{const l=new lb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zs=I(9884);const Nu=new WeakSet,ON=new WeakMap,qC=new WeakMap,RN=new WeakMap,e1=new WeakMap,cb=new WeakMap,PN=new WeakMap,t1=new WeakMap,n1=new WeakMap,o1=new WeakMap,NN={construct:()=>NN},FN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,LN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(FN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(FN)}return[e.join(";"),i]},jN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},BN=t=>{if(!(t=>{try{new new Proxy(t,NN)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Ur=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},ub=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},HN=(t,n,e,i)=>{const o=Ur(t,n),r=ub(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},bf=t=>Ur(PN,t),Fu=t=>{if(Nu.has(t))throw new Error("The AudioNode is already stored.");Nu.add(t),bf(t).forEach(n=>n(!0))},YN=t=>"port"in t,yf=t=>{if(!Nu.has(t))throw new Error("The AudioNode is not stored.");Nu.delete(t),bf(t).forEach(n=>n(!1))},r1=(t,n)=>{!YN(t)&&n.every(e=>0===e.size)&&yf(t)},xne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,db=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Da=()=>new DOMException("","IndexSizeError"),a1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Da():i}})},Ene={numberOfChannels:1},Yo=-34028234663852886e22,ko=-Yo,es=t=>Nu.has(t),Mne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Io=t=>Ur(ON,t),_f=t=>Ur(RN,t),s1=(t,n)=>{const{activeInputs:e}=Io(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||s1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:YN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=_f(o);void 0!==r&&r.activeInputs.forEach(([a])=>s1(a,n))}es(t)&&yf(t)},fb=t=>"context"in t,vf=t=>fb(t[0]),Gl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},$N=(t,n,[e,i],o)=>{Gl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},VN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Gl(r,[e,i],a=>a[0]===e,o)},Lu=t=>"inputs"in t,pb=(t,n,e,i)=>{if(Lu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},ZN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},GN=(t,n)=>{if(!bf(t).delete(n))throw new Error("Missing the expected event listener.")},UN=(t,n,e)=>{const i=Ur(t,n),o=ub(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},gb=(t,n,e,i)=>{Lu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},oi=t=>Ur(qC,t),wf=t=>Ur(e1,t),Ul=t=>t1.has(t),mb=t=>!Nu.has(t),WN=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),l1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},bb=t=>"context"in t,c1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Io(n),a=ZN(o[i],t,e);return null===a?[HN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(GN(t,r),a&&!n&&!Ul(t)&&gb(oi(t),oi(e),i,o)),es(e)){const{activeInputs:s}=Io(e);r1(e,s)}},u1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=_f(n),r=ZN(i,t,e);return null===r?[UN(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(GN(t,o),r&&!n&&!Ul(t)&&oi(t).disconnect(wf(e),i))};class XN{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function yb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const JN=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},_b=(t,n)=>{const e=[];for(let i=0;iS+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Io(n),p=yield((t,n)=>{const e=Ur(o1,t),i=oi(n);return Ur(e,i)})(i,n),g=_b(o.numberOfInputs,o.channelCount),b=_b(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((S,H)=>({...S,[H]:new Float32Array(128)}),{});for(let S=0;S0&&null!==e)for(let H=0;H{yb(e,T,H,c+re,S)});for(let H=0;H0===h.activeInputs[G].size?[]:ce),re=s(S/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let ce=0,G=0;ce{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},Mie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},vb=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Fie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Vie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Ri=()=>new DOMException("","InvalidStateError"),wb=()=>new DOMException("","InvalidAccessError"),noe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},KN=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},li=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Yi=(t,n)=>{li(t,n,"channelCount"),li(t,n,"channelCountMode"),li(t,n,"channelInterpretation")},qN=t=>"function"==typeof t.getFloatTimeDomainData,mi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},d1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},h1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},eF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),joe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),tF=(t,n)=>{const e=t.createBiquadFilter();return Yi(e,n),mi(e,n,"Q"),mi(e,n,"detune"),mi(e,n,"frequency"),mi(e,n,"gain"),li(e,n,"type"),e},Cf=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Yi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Ri()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Ri()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Ri()}})})(e),e},ju=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),nF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Yi(e,n),mi(e,n,"delayTime"),e},zo=(t,n)=>{const e=t.createGain();return Yi(e,n),mi(e,n,"gain"),e};function Woe(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function Xoe(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function iF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=Xoe(e,n),e[0]+=t[i];return e}const xf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),hre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},gre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},yre={disableNormalization:!1},Tre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},oF=()=>new DOMException("","UnknownError"),Rre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},rF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),aF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Sf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},sF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;sF(t,n,e+1e-7)}},f1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},lF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},p1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},cF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),ju(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Bu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},Xre=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Gl),Jre=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Gl),Qre=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(ub),uF=new WeakMap,Kre=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(uF),cr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Wr=typeof window>"u"?null:window,dF=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Yi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return li(o,i,"fftSize"),li(o,i,"maxDecibels"),li(o,i,"minDecibels"),li(o,i,"smoothingTimeConstant"),t(qN,()=>qN(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Io),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Io,g1,Ul),qre=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(dF,oi,oo),ei=(t=>n=>{const e=t.get(n);if(void 0===e)throw Ri();return e})(cb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Wr),Bn=(t=>n=>null!==t&&n instanceof t)(Ji),hF=new WeakMap,fF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Bu),ts=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Wr),m1=(t=>n=>null!==t&&n instanceof t)(ts),b1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Wr),pF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Wr),Hu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Wr),Ei=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(S,H,re,ce){super(re),this._context=S,this._nativeAudioNode=re;const G=u(S);d(G)&&!0!==e(WN,()=>WN(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=bb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{bb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(re),qC.set(this,re),PN.set(this,new Set),"closed"!==S.state&&H&&Fu(this),t(this,ce,re)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(S){this._nativeAudioNode.channelCount=S}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(S){this._nativeAudioNode.channelCountMode=S}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(S){this._nativeAudioNode.channelInterpretation=S}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(S,H=0,re=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const ce=u(this._context),G=g(ce);if(h(S)||p(S))throw r();if(fb(S)){const be=oi(S);try{const je=pb(this._nativeAudioNode,be,H,re),Xe=mb(this);(G||Xe)&&this._nativeAudioNode.disconnect(...je),"closed"!==this.context.state&&!Xe&&mb(S)&&Fu(S)}catch(je){throw 12===je.code?r():je}if(n(this,S,H,re,G)){const je=l([this],S);l1(je,i(G))}return S}const pe=wf(S);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||mb(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=_f(n),{outputs:a}=Io(t),s=bf(t),l=c=>{const u=oi(t),d=wf(n);if(c){const h=UN(r,t,e);$N(o,t,h,!1),!i&&!Ul(t)&&u.connect(d,e)}else{const h=((t,n,e)=>ub(t,i=>i[0]===n&&i[1]===e))(o,t,e);VN(r,h,!1),!i&&!Ul(t)&&u.disconnect(d,e)}};return!!Gl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),es(t)?$N(o,t,[e,l],!0):VN(r,[t,e,l],!0),!0)})(this,S,H,G)){const be=l([this],S);l1(be,i(G))}}disconnect(S,H,re){let ce;const G=u(this._context),pe=g(G);if(void 0===S)ce=((t,n)=>{const e=Io(t),i=[];for(const o of e.outputs)vf(o)?c1(t,n,...o):u1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof S){if(S<0||S>=this.numberOfOutputs)throw o();ce=((t,n,e)=>{const i=Io(t),o=[];for(const r of i.outputs)r[1]===e&&(vf(r)?c1(t,n,...r):u1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,S)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||fb(S)&&void 0!==re&&(re<0||re>=S.numberOfInputs))throw o();if(ce=((t,n,e,i,o)=>{const r=Io(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(vf(a)?c1(t,n,...a):u1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,S,H,re),0===ce.length)throw r()}for(const ye of ce){const be=l([this],ye);l1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,S,H)=>{const{activeInputs:re,passiveInputs:ce}=r(b),{outputs:G}=r(g),pe=s(g),ye=be=>{const Pe=l(b),je=l(g);if(be){const Xe=HN(ce,g,T,S);t(re,g,Xe,!1),!H&&!d(g)&&e(je,Pe,T,S),h(b)&&Fu(b)}else{const Xe=i(re,g,T,S);n(ce,S,Xe,!1),!H&&!d(g)&&o(je,Pe,T,S);const Re=a(b);if(0===Re)u(b)&&r1(b,re);else{const Je=p.get(b);void 0!==Je&&clearTimeout(Je),p.set(b,setTimeout(()=>{u(b)&&r1(b,re)},1e3*Re))}}};return!!c(G,[b,T,S],be=>be[0]===b&&be[1]===T&&be[2]===S,!0)&&(pe.add(ye),u(g)?t(re,g,[T,S,ye],!0):n(ce,S,[g,T,ye],!0),!0)}})(Xre,Jre,pb,Qre,gb,Io,Kre,bf,oi,Gl,es,Ul,mb),cr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(vf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(t1,gb,Io,oi,wf,es),Da,wb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(vf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(pb,t1,Io,oi,wf,ei,es,Bn),((t,n,e)=>function i(o,r){const a=fb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(hF,Io,Ur),fF,ei,m1,b1,pF,Bn,Hu),eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...xne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ei,qre,Da,dF,ei,Bn),y1=new WeakSet,gF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Wr),mF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),_1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Bj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Ene,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),a1(g)):n(db,()=>db(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Bj.prototype||t.has(u)}}})(y1,cr,yo,gF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(gF),_1,v1),Cb=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})(zo),bF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(g1,_f,Ul),Ea=(t=>(n,e,i)=>t(e,n,i))(bF),Yu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Yi(p,h),mi(p,h,"playbackRate"),li(p,h,"buffer"),li(p,h,"loop"),li(p,h,"loopEnd"),li(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Ri();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||d1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||h1(p),t(d,p),p})(Cb,cr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},f1,lF,p1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Sf),cF),Ta=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(_f),bF),nae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,Yu,oi,Ta,oo),Xr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,S=null)=>{const H=b.value,re=new Zs.AutomationEventList(H),ce=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(re):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===S?b.minValue:S},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===ce&&re.flush(p.context.currentTime),re.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const ye=Array.from(re).pop();null===ce&&re.flush(p.context.currentTime),re.add(o(pe));const be=Array.from(re).pop();b.cancelScheduledValues(pe),ye!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===ce&&re.flush(p.context.currentTime),re.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,ye){if(0===pe)throw new RangeError;if(!Number.isFinite(ye)||ye<0)throw new RangeError;const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(a(pe,ye)),b.exponentialRampToValueAtTime(pe,ye),G},linearRampToValueAtTime(pe,ye){const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(s(pe,ye)),b.linearRampToValueAtTime(pe,ye),G},setTargetAtTime:(pe,ye,be)=>(null===ce&&re.flush(p.context.currentTime),re.add(l(pe,ye,be)),b.setTargetAtTime(pe,ye,be),G),setValueAtTime:(pe,ye)=>(null===ce&&re.flush(p.context.currentTime),re.add(c(pe,ye)),b.setValueAtTime(pe,ye),G),setValueCurveAtTime(pe,ye,be){const Pe=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const je=ye+be,Xe=p.context.sampleRate,Re=Math.ceil(ye*Xe),Je=Math.floor(je*Xe),st=Je-Re,ht=new Float32Array(st);for(let He=0;He(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(RN),hF,e1,0,Zs.createCancelAndHoldAutomationEvent,Zs.createCancelScheduledValuesAutomationEvent,Zs.createExponentialRampToValueAutomationEvent,Zs.createLinearRampToValueAutomationEvent,Zs.createSetTargetAutomationEvent,Zs.createSetValueAutomationEvent,Zs.createSetValueCurveAutomationEvent,ts,sF),iae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Mne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,ko,Yo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Fu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),es(this)&&yf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ei,nae,Xr,Ri,Yu,ei,Bn,Bu),oae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ei,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Da,Ri,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})(zo,Sf),ei,Bn,oo),rae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,tF,oi,Ta,oo),Xl=(t=>(n,e)=>t.set(n,e))(uF),aae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...oie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,ko,Yo),this._detune=n(this,g,p.detune,1200*Math.log2(ko),-1200*Math.log2(ko)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(ko),Yo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ei,Xr,rae,wb,tF,ei,Bn,Xl),Gs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Gl,b1),sae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Ri,Gs),Us=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Yi(o,i),o})(ts,sae),lae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Us,oi,oo),cae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...lie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ei,lae,Us,ei,Bn),uae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Cf,oi,oo),dae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...die,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ei,uae,Cf,ei,Bn),hae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i(ju(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Cb,Yu,zo,Gs),zu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Yi(s,a),mi(s,a,"offset"),n(i,()=>i(r))||d1(s),n(o,()=>o(r))||h1(s),t(r,s),s})(Cb,cr,hae,f1,p1),fae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,zu,oi,Ta,oo),pae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...bie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,ko,Yo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ei,Xr,fae,zu,ei,Bn,Bu),yF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Yi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),li(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Sf),gae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(yF,oi,oo),mae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...wie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ei,gae,yF,ei,Bn,Xl),bae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ea,nF,oi,Ta,oo),yae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Mie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ei,Xr,bae,nF,ei,Bn,Xl),_F=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Yi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return mi(i,e,"attack"),mi(i,e,"knee"),mi(i,e,"ratio"),mi(i,e,"release"),mi(i,e,"threshold"),i})(yo),_ae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,_F,oi,Ta,oo),vae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Fie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ei,Xr,_ae,_F,yo,ei,Bn,Xl),wae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,zo,oi,Ta,oo),Cae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Vie,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,ko,Yo)}get gain(){return this._gain}})(Ei,Xr,wae,zo,ei,Bn),xae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=eF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Pe=be.inputBuffer,je=be.outputBuffer,Xe=Pe.numberOfChannels;for(let Re=0;ReS.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>S.dispatchEvent(be[0]),getFrequencyResponse(be,Pe,je){if(be.length!==Pe.length||Pe.length!==je.length)throw t();const Xe=be.length;for(let Re=0;ReS.removeEventListener(be[0],be[1],be[2])},S)})(wb,Ri,xf,yo),xb=((t,n,e,i)=>o=>t(Wl,()=>Wl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(cr,zo,xf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})(zo,Ji)),Sae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const S=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,S,S.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Yi(o,i),o})(xae),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...noe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw wb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ei,Dae,Sae,ei,Bn,Xl),Tae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:S,upX:H,upY:re,upZ:ce}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),ye=a(c);let be=!1,Pe=[0,0,-1,0,1,0],je=[0,0,0];const Xe=()=>{if(be)return;be=!0;const ht=i(c,256,9,0);ht.onaudioprocess=({inputBuffer:Se})=>{const He=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];He.some((nt,St)=>nt!==Pe[St])&&(u.setOrientation(...He),Pe=He);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((nt,St)=>nt!==je[St])&&(u.setPosition(...We),je=We)},pe.connect(ht)},Re=ht=>Se=>{Se!==Pe[ht]&&(Pe[ht]=Se,u.setOrientation(...Pe))},Je=ht=>Se=>{Se!==je[ht]&&(je[ht]=Se,u.setPosition(...je))},st=(ht,Se,He)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ht),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const nt=t({context:l},ye,We.offset,ko,Yo);return s(nt,"value",St=>()=>St.call(nt),St=>Mt=>{try{St.call(nt,Mt)}catch(en){if(9!==en.code)throw en}Xe(),ye&&He(Mt)}),nt.cancelAndHoldAtTime=(St=nt.cancelAndHoldAtTime,ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en}),nt.cancelScheduledValues=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.cancelScheduledValues),nt.exponentialRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.exponentialRampToValueAtTime),nt.linearRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.linearRampToValueAtTime),nt.setTargetAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setTargetAtTime),nt.setValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueAtTime),nt.setValueCurveAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueCurveAtTime),nt;var St};return{forwardX:st(0,0,Re(0)),forwardY:st(1,0,Re(1)),forwardZ:st(2,-1,Re(2)),positionX:st(6,0,Je(0)),positionY:st(7,0,Je(1)),positionZ:st(8,0,Je(2)),upX:st(3,0,Re(3)),upY:st(4,1,Re(4)),upZ:st(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return S},get upX(){return H},get upY(){return re},get upZ(){return ce}}})(Xr,Us,zu,xf,yo,rF,Bn,Sf),vF=new WeakMap,w1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,cb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(oae,Tae,fF,Bn,vF,Bu),wF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Yi(l,s),mi(l,s,"detune"),mi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):li(l,s,"type"),n(e,()=>e(a))||d1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||h1(l),t(a,l),l})(Cb,cr,f1,lF,p1,cF),Mae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ea,wF,oi,Ta,oo),Aae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...hre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ei,Xr,wF,Mae,ei,Bn,Bu),CF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Yu),kae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Yi(c,l),Yi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,S=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return S},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,ye=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);ye[0]=G[0],be[0]=-G[pe-1];const Pe=Math.ceil((pe+1)/2),je=(pe+1)/2-1;for(let Xe=1;Xed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o(ju(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(S)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(CF,Ri,zo,aF,Gs),Sb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Yi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();li(c,{curve:u},"curve"),li(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(CF,Ri,kae,aF,Gs,ts,Sf),Iae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:S,orientationZ:H,panningModel:re,positionX:ce,positionY:G,positionZ:pe,refDistance:ye,rolloffFactor:be,...Pe})=>{const je=u.createPanner();if(Pe.channelCount>2||"max"===Pe.channelCountMode)throw a();Yi(je,Pe);const Xe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Xe,channelInterpretation:"speakers",numberOfInputs:6}),Je=i(u,{...Pe,gain:1}),st=i(u,{...Xe,gain:1}),ht=i(u,{...Xe,gain:0}),Se=i(u,{...Xe,gain:0}),He=i(u,{...Xe,gain:0}),We=i(u,{...Xe,gain:0}),nt=i(u,{...Xe,gain:0}),St=o(u,256,6,1),Mt=r(u,{...Xe,curve:new Float32Array([1,1]),oversample:"none"});let en=[T,S,H],Rn=[ce,G,pe];const an=new Float32Array(1);St.onaudioprocess=({inputBuffer:ct})=>{const yn=[l(ct,an,0),l(ct,an,1),l(ct,an,2)];yn.some((Er,Xs)=>Er!==en[Xs])&&(je.setOrientation(...yn),en=yn);const ro=[l(ct,an,3),l(ct,an,4),l(ct,an,5)];ro.some((Er,Xs)=>Er!==Rn[Xs])&&(je.setPosition(...ro),Rn=ro)},Object.defineProperty(ht.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(He.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(nt.gain,"defaultValue",{get:()=>0});const sn={get bufferSize(){},get channelCount(){return je.channelCount},set channelCount(ct){if(ct>2)throw a();Je.channelCount=ct,je.channelCount=ct},get channelCountMode(){return je.channelCountMode},set channelCountMode(ct){if("max"===ct)throw a();Je.channelCountMode=ct,je.channelCountMode=ct},get channelInterpretation(){return je.channelInterpretation},set channelInterpretation(ct){Je.channelInterpretation=ct,je.channelInterpretation=ct},get coneInnerAngle(){return je.coneInnerAngle},set coneInnerAngle(ct){je.coneInnerAngle=ct},get coneOuterAngle(){return je.coneOuterAngle},set coneOuterAngle(ct){je.coneOuterAngle=ct},get coneOuterGain(){return je.coneOuterGain},set coneOuterGain(ct){if(ct<0||ct>1)throw n();je.coneOuterGain=ct},get context(){return je.context},get distanceModel(){return je.distanceModel},set distanceModel(ct){je.distanceModel=ct},get inputs(){return[Je]},get maxDistance(){return je.maxDistance},set maxDistance(ct){if(ct<0)throw new RangeError;je.maxDistance=ct},get numberOfInputs(){return je.numberOfInputs},get numberOfOutputs(){return je.numberOfOutputs},get orientationX(){return st.gain},get orientationY(){return ht.gain},get orientationZ(){return Se.gain},get panningModel(){return je.panningModel},set panningModel(ct){je.panningModel=ct},get positionX(){return He.gain},get positionY(){return We.gain},get positionZ(){return nt.gain},get refDistance(){return je.refDistance},set refDistance(ct){if(ct<0)throw new RangeError;je.refDistance=ct},get rolloffFactor(){return je.rolloffFactor},set rolloffFactor(ct){if(ct<0)throw new RangeError;je.rolloffFactor=ct},addEventListener:(...ct)=>Je.addEventListener(ct[0],ct[1],ct[2]),dispatchEvent:(...ct)=>Je.dispatchEvent(ct[0]),removeEventListener:(...ct)=>Je.removeEventListener(ct[0],ct[1],ct[2])};return d!==sn.coneInnerAngle&&(sn.coneInnerAngle=d),h!==sn.coneOuterAngle&&(sn.coneOuterAngle=h),p!==sn.coneOuterGain&&(sn.coneOuterGain=p),g!==sn.distanceModel&&(sn.distanceModel=g),b!==sn.maxDistance&&(sn.maxDistance=b),T!==sn.orientationX.value&&(sn.orientationX.value=T),S!==sn.orientationY.value&&(sn.orientationY.value=S),H!==sn.orientationZ.value&&(sn.orientationZ.value=H),re!==sn.panningModel&&(sn.panningModel=re),ce!==sn.positionX.value&&(sn.positionX.value=ce),G!==sn.positionY.value&&(sn.positionY.value=G),pe!==sn.positionZ.value&&(sn.positionZ.value=pe),ye!==sn.refDistance&&(sn.refDistance=ye),be!==sn.rolloffFactor&&(sn.rolloffFactor=be),(1!==en[0]||0!==en[1]||0!==en[2])&&je.setOrientation(...en),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&je.setPosition(...Rn),c(ju(sn,je),()=>{Je.connect(je),t(Je,Mt,0,0),Mt.connect(st).connect(Re,0,0),Mt.connect(ht).connect(Re,0,1),Mt.connect(Se).connect(Re,0,2),Mt.connect(He).connect(Re,0,3),Mt.connect(We).connect(Re,0,4),Mt.connect(nt).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Je.disconnect(je),s(Je,Mt,0,0),Mt.disconnect(st),st.disconnect(Re),Mt.disconnect(ht),ht.disconnect(Re),Mt.disconnect(Se),Se.disconnect(Re),Mt.disconnect(He),He.disconnect(Re),Mt.disconnect(We),We.disconnect(Re),Mt.disconnect(nt),nt.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(pb,Ri,Us,zo,xf,Sb,yo,gb,rF,Gs),xF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Yi(i,e),mi(i,e,"orientationX"),mi(i,e,"orientationY"),mi(i,e,"orientationZ"),mi(i,e,"positionX"),mi(i,e,"positionY"),mi(i,e,"positionZ"),li(i,e,"coneInnerAngle"),li(i,e,"coneOuterAngle"),li(i,e,"coneOuterGain"),li(i,e,"distanceModel"),li(i,e,"maxDistance"),li(i,e,"panningModel"),li(i,e,"refDistance"),li(i,e,"rolloffFactor"),i)})(Iae),Oae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,S=r(g);const H={channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation},re={...H,coneInnerAngle:S.coneInnerAngle,coneOuterAngle:S.coneOuterAngle,coneOuterGain:S.coneOuterGain,distanceModel:S.distanceModel,maxDistance:S.maxDistance,panningModel:S.panningModel,refDistance:S.refDistance,rolloffFactor:S.rolloffFactor},ce=bo(S,b);if("bufferSize"in S)T=i(b,{...H,gain:1});else if(!ce){const G={...re,orientationX:S.orientationX.value,orientationY:S.orientationY.value,orientationZ:S.orientationZ.value,positionX:S.positionX.value,positionY:S.positionY.value,positionZ:S.positionZ.value};S=o(b,G)}if(u.set(b,null===T?S:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Je=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Je.connect(Re.destination),d=(0,y.Z)(function*(){const st=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ht=(0,y.Z)(function*(Se,He){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===He?1:0});return yield s(Re,Se,We.offset),We});return function(Se,He){return ht.apply(this,arguments)}}()));for(let ht=0;ht<6;ht+=1)st[ht].connect(Je,0,ht),st[ht].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const ye=[];for(let Re=0;Reht!==be[Se])||st.some((ht,Se)=>ht!==Pe[Se])){be=Je,Pe=st;const ht=Re/b.sampleRate;je.gain.setValueAtTime(0,ht),je=i(b,{...H,gain:0}),Xe=o(b,{...re,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Pe[0],positionY:Pe[1],positionZ:Pe[2]}),je.gain.setValueAtTime(1,ht),pe.connect(je).connect(Xe.inputs[0]),Xe.connect(T)}}return T}return ce?(yield t(b,g.orientationX,S.orientationX),yield t(b,g.orientationY,S.orientationY),yield t(b,g.orientationZ,S.orientationZ),yield t(b,g.positionX,S.positionX),yield t(b,g.positionY,S.positionY),yield t(b,g.positionZ,S.positionZ)):(yield s(b,g.orientationX,S.orientationX),yield s(b,g.orientationY,S.orientationY),yield s(b,g.orientationZ,S.orientationZ),yield s(b,g.positionX,S.positionX),yield s(b,g.positionY,S.positionY),yield s(b,g.positionZ,S.positionZ)),Lu(S)?yield l(g,b,S.inputs[0]):yield l(g,b,S),S});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ea,Us,zu,zo,xF,oi,Ji,Ta,oo,xb),Rae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...gre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,ko,Yo),this._orientationY=n(this,p,h.orientationY,ko,Yo),this._orientationZ=n(this,p,h.orientationZ,ko,Yo),this._positionX=n(this,p,h.positionX,ko,Yo),this._positionY=n(this,p,h.positionY,ko,Yo),this._positionZ=n(this,p,h.positionZ,ko,Yo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ei,Xr,xF,Oae,ei,Bn,Xl),Pae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Da),Nae=((t,n,e,i)=>class Hj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...yre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Hj.prototype||e.has(r)}})(Pae,ei,new WeakSet),Fae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,S,H)=>{if(1===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385);for(let Pe=0;Pe<16385;Pe+=1){const je=Pe/16384*l;H[Pe]=Math.cos(je),re[Pe]=Math.sin(je)}const ce=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),ye=e(g,{...c,gain:0}),be=i(g,{...u,curve:re});return{connectGraph(){b.connect(ce),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(ye),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(ce.gain),be.connect(ye.gain),ce.connect(S,0,0),ye.connect(S,0,1)},disconnectGraph(){b.disconnect(ce),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(ye),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(ce.gain),be.disconnect(ye.gain),ce.disconnect(S,0,0),ye.disconnect(S,0,1)}}})(g,T,S,H);if(2===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385),ce=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let He=0;He<16385;He+=1)if(He>pe){const We=(He-pe)/(16384-pe)*l;H[He]=Math.cos(We),re[He]=Math.sin(We),ce[He]=0,G[He]=1}else{const We=He/(16384-pe)*l;H[He]=1,re[He]=0,ce[He]=Math.cos(We),G[He]=Math.sin(We)}const ye=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Pe=i(g,{...u,curve:H}),je=e(g,{...c,gain:0}),Xe=i(g,{...u,curve:re}),Re=i(g,{...u,curve:s}),Je=e(g,{...c,gain:0}),st=i(g,{...u,curve:ce}),ht=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(ye),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),ye.connect(be,0),ye.connect(je,0),ye.connect(Je,1),ye.connect(ht,1),Re.connect(T),T.connect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.connect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.connect(void 0===st.inputs?st:st.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.connect(be.gain),Xe.connect(je.gain),st.connect(Je.gain),Se.connect(ht.gain),be.connect(S,0,0),Je.connect(S,0,0),je.connect(S,0,1),ht.connect(S,0,1)},disconnectGraph(){b.disconnect(ye),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),ye.disconnect(be,0),ye.disconnect(je,0),ye.disconnect(Je,1),ye.disconnect(ht,1),Re.disconnect(T),T.disconnect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.disconnect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.disconnect(void 0===st.inputs?st:st.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.disconnect(be.gain),Xe.disconnect(je.gain),st.disconnect(Je.gain),Se.disconnect(ht.gain),be.disconnect(S,0,0),Je.disconnect(S,0,0),je.disconnect(S,0,1),ht.disconnect(S,0,1)}}})(g,T,S,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:S,...H})=>{if("max"===T)throw o();const re=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),ce=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:S});let{connectGraph:pe,disconnectGraph:ye}=p(g,b,ce,G,re);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return ce.channelCount},set channelCount(Re){ce.channelCount!==Re&&(Pe&&ye(),({connectGraph:pe,disconnectGraph:ye}=p(g,Re,ce,G,re)),Pe&&pe()),ce.channelCount=Re},get channelCountMode(){return ce.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();ce.channelCountMode=Re},get channelInterpretation(){return ce.channelInterpretation},set channelInterpretation(Re){ce.channelInterpretation=Re},get context(){return ce.context},get inputs(){return[ce]},get numberOfInputs(){return ce.numberOfInputs},get numberOfOutputs(){return ce.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>ce.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>ce.dispatchEvent(Re[0]),removeEventListener:(...Re)=>ce.removeEventListener(Re[0],Re[1],Re[2])};let Pe=!1;return r(ju(be,re),()=>{pe(),Pe=!0},()=>{ye(),Pe=!1})}})(Us,Cf,zo,Sb,yo,Gs),SF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Yi(r,i),mi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Fae,yo),Lae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),Lu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,SF,oi,Ta,oo),jae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Tre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ei,Xr,SF,Lae,ei,Bn),Bae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Sb,oi,oo),Hae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Rre,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ei,Ri,Sb,Bae,ei,Bn,Xl),DF=(t=>null!==t&&t.isSecureContext)(Wr),C1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Wr),EF=new WeakMap,Yae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(EF,Ji),zae=DF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const S=u.get(g);if(void 0!==S&&S.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const re=r(g),ce=void 0===re.audioWorklet?o(b).then(([G,pe])=>{const[ye,be]=LN(G,pe);return e(`${ye};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(re.currentTime,re.sampleRate,()=>G(class{},void 0,(pe,ye)=>{if(""===pe.trim())throw n();const be=n1.get(re);if(void 0!==be){if(be.has(pe))throw n();BN(ye),jN(ye.parameterDescriptors),be.set(pe,ye)}else BN(ye),jN(ye.parameterDescriptors),n1.set(re,new Map([[pe,ye]]))},re.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],ye])=>{const be=p+1;p=be;const[Pe,je]=LN(G,pe),ht=new Blob([`${Pe};((AudioWorkletProcessor,registerProcessor)=>{${je}\n})(${ye?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${ye?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${ye?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ht);return re.audioWorklet.addModule(Se,T).then(()=>{if(s(re))return re;const He=a(re);return He.audioWorklet.addModule(Se,T).then(()=>He)}).then(He=>{if(null===l)throw new SyntaxError;try{new l(He,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,ce]])):H.set(b,ce),ce.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),ce}})(cr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Wr),C1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ei,Yae,Bn,Hu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Hu,Ji),Wr):void 0,$ae=((t,n)=>e=>t(e)||n(e))(m1,Bn),Vae=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(QN(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield QN(h)}catch{}});return function(){return H.apply(this,arguments)}}(),S=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),a1(H)),t.add(H),T().then(()=>g(H))},H=>{S(null===H?new DOMException("","EncodingError"):H)})}catch(H){S(H)}})})(y1,cr,0,0,new WeakSet,ei,$ae,db,Wl,_1,v1),TF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,S,H,re)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(ye,be)=>t(this,ye,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,ye){return new e({length:pe,numberOfChannels:G,sampleRate:ye})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,ye={disableNormalization:!1}){return new S(this,{...ye,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new re(this)}decodeAudioData(G,pe,ye){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof ye&&ye(be),be})}})(zae,eae,tae,iae,aae,cae,dae,pae,mae,Vae,yae,vae,Cae,Eae,w1,Aae,Rae,Nae,jae,Hae),Zae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ei,0,ei,Bn),Gae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Yi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...yoe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ei,0,ei,Bn),Uae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ei,0,ei,Bn),Wae=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Ri,Bn),Xae=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ei,Wae,ei),Jae=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{s1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(TF,Ri,yo,oF,Zae,Gae,Uae,Xae,ts),x1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(vF),MF=((t=>{})(x1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return bb(e)?r.connect(e,0,o):r.connect(e,0)})(Da)),Kae=(t=>(n,e)=>{t(n).delete(e)})(x1),AF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?vb(t,n,e).disconnect():bb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?vb(t,n,i).disconnect(e,0):vb(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):vb(t,n,i).disconnect(e,0))(Da),kF=new WeakMap,qae=((t,n)=>e=>n(t,e))(kF,Ur),ese=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const S=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(S.some(ft=>ft<1))throw l();if(S.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,re=S.reduce((ft,Pt)=>ft+Pt,0),ce=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+ce>6||re>6)throw l();const G=new MessageChannel,pe=[],ye=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===Pt?ko:Pt},minValue:{get:()=>void 0===ri?Yo:ri}}),be.push(xn)}const Pe=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+ce)}),je=eF(g,p.sampleRate),Xe=s(p,je,H+ce,Math.max(1,re)),Re=o(p,{channelCount:Math.max(1,re),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,re)}),Je=[];for(let ft=0;ft{const ri=be[Pt];return ri.connect(Pe,0,H+Pt),ri.start(0),[ft,ri.offset]}));Pe.connect(Xe);let ht=T.channelInterpretation,Se=null;const He=0===T.numberOfOutputs?[Xe]:Je,We={get bufferSize(){return je},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ht},set channelInterpretation(ft){for(const Pt of pe)Pt.channelInterpretation=ft;ht=ft},get context(){return Xe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return st},get port(){return G.port2},addEventListener:(...ft)=>Xe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,He),disconnect:c.bind(null,He),dispatchEvent:(...ft)=>Xe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Xe.removeEventListener(ft[0],ft[1],ft[2])},nt=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...Pt)=>{if("message"===Pt[0]){const ri="function"==typeof Pt[1]?Pt[1]:"object"==typeof Pt[1]&&null!==Pt[1]&&"function"==typeof Pt[1].handleEvent?Pt[1].handleEvent:null;if(null!==ri){const ai=nt.get(Pt[1]);void 0!==ai?Pt[1]=ai:(Pt[1]=xn=>{u(p.currentTime,p.sampleRate,()=>ri(xn))},nt.set(ri,Pt[1]))}}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])}),G.port1.removeEventListener=(ft=>(...Pt)=>{if("message"===Pt[0]){const ri=nt.get(Pt[1]);void 0!==ri&&(nt.delete(Pt[1]),Pt[1]=ri)}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let Mt=null;((t,n,e,i)=>{let o=o1.get(t);void 0===o&&(o=new WeakMap,o1.set(t,o));const r=joe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>Mt=ft);const Rn=_b(T.numberOfInputs,T.channelCount),an=_b(T.numberOfOutputs,S),sn=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:Pt})=>({...ft,[Pt]:new Float32Array(128)}),{});let $o=!0;const Vn=()=>{T.numberOfOutputs>0&&Xe.disconnect(Re);for(let ft=0,Pt=0;ft{if(null!==Mt){const ri=d(We);for(let ai=0;ai{yb(ft,sn,xn,H+Zn,ai)});for(let xn=0;xn{if(ri[Jr].size>0)return ct.set(Jr,je/128),Vo;const Zu=ct.get(Jr);return void 0===Zu?[]:(Vo.every(cx=>cx.every(Vb=>0===Vb))&&(1===Zu?ct.delete(Jr):ct.set(Jr,Zu-1)),Vo)});$o=u(p.currentTime+ai/p.sampleRate,p.sampleRate,()=>Mt.process(xn,an,sn));for(let Vo=0,Jr=0;VoXe.connect(ro).connect(p.destination),Xs=()=>{Xe.disconnect(ro),ro.disconnect()};return Er(),h(We,()=>{if($o){Xs(),T.numberOfOutputs>0&&Xe.connect(Re);for(let ft=0,Pt=0;ft{$o&&(Er(),Vn()),yn=!1})})(MF,Da,Ri,Us,Cf,zu,zo,xf,yo,AF,C1,qae,Gs);let Db=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(Ua(s=>(this.toastr.error(s.message,"Hum, le fichier ne peut pas \xEAtre t\xE9l\xE9charg\xE9. Pri\xE8re de r\xE9essayer plus tard.",{timeOut:1e4}),Tt(s))),Nt(s=>s),io(1))}loadAudioBufferFromFile$(e,i){var o=new Jae({sampleRate:i});return hi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(vl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ur={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI"},"private":true,"singleFileBundleVersion":"1.5.1","singleFileBundleTimestamp":"2024-10-18+17-15-26"}')},rse={title:"Bienvenue au Studio ReadAlong",text:"Il est facile de cr\xE9er un ReadAlong! Vous trouverez tous les trucs et astuces pour utiliser le Studio dans cette visite guid\xE9e.",attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"intro"},ase={title:"Ajouter vos donn\xE9es",text:"Pour cr\xE9er un ReadAlong, il faut ajouter du texte et de l'audio.",attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"data"},sse={title:"R\xE9diger votre texte",text:"Vous pouvez r\xE9diger directement votre texte dans ReadAlongStudio en s\xE9lectionnant l'option \xAB\xA0R\xE9diger\xA0\xBB.",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"text-write"},RF={title:"Utiliser un fichier texte",text:"Vous pouvez aussi lire votre texte \xE0 partir d'un ficher en format texte brut (.txt) ou ReadAlong Studio (.readalong).",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"text-file"},lse={title:"Enregistrer votre propre audio",text:"Vous pouvez enregistrer votre propre audio avec votre microphone.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"audio-record"},PF={title:"Utiliser un fichier audio",text:"Vous pouvez aussi s\xE9lectionner un fichier .wav, .mp3 ou .webm de votre ordinateur.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"audio-file"},cse={title:"Selectionner votre langue",text:"Ensuite, facultativement, vous pouvez s\xE9lectionner la langue de votre ReadAlong.",attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"language"},use={title:"Selectionner votre langue",text:"Pour la plupart des cas, l'option par d\xE9faut est appropri\xE9e - laissez simplement cette option s\xE9lectionn\xE9e!",attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"generic-language"},dse={title:"Selectionner votre langue",text:"Par contre, si vos r\xE9sultats sont inad\xE9quats avec l'option par d\xE9faut, vous pouvez choisir un langue parmi cette liste. Si vous ne trouvez pas la v\xF4tre, il est toujours possible de l'ajouter. Commencez par lire nos billets de blogue (en anglais) pour apprendre comment ajouter votre langue, or encore contactez-nous pour plus d'information.",attachTo:{element:"#specific-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"specific-language"},Df={title:"C'est fini!",text:"Une fois termin\xE9, vous pouvez cliquer sur \xAB\xA0prochaine \xE9tape\xA0\xBB pour laisser Studio monter votre ReadAlong! (Ceci peut prendre quelques secondes.)",attachTo:{element:"#next-step",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer"}],id:"create-readalong"},hse={title:"Tada!",text:"Votre ReadAlong vient d'\xEAtre cr\xE9e.",attachTo:{element:"#readalong",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"step-two-intro"},NF={title:"\xC9couter votre ReadAlong",text:"En cliquant sur l'ic\xF4ne de lecture, vous pouvez \xE9couter l'audio en voyant chaque mot surlign\xE9 lorsqu'il est lu. Essayez-le!",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-play"},FF={title:"\xC9couter votre ReadAlong",text:"Vous pouvez aussi faire lire un mot en isolation en cliquant dessus.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-play-word"},LF={title:"Modifier votre ReadAlong",text:"Vous pouvez modifier le texte ici pour ajouter un titre ou un sous-titre \xE0 votre ReadAlong.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-change-title"},Eb={title:"Modifier votre ReadAlong",text:"Vous pouvez ajouter une image \xE0 chaque page de votre ReadAlong ici.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-add-image"},Tb={title:"Modifier votre ReadAlong",text:"Vous pouvez ajouter une traduction ou d'autre texte informatif \xE0 chaque phrase de votre ReadAlong en cliquant sur l'ic\xF4ne + ici. Si vous voulez ensuite retirer une traduction, cliquez sur l'ic\xF4ne \u2212.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-add-translation"},Mb={title:"Exporter votre ReadAlong",text:"Quand vous \xEAtes satisfait de votre ReadAlong, vous pouvez le t\xE9l\xE9charger en divers formats, en s\xE9lectionnant un format puis en cliquant sur le bouton de t\xE9l\xE9chargement (la fl\xE8che qui pointe vers le bas). Vous pouvez s\xE9lectionner l'un des formats suivants: "+"
  • "+"Fichier HTML hors r\xE9seau: votre ReadAlong en un seul fichier HTML qui s'utilise sans acc\xE8s web,"+"
  • "+"Fichiers Web zipp\xE9s: tous vos fichiers ReadAlong dans un dossier pouvant \xEAtre h\xE9berg\xE9 sur un serveur web,"+"
  • "+"Fichiers Elan and Praat: formats exportables utilis\xE9s par les linguistes documentaires,"+"
  • "+"Sous-titres SRT et WebVTT: formats exportables pour ajouter des sous-titres \xE0 des vid\xE9os."+"
",attachTo:{element:"div.download__buttons",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-export"},fse={title:"Modifier les donn\xE9es pour votre ReadAlong",text:"Si vous voulez modifier votre audio ou votre texte, vous pouvez retourner \xE0 l'\xC9tape 1 pour effectuer des changements ou cr\xE9er un nouveau ReadAlong. "+"Mais attention, retourner en arri\xE8re vous fera perdre vos traductions et vos images."+"

"+"Attention: si vous utilisez le bouton de retour de votre navigateur, vous quitterez l'appli au complet et perdrez probablement aussi tout votre texte et votre audio. "+"Utilisez plut\xF4t le bouton \"\xC9tape 1\" pour retourner modifier votre texte ou votre audio.",attachTo:{element:"div.mat-horizontal-stepper-header-container",on:"botton-start"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Terminer",type:"cancel"}],id:"readalong-back"},pse={title:"\xC9diteur pour votre ReadAlong",text:"Cet outil vous permet de modifier votre ReadAlong. Notez que cet outil n'accepte que le format HTML hors r\xE9seau.",attachTo:{element:"#editor",on:"bottom-center"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},jF={title:"Choisir un fichier",text:"Choisissez un fichier ReadAlong en format HTML hors r\xE9seau. Vous pouvez aussi utiliser le fichier HTML hors r\xE9seau inclus dans le format de Fichiers Web zipp\xE9s. Pour continuer la visite guid\xE9e, nous allons ajouter un exemple de ReadAlong pour vous.",attachTo:{element:"#updateRAS",on:"bottom-middle"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-warning",text:"Continuer"}]},gse={title:"Tada!",text:"Votre ReadAlong a \xE9t\xE9 charg\xE9.",attachTo:{element:"#readalongContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},mse={title:"Barre d'outils audio",text:"Voici une repr\xE9sentation visuelle de l'alignement de votre audio et de votre texte. Vous pouvez ajuster cet alignement et corriger les erreurs d'orthographe ici. Cliquez sur \xAB\xA0Continuer\xA0\xBB pour voir comment.",attachTo:{element:"#audioToolbar",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},bse={title:"Zoom de la visualisation audio-texte",text:"Utilisez les contr\xF4les de zoom pour vous concentrer sur une section de l'audio-texte.",attachTo:{element:"#zoomControls",on:"top-end"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},BF={title:"Visualisation de l'alignement audio-texte",text:"Ceci repr\xE9sente visuellement l'alignement audio-texte de votre ReadAlong. Cliquez sur la forme d'onde pour \xE9couter un mot. D\xE9placez les barres aux bordures d'un mot pour ajuster son alignement. Clickez ensuite sur le bouton de lecture du ReadAlong pour constater le r\xE9sultat de vos ajustements sur le surlignage de votre ReadAlong.",attachTo:{element:"#wavesurferContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},HF={title:"Corriger les fautes d'orthographe",text:"Pour corriger une faute d'orthographe, cliquez sur un mot et modifiez-le.",attachTo:{element:"#wavesurferContainer",on:"left"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]};let S1=(()=>{class t{constructor(e,i){this.http=e,this.fileService=i,this.JS_BUNDLE_URL="assets/bundle.js",this.FONTS_BUNDLE_URL="assets/fonts.b64.css",this.jsAndFontsBundle$=new ci(null),this.getBundle$().subscribe(o=>{this.jsAndFontsBundle$.next(o)})}getBundle$(){return Dh([this.http.get(this.JS_BUNDLE_URL,{responseType:"blob"}).pipe(Wi(e=>this.fileService.readFileAsData$(e))),this.http.get(this.FONTS_BUNDLE_URL,{responseType:"blob"}).pipe(Wi(e=>this.fileService.readFileAsData$(e)))])}utf8_to_b64(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(i,o){return String.fromCharCode(parseInt(o,16))}))}b64_to_utf8(e){return decodeURIComponent(Array.prototype.map.call(window.atob(e),function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}xmlToB64(e){return this.utf8_to_b64((new XMLSerializer).serializeToString(e))}blobToB64(e){return new Promise((i,o)=>{const r=new FileReader;r.onloadend=()=>i(r.result),r.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(Db))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var D1=function(t){return t.generic="generic",t.specific="specific",t}(D1||{});let E1=(()=>{class t{constructor(e){this._formBuilder=e,this.slots={title:"Titre",subtitle:"Sous-titre"},this.lastStepperIndex=0,this.temporaryBlob=void 0,this.b64Inputs$=new ci(["",null]),this.render$=new ci(!1),this.langMode$=new ci(D1.generic),this.langControl$=new $r({value:"und",disabled:"specific"!==this.langMode$.value},Rs.required),this.textControl$=new $r(null,Rs.required),this.audioControl$=new $r(null,Rs.required),this.$textInput=new ci(""),this.uploadFormGroup=this._formBuilder.group({lang:this.langControl$,text:this.textControl$,audio:this.audioControl$}),this.inputMethod={audio:"mic",text:"edit"},this.langMode$.subscribe(i=>{i===D1.generic?this.langControl$.disable():this.langControl$.enable()})}static{this.\u0275fac=function(i){return new(i||t)(Me(wO))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var yse=I(990),_se=I.n(yse);function YF(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vse(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wse=[["\xdf","ss"],["\u1e9e","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["\u0150","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["\u0170","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["\u0151","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["\u0171","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["\u1e9e","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01a1","o"],["\u01a0","O"],["\u01b0","u"],["\u01af","U"],["\u1ea1","a"],["\u1ea0","A"],["\u1ea3","a"],["\u1ea2","A"],["\u1ea5","a"],["\u1ea4","A"],["\u1ea7","a"],["\u1ea6","A"],["\u1ea9","a"],["\u1ea8","A"],["\u1eab","a"],["\u1eaa","A"],["\u1ead","a"],["\u1eac","A"],["\u1eaf","a"],["\u1eae","A"],["\u1eb1","a"],["\u1eb0","A"],["\u1eb3","a"],["\u1eb2","A"],["\u1eb5","a"],["\u1eb4","A"],["\u1eb7","a"],["\u1eb6","A"],["\u1eb9","e"],["\u1eb8","E"],["\u1ebb","e"],["\u1eba","E"],["\u1ebd","e"],["\u1ebc","E"],["\u1ebf","e"],["\u1ebe","E"],["\u1ec1","e"],["\u1ec0","E"],["\u1ec3","e"],["\u1ec2","E"],["\u1ec5","e"],["\u1ec4","E"],["\u1ec7","e"],["\u1ec6","E"],["\u1ec9","i"],["\u1ec8","I"],["\u1ecb","i"],["\u1eca","I"],["\u1ecd","o"],["\u1ecc","O"],["\u1ecf","o"],["\u1ece","O"],["\u1ed1","o"],["\u1ed0","O"],["\u1ed3","o"],["\u1ed2","O"],["\u1ed5","o"],["\u1ed4","O"],["\u1ed7","o"],["\u1ed6","O"],["\u1ed9","o"],["\u1ed8","O"],["\u1edb","o"],["\u1eda","O"],["\u1edd","o"],["\u1edc","O"],["\u1edf","o"],["\u1ede","O"],["\u1ee1","o"],["\u1ee0","O"],["\u1ee3","o"],["\u1ee2","O"],["\u1ee5","u"],["\u1ee4","U"],["\u1ee7","u"],["\u1ee6","U"],["\u1ee9","u"],["\u1ee8","U"],["\u1eeb","u"],["\u1eea","U"],["\u1eed","u"],["\u1eec","U"],["\u1eef","u"],["\u1eee","U"],["\u1ef1","u"],["\u1ef0","U"],["\u1ef3","y"],["\u1ef2","Y"],["\u1ef5","y"],["\u1ef4","Y"],["\u1ef7","y"],["\u1ef6","Y"],["\u1ef9","y"],["\u1ef8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062a","t"],["\u062b","th"],["\u062c","j"],["\u062d","h"],["\u062e","kh"],["\u062f","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063a","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064a","y"],["\u064e\u200e","a"],["\u064f","u"],["\u0650\u200e","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06a9","k"],["\u06af","g"],["\u067e","p"],["\u0698","zh"],["\u06cc","y"],["\u06f0","0"],["\u06f1","1"],["\u06f2","2"],["\u06f3","3"],["\u06f4","4"],["\u06f5","5"],["\u06f6","6"],["\u06f7","7"],["\u06f8","8"],["\u06f9","9"],["\u067c","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\ufeab","d"],["\ufead","r"],["\u0693","r"],["\ufeaf","z"],["\u0696","g"],["\u069a","x"],["\u06ab","g"],["\u06bc","n"],["\u06c0","e"],["\u06d0","e"],["\u06cd","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06ba","n"],["\u06c1","h"],["\u06be","h"],["\u06d2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044a\u0435","ye"],["\u042a\u0435","Ye"],["\u044a\u0415","yE"],["\u042a\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044b\u0439","iy"],["\u042b\u0439","Iy"],["\u042b\u0419","IY"],["\u044b\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041a","K"],["\u043a","k"],["\u041b","L"],["\u043b","l"],["\u041c","M"],["\u043c","m"],["\u041d","N"],["\u043d","n"],["\u041e","O"],["\u043e","o"],["\u041f","P"],["\u043f","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042a",""],["\u044a",""],["\u042b","Y"],["\u044b","y"],["\u042c",""],["\u044c",""],["\u042d","E"],["\u044d","e"],["\u042e","Yu"],["\u044e","yu"],["\u042f","Ya"],["\u044f","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021b","t"],["\u021a","T"],["\u0163","t"],["\u0162","T"],["\u015f","s"],["\u015e","S"],["\xe7","c"],["\xc7","C"],["\u011f","g"],["\u011e","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056a","zh"],["\u053a","Zh"],["\u056b","i"],["\u053b","I"],["\u056c","l"],["\u053c","L"],["\u056d","kh"],["\u053d","Kh"],["\u056e","ts"],["\u053e","Ts"],["\u056f","k"],["\u053f","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057a","p"],["\u054a","P"],["\u057b","j"],["\u054b","J"],["\u057c","r"],["\u054c","R"],["\u057d","s"],["\u054d","S"],["\u057e","v"],["\u054e","V"],["\u057f","t"],["\u054f","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10d0","a"],["\u10d1","b"],["\u10d2","g"],["\u10d3","d"],["\u10d4","e"],["\u10d5","v"],["\u10d6","z"],["\u10d7","t"],["\u10d8","i"],["\u10d9","k"],["\u10da","l"],["\u10db","m"],["\u10dc","n"],["\u10dd","o"],["\u10de","p"],["\u10df","zh"],["\u10e0","r"],["\u10e1","s"],["\u10e2","t"],["\u10e3","u"],["\u10e4","ph"],["\u10e5","q"],["\u10e6","gh"],["\u10e7","k"],["\u10e8","sh"],["\u10e9","ch"],["\u10ea","ts"],["\u10eb","dz"],["\u10ec","ts"],["\u10ed","tch"],["\u10ee","kh"],["\u10ef","j"],["\u10f0","h"],["\u010d","c"],["\u010f","d"],["\u011b","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016f","u"],["\u017e","z"],["\u010c","C"],["\u010e","D"],["\u011a","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016e","U"],["\u017d","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078a","f"],["\u078b","dh"],["\u078c","th"],["\u078d","l"],["\u078e","g"],["\u078f","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079a","kh"],["\u079b","th"],["\u079c","z"],["\u079d","sh"],["\u079e","s"],["\u079f","d"],["\u07a0","t"],["\u07a1","z"],["\u07a2","a"],["\u07a3","gh"],["\u07a4","q"],["\u07a5","w"],["\u07a6","a"],["\u07a7","aa"],["\u07a8","i"],["\u07a9","ee"],["\u07aa","u"],["\u07ab","oo"],["\u07ac","e"],["\u07ad","ey"],["\u07ae","o"],["\u07af","oa"],["\u07b0",""],["\u03b1","a"],["\u03b2","v"],["\u03b3","g"],["\u03b4","d"],["\u03b5","e"],["\u03b6","z"],["\u03b7","i"],["\u03b8","th"],["\u03b9","i"],["\u03ba","k"],["\u03bb","l"],["\u03bc","m"],["\u03bd","n"],["\u03be","ks"],["\u03bf","o"],["\u03c0","p"],["\u03c1","r"],["\u03c3","s"],["\u03c4","t"],["\u03c5","y"],["\u03c6","f"],["\u03c7","x"],["\u03c8","ps"],["\u03c9","o"],["\u03ac","a"],["\u03ad","e"],["\u03af","i"],["\u03cc","o"],["\u03cd","y"],["\u03ae","i"],["\u03ce","o"],["\u03c2","s"],["\u03ca","i"],["\u03b0","y"],["\u03cb","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039a","K"],["\u039b","L"],["\u039c","M"],["\u039d","N"],["\u039e","KS"],["\u039f","O"],["\u03a0","P"],["\u03a1","R"],["\u03a3","S"],["\u03a4","T"],["\u03a5","Y"],["\u03a6","F"],["\u03a7","X"],["\u03a8","PS"],["\u03a9","O"],["\u0386","A"],["\u0388","E"],["\u038a","I"],["\u038c","O"],["\u038e","Y"],["\u0389","I"],["\u038f","O"],["\u03aa","I"],["\u03ab","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012b","i"],["\u0137","k"],["\u013c","l"],["\u0146","n"],["\u016b","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012a","I"],["\u0136","K"],["\u013b","L"],["\u0145","N"],["\u016a","U"],["\u010d","c"],["\u0161","s"],["\u017e","z"],["\u010c","C"],["\u0160","S"],["\u017d","Z"],["\u0105","a"],["\u010d","c"],["\u0119","e"],["\u0117","e"],["\u012f","i"],["\u0161","s"],["\u0173","u"],["\u016b","u"],["\u017e","z"],["\u0104","A"],["\u010c","C"],["\u0118","E"],["\u0116","E"],["\u012e","I"],["\u0160","S"],["\u0172","U"],["\u016a","U"],["\u040c","Kj"],["\u045c","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040a","Nj"],["\u045a","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015b","s"],["\u017a","z"],["\u017c","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015a","S"],["\u0179","Z"],["\u017b","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xa2","c"],["\xa5","Y"],["\u07ff","b"],["\u09f3","t"],["\u0af1","Bo"],["\u0e3f","B"],["\u20a0","CE"],["\u20a1","C"],["\u20a2","Cr"],["\u20a3","F"],["\u20a5","m"],["\u20a6","N"],["\u20a7","Pt"],["\u20a8","Rs"],["\u20a9","W"],["\u20ab","s"],["\u20ac","E"],["\u20ad","K"],["\u20ae","T"],["\u20af","Dp"],["\u20b0","S"],["\u20b1","P"],["\u20b2","G"],["\u20b3","A"],["\u20b4","S"],["\u20b5","C"],["\u20b6","tt"],["\u20b7","S"],["\u20b8","T"],["\u20b9","R"],["\u20ba","L"],["\u20bd","P"],["\u20bf","B"],["\ufe69","$"],["\uffe0","c"],["\uffe5","Y"],["\uffe6","W"],["\u{1d400}","A"],["\u{1d401}","B"],["\u{1d402}","C"],["\u{1d403}","D"],["\u{1d404}","E"],["\u{1d405}","F"],["\u{1d406}","G"],["\u{1d407}","H"],["\u{1d408}","I"],["\u{1d409}","J"],["\u{1d40a}","K"],["\u{1d40b}","L"],["\u{1d40c}","M"],["\u{1d40d}","N"],["\u{1d40e}","O"],["\u{1d40f}","P"],["\u{1d410}","Q"],["\u{1d411}","R"],["\u{1d412}","S"],["\u{1d413}","T"],["\u{1d414}","U"],["\u{1d415}","V"],["\u{1d416}","W"],["\u{1d417}","X"],["\u{1d418}","Y"],["\u{1d419}","Z"],["\u{1d41a}","a"],["\u{1d41b}","b"],["\u{1d41c}","c"],["\u{1d41d}","d"],["\u{1d41e}","e"],["\u{1d41f}","f"],["\u{1d420}","g"],["\u{1d421}","h"],["\u{1d422}","i"],["\u{1d423}","j"],["\u{1d424}","k"],["\u{1d425}","l"],["\u{1d426}","m"],["\u{1d427}","n"],["\u{1d428}","o"],["\u{1d429}","p"],["\u{1d42a}","q"],["\u{1d42b}","r"],["\u{1d42c}","s"],["\u{1d42d}","t"],["\u{1d42e}","u"],["\u{1d42f}","v"],["\u{1d430}","w"],["\u{1d431}","x"],["\u{1d432}","y"],["\u{1d433}","z"],["\u{1d434}","A"],["\u{1d435}","B"],["\u{1d436}","C"],["\u{1d437}","D"],["\u{1d438}","E"],["\u{1d439}","F"],["\u{1d43a}","G"],["\u{1d43b}","H"],["\u{1d43c}","I"],["\u{1d43d}","J"],["\u{1d43e}","K"],["\u{1d43f}","L"],["\u{1d440}","M"],["\u{1d441}","N"],["\u{1d442}","O"],["\u{1d443}","P"],["\u{1d444}","Q"],["\u{1d445}","R"],["\u{1d446}","S"],["\u{1d447}","T"],["\u{1d448}","U"],["\u{1d449}","V"],["\u{1d44a}","W"],["\u{1d44b}","X"],["\u{1d44c}","Y"],["\u{1d44d}","Z"],["\u{1d44e}","a"],["\u{1d44f}","b"],["\u{1d450}","c"],["\u{1d451}","d"],["\u{1d452}","e"],["\u{1d453}","f"],["\u{1d454}","g"],["\u{1d456}","i"],["\u{1d457}","j"],["\u{1d458}","k"],["\u{1d459}","l"],["\u{1d45a}","m"],["\u{1d45b}","n"],["\u{1d45c}","o"],["\u{1d45d}","p"],["\u{1d45e}","q"],["\u{1d45f}","r"],["\u{1d460}","s"],["\u{1d461}","t"],["\u{1d462}","u"],["\u{1d463}","v"],["\u{1d464}","w"],["\u{1d465}","x"],["\u{1d466}","y"],["\u{1d467}","z"],["\u{1d468}","A"],["\u{1d469}","B"],["\u{1d46a}","C"],["\u{1d46b}","D"],["\u{1d46c}","E"],["\u{1d46d}","F"],["\u{1d46e}","G"],["\u{1d46f}","H"],["\u{1d470}","I"],["\u{1d471}","J"],["\u{1d472}","K"],["\u{1d473}","L"],["\u{1d474}","M"],["\u{1d475}","N"],["\u{1d476}","O"],["\u{1d477}","P"],["\u{1d478}","Q"],["\u{1d479}","R"],["\u{1d47a}","S"],["\u{1d47b}","T"],["\u{1d47c}","U"],["\u{1d47d}","V"],["\u{1d47e}","W"],["\u{1d47f}","X"],["\u{1d480}","Y"],["\u{1d481}","Z"],["\u{1d482}","a"],["\u{1d483}","b"],["\u{1d484}","c"],["\u{1d485}","d"],["\u{1d486}","e"],["\u{1d487}","f"],["\u{1d488}","g"],["\u{1d489}","h"],["\u{1d48a}","i"],["\u{1d48b}","j"],["\u{1d48c}","k"],["\u{1d48d}","l"],["\u{1d48e}","m"],["\u{1d48f}","n"],["\u{1d490}","o"],["\u{1d491}","p"],["\u{1d492}","q"],["\u{1d493}","r"],["\u{1d494}","s"],["\u{1d495}","t"],["\u{1d496}","u"],["\u{1d497}","v"],["\u{1d498}","w"],["\u{1d499}","x"],["\u{1d49a}","y"],["\u{1d49b}","z"],["\u{1d49c}","A"],["\u{1d49e}","C"],["\u{1d49f}","D"],["\u{1d4a2}","g"],["\u{1d4a5}","J"],["\u{1d4a6}","K"],["\u{1d4a9}","N"],["\u{1d4aa}","O"],["\u{1d4ab}","P"],["\u{1d4ac}","Q"],["\u{1d4ae}","S"],["\u{1d4af}","T"],["\u{1d4b0}","U"],["\u{1d4b1}","V"],["\u{1d4b2}","W"],["\u{1d4b3}","X"],["\u{1d4b4}","Y"],["\u{1d4b5}","Z"],["\u{1d4b6}","a"],["\u{1d4b7}","b"],["\u{1d4b8}","c"],["\u{1d4b9}","d"],["\u{1d4bb}","f"],["\u{1d4bd}","h"],["\u{1d4be}","i"],["\u{1d4bf}","j"],["\u{1d4c0}","h"],["\u{1d4c1}","l"],["\u{1d4c2}","m"],["\u{1d4c3}","n"],["\u{1d4c5}","p"],["\u{1d4c6}","q"],["\u{1d4c7}","r"],["\u{1d4c8}","s"],["\u{1d4c9}","t"],["\u{1d4ca}","u"],["\u{1d4cb}","v"],["\u{1d4cc}","w"],["\u{1d4cd}","x"],["\u{1d4ce}","y"],["\u{1d4cf}","z"],["\u{1d4d0}","A"],["\u{1d4d1}","B"],["\u{1d4d2}","C"],["\u{1d4d3}","D"],["\u{1d4d4}","E"],["\u{1d4d5}","F"],["\u{1d4d6}","G"],["\u{1d4d7}","H"],["\u{1d4d8}","I"],["\u{1d4d9}","J"],["\u{1d4da}","K"],["\u{1d4db}","L"],["\u{1d4dc}","M"],["\u{1d4dd}","N"],["\u{1d4de}","O"],["\u{1d4df}","P"],["\u{1d4e0}","Q"],["\u{1d4e1}","R"],["\u{1d4e2}","S"],["\u{1d4e3}","T"],["\u{1d4e4}","U"],["\u{1d4e5}","V"],["\u{1d4e6}","W"],["\u{1d4e7}","X"],["\u{1d4e8}","Y"],["\u{1d4e9}","Z"],["\u{1d4ea}","a"],["\u{1d4eb}","b"],["\u{1d4ec}","c"],["\u{1d4ed}","d"],["\u{1d4ee}","e"],["\u{1d4ef}","f"],["\u{1d4f0}","g"],["\u{1d4f1}","h"],["\u{1d4f2}","i"],["\u{1d4f3}","j"],["\u{1d4f4}","k"],["\u{1d4f5}","l"],["\u{1d4f6}","m"],["\u{1d4f7}","n"],["\u{1d4f8}","o"],["\u{1d4f9}","p"],["\u{1d4fa}","q"],["\u{1d4fb}","r"],["\u{1d4fc}","s"],["\u{1d4fd}","t"],["\u{1d4fe}","u"],["\u{1d4ff}","v"],["\u{1d500}","w"],["\u{1d501}","x"],["\u{1d502}","y"],["\u{1d503}","z"],["\u{1d504}","A"],["\u{1d505}","B"],["\u{1d507}","D"],["\u{1d508}","E"],["\u{1d509}","F"],["\u{1d50a}","G"],["\u{1d50d}","J"],["\u{1d50e}","K"],["\u{1d50f}","L"],["\u{1d510}","M"],["\u{1d511}","N"],["\u{1d512}","O"],["\u{1d513}","P"],["\u{1d514}","Q"],["\u{1d516}","S"],["\u{1d517}","T"],["\u{1d518}","U"],["\u{1d519}","V"],["\u{1d51a}","W"],["\u{1d51b}","X"],["\u{1d51c}","Y"],["\u{1d51e}","a"],["\u{1d51f}","b"],["\u{1d520}","c"],["\u{1d521}","d"],["\u{1d522}","e"],["\u{1d523}","f"],["\u{1d524}","g"],["\u{1d525}","h"],["\u{1d526}","i"],["\u{1d527}","j"],["\u{1d528}","k"],["\u{1d529}","l"],["\u{1d52a}","m"],["\u{1d52b}","n"],["\u{1d52c}","o"],["\u{1d52d}","p"],["\u{1d52e}","q"],["\u{1d52f}","r"],["\u{1d530}","s"],["\u{1d531}","t"],["\u{1d532}","u"],["\u{1d533}","v"],["\u{1d534}","w"],["\u{1d535}","x"],["\u{1d536}","y"],["\u{1d537}","z"],["\u{1d538}","A"],["\u{1d539}","B"],["\u{1d53b}","D"],["\u{1d53c}","E"],["\u{1d53d}","F"],["\u{1d53e}","G"],["\u{1d540}","I"],["\u{1d541}","J"],["\u{1d542}","K"],["\u{1d543}","L"],["\u{1d544}","M"],["\u{1d546}","N"],["\u{1d54a}","S"],["\u{1d54b}","T"],["\u{1d54c}","U"],["\u{1d54d}","V"],["\u{1d54e}","W"],["\u{1d54f}","X"],["\u{1d550}","Y"],["\u{1d552}","a"],["\u{1d553}","b"],["\u{1d554}","c"],["\u{1d555}","d"],["\u{1d556}","e"],["\u{1d557}","f"],["\u{1d558}","g"],["\u{1d559}","h"],["\u{1d55a}","i"],["\u{1d55b}","j"],["\u{1d55c}","k"],["\u{1d55d}","l"],["\u{1d55e}","m"],["\u{1d55f}","n"],["\u{1d560}","o"],["\u{1d561}","p"],["\u{1d562}","q"],["\u{1d563}","r"],["\u{1d564}","s"],["\u{1d565}","t"],["\u{1d566}","u"],["\u{1d567}","v"],["\u{1d568}","w"],["\u{1d569}","x"],["\u{1d56a}","y"],["\u{1d56b}","z"],["\u{1d56c}","A"],["\u{1d56d}","B"],["\u{1d56e}","C"],["\u{1d56f}","D"],["\u{1d570}","E"],["\u{1d571}","F"],["\u{1d572}","G"],["\u{1d573}","H"],["\u{1d574}","I"],["\u{1d575}","J"],["\u{1d576}","K"],["\u{1d577}","L"],["\u{1d578}","M"],["\u{1d579}","N"],["\u{1d57a}","O"],["\u{1d57b}","P"],["\u{1d57c}","Q"],["\u{1d57d}","R"],["\u{1d57e}","S"],["\u{1d57f}","T"],["\u{1d580}","U"],["\u{1d581}","V"],["\u{1d582}","W"],["\u{1d583}","X"],["\u{1d584}","Y"],["\u{1d585}","Z"],["\u{1d586}","a"],["\u{1d587}","b"],["\u{1d588}","c"],["\u{1d589}","d"],["\u{1d58a}","e"],["\u{1d58b}","f"],["\u{1d58c}","g"],["\u{1d58d}","h"],["\u{1d58e}","i"],["\u{1d58f}","j"],["\u{1d590}","k"],["\u{1d591}","l"],["\u{1d592}","m"],["\u{1d593}","n"],["\u{1d594}","o"],["\u{1d595}","p"],["\u{1d596}","q"],["\u{1d597}","r"],["\u{1d598}","s"],["\u{1d599}","t"],["\u{1d59a}","u"],["\u{1d59b}","v"],["\u{1d59c}","w"],["\u{1d59d}","x"],["\u{1d59e}","y"],["\u{1d59f}","z"],["\u{1d5a0}","A"],["\u{1d5a1}","B"],["\u{1d5a2}","C"],["\u{1d5a3}","D"],["\u{1d5a4}","E"],["\u{1d5a5}","F"],["\u{1d5a6}","G"],["\u{1d5a7}","H"],["\u{1d5a8}","I"],["\u{1d5a9}","J"],["\u{1d5aa}","K"],["\u{1d5ab}","L"],["\u{1d5ac}","M"],["\u{1d5ad}","N"],["\u{1d5ae}","O"],["\u{1d5af}","P"],["\u{1d5b0}","Q"],["\u{1d5b1}","R"],["\u{1d5b2}","S"],["\u{1d5b3}","T"],["\u{1d5b4}","U"],["\u{1d5b5}","V"],["\u{1d5b6}","W"],["\u{1d5b7}","X"],["\u{1d5b8}","Y"],["\u{1d5b9}","Z"],["\u{1d5ba}","a"],["\u{1d5bb}","b"],["\u{1d5bc}","c"],["\u{1d5bd}","d"],["\u{1d5be}","e"],["\u{1d5bf}","f"],["\u{1d5c0}","g"],["\u{1d5c1}","h"],["\u{1d5c2}","i"],["\u{1d5c3}","j"],["\u{1d5c4}","k"],["\u{1d5c5}","l"],["\u{1d5c6}","m"],["\u{1d5c7}","n"],["\u{1d5c8}","o"],["\u{1d5c9}","p"],["\u{1d5ca}","q"],["\u{1d5cb}","r"],["\u{1d5cc}","s"],["\u{1d5cd}","t"],["\u{1d5ce}","u"],["\u{1d5cf}","v"],["\u{1d5d0}","w"],["\u{1d5d1}","x"],["\u{1d5d2}","y"],["\u{1d5d3}","z"],["\u{1d5d4}","A"],["\u{1d5d5}","B"],["\u{1d5d6}","C"],["\u{1d5d7}","D"],["\u{1d5d8}","E"],["\u{1d5d9}","F"],["\u{1d5da}","G"],["\u{1d5db}","H"],["\u{1d5dc}","I"],["\u{1d5dd}","J"],["\u{1d5de}","K"],["\u{1d5df}","L"],["\u{1d5e0}","M"],["\u{1d5e1}","N"],["\u{1d5e2}","O"],["\u{1d5e3}","P"],["\u{1d5e4}","Q"],["\u{1d5e5}","R"],["\u{1d5e6}","S"],["\u{1d5e7}","T"],["\u{1d5e8}","U"],["\u{1d5e9}","V"],["\u{1d5ea}","W"],["\u{1d5eb}","X"],["\u{1d5ec}","Y"],["\u{1d5ed}","Z"],["\u{1d5ee}","a"],["\u{1d5ef}","b"],["\u{1d5f0}","c"],["\u{1d5f1}","d"],["\u{1d5f2}","e"],["\u{1d5f3}","f"],["\u{1d5f4}","g"],["\u{1d5f5}","h"],["\u{1d5f6}","i"],["\u{1d5f7}","j"],["\u{1d5f8}","k"],["\u{1d5f9}","l"],["\u{1d5fa}","m"],["\u{1d5fb}","n"],["\u{1d5fc}","o"],["\u{1d5fd}","p"],["\u{1d5fe}","q"],["\u{1d5ff}","r"],["\u{1d600}","s"],["\u{1d601}","t"],["\u{1d602}","u"],["\u{1d603}","v"],["\u{1d604}","w"],["\u{1d605}","x"],["\u{1d606}","y"],["\u{1d607}","z"],["\u{1d608}","A"],["\u{1d609}","B"],["\u{1d60a}","C"],["\u{1d60b}","D"],["\u{1d60c}","E"],["\u{1d60d}","F"],["\u{1d60e}","G"],["\u{1d60f}","H"],["\u{1d610}","I"],["\u{1d611}","J"],["\u{1d612}","K"],["\u{1d613}","L"],["\u{1d614}","M"],["\u{1d615}","N"],["\u{1d616}","O"],["\u{1d617}","P"],["\u{1d618}","Q"],["\u{1d619}","R"],["\u{1d61a}","S"],["\u{1d61b}","T"],["\u{1d61c}","U"],["\u{1d61d}","V"],["\u{1d61e}","W"],["\u{1d61f}","X"],["\u{1d620}","Y"],["\u{1d621}","Z"],["\u{1d622}","a"],["\u{1d623}","b"],["\u{1d624}","c"],["\u{1d625}","d"],["\u{1d626}","e"],["\u{1d627}","f"],["\u{1d628}","g"],["\u{1d629}","h"],["\u{1d62a}","i"],["\u{1d62b}","j"],["\u{1d62c}","k"],["\u{1d62d}","l"],["\u{1d62e}","m"],["\u{1d62f}","n"],["\u{1d630}","o"],["\u{1d631}","p"],["\u{1d632}","q"],["\u{1d633}","r"],["\u{1d634}","s"],["\u{1d635}","t"],["\u{1d636}","u"],["\u{1d637}","v"],["\u{1d638}","w"],["\u{1d639}","x"],["\u{1d63a}","y"],["\u{1d63b}","z"],["\u{1d63c}","A"],["\u{1d63d}","B"],["\u{1d63e}","C"],["\u{1d63f}","D"],["\u{1d640}","E"],["\u{1d641}","F"],["\u{1d642}","G"],["\u{1d643}","H"],["\u{1d644}","I"],["\u{1d645}","J"],["\u{1d646}","K"],["\u{1d647}","L"],["\u{1d648}","M"],["\u{1d649}","N"],["\u{1d64a}","O"],["\u{1d64b}","P"],["\u{1d64c}","Q"],["\u{1d64d}","R"],["\u{1d64e}","S"],["\u{1d64f}","T"],["\u{1d650}","U"],["\u{1d651}","V"],["\u{1d652}","W"],["\u{1d653}","X"],["\u{1d654}","Y"],["\u{1d655}","Z"],["\u{1d656}","a"],["\u{1d657}","b"],["\u{1d658}","c"],["\u{1d659}","d"],["\u{1d65a}","e"],["\u{1d65b}","f"],["\u{1d65c}","g"],["\u{1d65d}","h"],["\u{1d65e}","i"],["\u{1d65f}","j"],["\u{1d660}","k"],["\u{1d661}","l"],["\u{1d662}","m"],["\u{1d663}","n"],["\u{1d664}","o"],["\u{1d665}","p"],["\u{1d666}","q"],["\u{1d667}","r"],["\u{1d668}","s"],["\u{1d669}","t"],["\u{1d66a}","u"],["\u{1d66b}","v"],["\u{1d66c}","w"],["\u{1d66d}","x"],["\u{1d66e}","y"],["\u{1d66f}","z"],["\u{1d670}","A"],["\u{1d671}","B"],["\u{1d672}","C"],["\u{1d673}","D"],["\u{1d674}","E"],["\u{1d675}","F"],["\u{1d676}","G"],["\u{1d677}","H"],["\u{1d678}","I"],["\u{1d679}","J"],["\u{1d67a}","K"],["\u{1d67b}","L"],["\u{1d67c}","M"],["\u{1d67d}","N"],["\u{1d67e}","O"],["\u{1d67f}","P"],["\u{1d680}","Q"],["\u{1d681}","R"],["\u{1d682}","S"],["\u{1d683}","T"],["\u{1d684}","U"],["\u{1d685}","V"],["\u{1d686}","W"],["\u{1d687}","X"],["\u{1d688}","Y"],["\u{1d689}","Z"],["\u{1d68a}","a"],["\u{1d68b}","b"],["\u{1d68c}","c"],["\u{1d68d}","d"],["\u{1d68e}","e"],["\u{1d68f}","f"],["\u{1d690}","g"],["\u{1d691}","h"],["\u{1d692}","i"],["\u{1d693}","j"],["\u{1d694}","k"],["\u{1d695}","l"],["\u{1d696}","m"],["\u{1d697}","n"],["\u{1d698}","o"],["\u{1d699}","p"],["\u{1d69a}","q"],["\u{1d69b}","r"],["\u{1d69c}","s"],["\u{1d69d}","t"],["\u{1d69e}","u"],["\u{1d69f}","v"],["\u{1d6a0}","w"],["\u{1d6a1}","x"],["\u{1d6a2}","y"],["\u{1d6a3}","z"],["\u{1d6a4}","l"],["\u{1d6a5}","j"],["\u{1d6e2}","A"],["\u{1d6e3}","B"],["\u{1d6e4}","G"],["\u{1d6e5}","D"],["\u{1d6e6}","E"],["\u{1d6e7}","Z"],["\u{1d6e8}","I"],["\u{1d6e9}","TH"],["\u{1d6ea}","I"],["\u{1d6eb}","K"],["\u{1d6ec}","L"],["\u{1d6ed}","M"],["\u{1d6ee}","N"],["\u{1d6ef}","KS"],["\u{1d6f0}","O"],["\u{1d6f1}","P"],["\u{1d6f2}","R"],["\u{1d6f3}","TH"],["\u{1d6f4}","S"],["\u{1d6f5}","T"],["\u{1d6f6}","Y"],["\u{1d6f7}","F"],["\u{1d6f8}","x"],["\u{1d6f9}","PS"],["\u{1d6fa}","O"],["\u{1d6fb}","D"],["\u{1d6fc}","a"],["\u{1d6fd}","b"],["\u{1d6fe}","g"],["\u{1d6ff}","d"],["\u{1d700}","e"],["\u{1d701}","z"],["\u{1d702}","i"],["\u{1d703}","th"],["\u{1d704}","i"],["\u{1d705}","k"],["\u{1d706}","l"],["\u{1d707}","m"],["\u{1d708}","n"],["\u{1d709}","ks"],["\u{1d70a}","o"],["\u{1d70b}","p"],["\u{1d70c}","r"],["\u{1d70d}","s"],["\u{1d70e}","s"],["\u{1d70f}","t"],["\u{1d710}","y"],["\u{1d711}","f"],["\u{1d712}","x"],["\u{1d713}","ps"],["\u{1d714}","o"],["\u{1d715}","d"],["\u{1d716}","E"],["\u{1d717}","TH"],["\u{1d718}","K"],["\u{1d719}","f"],["\u{1d71a}","r"],["\u{1d71b}","p"],["\u{1d71c}","A"],["\u{1d71d}","V"],["\u{1d71e}","G"],["\u{1d71f}","D"],["\u{1d720}","E"],["\u{1d721}","Z"],["\u{1d722}","I"],["\u{1d723}","TH"],["\u{1d724}","I"],["\u{1d725}","K"],["\u{1d726}","L"],["\u{1d727}","M"],["\u{1d728}","N"],["\u{1d729}","KS"],["\u{1d72a}","O"],["\u{1d72b}","P"],["\u{1d72c}","S"],["\u{1d72d}","TH"],["\u{1d72e}","S"],["\u{1d72f}","T"],["\u{1d730}","Y"],["\u{1d731}","F"],["\u{1d732}","X"],["\u{1d733}","PS"],["\u{1d734}","O"],["\u{1d735}","D"],["\u{1d736}","a"],["\u{1d737}","v"],["\u{1d738}","g"],["\u{1d739}","d"],["\u{1d73a}","e"],["\u{1d73b}","z"],["\u{1d73c}","i"],["\u{1d73d}","th"],["\u{1d73e}","i"],["\u{1d73f}","k"],["\u{1d740}","l"],["\u{1d741}","m"],["\u{1d742}","n"],["\u{1d743}","ks"],["\u{1d744}","o"],["\u{1d745}","p"],["\u{1d746}","r"],["\u{1d747}","s"],["\u{1d748}","s"],["\u{1d749}","t"],["\u{1d74a}","y"],["\u{1d74b}","f"],["\u{1d74c}","x"],["\u{1d74d}","ps"],["\u{1d74e}","o"],["\u{1d74f}","a"],["\u{1d750}","e"],["\u{1d751}","i"],["\u{1d752}","k"],["\u{1d753}","f"],["\u{1d754}","r"],["\u{1d755}","p"],["\u{1d756}","A"],["\u{1d757}","B"],["\u{1d758}","G"],["\u{1d759}","D"],["\u{1d75a}","E"],["\u{1d75b}","Z"],["\u{1d75c}","I"],["\u{1d75d}","TH"],["\u{1d75e}","I"],["\u{1d75f}","K"],["\u{1d760}","L"],["\u{1d761}","M"],["\u{1d762}","N"],["\u{1d763}","KS"],["\u{1d764}","O"],["\u{1d765}","P"],["\u{1d766}","R"],["\u{1d767}","TH"],["\u{1d768}","S"],["\u{1d769}","T"],["\u{1d76a}","Y"],["\u{1d76b}","F"],["\u{1d76c}","X"],["\u{1d76d}","PS"],["\u{1d76e}","O"],["\u{1d76f}","D"],["\u{1d770}","a"],["\u{1d771}","v"],["\u{1d772}","g"],["\u{1d773}","d"],["\u{1d774}","e"],["\u{1d775}","z"],["\u{1d776}","i"],["\u{1d777}","th"],["\u{1d778}","i"],["\u{1d779}","k"],["\u{1d77a}","l"],["\u{1d77b}","m"],["\u{1d77c}","n"],["\u{1d77d}","ks"],["\u{1d77e}","o"],["\u{1d77f}","p"],["\u{1d780}","r"],["\u{1d781}","s"],["\u{1d782}","s"],["\u{1d783}","t"],["\u{1d784}","y"],["\u{1d785}","f"],["\u{1d786}","x"],["\u{1d787}","ps"],["\u{1d788}","o"],["\u{1d789}","a"],["\u{1d78a}","e"],["\u{1d78b}","i"],["\u{1d78c}","k"],["\u{1d78d}","f"],["\u{1d78e}","r"],["\u{1d78f}","p"],["\u{1d790}","A"],["\u{1d791}","V"],["\u{1d792}","G"],["\u{1d793}","D"],["\u{1d794}","E"],["\u{1d795}","Z"],["\u{1d796}","I"],["\u{1d797}","TH"],["\u{1d798}","I"],["\u{1d799}","K"],["\u{1d79a}","L"],["\u{1d79b}","M"],["\u{1d79c}","N"],["\u{1d79d}","KS"],["\u{1d79e}","O"],["\u{1d79f}","P"],["\u{1d7a0}","S"],["\u{1d7a1}","TH"],["\u{1d7a2}","S"],["\u{1d7a3}","T"],["\u{1d7a4}","Y"],["\u{1d7a5}","F"],["\u{1d7a6}","X"],["\u{1d7a7}","PS"],["\u{1d7a8}","O"],["\u{1d7a9}","D"],["\u{1d7aa}","av"],["\u{1d7ab}","g"],["\u{1d7ac}","d"],["\u{1d7ad}","e"],["\u{1d7ae}","z"],["\u{1d7af}","i"],["\u{1d7b0}","i"],["\u{1d7b1}","th"],["\u{1d7b2}","i"],["\u{1d7b3}","k"],["\u{1d7b4}","l"],["\u{1d7b5}","m"],["\u{1d7b6}","n"],["\u{1d7b7}","ks"],["\u{1d7b8}","o"],["\u{1d7b9}","p"],["\u{1d7ba}","r"],["\u{1d7bb}","s"],["\u{1d7bc}","s"],["\u{1d7bd}","t"],["\u{1d7be}","y"],["\u{1d7bf}","f"],["\u{1d7c0}","x"],["\u{1d7c1}","ps"],["\u{1d7c2}","o"],["\u{1d7c3}","a"],["\u{1d7c4}","e"],["\u{1d7c5}","i"],["\u{1d7c6}","k"],["\u{1d7c7}","f"],["\u{1d7c8}","r"],["\u{1d7c9}","p"],["\u{1d7ca}","F"],["\u{1d7cb}","f"],["\u249c","(a)"],["\u249d","(b)"],["\u249e","(c)"],["\u249f","(d)"],["\u24a0","(e)"],["\u24a1","(f)"],["\u24a2","(g)"],["\u24a3","(h)"],["\u24a4","(i)"],["\u24a5","(j)"],["\u24a6","(k)"],["\u24a7","(l)"],["\u24a8","(m)"],["\u24a9","(n)"],["\u24aa","(o)"],["\u24ab","(p)"],["\u24ac","(q)"],["\u24ad","(r)"],["\u24ae","(s)"],["\u24af","(t)"],["\u24b0","(u)"],["\u24b1","(v)"],["\u24b2","(w)"],["\u24b3","(x)"],["\u24b4","(y)"],["\u24b5","(z)"],["\u24b6","(A)"],["\u24b7","(B)"],["\u24b8","(C)"],["\u24b9","(D)"],["\u24ba","(E)"],["\u24bb","(F)"],["\u24bc","(G)"],["\u24bd","(H)"],["\u24be","(I)"],["\u24bf","(J)"],["\u24c0","(K)"],["\u24c1","(L)"],["\u24c3","(N)"],["\u24c4","(O)"],["\u24c5","(P)"],["\u24c6","(Q)"],["\u24c7","(R)"],["\u24c8","(S)"],["\u24c9","(T)"],["\u24ca","(U)"],["\u24cb","(V)"],["\u24cc","(W)"],["\u24cd","(X)"],["\u24ce","(Y)"],["\u24cf","(Z)"],["\u24d0","(a)"],["\u24d1","(b)"],["\u24d2","(b)"],["\u24d3","(c)"],["\u24d4","(e)"],["\u24d5","(f)"],["\u24d6","(g)"],["\u24d7","(h)"],["\u24d8","(i)"],["\u24d9","(j)"],["\u24da","(k)"],["\u24db","(l)"],["\u24dc","(m)"],["\u24dd","(n)"],["\u24de","(o)"],["\u24df","(p)"],["\u24e0","(q)"],["\u24e1","(r)"],["\u24e2","(s)"],["\u24e3","(t)"],["\u24e4","(u)"],["\u24e5","(v)"],["\u24e6","(w)"],["\u24e7","(x)"],["\u24e8","(y)"],["\u24e9","(z)"],["\u010a","C"],["\u010b","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017b","Z"],["\u017c","z"],["\u{1d7ce}","0"],["\u{1d7cf}","1"],["\u{1d7d0}","2"],["\u{1d7d1}","3"],["\u{1d7d2}","4"],["\u{1d7d3}","5"],["\u{1d7d4}","6"],["\u{1d7d5}","7"],["\u{1d7d6}","8"],["\u{1d7d7}","9"],["\u{1d7d8}","0"],["\u{1d7d9}","1"],["\u{1d7da}","2"],["\u{1d7db}","3"],["\u{1d7dc}","4"],["\u{1d7dd}","5"],["\u{1d7de}","6"],["\u{1d7df}","7"],["\u{1d7e0}","8"],["\u{1d7e1}","9"],["\u{1d7e2}","0"],["\u{1d7e3}","1"],["\u{1d7e4}","2"],["\u{1d7e5}","3"],["\u{1d7e6}","4"],["\u{1d7e7}","5"],["\u{1d7e8}","6"],["\u{1d7e9}","7"],["\u{1d7ea}","8"],["\u{1d7eb}","9"],["\u{1d7ec}","0"],["\u{1d7ed}","1"],["\u{1d7ee}","2"],["\u{1d7ef}","3"],["\u{1d7f0}","4"],["\u{1d7f1}","5"],["\u{1d7f2}","6"],["\u{1d7f3}","7"],["\u{1d7f4}","8"],["\u{1d7f5}","9"],["\u{1d7f6}","0"],["\u{1d7f7}","1"],["\u{1d7f8}","2"],["\u{1d7f9}","3"],["\u{1d7fa}","4"],["\u{1d7fb}","5"],["\u{1d7fc}","6"],["\u{1d7fd}","7"],["\u{1d7fe}","8"],["\u{1d7ff}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246a","11"],["\u246b","12"],["\u246c","13"],["\u246d","14"],["\u246e","15"],["\u246f","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247a","7"],["\u247b","8"],["\u247c","9"],["\u247d","10"],["\u247e","11"],["\u247f","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248a","3."],["\u248b","4."],["\u248c","5."],["\u248d","6."],["\u248e","7."],["\u248f","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249a","19."],["\u249b","20."],["\u24ea","0"],["\u24eb","11"],["\u24ec","12"],["\u24ed","13"],["\u24ee","14"],["\u24ef","15"],["\u24f0","16"],["\u24f1","17"],["\u24f2","18"],["\u24f3","19"],["\u24f4","20"],["\u24f5","1"],["\u24f6","2"],["\u24f7","3"],["\u24f8","4"],["\u24f9","5"],["\u24fa","6"],["\u24fb","7"],["\u24fc","8"],["\u24fd","9"],["\u24fe","10"],["\u24ff","0"],["\u{1f670}","&"],["\u{1f671}","&"],["\u{1f672}","&"],["\u{1f673}","&"],["\u{1f674}","&"],["\u{1f675}","&"],["\u{1f676}",'"'],["\u{1f677}",'"'],["\u{1f678}",'"'],["\u203d","?!"],["\u{1f679}","?!"],["\u{1f67a}","?!"],["\u{1f67b}","?!"],["\u{1f67c}","/"],["\u{1f67d}","\\"],["\u{1f707}","AR"],["\u{1f708}","V"],["\u{1f709}","V"],["\u{1f706}","VR"],["\u{1f705}","VF"],["\u{1f729}","2"],["\u{1f72a}","5"],["\u{1f761}","f"],["\u{1f762}","W"],["\u{1f763}","U"],["\u{1f767}","V"],["\u{1f768}","T"],["\u{1f76a}","V"],["\u{1f76b}","MB"],["\u{1f76c}","VB"],["\u{1f772}","3B"],["\u{1f773}","3B"],["\u{1f4af}","100"],["\u{1f519}","BACK"],["\u{1f51a}","END"],["\u{1f51b}","ON!"],["\u{1f51c}","SOON"],["\u{1f51d}","TOP"],["\u{1f51e}","18"],["\u{1f524}","abc"],["\u{1f520}","ABCD"],["\u{1f521}","abcd"],["\u{1f522}","1234"],["\u{1f523}","T&@%"],["#\ufe0f\u20e3","#"],["*\ufe0f\u20e3","*"],["0\ufe0f\u20e3","0"],["1\ufe0f\u20e3","1"],["2\ufe0f\u20e3","2"],["3\ufe0f\u20e3","3"],["4\ufe0f\u20e3","4"],["5\ufe0f\u20e3","5"],["6\ufe0f\u20e3","6"],["7\ufe0f\u20e3","7"],["8\ufe0f\u20e3","8"],["9\ufe0f\u20e3","9"],["\u{1f51f}","10"],["\u{1f170}\ufe0f","A"],["\u{1f171}\ufe0f","B"],["\u{1f18e}","AB"],["\u{1f191}","CL"],["\u{1f17e}\ufe0f","O"],["\u{1f17f}","P"],["\u{1f198}","SOS"],["\u{1f172}","C"],["\u{1f173}","D"],["\u{1f174}","E"],["\u{1f175}","F"],["\u{1f176}","G"],["\u{1f177}","H"],["\u{1f178}","I"],["\u{1f179}","J"],["\u{1f17a}","K"],["\u{1f17b}","L"],["\u{1f17c}","M"],["\u{1f17d}","N"],["\u{1f180}","Q"],["\u{1f181}","R"],["\u{1f182}","S"],["\u{1f183}","T"],["\u{1f184}","U"],["\u{1f185}","V"],["\u{1f186}","W"],["\u{1f187}","X"],["\u{1f188}","Y"],["\u{1f189}","Z"]],Sse=[["&"," and "],["\u{1f984}"," unicorn "],["\u2665"," love "]];function zF(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);const e=(n={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...n}).preserveLeadingUnderscore&&t.startsWith("_"),i=n.preserveTrailingDash&&t.endsWith("-");t=function xse(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);n={customReplacements:[],...n};const e=new Map([...wse,...n.customReplacements]);return(t=((t,n)=>{for(const[e,i]of n)t=t.replace(new RegExp(vse(e),"g"),i);return t})(t=t.normalize(),e)).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").normalize()}(t,{customReplacements:new Map([...Sse,...n.customReplacements])}),n.decamelize&&(t=(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(t));const r=(t=>{let n="a-z\\d";if(n+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const e of t.preserveCharacters){if(e===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);n+=YF(e)}return new RegExp(`[^${n}]+`,"g")})(n);return n.lowercase&&(t=t.toLowerCase()),t=(t=(t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(r,n.separator)).replace(/\\/g,""),n.separator&&(t=((t,n)=>{const e=YF(n);return t.replace(new RegExp(`${e}{2,}`,"g"),n).replace(new RegExp(`^${e}|${e}$`,"g"),"")})(t,n.separator)),e&&(t=`_${t}`),i&&(t=`${t}-`),t}var Ase=I(1651),$F=I(217),kse=I(5965),Ise=I.n(kse);const VF={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(VF);const Ose=VF,ZF={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(ZF);const Rse=ZF;var $u,Ef,Jl,Sr=function(t,n,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:n.get(t)};$u=new WeakMap,Ef=new WeakMap,Jl=new WeakMap;const Fse=new class Pse{constructor(...n){$u.set(this,new Map),Ef.set(this,new Map),Jl.set(this,new Map);for(const e of n)this.define(e)}define(n,e=!1){for(let[i,o]of Object.entries(n)){i=i.toLowerCase(),o=o.map(s=>s.toLowerCase()),Sr(this,Jl,"f").has(i)||Sr(this,Jl,"f").set(i,new Set);const r=Sr(this,Jl,"f").get(i);let a=!0;for(let s of o){const l=s.startsWith("*");if(s=l?s.slice(1):s,r?.add(s),a&&Sr(this,Ef,"f").set(i,s),a=!1,l)continue;const c=Sr(this,$u,"f").get(s);if(c&&c!=i&&!e)throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);Sr(this,$u,"f").set(s,i)}}return this}getType(n){if("string"!=typeof n)return null;const e=n.replace(/^.*[/\\]/,"").toLowerCase(),i=e.replace(/^.*\./,"").toLowerCase();return i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Sr(this,Jl,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Sr(this,$u,"f"),extensions:Sr(this,Ef,"f")}}}(Rse,Ose)._freeze();var Ma=function(t){return t.eaf="eaf",t.textgrid="textgrid",t.srt="srt",t.vtt="vtt",t.html="html",t.zip="zip",t}(Ma||{});let GF=(()=>{class t{constructor(e){this.http=e,this.baseURL=ur.apiBaseURL}convertRasFormat$(e,i){return this.http.post(this.baseURL+"/convert_alignment/"+i,e,{responseType:"blob"})}assembleReadalong$(e){return this.http.post(this.baseURL+"/assemble",e)}getLangs$(){return this.http.get(this.baseURL+"/langs")}static{this.\u0275fac=function(i){return new(i||t)(Me(iu))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),UF=(()=>{class t{constructor(){this.$currentAudio=new ci(null),this.$currentText=new ci(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),T1=(()=>{class t{constructor(e,i,o,r){this.uploadService=e,this.rasService=i,this.b64Service=o,this.toastr=r,this.unsubscribe$=new _t,this.xmlSerializer=new XMLSerializer,this.readmeFile=new Blob(["Web Deployment Guide\n\nThis bundle has everything you need to host your ReadAlong on your own server.\n\nYour audio, (optional) image, and alignment (.readalong) assets are stored in the assets folder.\n\nThe plain text used to create your ReadAlong is also stored here along with an example index.html file.\n\nYour index.html file demonstrates the snippet and imports needed to host the ReadAlong on your server.\n\nPlease host all assets on your server, include the font and package imports defined in the index.html in your website's imports, and include the corresponding snippet everywhere you would like your ReadAlong to be displayed.\n "],{type:"text/plain"})}updateTranslations(e,i){return(0,y.Z)(function*(){const o=yield i.getTranslations();if(0==Object.keys(o).length)return!1;{const r=e.querySelectorAll("s:not(.sentence__translation)"),a=new Set(Array.from(e.querySelectorAll(".editable__translation")).map(s=>s.id));return r.forEach(s=>{if(s.id in o&&!a.has(s.id)){let l=document.createElementNS(null,"s");l.setAttribute("do-not-align","true"),l.setAttribute("id",s.id),l.setAttribute("class","sentence__translation editable__translation"),l.setAttribute("xml:lang","eng"),l.append(o[s.id]),s.insertAdjacentElement("afterend",l)}s.id in o&&null===o[s.id]&&a.has(s.id)&&e.querySelector(`#${s.id}.sentence__translation`)?.remove()}),!0}})()}updateImages(e,i=!0,o="image",r){var a=this;return(0,y.Z)(function*(){const s=yield r.getImages(),l=e.querySelectorAll("div[type=page]"),c=[];for(const[u,d]of Object.entries(s)){let h=l[parseInt(u)];if(h&&d){h.querySelectorAll("graphic").forEach(b=>b.remove());let p=e.createElementNS(null,"graphic"),g=yield fetch(d).then(b=>b.blob());if(g=yield(0,Ase.compress)(g,.75),i){let b=yield a.b64Service.blobToB64(g);p.setAttribute("url",b)}else{const b=Fse.getExtension(g.type),T=`${o}-${u}.${b}`;c.push({blob:g,path:T}),p.setAttribute("url",`${T}`)}h.appendChild(p)}else null===d&&h.querySelectorAll("graphic").forEach(p=>p.remove())}return!!i||c})()}registerDownloadEvent(e){window.plausible("Download",{props:{fileType:e}})}createSingleFileBlob(e,i,o,r){var a=this;return(0,y.Z)(function*(){yield a.updateImages(e,!0,"image",i),yield a.updateTranslations(e,i);let s=a.b64Service.xmlToB64(e);if(null!==a.b64Service.jsAndFontsBundle$.value)return new Blob([`\n \n \n \n \n \n \n ${o.title}\n \n + diff --git a/pr-preview/pr-356/main.7a80440daa88bc6f.js b/pr-preview/pr-356/main.2f2955592467ea9f.js similarity index 99% rename from pr-preview/pr-356/main.7a80440daa88bc6f.js rename to pr-preview/pr-356/main.2f2955592467ea9f.js index b09ea3a5..14a1f04c 100644 --- a/pr-preview/pr-356/main.7a80440daa88bc6f.js +++ b/pr-preview/pr-356/main.2f2955592467ea9f.js @@ -1,4 +1,4 @@ -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,I)=>{var y={"./read-along.entry.js":[9154,154]};function z(E){if(!I.o(y,E))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+E+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[E],k=v[0];return I.e(v[1]).then(()=>I(k))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},3442:(C,de,I)=>{"use strict";I.d(de,{b:()=>ti,g:()=>B,h:()=>K,r:()=>os});var y=I(5861);let E,v,k=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",P={},U=ne=>"object"==(ne=typeof ne)||"function"===ne;function X(ne){var N,Ie,Ee;return null!==(Ee=null===(Ie=null===(N=ne.head)||void 0===N?void 0:N.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const K=(ne,N,...Ie)=>{let Ee=null,Ve=null,it=!1,qe=!1;const ot=[],bt=wt=>{for(let Ot=0;Otwt[Ot]).join(" "))}}if("function"==typeof ne)return ne(null===N?{}:N,ot,se);const vt=q(ne,null);return vt.$attrs$=N,ot.length>0&&(vt.$children$=ot),vt.$key$=Ve,vt},q=(ne,N)=>({$flags$:0,$tag$:ne,$text$:N,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},se={forEach:(ne,N)=>ne.map(Q).forEach(N),map:(ne,N)=>ne.map(Q).map(N).map(le)},Q=ne=>({vattrs:ne.$attrs$,vchildren:ne.$children$,vkey:ne.$key$,vname:ne.$name$,vtag:ne.$tag$,vtext:ne.$text$}),le=ne=>{if("function"==typeof ne.vtag){const Ie=Object.assign({},ne.vattrs);return ne.vkey&&(Ie.key=ne.vkey),ne.vname&&(Ie.name=ne.vname),K(ne.vtag,Ie,...ne.vchildren||[])}const N=q(ne.vtag,ne.vtext);return N.$attrs$=ne.vattrs,N.$children$=ne.vchildren,N.$key$=ne.vkey,N.$name$=ne.vname,N},B=ne=>fr(ne).$hostElement$,f=new WeakMap,D=(ne,N)=>"sc-"+ne.$tagName$,R=(ne,N,Ie,Ee,Ve,it)=>{if(Ie!==Ee){let qe=kr(ne,N),ot=N.toLowerCase();if("class"===N){const bt=ne.classList,vt=A(Ie),wt=A(Ee);bt.remove(...vt.filter(Ot=>Ot&&!wt.includes(Ot))),bt.add(...wt.filter(Ot=>Ot&&!vt.includes(Ot)))}else if("style"===N){for(const bt in Ie)(!Ee||null==Ee[bt])&&(bt.includes("-")?ne.style.removeProperty(bt):ne.style[bt]="");for(const bt in Ee)(!Ie||Ee[bt]!==Ie[bt])&&(bt.includes("-")?ne.style.setProperty(bt,Ee[bt]):ne.style[bt]=Ee[bt])}else if("key"!==N)if("ref"===N)Ee&&Ee(ne);else if(qe||"o"!==N[0]||"n"!==N[1]){const bt=U(Ee);if((qe||bt&&null!==Ee)&&!Ve)try{if(ne.tagName.includes("-"))ne[N]=Ee;else{const wt=Ee??"";"list"===N?qe=!1:(null==Ie||ne[N]!=wt)&&(ne[N]=wt)}}catch{}let vt=!1;ot!==(ot=ot.replace(/^xlink\:?/,""))&&(N=ot,vt=!0),null==Ee||!1===Ee?(!1!==Ee||""===ne.getAttribute(N))&&(vt?ne.removeAttributeNS(x,N):ne.removeAttribute(N)):(!qe||4&it||Ve)&&!bt&&(Ee=!0===Ee?"":Ee,vt?ne.setAttributeNS(x,N,Ee):ne.setAttribute(N,Ee))}else if(N="-"===N[2]?N.slice(3):kr(rs,ot)?ot.slice(2):ot[2]+N.slice(3),Ie||Ee){const bt=N.endsWith(_);N=N.replace(he,""),Ie&&yi.rel(ne,N,Ie,bt),Ee&&yi.ael(ne,N,Ee,bt)}}},Z=/\s/,A=ne=>ne?ne.split(Z):[],_="Capture",he=new RegExp(_+"$"),ue=(ne,N,Ie,Ee)=>{const Ve=11===N.$elm$.nodeType&&N.$elm$.host?N.$elm$.host:N.$elm$,it=ne&&ne.$attrs$||P,qe=N.$attrs$||P;for(Ee of De(Object.keys(it)))Ee in qe||R(Ve,Ee,it[Ee],void 0,Ie,N.$flags$);for(Ee of De(Object.keys(qe)))R(Ve,Ee,it[Ee],qe[Ee],Ie,N.$flags$)};function De(ne){return ne.includes("ref")?[...ne.filter(N=>"ref"!==N),"ref"]:ne}const Qe=(ne,N,Ie,Ee)=>{const Ve=N.$children$[Ie];let qe,ot,it=0;if(null!==Ve.$text$)qe=Ve.$elm$=Zo.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Zo.createElement(Ve.$tag$),ue(null,Ve,!1),(ne=>null!=ne)(E)&&qe["s-si"]!==E&&qe.classList.add(qe["s-si"]=E),Ve.$children$)for(it=0;it{let ot,qe=ne;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=it;++Ve)Ee[Ve]&&(ot=Qe(null,Ie,Ve),ot&&(Ee[Ve].$elm$=ot,qe.insertBefore(ot,N)))},Ce=(ne,N,Ie)=>{for(let Ee=N;Ee<=Ie;++Ee){const Ve=ne[Ee];if(Ve){const it=Ve.$elm$;Et(Ve),it&&it.remove()}}},at=(ne,N,Ie=!1)=>ne.$tag$===N.$tag$&&(!!Ie||ne.$key$===N.$key$),ut=(ne,N,Ie=!1)=>{const Ee=N.$elm$=ne.$elm$,Ve=ne.$children$,it=N.$children$,ot=N.$text$;null===ot?("slot"===N.$tag$&&!k||ue(ne,N,!1),null!==Ve&&null!==it?((ne,N,Ie,Ee,Ve=!1)=>{let Vi,nn,it=0,qe=0,ot=0,bt=0,vt=N.length-1,wt=N[0],Ot=N[vt],fi=Ee.length-1,Gn=Ee[0],Yn=Ee[fi];for(;it<=vt&&qe<=fi;)if(null==wt)wt=N[++it];else if(null==Ot)Ot=N[--vt];else if(null==Gn)Gn=Ee[++qe];else if(null==Yn)Yn=Ee[--fi];else if(at(wt,Gn,Ve))ut(wt,Gn,Ve),wt=N[++it],Gn=Ee[++qe];else if(at(Ot,Yn,Ve))ut(Ot,Yn,Ve),Ot=N[--vt],Yn=Ee[--fi];else if(at(wt,Yn,Ve))ut(wt,Yn,Ve),ne.insertBefore(wt.$elm$,Ot.$elm$.nextSibling),wt=N[++it],Yn=Ee[--fi];else if(at(Ot,Gn,Ve))ut(Ot,Gn,Ve),ne.insertBefore(Ot.$elm$,wt.$elm$),Ot=N[--vt],Gn=Ee[++qe];else{for(ot=-1,bt=it;bt<=vt;++bt)if(N[bt]&&null!==N[bt].$key$&&N[bt].$key$===Gn.$key$){ot=bt;break}ot>=0?(nn=N[ot],nn.$tag$!==Gn.$tag$?Vi=Qe(N&&N[qe],Ie,ot):(ut(nn,Gn,Ve),N[ot]=void 0,Vi=nn.$elm$),Gn=Ee[++qe]):(Vi=Qe(N&&N[qe],Ie,qe),Gn=Ee[++qe]),Vi&&wt.$elm$.parentNode.insertBefore(Vi,wt.$elm$)}it>vt?yt(ne,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(N,it,vt)})(Ee,Ve,N,it,Ie):null!==it?(null!==ne.$text$&&(Ee.textContent=""),yt(Ee,null,N,it,0,it.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):ne.$text$!==ot&&(Ee.data=ot)},Et=ne=>{ne.$attrs$&&ne.$attrs$.ref&&ne.$attrs$.ref(null),ne.$children$&&ne.$children$.map(Et)},w=(ne,N)=>{N&&!ne.$onRenderResolve$&&N["s-p"]&&N["s-p"].push(new Promise(Ie=>ne.$onRenderResolve$=Ie))},Ae=(ne,N)=>{if(ne.$flags$|=16,!(4&ne.$flags$))return w(ne,ne.$ancestorComponent$),bx(()=>ke(ne,N));ne.$flags$|=512},ke=(ne,N)=>{const Ee=ne.$lazyInstance$;let Ve;return N&&(ne.$flags$|=256,ne.$queuedListeners$&&(ne.$queuedListeners$.map(([it,qe])=>Ue(Ee,it,qe)),ne.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),ae(Ve,()=>me(ne,Ee,N))},ae=(ne,N)=>te(ne)?ne.then(N):N(),te=ne=>ne instanceof Promise||ne&&ne.then&&"function"==typeof ne.then,me=function(){var ne=(0,y.Z)(function*(N,Ie,Ee){var Ve;const it=N.$hostElement$,ot=it["s-rc"];Ee&&(ne=>{const N=ne.$cmpMeta$,Ie=ne.$hostElement$,Ee=N.$flags$,it=((ne,N,Ie)=>{var Ee;const Ve=D(N),it=_n.get(Ve);if(ne=11===ne.nodeType?ne:Zo,it)if("string"==typeof it){let ot,qe=f.get(ne=ne.head||ne);if(qe||f.set(ne,qe=new Set),!qe.has(Ve)){{ot=Zo.createElement("style"),ot.innerHTML=it;const bt=null!==(Ee=yi.$nonce$)&&void 0!==Ee?Ee:X(Zo);null!=bt&&ot.setAttribute("nonce",bt),ne.insertBefore(ot,ne.querySelector("link"))}4&N.$flags$&&(ot.innerHTML+=V),qe&&qe.add(Ve)}}else ne.adoptedStyleSheets.includes(it)||(ne.adoptedStyleSheets=[...ne.adoptedStyleSheets,it]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),N);10&Ee&&(Ie["s-sc"]=it,Ie.classList.add(it+"-h"))})(N);ze(N,Ie,it,Ee),ot&&(ot.map(vt=>vt()),it["s-rc"]=void 0);{const vt=null!==(Ve=it["s-p"])&&void 0!==Ve?Ve:[],wt=()=>Ge(N);0===vt.length?wt():(Promise.all(vt).then(wt),N.$flags$|=4,vt.length=0)}});return function(Ie,Ee,Ve){return ne.apply(this,arguments)}}(),ze=(ne,N,Ie,Ee)=>{try{N=N.render(),ne.$flags$&=-17,ne.$flags$|=2,((ne,N,Ie=!1)=>{const Ee=ne.$hostElement$,Ve=ne.$cmpMeta$,it=ne.$vnode$||q(null,null),qe=(ne=>ne&&ne.$tag$===J)(N)?N:K(null,null,N);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([ot,bt])=>qe.$attrs$[bt]=Ee[ot])),Ie&&qe.$attrs$)for(const ot of Object.keys(qe.$attrs$))Ee.hasAttribute(ot)&&!["key","ref","style","class"].includes(ot)&&(qe.$attrs$[ot]=Ee[ot]);qe.$tag$=null,qe.$flags$|=4,ne.$vnode$=qe,qe.$elm$=it.$elm$=Ee.shadowRoot||Ee,E=Ee["s-sc"],k=0!=(1&Ve.$flags$),ut(it,qe,Ie)})(ne,N,Ee)}catch(Ve){$i(Ve,ne.$hostElement$)}return null},Ge=ne=>{const Ie=ne.$hostElement$,Ve=ne.$lazyInstance$,it=ne.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&ne.$flags$?Ue(Ve,"componentDidUpdate"):(ne.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),ne.$onReadyResolve$(Ie),it||Te()),ne.$onInstanceResolve$(Ie),ne.$onRenderResolve$&&(ne.$onRenderResolve$(),ne.$onRenderResolve$=void 0),512&ne.$flags$&&Nt(()=>Ae(ne,!1)),ne.$flags$&=-517},Te=ne=>{pt(Zo.documentElement),Nt(()=>((ne,N,Ie)=>{const Ee=yi.ce("appload",{detail:{namespace:"web-component"}});return ne.dispatchEvent(Ee),Ee})(rs))},Ue=(ne,N,Ie)=>{if(ne&&ne[N])try{return ne[N](Ie)}catch(Ee){$i(Ee)}},pt=ne=>ne.classList.add("hydrated"),Dn=(ne,N,Ie)=>{var Ee;const Ve=ne.prototype;if(N.$members$){ne.watchers&&(N.$watchers$=ne.watchers);const it=Object.entries(N.$members$);if(it.map(([qe,[ot]])=>{31&ot||2&Ie&&32&ot?Object.defineProperty(Ve,qe,{get(){return((ne,N)=>fr(this).$instanceValues$.get(N))(0,qe)},set(bt){((ne,N,Ie,Ee)=>{const Ve=fr(ne),it=Ve.$hostElement$,qe=Ve.$instanceValues$.get(N),ot=Ve.$flags$,bt=Ve.$lazyInstance$;Ie=((ne,N)=>null==ne||U(ne)?ne:4&N?"false"!==ne&&(""===ne||!!ne):2&N?parseFloat(ne):1&N?String(ne):ne)(Ie,Ee.$members$[N][0]);const vt=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&ot)||void 0===qe)&&Ie!==qe&&!vt&&(Ve.$instanceValues$.set(N,Ie),bt)){if(Ee.$watchers$&&128&ot){const Ot=Ee.$watchers$[N];Ot&&Ot.map(fi=>{try{bt[fi](Ie,qe,N)}catch(Gn){$i(Gn,it)}})}2==(18&ot)&&Ae(Ve,!1)}})(this,qe,bt,N)},configurable:!0,enumerable:!0}):1&Ie&&64&ot&&Object.defineProperty(Ve,qe,{value(...bt){var vt;const wt=fr(this);return null===(vt=wt?.$onInstancePromise$)||void 0===vt?void 0:vt.then(()=>{var Ot;return null===(Ot=wt.$lazyInstance$)||void 0===Ot?void 0:Ot[qe](...bt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(ot,bt,vt){yi.jmp(()=>{var wt;const Ot=qe.get(ot);if(this.hasOwnProperty(Ot))vt=this[Ot],delete this[Ot];else{if(Ve.hasOwnProperty(Ot)&&"number"==typeof this[Ot]&&this[Ot]==vt)return;if(null==Ot){const fi=fr(this),Gn=fi?.$flags$;if(Gn&&!(8&Gn)&&128&Gn&&vt!==bt){const Yn=fi.$lazyInstance$,Vi=null===(wt=N.$watchers$)||void 0===wt?void 0:wt[ot];Vi?.forEach(nn=>{null!=Yn[nn]&&Yn[nn].call(Yn,vt,bt,ot)})}return}}this[Ot]=(null!==vt||"boolean"!=typeof this[Ot])&&vt})},ne.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=N.$watchers$)&&void 0!==Ee?Ee:{}),...it.filter(([ot,bt])=>15&bt[0]).map(([ot,bt])=>{var vt;const wt=bt[1]||ot;return qe.set(wt,ot),512&bt[0]&&(null===(vt=N.$attrsToReflect$)||void 0===vt||vt.push([ot,wt])),wt})]))}}return ne},hn=function(){var ne=(0,y.Z)(function*(N,Ie,Ee,Ve){let it;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(it=Nf(Ee),it.then){const wt=()=>{};it=yield it,wt()}it.isProxied||(Ee.$watchers$=it.watchers,Dn(it,Ee,2),it.isProxied=!0);const vt=()=>{};Ie.$flags$|=8;try{new it(Ie)}catch(wt){$i(wt)}Ie.$flags$&=-9,Ie.$flags$|=128,vt()}else it=N.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(it.style){let vt=it.style;const wt=D(Ee);if(!_n.has(wt)){const Ot=()=>{};((ne,N,Ie)=>{let Ee=_n.get(ne);Ff&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=N:Ee.replaceSync(N)):Ee=N,_n.set(ne,Ee)})(wt,vt,!!(1&Ee.$flags$)),Ot()}}}const qe=Ie.$ancestorComponent$,ot=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(ot):ot()});return function(Ie,Ee,Ve,it){return ne.apply(this,arguments)}}(),bi=ne=>{Ue(ne,"disconnectedCallback")},hr=function(){var ne=(0,y.Z)(function*(N){if(!(1&yi.$flags$)){const Ie=fr(N);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?bi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>bi(Ie.$lazyInstance$))}});return function(Ie){return ne.apply(this,arguments)}}(),ti=(ne,N={})=>{var Ie;const Ve=[],it=N.exclude||[],qe=rs.customElements,ot=Zo.head,bt=ot.querySelector("meta[charset]"),vt=Zo.createElement("style"),wt=[];let Ot,fi=!0;Object.assign(yi,N),yi.$resourcesUrl$=new URL(N.resourcesUrl||"./",Zo.baseURI).href;let Gn=!1;if(ne.map(Yn=>{Yn[1].map(Vi=>{var nn;const Ir={$flags$:Vi[0],$tagName$:Vi[1],$members$:Vi[2],$listeners$:Vi[3]};4&Ir.$flags$&&(Gn=!0),Ir.$members$=Vi[2],Ir.$listeners$=Vi[3],Ir.$attrsToReflect$=[],Ir.$watchers$=null!==(nn=Vi[4])&&void 0!==nn?nn:{};const Ju=Ir.$tagName$,En=class extends HTMLElement{constructor(nc){super(nc),Aa(nc=this,Ir),1&Ir.$flags$&&nc.attachShadow({mode:"open"})}connectedCallback(){Ot&&(clearTimeout(Ot),Ot=null),fi?wt.push(this):yi.jmp(()=>(ne=>{if(!(1&yi.$flags$)){const N=fr(ne),Ie=N.$cmpMeta$,Ee=()=>{};if(1&N.$flags$)Ar(ne,N,Ie.$listeners$),N?.$lazyInstance$||N?.$onReadyPromise$&&N.$onReadyPromise$.then(()=>{});else{N.$flags$|=1;{let Ve=ne;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(N,N.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[it]])=>{if(31&it&&ne.hasOwnProperty(Ve)){const qe=ne[Ve];delete ne[Ve],ne[Ve]=qe}}),hn(ne,N,Ie)}Ee()}})(this))}disconnectedCallback(){yi.jmp(()=>hr(this))}componentOnReady(){return fr(this).$onReadyPromise$}};Ir.$lazyBundleId$=Yn[0],!it.includes(Ju)&&!qe.get(Ju)&&(Ve.push(Ju),qe.define(Ju,Dn(En,Ir,1)))})}),Ve.length>0&&(Gn&&(vt.textContent+=V),vt.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",vt.innerHTML.length)){vt.setAttribute("data-styles","");const Yn=null!==(Ie=yi.$nonce$)&&void 0!==Ie?Ie:X(Zo);null!=Yn&&vt.setAttribute("nonce",Yn),ot.insertBefore(vt,bt?bt.nextSibling:ot.firstChild)}fi=!1,wt.length?wt.map(Yn=>Yn.connectedCallback()):yi.jmp(()=>Ot=setTimeout(Te,30))},Ar=(ne,N,Ie,Ee)=>{Ie&&Ie.map(([Ve,it,qe])=>{const ot=_o(ne,Ve),bt=Js(N,qe),vt=tc(Ve);yi.ael(ot,it,bt,vt),(N.$rmListeners$=N.$rmListeners$||[]).push(()=>yi.rel(ot,it,bt,vt))})},Js=(ne,N)=>Ie=>{try{256&ne.$flags$?ne.$lazyInstance$[N](Ie):(ne.$queuedListeners$=ne.$queuedListeners$||[]).push([N,Ie])}catch(Ee){$i(Ee)}},_o=(ne,N)=>8&N?rs:ne,tc=ne=>Wb?{passive:0!=(1&ne),capture:0!=(2&ne)}:0!=(2&ne),Kr=new WeakMap,fr=ne=>Kr.get(ne),os=(ne,N)=>Kr.set(N.$lazyInstance$=ne,N),Aa=(ne,N)=>{const Ie={$flags$:0,$hostElement$:ne,$cmpMeta$:N,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),ne["s-p"]=[],ne["s-rc"]=[],Ar(ne,Ie,N.$listeners$),Kr.set(ne,Ie)},kr=(ne,N)=>N in ne,$i=(ne,N)=>(0,console.error)(ne,N),Uu=new Map,Nf=(ne,N,Ie)=>{const Ee=ne.$tagName$.replace(/-/g,"_"),Ve=ne.$lazyBundleId$,it=Uu.get(Ve);if(it)return it[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=ot=>(Uu.set(Ve,ot),ot[Ee]);if("read-along"===Ve)return I.e(154).then(I.bind(I,9154)).then(qe,$i)}return I(8718)(`./${Ve}.entry.js`).then(qe=>(Uu.set(Ve,qe),qe[Ee]),$i)},_n=new Map,rs=typeof window<"u"?window:{},Zo=rs.document||{head:{}},yi={$flags$:0,$resourcesUrl$:"",jmp:ne=>ne(),raf:ne=>requestAnimationFrame(ne),ael:(ne,N,Ie,Ee)=>ne.addEventListener(N,Ie,Ee),rel:(ne,N,Ie,Ee)=>ne.removeEventListener(N,Ie,Ee),ce:(ne,N)=>new CustomEvent(ne,N)},Wb=(()=>{let ne=!1;try{Zo.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ne=!0}}))}catch{}return ne})(),Ff=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ci=[],Wu=[],ni=(ne,N)=>Ie=>{ne.push(Ie),j||(j=!0,N&&4&yi.$flags$?Nt(Xu):yi.raf(Xu))},Pn=ne=>{for(let N=0;N{Pn(ci),Pn(Wu),(j=ci.length>0)&&yi.raf(Xu)},Nt=ne=>Promise.resolve(void 0).then(ne),bx=ni(Wu,!0)},1656:(C,de,I)=>{"use strict";var y=I(5861);let E=null,k=1;const L=Symbol("SIGNAL");function j(t){const n=E;return E=t,n}function O(t){if((!ge(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==k)){if(!t.producerMustRecompute(t)&&!ee(t))return t.dirty=!1,void(t.lastCleanEpoch=k);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=k}}function ee(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const ae=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function te(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class me{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof ae?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof ae?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ae(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof me){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&te(e,n)}remove(n){const{_finalizers:e}=this;e&&te(e,n),n instanceof me&&n._removeParent(this)}}me.EMPTY=(()=>{const t=new me;return t.closed=!0,t})();const ze=me.EMPTY;function Ge(t){return t instanceof me||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function At(){}const Dn=Mr("C",void 0,void 0);function Mr(t,n,e){return{kind:t,value:n,error:e}}let bi=null;function hr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!bi;if(n&&(bi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=bi;if(bi=null,e)throw i}}else t()}class Ar extends me{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Aa}static create(n,e,i){return new is(n,e,i)}next(n){this.isStopped?os(function ao(t){return Mr("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?os(function hn(t){return Mr("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?os(Dn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Js=Function.prototype.bind;function _o(t,n){return Js.call(t,n)}class tc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Kr(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Kr(i)}else Kr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Kr(e)}}}class is extends Ar{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new tc(o)}}function Kr(t){Ue.useDeprecatedSynchronousErrorHandling?function ti(t){Ue.useDeprecatedSynchronousErrorHandling&&bi&&(bi.errorThrown=!0,bi.error=t)}(t):et(t)}function os(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Aa={closed:!0,next:At,error:function fr(t){throw t},complete:At},kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function $i(t){return t}function Nf(t){return 0===t.length?$i:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let _n=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function yi(t){return t&&t instanceof Ar||function Zo(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new is(e,i,o);return hr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=rs(i))((o,r)=>{const a=new is({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[kr](){return this}pipe(...e){return Nf(e)(this)}toPromise(e){return new(e=rs(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function rs(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Wb=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _t=(()=>{class t extends _n{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ff(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Wb}next(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new me(()=>{this.currentObservers=null,te(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new _n;return e.source=this,e}}return t.create=(n,e)=>new Ff(n,e),t})();class Ff extends _t{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class ci extends _t{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Wu(t){return Ae(t?.lift)}function ni(t){return n=>{if(Wu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new Xu(t,n,e,i,o)}class Xu extends Ar{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Nt(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const ne="https://g.co/ng/security#xss";class N extends Error{constructor(n,e){super(function Ie(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function bt(t){return{toString:t}.toString()}const wt="__parameters__";function Yn(t,n,e){return bt(()=>{const i=function Gn(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(wt)?l[wt]:Object.defineProperty(l,wt,{value:[]})[wt];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const nn=globalThis;function En(t){for(let n in t)if(t[n]===En)return n;throw Error("Could not find renamed property on target object.")}function nc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Xb(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Yj=En({__forward_ref__:En});function Sn(t){return t.__forward_ref__=Sn,t.toString=function(){return Pi(this())},t}function jt(t){return Lf(t)?t():t}function Lf(t){return"function"==typeof t&&t.hasOwnProperty(Yj)&&t.__forward_ref__===Sn}function as(t,n,e){t!=n&&function Ft(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function jf(t){return yx(t,Hf)||yx(t,_x)}function yx(t,n){return t.hasOwnProperty(n)?t[n]:null}function Bf(t){return t&&(t.hasOwnProperty(Jb)||t.hasOwnProperty(Uj))?t[Jb]:null}const Hf=En({\u0275prov:En}),Jb=En({\u0275inj:En}),_x=En({ngInjectableDef:En}),Uj=En({ngInjectorDef:En});class Be{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ty(t){return t&&!!t.\u0275providers}const Qu=En({\u0275cmp:En}),ny=En({\u0275dir:En}),iy=En({\u0275pipe:En}),wx=En({\u0275mod:En}),ka=En({\u0275fac:En}),Ku=En({__NG_ELEMENT_ID__:En}),Cx=En({__NG_ENV_ID__:En});function Gt(t){return"string"==typeof t?t:null==t?"":String(t)}function oy(t,n){throw new N(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let ry;function xx(){return ry}function Oo(t){const n=ry;return ry=t,n}function Sx(t,n,e){const i=jf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void oy()}const qu={},ay="__NG_DI_FLAG__",Yf="ngTempTokenPath",qj=/\n/gm,Dx="__source";let ic;function ss(t){const n=ic;return ic=t,n}function n3(t,n=fn.Default){if(void 0===ic)throw new N(-203,!1);return null===ic?Sx(t,void 0,n):ic.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(xx()||n3)(jt(t),n)}function Ne(t,n=fn.Default){return Me(t,zf(n))}function zf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sy(t){const n=[];for(let e=0;eArray.isArray(e)?rc(e,n):n(e))}function Tx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $f(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Wo(t,n,e){let i=ac(t,n);return i>=0?t[1|i]=e:(i=~i,function Mx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function cy(t,n){const e=ac(t,n);if(e>=0)return t[1|e]}function ac(t,n){return function Ax(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Rr(i))return!1;a=!0}}}}else{if(!a&&!Rr(i)&&!Rr(l))return!1;if(a&&Rr(l))continue;a=!1,i=l|1&i}}return Rr(i)||a}function Rr(t){return 0==(1&t)}function p3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Rr(a)&&(n+=Fx(r,o),o=""),i=a,r=r||!Rr(i);e++}return""!==o&&(n+=Fx(r,o)),n}function gn(t){return bt(()=>{const n=jx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Or.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""};Bx(e);const i=t.dependencies;return e.directiveDefs=Uf(i,!1),e.pipeDefs=Uf(i,!0),e.id=function D3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function C3(t){return un(t)||Ni(t)}function x3(t){return null!==t}function on(t){return bt(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Lx(t,n){if(null==t)return qr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Ye.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Ye.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return bt(()=>{const n=jx(t);return Bx(n),n})}function Po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function un(t){return t[Qu]||null}function Ni(t){return t[ny]||null}function Qi(t){return t[iy]||null}function so(t,n){const e=t[wx]||null;if(!e&&!0===n)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function jx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||qr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lx(t.inputs,n),outputs:Lx(t.outputs),debugInfo:null}}function Bx(t){t.features?.forEach(n=>n(t))}function Uf(t,n){if(!t)return null;const e=n?Qi:C3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(x3)}function sc(t){return{\u0275providers:t}}function E3(...t){return{\u0275providers:fy(0,t),\u0275fromNgModule:!0}}function fy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return rc(n,a=>{const s=a;Wf(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Hx(o,r),e}function Hx(t,n){for(let e=0;e{n(r,i)})}}function Wf(t,n,e,i){if(!(t=jt(t)))return!1;let o=null,r=Bf(t);const a=!r&&un(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Bf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)Wf(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{rc(r.imports,u=>{Wf(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Hx(c,n)}if(!s){const c=Qs(o)||(()=>new o);n({provide:o,useFactory:c,deps:vn},o),n({provide:uy,useValue:o,multi:!0},o),n({provide:Ks,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;py(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function py(t,n){for(let e of t)ty(e)&&(e=e.\u0275providers),Array.isArray(e)?py(e,n):n(e)}const T3=En({provide:String,useValue:En});function gy(t){return null!==t&&"object"==typeof t&&T3 in t}function qs(t){return"function"==typeof t}const my=new Be(""),Xf={},A3={};let by;function Jf(){return void 0===by&&(by=new Zf),by}class No{}class lc extends No{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_y(n,a=>this.processProvider(a)),this.records.set(kx,cc(void 0,this)),o.has("environment")&&this.records.set(No,cc(void 0,this));const r=this.records.get(my);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(uy,vn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ss(this),i=Oo(void 0);try{return n()}finally{ss(e),Oo(i)}}get(n,e=qu,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Cx))return n[Cx](this);i=zf(i);const r=ss(this),a=Oo(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function P3(t){return"function"==typeof t||"object"==typeof t&&t instanceof Be}(n)&&jf(n);l=c&&this.injectableDefInScope(c)?cc(yy(n),Xf):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?Jf():this.parent).get(n,e=i&fn.Optional&&e===qu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Yf]=s[Yf]||[]).unshift(Pi(n)),r)throw s;return function o3(t,n,e,i){const o=t[Yf];throw n[Dx]&&o.unshift(n[Dx]),t.message=function r3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Pi(n);if(Array.isArray(n))o=n.map(Pi).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(qj,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Yf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Oo(a),ss(r)}}resolveInjectorInitializers(){const n=j(null),e=ss(this),i=Oo(void 0);try{const r=this.get(Ks,vn,fn.Self);for(const a of r)a()}finally{ss(e),Oo(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Pi(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(n){let e=qs(n=jt(n))?n:jt(n&&n.provide);const i=function I3(t){return gy(t)?cc(void 0,t.useValue):cc($x(t),Xf)}(n);if(!qs(n)&&!0===n.multi){let o=this.records.get(e);o||(o=cc(void 0,Xf,!0),o.factory=()=>sy(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===Xf&&(e.value=A3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function R3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=jt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function yy(t){const n=jf(t),e=null!==n?n.factory:Qs(t);if(null!==e)return e;if(t instanceof Be)throw new N(204,!1);if(t instanceof Function)return function k3(t){if(t.length>0)throw new N(204,!1);const e=function Gj(t){return t&&(t[Hf]||t[_x])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new N(204,!1)}function $x(t,n,e){let i;if(qs(t)){const o=jt(t);return Qs(o)||yy(o)}if(gy(t))i=()=>jt(t.useValue);else if(function zx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sy(t.deps||[]));else if(function Yx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(jt(t.useExisting));else{const o=jt(t&&(t.useClass||t.provide));if(!function O3(t){return!!t.deps}(t))return Qs(o)||yy(o);i=()=>new o(...sy(t.deps))}return i}function cc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function _y(t,n){for(const e of t)Array.isArray(e)?_y(e,n):e&&ty(e)?_y(e.\u0275providers,n):n(e)}function ea(t,n){t instanceof lc&&t.assertNotDestroyed();const i=ss(t),o=Oo(void 0);try{return n()}finally{ss(i),Oo(o)}}function Vx(){return void 0!==xx()||null!=function t3(){return ic}()}const si=0,tt=1,It=2,_i=3,Pr=4,lo=5,Xo=6,dc=7,Un=8,Ki=9,Nr=10,Bt=11,id=12,Gx=13,hc=14,ui=15,od=16,fc=17,Ia=18,rd=19,Ux=20,us=21,qf=22,el=23,Ut=25,wy=1,ta=7,pc=9,vi=10;var Cy=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Cy||{});function co(t){return Array.isArray(t)&&"object"==typeof t[wy]}function uo(t){return Array.isArray(t)&&!0===t[wy]}function xy(t){return 0!=(4&t.flags)}function tl(t){return t.componentOffset>-1}function tp(t){return 1==(1&t.flags)}function Fr(t){return!!t.template}function Sy(t){return 0!=(512&t[It])}class U3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qx(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Zi(){return Kx}function Kx(t){return t.type.prototype.ngOnChanges&&(t.setInput=X3),W3}function W3(){const t=eS(this),n=t?.current;if(n){const e=t.previous;if(e===qr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function X3(t,n,e,i,o){const r=this.declaredInputs[i],a=eS(t)||function J3(t,n){return t[qx]=n}(t,{previous:qr,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new U3(c&&c.currentValue,e,l===qr),Qx(t,n,o,e)}Zi.ngInherit=!0;const qx="__ngSimpleChanges__";function eS(t){return t[qx]||null}const na=function(t,n,e){},tS="svg";let iS=!1;function Ln(t){for(;Array.isArray(t);)t=t[si];return t}function sd(t,n){return Ln(n[t])}function vo(t,n){return Ln(n[t.index])}function ld(t,n){return t.data[n]}function gc(t,n){return t[n]}function Jo(t,n){const e=n[t];return co(e)?e:e[si]}function Ay(t){return 128==(128&t[It])}function ia(t,n){return null==n?null:t[n]}function oS(t){t[fc]=0}function n4(t){1024&t[It]||(t[It]|=1024,Ay(t)&&cd(t))}function ky(t){return!!(9216&t[It]||t[el]?.dirty)}function Iy(t){t[Nr].changeDetectionScheduler?.notify(1),ky(t)?cd(t):64&t[It]&&(function K3(){return iS}()?(t[It]|=1024,cd(t)):t[Nr].changeDetectionScheduler?.notify())}function cd(t){t[Nr].changeDetectionScheduler?.notify();let n=nl(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Ay(n));)n=nl(n)}function np(t,n){if(256==(256&t[It]))throw new N(911,!1);null===t[us]&&(t[us]=[]),t[us].push(n)}function nl(t){const n=t[_i];return uo(n)?n[_i]:n}const Ht={lFrame:pS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sS(){return Ht.bindingsEnabled}function mc(){return null!==Ht.skipHydrationRootTNode}function Le(){return Ht.lFrame.lView}function pn(){return Ht.lFrame.tView}function Xt(t){return Ht.lFrame.contextLView=t,t[Un]}function Jt(t){return Ht.lFrame.contextLView=null,t}function Nn(){let t=lS();for(;null!==t&&64===t.type;)t=t.parent;return t}function lS(){return Ht.lFrame.currentTNode}function ud(){const t=Ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function oa(t,n){const e=Ht.lFrame;e.currentTNode=t,e.isParent=n}function Ry(){return Ht.lFrame.isParent}function Py(){Ht.lFrame.isParent=!1}function wo(){const t=Ht.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Lr(){return Ht.lFrame.bindingIndex++}function Ra(t){const n=Ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function dS(t){Ht.lFrame.inI18n=t}function f4(t,n){const e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ny(n)}function Ny(t){Ht.lFrame.currentDirectiveIndex=t}function Fy(t){const n=Ht.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Ly(){return Ht.lFrame.currentQueryIndex}function ip(t){Ht.lFrame.currentQueryIndex=t}function g4(t){const n=t[tt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function hS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=g4(r),null===o||(r=r[hc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ht.lFrame=fS();return i.currentTNode=n,i.lView=t,!0}function jy(t){const n=fS(),e=t[tt];Ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function fS(){const t=Ht.lFrame,n=null===t?null:t.child;return null===n?pS(t):n}function pS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function gS(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mS=gS;function By(){const t=gS();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Ht.lFrame.selectedIndex}function il(t){Ht.lFrame.selectedIndex=t}function Wn(){const t=Ht.lFrame;return ld(t.tView,t.selectedIndex)}function op(){Ht.lFrame.currentNamespace=tS}let yS=!0;function dd(){return yS}function ra(t){yS=t}function rp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[fc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,vS(s,r)):vS(s,r)}const bc=-1;class hd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function zy(t){return t!==bc}function fd(t){return 32767&t}function pd(t,n){let e=function E4(t){return t>>16}(t),i=n;for(;e>0;)i=i[hc],e--;return i}let $y=!0;function lp(t){const n=$y;return $y=t,n}const wS=255,CS=5;let T4=0;const aa={};function cp(t,n){const e=xS(t,n);if(-1!==e)return e;const i=n[tt];i.firstCreatePass&&(t.injectorIndex=n.length,Vy(i.data,t),Vy(n,null),Vy(i.blueprint,null));const o=up(t,n),r=t.injectorIndex;if(zy(o)){const a=fd(o),s=pd(o,n),l=s[tt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function Vy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function up(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kS(o),null===i)return bc;if(e++,o=o[hc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return bc}function Zy(t,n,e){!function M4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ku)&&(i=e[Ku]),null==i&&(i=e[Ku]=T4++);const o=i&wS;n.data[t+(o>>CS)]|=1<=0?n&wS:O4:n}(e);if("function"==typeof r){if(!hS(n,t,i))return i&fn.Host?SS(o,0,i):DS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;oy()}finally{mS()}}else if("number"==typeof r){let a=null,s=xS(t,n),l=bc,c=i&fn.Host?n[ui][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?up(t,n):n[s+8],l!==bc&&AS(i,!1)?(a=n[tt],s=fd(l),n=pd(l,n)):s=-1);-1!==s;){const u=n[tt];if(MS(r,s,u.data)){const d=k4(s,n,e,a,i,c);if(d!==aa)return d}l=n[s+8],l!==bc&&AS(i,n[tt].data[s+8]===c)&&MS(r,s,n)?(a=u,s=fd(l),n=pd(l,n)):s=-1}}return o}function k4(t,n,e,i,o,r){const a=n[tt],s=a.data[t+8],u=dp(s,a,e,null==i?tl(s)&&$y:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ol(n,a,u,s):aa}function dp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Fr(p)&&p.type===e)return l}return null}function ol(t,n,e,i){let o=t[e];const r=n.data;if(function C4(t){return t instanceof hd}(o)){const a=o;a.resolving&&function Jj(t,n){throw n&&n.join(" > "),new N(-200,t)}(function Tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gt(t)}(r[e]));const s=lp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Oo(a.injectImpl):null;hS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function v4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Kx(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Oo(c),lp(s),a.resolving=!1,mS()}}return o}function MS(t,n,e){return!!(e[n+(t>>CS)]&1<{const n=t.prototype.constructor,e=n[ka]||Gy(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[ka]||Gy(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Gy(t){return Lf(t)?()=>{const n=Gy(jt(t));return n&&n()}:Qs(t)}function kS(t){const n=t[tt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function sa(t){return function A4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=qu}static{this.NULL=new Zf}static create(e,i){if(Array.isArray(e))return NS({name:""},i,e,"");{const o=e.name??"";return NS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(kx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Wy(t){return t.ngOriginalError}class Qo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Wy(n);for(;e&&Wy(e);)e=Wy(e);return e||null}}const jS=new Be("",{providedIn:"root",factory:()=>Ne(Qo).handleError.bind(void 0)});let vc=(()=>{class t{static{this.__NG_ELEMENT_ID__=z4}static{this.__NG_ENV_ID__=e=>e}}return t})();class Y4 extends vc{constructor(n){super(),this._lView=n}onDestroy(n){return np(this._lView,n),()=>function Oy(t,n){if(null===t[us])return;const e=t[us].indexOf(n);-1!==e&&t[us].splice(e,1)}(this._lView,n)}}function z4(){return new Y4(Le())}function $4(){return wc(Nn(),Le())}function wc(t,n){return new Zt(vo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=$4}}return t})();function HS(t){return t instanceof Zt?t.nativeElement:t}function Xy(t){return n=>{setTimeout(t,void 0,n)}}const Lt=class V4 extends _t{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Vx()&&(this.destroyRef=Ne(vc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=Xy(r),o&&(o=Xy(o)),a&&(a=Xy(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof me&&n.add(s),s}};function Z4(){return this._results[Symbol.iterator]()}class ds{get changes(){return this._changes??=new Lt}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=ds.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Z4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function c3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;if5}),f5="ng",aD=new Be(""),Pa=new Be("",{providedIn:"platform",factory:()=>"unknown"}),Co=new Be(""),e_=new Be("",{providedIn:"root",factory:()=>hs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sD=()=>null;function l_(t,n,e=!1){return sD(t,n,e)}const hD=new Be("",{providedIn:"root",factory:()=>!1});let xp,Sp;function Sc(t){return function h_(){if(void 0===xp&&(xp=null,nn.trustedTypes))try{xp=nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xp}()?.createHTML(t)||t}function f_(){if(void 0===Sp&&(Sp=null,nn.trustedTypes))try{Sp=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sp}function pD(t){return f_()?.createHTML(t)||t}function mD(t){return f_()?.createScriptURL(t)||t}class rl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class T5 extends rl{getTypeName(){return"HTML"}}class M5 extends rl{getTypeName(){return"Style"}}class A5 extends rl{getTypeName(){return"Script"}}class k5 extends rl{getTypeName(){return"URL"}}class I5 extends rl{getTypeName(){return"ResourceURL"}}function Ko(t){return t instanceof rl?t.changingThisBreaksApplicationSecurity:t}function la(t,n){const e=function O5(t){return t instanceof rl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${ne})`)}return e===n}function bD(t){const n=new B5(t);return function H5(){try{return!!(new window.DOMParser).parseFromString(Sc(""),"text/html")}catch{return!1}}()?new j5(n):n}class j5{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class B5{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Sc(n),e}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dp(t){return(t=String(t)).match(Y5)?t:"unsafe:"+t}function Na(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function wd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const yD=Na("area,br,col,hr,img,wbr"),_D=Na("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vD=Na("rp,rt"),p_=wd(yD,wd(_D,Na("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wd(vD,Na("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wd(vD,_D)),g_=Na("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wD=wd(g_,Na("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Na("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),z5=Na("script,style,template");class $5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=G5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=Z5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=CD(n).toLowerCase();if(!p_.hasOwnProperty(e))return this.sanitizedSomething=!0,!z5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=CD(n).toLowerCase();p_.hasOwnProperty(e)&&!yD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(SD(n))}}function Z5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw xD(n);return n}function G5(t){const n=t.firstChild;if(n&&function V5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw xD(n);return n}function CD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function xD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const U5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W5=/([^\#-~ |!])/g;function SD(t){return t.replace(/&/g,"&").replace(U5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(W5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ep;function DD(t,n){let e=null;try{Ep=Ep||bD(t);let i=n?String(n):"";e=Ep.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Ep.getInertBodyElement(i)}while(i!==r);return Sc((new $5).sanitizeChildren(m_(e)||e))}finally{if(e){const i=m_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function m_(t){return"content"in t&&function X5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Gi||{});function b_(t){const n=xd();return n?pD(n.sanitize(Gi.HTML,t)||""):la(t,"HTML")?pD(Ko(t)):DD(hs(),Gt(t))}function Cd(t){const n=xd();return n?n.sanitize(Gi.URL,t)||"":la(t,"URL")?Ko(t):Dp(Gt(t))}function ED(t){const n=xd();if(n)return mD(n.sanitize(Gi.RESOURCE_URL,t)||"");if(la(t,"ResourceURL"))return mD(Ko(t));throw new N(904,!1)}function xd(){const t=Le();return t&&t[Nr].sanitizer}const t8=/^>|^->||--!>|)/g,i8="\u200b$1\u200b";function qo(t){return t instanceof Function?t():t}var ps=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ps||{});let w_;function C_(t,n){return w_(t,n)}function Ec(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[si]);const s=Ln(i);0===t&&null!==e?null==o?BD(n,e,s):al(n,e,s,o||null,!0):1===t&&null!==e?al(n,e,s,o||null,!0):2===t?function Ed(t,n,e){const i=Ip(t,n);i&&function C8(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function D8(t,n,e,i,o){const r=e[ta];r!==Ln(e)&&Ec(n,t,i,r,o);for(let s=vi;sn.replace(n8,i8))}(n))}function Ap(t,n,e){return t.createElement(n,e)}function FD(t,n){n[Nr].changeDetectionScheduler?.notify(1),Rp(t,n,n[Bt],2,null,null)}function LD(t,n){const e=t[pc],i=e.indexOf(n);e.splice(i,1)}function Sd(t,n){if(t.length<=vi)return;const e=vi+n,i=t[e];if(i){const o=i[od];null!==o&&o!==t&&LD(o,i),n>0&&(t[e-1][Pr]=i[Pr]);const r=$f(t,vi+n);!function g8(t,n){FD(t,n),n[si]=null,n[lo]=null}(i[tt],i);const a=r[Ia];null!==a&&a.detachView(r[tt]),i[_i]=null,i[Pr]=null,i[It]&=-129}return i}function kp(t,n){if(!(256&n[It])){const e=n[Bt];e.destroyNode&&Rp(t,n,e,3,null,null),function b8(t){let n=t[id];if(!n)return D_(t[tt],t);for(;n;){let e=null;if(co(n))e=n[id];else{const i=n[vi];i&&(e=i)}if(!e){for(;n&&!n[Pr]&&n!==t;)co(n)&&D_(n[tt],n),n=n[_i];null===n&&(n=t),co(n)&&D_(n[tt],n),e=n&&n[Pr]}n=e}}(n)}}function D_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[el]&&function se(t){if(B(t),ge(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[dc]=null);const o=n[us];if(null!==o){n[us]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Or.None||r===Or.Emulated)return null}return vo(i,e)}}function al(t,n,e,i,o){t.insertBefore(n,e,i,o)}function BD(t,n,e){t.appendChild(n,e)}function HD(t,n,e,i,o){null!==i?al(t,n,e,i,o):BD(t,n,e)}function Ip(t,n){return t.parentNode(n)}function YD(t,n,e){return $D(t,n,e)}function zD(t,n,e){return 40&t.type?vo(t,e):null}let T_,$D=zD;function VD(t,n){$D=t,T_=n}function Op(t,n,e,i){const o=E_(t,i,n),r=n[Bt],s=YD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lUt&&JD(t,n,Ut,!1),na(a?2:0,o),e(i,o)}finally{il(r),na(a?3:1,o)}}function O_(t,n,e){if(xy(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function tE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Ye.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?nE(i,e,c,s,l):nE(i,e,c,s)}return i}function nE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Lo(t,n,e,i,o,r,a,s){const l=vo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(H_(t,e,u,i,o),tl(n)&&function j8(t,n){const e=Jo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function L8(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function F_(t,n,e,i){if(sS()){const o=null===i?null:{"":-1},r=function V8(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Td(t,e,o.hostVars,Qt),o)}function ca(t,n,e,i,o,r){const a=vo(t,n);!function j_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Gt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Bt],a,r,t.value,e,i,o)}function J8(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Pr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cd(t.lView)},consumerOnSignalRead(){this.lView[el]=this}},fE=100;function Lp(t,n=!0,e=0){const i=t[Nr],o=i.rendererFactory;o.begin?.();try{!function rB(t,n){$_(t,n);let e=0;for(;ky(t);){if(e===fE)throw new N(103,!1);e++,$_(t,1)}}(t,e)}catch(a){throw n&&Fp(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function aB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Nr].inlineEffectRunner?.flush(),jy(n);let a=null,s=null;(function sB(t){return 2!==t.type})(t)&&(s=function tB(t){return t[el]??function nB(t){const n=hE.pop()??Object.create(oB);return n.lView=t,n}(t)}(n),a=function q(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{oS(n),function uS(t){return Ht.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&KD(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&ap(n,d,null)}else{const d=t.preOrderHooks;null!==d&&sp(n,d,0,null),Hy(n,0)}if(function lB(t){for(let n=JS(t);null!==n;n=QS(n)){if(!(n[It]&Cy.HasTransplantedViews))continue;const e=n[pc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function iB(t){t.lView[el]!==t&&(t.lView=null,hE.push(t))}(s)),By()}}function pE(t,n){for(let e=JS(t);null!==e;e=QS(e))for(let i=vi;i-1&&(Sd(n,i),$f(e,i))}this._attachedToViewContainer=!1}kp(this._lView[tt],this._lView)}onDestroy(n){np(this._lView,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){Iy(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,FD(this._lView[tt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n,Iy(this._lView)}}let xo=(()=>{class t{static{this.__NG_ELEMENT_ID__=hB}}return t})();const uB=xo,dB=class extends uB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=Md(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Od(o)}};function hB(){return jp(Nn(),Le())}function jp(t,n){return 4&t.type?new dB(n,t,wc(t,n)):null}let CE=()=>null;function Ac(t,n){return CE(t,n)}class $p{}class FB{}class xE{}class jB{resolveComponentFactory(n){throw function LB(t){const n=Error(`No component factory found for ${Pi(t)}.`);return n.ngComponent=t,n}(n)}}let sl=(()=>{class t{static{this.NULL=new jB}}return t})();class X_{}let La=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function BB(){const t=Le(),e=Jo(Nn().index,t);return(co(e)?e:t)[Bt]}()}}return t})(),HB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const J_={},DE=new Set;function ua(t){DE.has(t)||(DE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function EE(...t){}class Ct{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lt(!1),this.onMicrotaskEmpty=new Lt(!1),this.onStable=new Lt(!1),this.onError=new Lt(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function YB(){const t="function"==typeof nn.requestAnimationFrame;let n=nn[t?"requestAnimationFrame":"setTimeout"],e=nn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function VB(t){const n=()=>{!function $B(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(nn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,K_(t),t.isCheckStableRunning=!0,Q_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),K_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function ZB(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return TE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ME(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return TE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ME(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,K_(t),Q_(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new N(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,zB,EE,EE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const zB={};function Q_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function K_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function TE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ME(t){t._nesting--,Q_(t)}class AE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lt,this.onMicrotaskEmpty=new Lt,this.onStable=new Lt,this.onError=new Lt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var ll=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ll||{});const kE={destroy(){}};function IE(t,n){!n&&function Qf(t){if(!Vx())throw new N(-203,!1)}();const e=n?.injector??Ne(di);if(!function fs(t){return"browser"===(t??Ne(di)).get(Pa)}(e))return kE;ua("NgAfterNextRender");const i=e.get(Ld),o=i.handler??=new RE,r=n?.phase??ll.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(vc).onDestroy(a),l=ea(e,()=>new OE(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class OE{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Ne(Ct),this.errorHandler=Ne(Qo,{optional:!0}),Ne($p,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class RE{constructor(){this.executingCallbacks=!1,this.buckets={[ll.EarlyRead]:new Set,[ll.Write]:new Set,[ll.MixedReadWrite]:new Set,[ll.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ld=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Zp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&WD(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function o6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=a6}}return t})();function a6(){return HE(Nn(),Le())}const s6=jo,jE=class extends s6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return wc(this._hostTNode,this._hostLView)}get injector(){return new Li(this._hostTNode,this._hostLView)}get parentInjector(){const n=up(this._hostTNode,this._hostLView);if(zy(n)){const e=pd(n,this._hostLView),i=fd(n);return new Li(e[tt].data[i+8],e)}return new Li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=BE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Ac(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Mc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function nd(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new Hd(un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(No,null);b&&(r=b)}const u=un(l.componentType??{}),d=Ac(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Mc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function t4(t){return uo(t[_i])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[_i],c=new jE(l,l[lo],l[_i]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Ad(a,o,r,i),n.attachToViewContainerRef(),Tx(nv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=BE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);i&&($f(nv(this._lContainer),e),kp(i[tt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);return i&&null!=$f(nv(this._lContainer),e)?new Od(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function BE(t){return t[8]}function nv(t){return t[8]||(t[8]=[])}function HE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=rE(i,n,null,t),n[t.index]=e,Np(n,e)),YE(e,n,t,i),new jE(e,t,n)}let YE=function $E(t,n,e,i){if(t[ta])return;let o;o=8&e.type?Ln(i):function l6(t,n){const e=t[Bt],i=e.createComment(""),o=vo(n,t);return al(e,Ip(e,o),i,function x8(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[ta]=o},iv=()=>!1;class ov{constructor(n){this.queryList=n,this.matches=null}clone(){return new ov(this.queryList)}setDirty(){this.queryList.setDirty()}}class rv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class av{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=vi;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=td(o.hostAttrs,e=td(e,o.hostAttrs))}}(i)}function M6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Up(t){return t===qr?{}:t===vn?[]:t}function k6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function I6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function O6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function So(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class cl{}class pT{}class hv extends cl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FE(this);const o=so(n);this._bootstrapComponents=qo(o.bootstrap),this._r3Injector=FS(n,e,[{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver},...i],Pi(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fv extends pT{constructor(n){super(),this.moduleType=n}create(n){return new hv(this.moduleType,n,[])}}class gT extends cl{constructor(n){super(),this.componentFactoryResolver=new FE(this),this.instance=null;const e=new lc([...n.providers,{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],n.parent||Jf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wp(t,n,e=null){return new gT({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jp(t){return!!pv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function pv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function da(t,n,e){return t[n]=e}function wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ul(t,n,e,i){const o=wi(t,n,e);return wi(t,n+1,i)||o}function kt(t,n,e,i,o,r,a,s){const l=Le(),c=pn(),u=t+Ut,d=c.firstCreatePass?function Z6(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Tc(n,t,4,a||null,ia(c,s));F_(n,e,u,ia(c,l)),rp(n,u);const d=u.tView=N_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];oa(d,!1);const h=mT(c,l,d,t);dd()&&Op(c,l,h,d),fo(h,l);const p=rE(h,l,h,d);return l[u]=p,Np(l,p),function zE(t,n,e){return iv(t,n,e)}(p,d,l),tp(d)&&R_(c,l,d),null!=a&&P_(l,d,s),kt}let mT=function bT(t,n,e,i){return ra(!0),n[Bt].createComment("")};function ln(t,n,e,i){const o=Le();return wi(o,Lr(),n)&&(pn(),ca(Wn(),o,t,n,e,i)),ln}function jc(t,n,e,i){return wi(t,Lr(),e)?n+Gt(e)+i:Qt}function Bc(t,n,e,i,o,r){const s=ul(t,function Oa(){return Ht.lFrame.bindingIndex}(),e,o);return Ra(2),s?n+Gt(e)+i+Gt(o)+r:Qt}function ig(t,n){return t<<17|n<<2}function _s(t){return t>>17&32767}function Sv(t){return 2|t}function hl(t){return(131068&t)>>2}function Dv(t,n){return-131069&t|n<<2}function Ev(t){return 1|t}function WT(t,n,e,i){const o=t[e+1],r=null===n;let a=i?_s(o):hl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];A7(t[a],n)&&(s=!0,t[a+1]=i?Ev(c):Sv(c)),a=i?_s(c):hl(c)}s&&(t[e+1]=i?Sv(o):Ev(o))}function A7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ac(t,n)>=0}const ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XT(t){return t.substring(ji.key,ji.keyEnd)}function JT(t,n){const e=ji.textEnd;return e===n?-1:(n=ji.keyEnd=function R7(t,n,e){for(;n32;)n++;return n}(t,ji.key=n,e),Gc(t,n,e))}function Gc(t,n,e){for(;n=0;e=JT(n,e))Wo(t,XT(n),!0)}function jr(t,n,e,i){const o=Le(),r=pn(),a=Ra(2);r.firstUpdatePass&&nM(r,t,a,i),n!==Qt&&wi(o,a,n)&&oM(r,r.data[ho()],o,o[Bt],t,o[a+1]=function V7(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Pi(Ko(t)))),t}(n,e),i,a)}function Br(t,n,e,i){const o=pn(),r=Ra(2);o.firstUpdatePass&&nM(o,null,r,i);const a=Le();if(e!==Qt&&wi(a,r,e)){const s=o.data[ho()];if(aM(s,i)&&!tM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=Xb(l,e||"")),Tv(o,s,a,e,i)}else!function $7(t,n,e,i,o,r,a,s){o===Qt&&(o=vn);let l=0,c=0,u=0=t.expandoStartIndex}function nM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=tM(t,e);aM(r,i)&&null===n&&!a&&(n=!1),n=function L7(t,n,e,i){const o=Fy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Ud(e=Mv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Mv(o,t,n,e,i),null===r){let l=function j7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==hl(i))return t[_s(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Mv(null,t,n,l[1],i),l=Ud(l,n.attrs,i),function B7(t,n,e,i){t[_s(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function H7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=_s(t[s+1]);t[i+1]=ig(h,s),0!==h&&(t[h+1]=Dv(t[h+1],i)),t[s+1]=function D7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ig(s,0),0!==s&&(t[s+1]=Dv(t[s+1],i)),s=i;else t[i+1]=ig(l,0),0===s?s=i:t[l+1]=Dv(t[l+1],i),l=i;c&&(t[i+1]=Sv(t[i+1])),WT(t,u,i,!0),WT(t,u,i,!1),function M7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&ac(r,n)>=0&&(e[i+1]=Ev(e[i+1]))}(n,u,t,i,r),a=ig(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Mv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===Qt&&(h=d?vn:void 0);let p=d?cy(h,i):u===i?h:void 0;if(c&&!og(p)&&(p=cy(l,i)),og(p)&&(s=p,a))return s;const g=t[o+1];o=a?_s(g):hl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=cy(l,i))}return s}function og(t){return void 0!==t}function aM(t,n){return 0!=(t.flags&(n?8:16))}function Av(t,n,e){Br(Wo,fa,jc(Le(),t,n,e),!0)}class eH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function kv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function Iv(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function sM(t,n,e,i,o){if(Iv(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function lM(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class cM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function Mn(t,n,e){ua("NgControlFlow");const i=Le(),o=Lr(),r=Ov(i,Ut+t);if(wi(i,o,n)){const s=j(null);try{if(z_(r,0),-1!==n){const l=Rv(i[tt],Ut+n),c=Ac(r,l.tView.ssrId);Ad(r,Md(i,l,e,{dehydratedView:c}),0,Mc(l,c))}}finally{j(s)}}else{const s=uE(r,0);void 0!==s&&(s[Un]=e)}}class nH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-vi}}function rg(t,n){return n}class oH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function ag(t,n,e,i,o,r,a,s,l,c,u,d,h){ua("NgControlFlow");const p=void 0!==l,g=Le(),b=s?a.bind(g[ui][Un]):a,T=new oH(p,b);g[Ut+t]=T,kt(t+1,n,e,i,o,r),p&&kt(t+2,l,c,u,d,h)}class rH extends eH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-vi}at(n){return this.getLView(n)[Un].$implicit}attach(n,e){const i=e[Xo];this.needsIndexUpdate||=n!==this.length,Ad(this.lContainer,e,n,Mc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function aH(t,n){return Sd(t,n)}(this.lContainer,n)}create(n,e){const i=Ac(this.lContainer,this.templateTNode.tView.ssrId);return Md(this.hostLView,this.templateTNode,new nH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){kp(n[tt],n)}updateValue(n,e){this.getLView(n)[Un].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=Lr(),l=0===a.length;if(wi(i,s,l)){const c=e+2,u=Ov(i,c);if(l){const d=Rv(o,c),h=Ac(u,d.tView.ssrId);Ad(u,Md(i,d,void 0,{dehydratedView:h}),0,Mc(d,h))}else z_(u,0)}}}finally{j(n)}}function Ov(t,n){return t[n]}function Rv(t,n){return ld(t,n)}function _e(t,n,e,i){const o=Le(),r=pn(),a=Ut+t,s=o[Bt],l=r.firstCreatePass?function lH(t,n,e,i,o,r){const a=n.consts,l=Tc(n,t,2,i,ia(a,o));return F_(n,e,l,ia(a,r)),null!==l.attrs&&Zp(l,l.attrs,!1),null!==l.mergedAttrs&&Zp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=uM(r,o,l,s,n,t);o[a]=c;const u=tp(l);return oa(l,!0),XD(s,c,l),!function $d(t){return 32==(32&t.flags)}(l)&&dd()&&Op(r,o,c,l),0===function i4(){return Ht.lFrame.elementDepthCount}()&&fo(c,o),function o4(){Ht.lFrame.elementDepthCount++}(),u&&(R_(r,o,l),O_(r,l,o)),null!==i&&P_(o,l),_e}function ve(){let t=Nn();Ry()?Py():(t=t.parent,oa(t,!1));const n=t;(function a4(t){return Ht.skipHydrationRootTNode===t})(n)&&function u4(){Ht.skipHydrationRootTNode=null}(),function r4(){Ht.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(rp(e,t),xy(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function S4(t){return 0!=(8&t.flags)}(n)&&Tv(e,n,Le(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function D4(t){return 0!=(16&t.flags)}(n)&&Tv(e,n,Le(),n.stylesWithoutHost,!1),ve}function dt(t,n,e,i){return _e(t,n,e,i),ve(),dt}let uM=(t,n,e,i,o,r)=>(ra(!0),Ap(i,o,function bS(){return Ht.lFrame.currentNamespace}()));function Wd(t,n,e){const i=Le(),o=pn(),r=t+Ut,a=o.firstCreatePass?function dH(t,n,e,i,o){const r=n.consts,a=ia(r,i),s=Tc(n,t,8,"ng-container",a);return null!==a&&Zp(s,a,!0),F_(n,e,s,ia(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];oa(a,!0);const s=dM(o,i,a,t);return i[r]=s,dd()&&Op(o,i,s,a),fo(s,i),tp(a)&&(R_(o,i,a),O_(o,a,i)),null!=e&&P_(i,a),Wd}function Xd(){let t=Nn();const n=pn();return Ry()?Py():(t=t.parent,oa(t,!1)),n.firstCreatePass&&(rp(n,t),xy(t)&&n.queries.elementEnd(t)),Xd}function ws(t,n,e){return Wd(t,n,e),Xd(),ws}let dM=(t,n,e,i)=>(ra(!0),S_(n[Bt],""));function On(){return Le()}function Cs(t,n,e){const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!0),Cs}function Pv(t,n,e){const i=Le();if(wi(i,Lr(),n)){const r=pn(),a=Wn();Lo(r,a,i,t,n,cE(Fy(r.data),a,i),e,!0)}return Pv}const Wc="en-US",lg={marker:"element"},cg={marker:"ICU"};var Bo=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Bo||{});let pM=Wc;function mM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?zD(t,0,e):Ln(e[o])}function bM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];_M(i)||wH(i,n)&&null===CH(i)&&xH(i,n.index)}}function _M(t){return!(64&t.type)}function wH(t,n){return _M(n)||t.index>n.index}function CH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function xH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(VD(mM,bM),t.insertBeforeIndex=n)}function EH(t,n,e){const i=I_(t,e,64,null,null);return yM(n,i),i}let qd=(t,n,e,i)=>(ra(!0),function xM(t,n,e){const i=t[Bt];switch(e){case Node.COMMENT_NODE:return S_(i,n);case Node.TEXT_NODE:return x_(i,n);case Node.ELEMENT_NODE:return Ap(i,n,null)}}(t,e,i));function NH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function ug(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:vn}function a(){if(n0?e[s]:(t.push(n,i),r(e[tt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const dg=/\ufffd(\d+):?\d*\ufffd/gi,LH=/\ufffd(\d+)\ufffd/,AM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,eh="\ufffd",jH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,BH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,HH=/\uE500/g;function kM(t,n,e,i,o,r,a){const s=Td(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Nv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);AM.test(l)?i.push(WH(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function XH(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=bD(hs()).getInertBodyElement(s),g=m_(p)||p;return g?PM(t,n,e,i,o,c,u,d,g,r,l,0):0}function PM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Td(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(p_.hasOwnProperty(T)){Fv(r,lg,T,c,g),n.data[g]=T;const ce=b.attributes;for(let pe=0;pe>>Bo.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=qd(t,u,n[r],(a&Bo.COMMENT)===Bo.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=dd()),c&&null!==e&&h&&al(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),dS(!0)}function to(){dS(!1)}function Wt(t,n,e){eo(t,n,e),to()}function hg(t,n={}){return function sY(t,n={}){let e=t;if(eY.test(t)){const i={},o=[0];e=e.replace(tY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(aY),S=T?parseInt(T[1],10):0,H=rY.test(b);c.push([S,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(iY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(oY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function xt(t,n,e,i){const o=Le(),r=pn(),a=Nn();return Lv(r,o,o[Bt],a,t,n,i),xt}function Lv(t,n,e,i,o,r,a){const s=tp(i),c=t.firstCreatePass&&lE(t),u=n[Un],d=sE(n);let h=!0;if(3&i.type||a){const b=vo(i,n),T=a?a(b):b,S=d.length,H=a?ce=>a(Ln(ce[i.index])):i.index;let re=null;if(!a&&s&&(re=function uY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==re)(re.__ngLastListenerFn__||re).__ngNextListenerFn__=r,re.__ngLastListenerFn__=r,h=!1;else{r=HM(i,n,u,r,!1);const ce=e.listen(T,o,r);d.push(r,ce),c&&c.push(o,H,S,S+1)}}else r=HM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Jo(t.index,n):n);let l=BM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=BM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function lt(t=1){return function m4(t){return(Ht.lFrame.contextLView=function rS(t,n){for(;t>0;)n=n[hc],t--;return n}(t,Ht.lFrame.contextLView))[Un]}(t)}function dY(t,n){let e=null;const i=function g3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(ra(!0),x_(n[Bt],i));function Ho(t){return gr("",t,""),Ho}function gr(t,n,e){const i=Le(),o=jc(i,t,n,e);return o!==Qt&&Fa(i,ho(),o),gr}function jv(t,n,e,i,o){const r=Le(),a=Bc(r,t,n,e,i,o);return a!==Qt&&Fa(r,ho(),a),jv}function nh(t,n,e){qE(n)&&(n=n());const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!1),nh}function pg(t,n){const e=qE(t);return e&&t.set(n),e}function ih(t,n){const e=Le(),i=pn(),o=Nn();return Lv(i,e,e[Bt],o,t,n),ih}function Bv(t,n,e,i,o){if(t=jt(t),Array.isArray(t))for(let r=0;r>20;if(qs(t)||!t.multi){const p=new hd(c,o,ie),g=Yv(l,n,o?u:u+h,d);-1===g?(Zy(cp(s,a),r,l),Hv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=Yv(l,n,u+h,d),g=Yv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){Zy(cp(s,a),r,l);const S=function kY(t,n,e,i,o){const r=new hd(t,e,ie);return r.multi=[],r.index=n,r.componentProviders=0,hA(r,o,i&&!e),r}(o?AY:MY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=S),Hv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(S),a.push(S)}else Hv(r,t,p>-1?p:g,hA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Hv(t,n,e,i){const o=qs(n),r=function M3(t){return!!t.useClass}(n);if(o||r){const l=(r?jt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Yv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function TY(t,n,e){const i=pn();if(i.firstCreatePass){const o=Fr(t);Bv(e,i.data,i.blueprint,o,!0),Bv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let IY=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=fy(0,e.type),o=i.length>0?Wp([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(No))})}}return t})();function ii(t){ua("NgStandalone"),t.getStandaloneInjector=n=>n.get(IY).getOrCreateStandaloneInjector(t)}function oh(t,n,e,i){return pA(Le(),wo(),t,n,e,i)}function rh(t,n,e,i,o){return function gA(t,n,e,i,o,r,a){const s=n+e;return ul(t,s,o,r)?da(t,s+2,a?i.call(a,o,r):i(o,r)):ah(t,s+2)}(Le(),wo(),t,n,e,i,o)}function ah(t,n){const e=t[n];return e===Qt?void 0:e}function pA(t,n,e,i,o,r){const a=n+e;return wi(t,a,o)?da(t,a+1,r?i.call(r,o):i(o)):ah(t,a+1)}function Jc(t,n){const e=pn();let i;const o=t+Ut;e.firstCreatePass?(i=function zY(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Qs(i.type)),s=Oo(ie);try{const l=lp(!1),c=r();return lp(l),function gY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Le(),o,c),c}finally{Oo(s)}}function Qc(t,n,e){const i=t+Ut,o=Le(),r=gc(o,i);return function sh(t,n){return t[tt].data[n].pure}(o,i)?pA(o,wo(),n,r.transform,e,r):r.transform(e)}function $v(t,n){return jp(t,n)}let PA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const BA=new Be(""),yg=new Be("");let Qv,Xv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Qv||(function Bz(t){Qv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(Ct),Me(Jv),Me(yg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Jv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Qv?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function uh(t){return!!t&&"function"==typeof t.then}function HA(t){return!!t&&"function"==typeof t.subscribe}const Kv=new Be("");let qv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ne(Kv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(uh(r))e.push(r);else if(HA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ew=new Be("");function $A(t,n){return Array.isArray(n)?n.reduce($A,t):{...t,...n}}let Hr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(jS),this.afterRenderEffectManager=Ne(Ld),this.externalTestViews=new Set,this.beforeRender=new _t,this.afterTick=new _t,this.componentTypes=[],this.components=[],this.isStable=Ne(bs).hasPendingTasks.pipe(Nt(e=>!e)),this._injector=Ne(No)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof xE;if(!this._injector.get(qv).done)throw!o&&function cs(t){const n=un(t)||Ni(t)||Qi(t);return null!==n&&n.standalone}(e),new N(405,!1);let a;a=o?e:this._injector.get(sl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Hz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(cl),c=a.create(di.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),_g(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new N(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===fE)throw new N(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)zz(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;_g(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(ew,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>_g(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _g(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function zz(t,n,e){!n&&!tw(t)||function $z(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Lp(t,n,i)}(t,e,n)}function tw(t){return ky(t)}class Vz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let VA=(()=>{class t{compileModuleSync(e){return new fv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=qo(so(e).declarations).reduce((a,s)=>{const l=un(s);return l&&a.push(new Hd(l)),a},[]);return new Vz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uz=(()=>{class t{constructor(){this.zone=Ne(Ct),this.applicationRef=Ne(Hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Wz(){const t=Ne(Ct),n=Ne(Qo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Jz=(()=>{class t{constructor(){this.subscription=new me,this.initialized=!1,this.zone=Ne(Ct),this.pendingTasks=Ne(bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const pa=new Be("",{providedIn:"root",factory:()=>Ne(pa,fn.Optional|fn.SkipSelf)||function Qz(){return typeof $localize<"u"&&$localize.locale||Wc}()}),nw=new Be("");let WA=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function GB(t="zone.js",n){return"noop"===t?new AE:"zone.js"===t?new Ct(n):t}(i?.ngZone,function UA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function B6(t,n,e){return new hv(t,n,e)}(e.moduleType,this.injector,function GA(t){return[{provide:Ct,useFactory:t},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Uz,{optional:!0});return()=>n.initialize()}},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Jz);return()=>{n.initialize()}}},{provide:jS,useFactory:Wz}]}(()=>o)),a=r.injector.get(Qo,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{_g(this._modules,r),s.unsubscribe()})}),function zA(t,n,e){try{const i=e();return uh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(qv);return s.runInitializers(),s.donePromise.then(()=>(function gM(t){"string"==typeof t&&(pM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(pa,Wc)||Wc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=$A({},i);return function Gz(t,n,e){const i=new fv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Hr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new N(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(di))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ss=null;const XA=new Be("");function JA(t,n,e=[]){const i=`Platform: ${n}`,o=new Be(i);return(r=[])=>{let a=iw();if(!a||a.injector.get(XA,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function e$(t){if(Ss&&!Ss.get(XA,!1))throw new N(400,!1);(function YA(){!function _(t){Z=t}(()=>{throw new N(600,!1)})})(),Ss=t;const n=t.get(WA);(function KA(t){t.get(aD,null)?.forEach(e=>e())})(t)}(function QA(t=[],n){return di.create({name:n,providers:[{provide:my,useValue:"platform"},{provide:nw,useValue:new Set([()=>Ss=null])},...t]})}(s,i))}return function t$(t){const n=iw();if(!n)throw new N(401,!1);return n}()}}function iw(){return Ss?.get(WA)??null}let Ti=(()=>{class t{static{this.__NG_ELEMENT_ID__=i$}}return t})();function i$(t){return function o$(t,n,e){if(tl(t)&&!e){const i=Jo(t.index,n);return new Od(i,i)}return 47&t.type?new Od(n[ui],n):null}(Nn(),Le(),16==(16&t))}class nk{constructor(){}supports(n){return Jp(n)}create(n){return new u$(n)}}const c$=(t,n)=>n;class u${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||c$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new d$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new ik),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ik),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class d${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class h${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ik{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new h$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ok(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new p$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class p${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ak(){return new lw([new nk])}let lw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:ak})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ak()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new N(901,!1)}}return t})();function sk(){return new xg([new rk])}let xg=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:sk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||sk()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new N(901,!1)}}return t})();const b$=JA(null,"core",[]);let y$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Hr))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function Yt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Ds(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Ak(t){const n=j(null);try{return t()}finally{j(n)}}let kk=null;function ja(){return kk}class tV{}const Kt=new Be("");let dw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(iV),providedIn:"platform"})}}return t})();const nV=new Be("");let iV=(()=>{class t extends dw{constructor(){super(),this._doc=Ne(Kt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function hw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Ik(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ba(t){return t&&"?"!==t[0]?"?"+t:t}let ml=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Rk),providedIn:"root"})}}return t})();const Ok=new Be("");let Rk=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(Kt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return hw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ba(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oV=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=hw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),bl=(()=>{class t{constructor(e){this._subject=new Lt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function sV(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Ik(Pk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ba(i))}normalize(e){return t.stripTrailingSlash(function aV(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Pk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=Ba}static{this.joinWithSlash=hw}static{this.stripTrailingSlash=Ik}static{this.\u0275fac=function(i){return new(i||t)(Me(ml))}}static{this.\u0275prov=$e({token:t,factory:()=>function rV(){return new bl(Me(ml))}(),providedIn:"root"})}}return t})();function Pk(t){return t.replace(/\/index.html$/,"")}function $k(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Cw=/\s+/,Vk=[];let Zk=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=Vk,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cw):Vk}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Cw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Ye.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class GV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new GV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),Uk(s,o)}});for(let o=0,r=i.length;o{Uk(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo),ie(lw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Uk(t,n){t.context.$implicit=n.item}let Es=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new UV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wk("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wk("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class UV{constructor(){this.$implicit=null,this.ngIf=null}}function Wk(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(n)}'.`)}let Jk=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:ps.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(xg),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Hg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(ie(jo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zi]})}}return t})();class KV{createSubscription(n,e){return Ak(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Ak(()=>n.unsubscribe())}}class qV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const e9=new qV,t9=new KV;let Ew=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(uh(e))return e9;if(HA(e))return t9;throw function zr(t,n){return new N(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(ie(Ti,16))}}static{this.\u0275pipe=Po({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),yl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const Kk="browser";function qk(t){return t===Kk}function eI(t){return"server"===t}let C9=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>qk(Ne(Pa))?new x9(Ne(Kt),window):new D9})}}return t})();class x9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function S9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class D9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class tI{}class q9 extends tV{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kw extends q9{static makeCurrent(){!function eV(t){kk??=t}(new kw)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).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"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function eZ(){return mh=mh||document.querySelector("base"),mh?mh.getAttribute("href"):null}();return null==e?null:function tZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){mh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return $k(document.cookie,n)}}let mh=null,iZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Iw=new Be("");let uI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Iw),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class dI{constructor(n){this._doc=n}}const Ow="ng-app-id";let hI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Ow}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Ow),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ow,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(mp),Me(e_,8),Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Rw={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/MathML/"},Pw=/%COMP%/g,sZ=new Be("",{providedIn:"root",factory:()=>!0});function pI(t,n){return n.map(e=>e.replace(Pw,t))}let Nw=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eI(s),this.defaultRenderer=new Fw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Or.ShadowDom&&(i={...i,encapsulation:Or.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof mI?o.applyToHost(e):o instanceof Lw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Or.Emulated:r=new mI(l,c,i,this.appId,u,a,s,d);break;case Or.ShadowDom:return new dZ(l,c,e,i,a,s,this.nonce,d);default:r=new Lw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(uI),Me(hI),Me(mp),Me(sZ),Me(Kt),Me(Pa),Me(Ct),Me(e_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Fw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Rw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(gI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(gI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new N(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Rw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Rw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(ps.DashCase|ps.Important)?n.style.setProperty(e,i,o&ps.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ps.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=ja().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function gI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class dZ extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=pI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Lw extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?pI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mI extends Lw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function lZ(t){return"_ngcontent-%COMP%".replace(Pw,t)}(c),this.hostAttr=function cZ(t){return"_nghost-%COMP%".replace(Pw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let hZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const bI=["alt","control","meta","shift"],fZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let gZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ja().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),bI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=fZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),bI.forEach(a=>{a!==o&&(0,pZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const _I=[{provide:Pa,useValue:Kk},{provide:aD,useValue:function mZ(){kw.makeCurrent()},multi:!0},{provide:Kt,useFactory:function yZ(){return function h5(t){qy=t}(document),document},deps:[]}],_Z=JA(b$,"browser",_I),vZ=new Be(""),vI=[{provide:yg,useClass:class nZ{addToWindow(n){nn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new N(5103,!1);return r},nn.getAllAngularTestabilities=()=>n.getAllTestabilities(),nn.getAllAngularRootElements=()=>n.getAllRootElements(),nn.frameworkStabilizers||(nn.frameworkStabilizers=[]),nn.frameworkStabilizers.push(i=>{const o=nn.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ja().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Xv,deps:[Ct,Jv,yg]},{provide:Xv,useClass:Xv,deps:[Ct,Jv,yg]}],wI=[{provide:my,useValue:"root"},{provide:Qo,useFactory:function bZ(){return new Qo},deps:[]},{provide:Iw,useClass:hZ,multi:!0,deps:[Kt,Ct,Pa]},{provide:Iw,useClass:gZ,multi:!0,deps:[Kt]},Nw,hI,uI,{provide:X_,useExisting:Nw},{provide:tI,useClass:iZ,deps:[]},[]];let jw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:mp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(vZ,12))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[...wI,...vI],imports:[yl,y$]})}}return t})(),wZ=(()=>{class t{constructor(e){this._doc=e,this._dom=ja()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return CZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const CZ={httpEquiv:"http-equiv"};let CI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$g=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(EZ),o},providedIn:"root"})}}return t})(),EZ=(()=>{class t extends $g{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Gi.NONE:return i;case Gi.HTML:return la(i,"HTML")?Ko(i):DD(this._doc,String(i)).toString();case Gi.STYLE:return la(i,"Style")?Ko(i):i;case Gi.SCRIPT:if(la(i,"Script"))return Ko(i);throw new N(5200,!1);case Gi.URL:return la(i,"URL")?Ko(i):Dp(String(i));case Gi.RESOURCE_URL:if(la(i,"ResourceURL"))return Ko(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(e){return function R5(t){return new T5(t)}(e)}bypassSecurityTrustStyle(e){return function P5(t){return new M5(t)}(e)}bypassSecurityTrustScript(e){return function N5(t){return new A5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new k5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function L5(t){return new I5(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zt||{});const za="*";function _l(t,n){return{type:zt.Trigger,name:t,definitions:n,options:{}}}function $a(t,n=null){return{type:zt.Animate,styles:n,timings:t}}function Vg(t,n=null){return{type:zt.Group,steps:t,options:n}}function ki(t){return{type:zt.Style,styles:t,offset:null}}function nr(t,n,e){return{type:zt.State,name:t,styles:n,options:e}}function ga(t,n,e=null){return{type:zt.Transition,expr:t,animation:n,options:e}}function yh(t=null){return{type:zt.AnimateChild,options:t}}function _h(t,n,e=null){return{type:zt.Query,selector:t,animation:n,options:e}}class vh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class EI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const TI=["toast-component",""];function IZ(t,n){if(1&t){const e=On();_e(0,"button",5),xt("click",function(){return Xt(e),Jt(lt().remove())}),_e(1,"span",6),mn(2,"\xd7"),ve()()}}function OZ(t,n){if(1&t&&(Wd(0),mn(1),Xd()),2&t){const e=lt(2);Fe(),gr("[",e.duplicatesCount+1,"]")}}function RZ(t,n){if(1&t&&(_e(0,"div"),mn(1),kt(2,OZ,2,1,"ng-container",4),ve()),2&t){const e=lt();qi(e.options.titleClass),ln("aria-label",e.title),Fe(),gr(" ",e.title," "),Fe(),Ke("ngIf",e.duplicatesCount)}}function PZ(t,n){if(1&t&&dt(0,"div",7),2&t){const e=lt();qi(e.options.messageClass),Ke("innerHTML",e.message,b_)}}function NZ(t,n){if(1&t&&(_e(0,"div",8),mn(1),ve()),2&t){const e=lt();qi(e.options.messageClass),ln("aria-label",e.message),Fe(),gr(" ",e.message," ")}}function FZ(t,n){if(1&t&&(_e(0,"div"),dt(1,"div",9),ve()),2&t){const e=lt();Fe(),vs("width",e.width+"%")}}class $Z{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class VZ{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class ZZ{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _t;_activate=new _t;_manualClose=new _t;_resetTimeout=new _t;_countDuplicate=new _t;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Zg{toastId;config;message;title;toastType;toastRef;_onTap=new _t;_onAction=new _t;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const AI=new Be("ToastConfig");class GZ extends VZ{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let UZ=(()=>{class t{_document=Ne(Kt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class WZ{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let XZ=(()=>{class t{_overlayContainer=Ne(UZ);_componentFactoryResolver=Ne(sl);_appRef=Ne(Hr);_document=Ne(Kt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new GZ(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new WZ(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Gi.HTML,i));const u=new ZZ(l),d=new Zg(this.index,r,c,o,e,u),p=di.create({providers:[{provide:Zg,useValue:d}],parent:this._injector}),g=new $Z(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(AI),Me(XZ),Me(di),Me($g),Me(Ct))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const JZ={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(ie(vl),ie(Zg),ie(Ct))};static \u0275cmp=gn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&xt("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Pv("@flyInOut",o.state),qi(o.toastClasses),vs("display",o.displayStyle))},standalone:!0,features:[ii],attrs:TI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&kt(0,IZ,3,0,"button",0)(1,RZ,3,5,"div",1)(2,PZ,1,3,"div",2)(3,NZ,2,4,"div",3)(4,FZ,2,2,"div",4),2&i&&(Ke("ngIf",o.options.closeButton),Fe(),Ke("ngIf",o.title),Fe(),Ke("ngIf",o.message&&o.options.enableHtml),Fe(),Ke("ngIf",o.message&&!o.options.enableHtml),Fe(),Ke("ngIf",o.options.progressBar))},dependencies:[Es],encapsulation:2,data:{animation:[_l("flyInOut",[nr("inactive",ki({opacity:0})),nr("active",ki({opacity:1})),nr("removed",ki({opacity:0})),ga("inactive => active",$a("{{ easeTime }}ms {{ easing }}")),ga("active => removed",$a("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},QZ=(t={})=>sc([{provide:AI,useValue:{default:JZ,config:t}}]);let KZ=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[QZ(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=on({type:t});static \u0275inj=qt({})}return t})();function kI(t){return t&&Ae(t.schedule)}function Hw(t){return t[t.length-1]}function II(t){return Ae(Hw(t))?t.pop():void 0}function wh(t){return kI(Hw(t))?t.pop():void 0}function Ts(t){return this instanceof Ts?(this.v=t,this):new Ts(t)}function LI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Vw(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Zw=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function jI(t){return Ae(t?.then)}function BI(t){return Ae(t[kr])}function HI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function YI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zI=function _G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $I(t){return Ae(t?.[zI])}function VI(t){return function FI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Ts(e.read());if(o)return yield Ts(void 0);yield yield Ts(i)}}finally{e.releaseLock()}})}function ZI(t){return Ae(t?.getReader)}function po(t){if(t instanceof _n)return t;if(null!=t){if(BI(t))return function vG(t){return new _n(n=>{const e=t[kr]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Zw(t))return function wG(t){return new _n(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,et)})}(t);if(HI(t))return GI(t);if($I(t))return function xG(t){return new _n(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ZI(t))return function SG(t){return GI(VI(t))}(t)}throw YI(t)}function GI(t){return new _n(n=>{(function DG(t,n){var e,i,o,r;return function PI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=LI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Va(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function UI(t,n=0){return ni((e,i)=>{e.subscribe(Pn(i,o=>Va(i,t,()=>i.next(o),n),()=>Va(i,t,()=>i.complete(),n),o=>Va(i,t,()=>i.error(o),n)))})}function WI(t,n=0){return ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function XI(t,n){if(!t)throw new Error("Iterable cannot be null");return new _n(e=>{Va(e,n,()=>{const i=t[Symbol.asyncIterator]();Va(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hi(t,n){return n?function IG(t,n){if(null!=t){if(BI(t))return function EG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(Zw(t))return function MG(t,n){return new _n(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(jI(t))return function TG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(HI(t))return XI(t,n);if($I(t))return function AG(t,n){return new _n(e=>{let i;return Va(e,n,()=>{i=t[zI](),Va(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(ZI(t))return function kG(t,n){return XI(VI(t),n)}(t,n)}throw YI(t)}(t,n):po(t)}function Tt(...t){return hi(t,wh(t))}function no(t,n,e=1/0){return Ae(n)?no((i,o)=>Nt((r,a)=>n(i,r,o,a))(po(t(i,o))),e):("number"==typeof n&&(e=n),ni((i,o)=>function OG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;po(e(b,u++)).subscribe(Pn(n,S=>{o?.(S),r?p(S):n.next(S)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(S)):g(S)}h()}catch(S){n.error(S)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function nu(t,n){return Ae(n)?no(t,n,1):no(t,1)}function Ii(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function wl(t){return ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Wi(t,n){return ni((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;po(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Gg{}class Ug{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new yr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class RG{encodeKey(n){return JI(n)}encodeValue(n){return JI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const NG=/%(\d[a-f0-9])/gi,FG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function JI(t){return encodeURIComponent(t).replace(NG,(n,e)=>FG[e]??n)}function Wg(t){return`${t}`}class Ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function PG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Wg):[Wg(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ms({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Wg(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Wg(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class LG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function QI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function KI(t){return typeof Blob<"u"&&t instanceof Blob}function qI(t){return typeof FormData<"u"&&t instanceof FormData}class Ch{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function jG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new yr,this.context??=new LG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Ch(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var As=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(As||{});class Gw{constructor(n,e=xh.Ok,i="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xg extends Gw{constructor(n={}){super(n),this.type=As.ResponseHeader}clone(n={}){return new Xg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cl extends Gw{constructor(n={}){super(n),this.type=As.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Cl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Za extends Gw{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var xh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(xh||{});function Uw(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let iu=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Ch)r=e;else{let l,c;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(c=o.params instanceof Ms?o.params:new Ms({fromObject:o.params})),r=new Ch(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Tt(r).pipe(nu(l=>this.handler.handle(l)));if(e instanceof Ch||"events"===o.observe)return a;const s=a.pipe(Ii(l=>l instanceof Cl));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Nt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Nt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Uw(o,i))}post(e,i,o={}){return this.request("POST",e,Uw(o,i))}put(e,i,o={}){return this.request("PUT",e,Uw(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Gg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function t2(t,n){return n(t)}function VG(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const GG=new Be(""),Sh=new Be(""),n2=new Be(""),o2=new Be("");function UG(){let t=null;return(n,e)=>{null===t&&(t=(Ne(GG,{optional:!0})??[]).reduceRight(VG,t2));const i=Ne(bs),o=i.add();return t(n,e).pipe(wl(()=>i.remove(o)))}}let r2=(()=>{class t extends Gg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ne(bs);const o=Ne(o2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Sh),...this.injector.get(n2,[])]));this.chain=o.reduceRight((r,a)=>function ZG(t,n,e){return(i,o)=>ea(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),t2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(wl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ug),Me(No))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const KG=/^\)\]\}',?\n/;let s2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new N(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?hi(i.\u0275loadImpl()):Tt(null)).pipe(Wi(()=>new _n(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new yr(a.getAllResponseHeaders()),S=function qG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new Xg({headers:T,status:a.status,statusText:b,url:S}),l},u=()=>{let{headers:b,status:T,statusText:S,url:H}=c(),re=null;T!==xh.NoContent&&(re=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=re?xh.Ok:0);let ce=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof re){const G=re;re=re.replace(KG,"");try{re=""!==re?JSON.parse(re):null}catch(pe){re=G,ce&&(ce=!1,re={error:pe,text:re})}}ce?(r.next(new Cl({body:re,headers:b,status:T,statusText:S,url:H||void 0})),r.complete()):r.error(new Za({error:re,headers:b,status:T,statusText:S,url:H||void 0}))},d=b=>{const{url:T}=c(),S=new Za({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(S)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:As.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:As.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:As.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(tI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Jw=new Be(""),l2=new Be("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),c2=new Be("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class u2{}let nU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(Pa),Me(l2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function iU(t,n){const e=t.url.toLowerCase();if(!Ne(Jw)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ne(u2).getToken(),o=Ne(c2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ks=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ks||{});function xl(t,n){return{\u0275kind:t,\u0275providers:n}}function oU(...t){const n=[iu,s2,r2,{provide:Gg,useExisting:r2},{provide:Ug,useExisting:s2},{provide:Sh,useValue:iU,multi:!0},{provide:Jw,useValue:!0},{provide:u2,useClass:nU}];for(const e of t)n.push(...e.\u0275providers);return sc(n)}const d2=new Be("");let aU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[oU(xl(ks.LegacyInterceptors,[{provide:d2,useFactory:UG},{provide:Sh,useExisting:d2,multi:!0}]))]})}}return t})();const{isArray:hU}=Array,{getPrototypeOf:fU,prototype:pU,keys:gU}=Object;function y2(t){if(1===t.length){const n=t[0];if(hU(n))return{args:n,keys:null};if(function mU(t){return t&&"object"==typeof t&&fU(t)===pU}(n)){const e=gU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:bU}=Array;function Qw(t){return Nt(n=>function yU(t,n){return bU(n)?t(...n):t(n)}(t,n))}function _2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Dh(...t){const n=II(t),{args:e,keys:i}=y2(t),o=new _n(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?_2(i,s):s),r.complete())}))}});return n?o.pipe(Qw(n)):o}let v2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Sl=(()=>{class t extends v2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[rn]})}}return t})();const ir=new Be(""),vU={provide:ir,useExisting:Sn(()=>Eh),multi:!0},CU=new Be("");let Eh=(()=>{class t extends v2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wU(){const t=ja()?ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt),ie(CU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&xt("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Cn([vU]),rn]})}}return t})();function Is(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function C2(t){return null!=t&&"number"==typeof t.length}const Xi=new Be(""),Os=new Be(""),xU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rs{static min(n){return function x2(t){return n=>{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return D2(n)}static requiredTrue(n){return function E2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function T2(t){return Is(t.value)||xU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function M2(t){return n=>Is(n.value)||!C2(n.value)?null:n.value.lengthC2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function k2(t){if(!t)return Qg;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Is(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return F2(n)}static composeAsync(n){return L2(n)}}function D2(t){return Is(t.value)?{required:!0}:null}function Qg(t){return null}function I2(t){return null!=t}function O2(t){return uh(t)?hi(t):t}function R2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function P2(t,n){return n.map(e=>e(t))}function N2(t){return t.map(n=>function SU(t){return!t.validate}(n)?n:e=>n.validate(e))}function F2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return R2(P2(e,n))}}function Kw(t){return null!=t?F2(N2(t)):null}function L2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return Dh(P2(e,n).map(O2)).pipe(Nt(R2))}}function qw(t){return null!=t?L2(N2(t)):null}function j2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function B2(t){return t._rawValidators}function H2(t){return t._rawAsyncValidators}function e0(t){return t?Array.isArray(t)?t:[t]:[]}function Kg(t,n){return Array.isArray(t)?t.includes(n):t===n}function Y2(t,n){const e=e0(n);return e0(t).forEach(o=>{Kg(e,o)||e.push(o)}),e}function z2(t,n){return e0(n).filter(e=>!Kg(t,e))}class $2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Kw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=qw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Mo extends $2{get formDirective(){return null}get path(){return null}}class ma extends $2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class V2{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qg=(()=>{class t extends V2{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(ma,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&dn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[rn]})}}return t})();const Th="VALID",tm="INVALID",ou="PENDING",Mh="DISABLED";function o0(t){return(nm(t)?t.validators:t)||null}function r0(t,n){return(nm(n)?n.asyncValidators:t)||null}function nm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function G2(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new N(1e3,"");if(!i[e])throw new N(1001,"")}function U2(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new N(1002,"")})}class im{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Th}get invalid(){return this.status===tm}get pending(){return this.status==ou}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Y2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Y2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(z2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(z2(n,this._rawAsyncValidators))}hasValidator(n){return Kg(this._rawValidators,n)}hasAsyncValidator(n){return Kg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ou,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Th,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Th||this.status===ou)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:Th}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ou,this._hasOwnPendingAsyncValidator=!0;const e=O2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Lt,this.statusChanges=new Lt}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?tm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ou)?ou:this._anyControlsHaveStatus(tm)?tm:Th}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){nm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function AU(t){return Array.isArray(t)?Kw(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kU(t){return Array.isArray(t)?qw(t):t||null}(this._rawAsyncValidators)}}class Ah extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){U2(this,0,n),Object.keys(n).forEach(i=>{G2(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class W2 extends Ah{}const Dl=new Be("CallSetDisabledState",{providedIn:"root",factory:()=>kh}),kh="always";function Ih(t,n,e=kh){a0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function OU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X2(t,n)})}(t,n),function PU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function RU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X2(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function IU(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function rm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),sm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function am(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function a0(t,n){const e=B2(t);null!==n.validator?t.setValidators(j2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=H2(t);null!==n.asyncValidator?t.setAsyncValidators(j2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();am(n._rawValidators,o),am(n._rawAsyncValidators,o)}function sm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=B2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=H2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return am(n._rawValidators,i),am(n._rawAsyncValidators,i),e}function X2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J2(t,n){a0(t,n)}function l0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Q2(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function c0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Eh?e=r:function LU(t){return Object.getPrototypeOf(t.constructor)===Sl}(r)?i=r:o=r}),o||i||e||null}const BU={provide:Mo,useExisting:Sn(()=>Rh)},Oh=(()=>Promise.resolve())();let Rh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Lt,this.form=new Ah({},Kw(e),qw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Oh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ih(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path),o=new Ah({});J2(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Oh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Q2(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Ye.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([BU]),rn]})}}return t})();function K2(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function q2(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const $r=class extends im{constructor(n=null,e,i){super(o0(e),r0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),nm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=q2(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){K2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){K2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){q2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},zU={provide:ma,useExisting:Sn(()=>Ph)},nO=(()=>Promise.resolve())();let Ph=(()=>{class t extends ma{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new $r,this._registered=!1,this.name="",this.update=new Lt,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=c0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),l0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ih(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){nO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Yt(i);nO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function om(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(ie(Mo,9),ie(Xi,10),ie(Os,10),ie(ir,10),ie(Ti,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Cn([zU]),rn,Zi]})}}return t})();const u0=new Be(""),WU={provide:ma,useExisting:Sn(()=>d0)};let d0=(()=>{class t extends ma{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Lt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=c0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&rm(i,this,!1),Ih(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}l0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(ir,10),ie(u0,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Ye.None,"formControl","form"],isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Cn([WU]),rn,Zi]})}}return t})();const XU={provide:Mo,useExisting:Sn(()=>Nh)};let Nh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Lt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ih(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){rm(e.control||null,e,!1),function jU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Q2(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(rm(i||null,e),(t=>t instanceof $r)(o)&&(Ih(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);J2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function NU(t,n){return sm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a0(this.form,this),this._oldForm&&sm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Ye.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([XU]),rn,Zi]})}}return t})(),El=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Zi]})}}return t})();const sW={provide:Xi,useExisting:Sn(()=>lm),multi:!0};let lm=(()=>{class t extends El{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Yt,this.createValidator=e=>D2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&ln("required",o._enabled?"":null)},inputs:{required:"required"},features:[Cn([sW]),rn]})}}return t})(),yO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();class _O extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){U2(this,0,n),n.forEach((i,o)=>{G2(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function vO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return vO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Ah(o,r)}record(e,i=null){const o=this._reduceControls(e);return new W2(o,i)}control(e,i,o){let r={};return this.useNonNullable?(vO(i)?r=i:(r.validators=i,r.asyncValidators=o),new $r(e,{...r,nonNullable:!0})):new $r(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new _O(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof $r||e instanceof im?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),CO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})(),fW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})();function xO(t){return new N(3e3,!1)}function Ps(t){switch(t.length){case 0:return new vh;case 1:return t[0];default:return new EI(t)}}function SO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case za:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function FW(t){return new N(3502,!1)}();return r}function b0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&y0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&y0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&y0(e,"destroy",t)))}}function y0(t,n,e){const r=_0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function _0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function or(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function DO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const WW=(()=>typeof document>"u"?null:document.documentElement)();function v0(t){const n=t.parentNode||t.host||null;return n===WW?null:n}let Tl=null,EO=!1;function TO(t,n){for(;n;){if(n===t)return!0;n=v0(n)}return!1}function MO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let w0=(()=>{class t{validateStyleProperty(e){return function JW(t){Tl||(Tl=function QW(){return typeof document<"u"?document.body:null}()||{},EO=!!Tl.style&&"WebkitAppearance"in Tl.style);let n=!0;return Tl.style&&!function XW(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Tl.style,!n&&EO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return TO(e,i)}getParentElement(e){return v0(e)}query(e,i,o){return MO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new vh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class C0{static{this.NOOP=new w0}}class x0{}const qW=1e3,S0="ng-enter",cm="ng-leave",um="ng-trigger",dm=".ng-trigger",kO="ng-animating",D0=".ng-animating";function Ga(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:E0(parseFloat(n[1]),n[2])}function E0(t,n){return"s"===n?t*qW:t}function hm(t,n,e){return t.hasOwnProperty("duration")?t:function tX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(xO()),{duration:0,delay:0,easing:""};o=E0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=E0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function pW(){return new N(3100,!1)}()),s=!0),r<0&&(n.push(function gW(){return new N(3101,!1)}()),s=!0),s&&n.splice(l,0,xO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function ba(t,n,e){n.forEach((i,o)=>{const r=M0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ml(t,n){n.forEach((e,i)=>{const o=M0(i);t.style[o]=""})}function Fh(t){return Array.isArray(t)?1==t.length?t[0]:function TZ(t,n=null){return{type:zt.Sequence,steps:t,options:n}}(t):t}const T0=new RegExp("{{\\s*(.+?)\\s*}}","g");function OO(t){let n=[];if("string"==typeof t){let e;for(;e=T0.exec(t);)n.push(e[1]);T0.lastIndex=0}return n}function Lh(t,n,e){const i=`${t}`,o=i.replace(T0,(r,a)=>{let s=n[a];return null==s&&(e.push(function bW(t){return new N(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const oX=/-+([a-z0-9])/g;function M0(t){return t.replace(oX,(...n)=>n[1].toUpperCase())}function rr(t,n,e){switch(n.type){case zt.Trigger:return t.visitTrigger(n,e);case zt.State:return t.visitState(n,e);case zt.Transition:return t.visitTransition(n,e);case zt.Sequence:return t.visitSequence(n,e);case zt.Group:return t.visitGroup(n,e);case zt.Animate:return t.visitAnimate(n,e);case zt.Keyframes:return t.visitKeyframes(n,e);case zt.Style:return t.visitStyle(n,e);case zt.Reference:return t.visitReference(n,e);case zt.AnimateChild:return t.visitAnimateChild(n,e);case zt.AnimateRef:return t.visitAnimateRef(n,e);case zt.Query:return t.visitQuery(n,e);case zt.Stagger:return t.visitStagger(n,e);default:throw function yW(t){return new N(3004,!1)}()}}function A0(t,n){return window.getComputedStyle(t)[n]}const sX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RO extends x0{normalizePropertyName(n,e){return M0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(sX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function _W(t,n){return new N(3005,!1)}())}return a+r}}const fm="*";const pm=new Set(["true","1"]),gm=new Set(["false","0"]);function PO(t,n){const e=pm.has(t)||gm.has(t),i=pm.has(n)||gm.has(n);return(o,r)=>{let a=t==fm||t==o,s=n==fm||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?pm.has(t):gm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?pm.has(n):gm.has(n)),a&&s}}const dX=new RegExp("s*:selfs*,?","g");function k0(t,n,e,i){return new hX(t).build(n,e,i)}class hX{constructor(n){this._driver=n}build(n,e,i){const o=new gX(e);return this._resetContextStyleTimingState(o),rr(this,Fh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function vW(){return new N(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==zt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==zt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function wW(){return new N(3007,!1)}())}),{type:zt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{OO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function CW(t,n){return new N(3008,!1)}(0,r.values()))}return{type:zt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=rr(this,Fh(n.animation),e),o=function lX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function cX(t,n,e){if(":"==t[0]){const l=function uX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function IW(t){return new N(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(PO(o,a)),"<"==r[0]&&(o!=fm||a!=fm)&&n.push(PO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:zt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Al(n.options)}}visitSequence(n,e){return{type:zt.Sequence,steps:n.steps.map(i=>rr(this,i,e)),options:Al(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=rr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:zt.Group,steps:r,options:Al(n.options)}}visitAnimate(n,e){const i=function bX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return I0(hm(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=I0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=hm(e,n);return I0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ki({});if(r.type==zt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=ki(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:zt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===za?i.push(s):e.errors.push(new N(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:zt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function SW(t,n,e,i,o){return new N(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function iX(t,n,e){const i=n.params||{},o=OO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function mW(t){return new N(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:zt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new N(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(S=>{const H=this._makeStyleAst(S,e);let re=null!=H.offset?H.offset:function mX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),ce=0;return null!=re&&(r++,ce=H.offset=re),l=l||ce<0||ce>1,s=s||ce0&&r{const re=h>0?H==p?1:h*H:a[H],ce=re*T;e.currentTime=g+b.delay+ce,b.duration=ce,this._validateStyleAst(S,e),S.offset=re,i.styles.push(S)}),i}visitReference(n,e){return{type:zt.Reference,animation:rr(this,Fh(n.animation),e),options:Al(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:zt.AnimateChild,options:Al(n.options)}}visitAnimateRef(n,e){return{type:zt.AnimateRef,animation:this.visitReference(n.animation,e),options:Al(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function fX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(dX,"")),t=t.replace(/@\*/g,dm).replace(/@\w+/g,e=>dm+"-"+e.slice(1)).replace(/:animating/g,D0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,or(e.collectedStyles,e.currentQuerySelector,new Map);const s=rr(this,Fh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:zt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Al(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function AW(){return new N(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:hm(n.timings,e.errors,!0);return{type:zt.Stagger,animation:rr(this,Fh(n.animation),e),timings:i,options:null}}}class gX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Al(t){return t?(t={...t}).params&&(t.params=function pX(t){return t?{...t}:null}(t.params)):t={},t}function I0(t,n,e){return{duration:t,delay:n,easing:e}}function O0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class mm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const vX=new RegExp(":enter","g"),CX=new RegExp(":leave","g");function R0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new xX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class xX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new mm;const d=new P0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ga(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),rr(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[O0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ga(Lh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ga(i.duration):null,s=null!=i.delay?Ga(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),rr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==zt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=bm);const a=Ga(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>rr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ga(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),rr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return hm(e.params?Lh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==zt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ga(o.delay):0;r&&(e.previousNode.type===zt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),rr(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;rr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const bm={};class P0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ym(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ga(i.duration)),null!=i.delay&&(o.delay=Ga(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Lh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new P0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=bm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new SX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(vX,"."+this._enterClassName)).replace(CX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function kW(t){return new N(3014,!1)}()),s}}class ym{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ym(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||za),this._currentKeyframe.set(e,za);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function DX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,za)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Lh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??za),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===za&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return O0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class SX extends ym{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",LO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",LO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return O0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function LO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function jO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const N0={};class BO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function EX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||N0,g=this.buildStyles(i,s&&s.params||N0,d),b=l&&l.params||N0,T=this.buildStyles(o,b,d),S=new Set,H=new Map,re=new Map,ce="void"===o,G={params:HO(b,h),delay:this.ast.options?.delay},pe=u?[]:R0(n,e,this.ast.animation,r,a,g,T,G,c,d);let ye=0;return pe.forEach(be=>{ye=Math.max(be.duration+be.delay,ye)}),d.length?jO(e,this._triggerName,i,o,ce,g,T,[],[],H,re,ye,d):(pe.forEach(be=>{const Pe=be.element,je=or(H,Pe,new Set);be.preStyleProps.forEach(Re=>je.add(Re));const Xe=or(re,Pe,new Set);be.postStyleProps.forEach(Re=>Xe.add(Re)),Pe!==e&&S.add(Pe)}),jO(e,this._triggerName,i,o,ce,g,T,pe,[...S.values()],H,re,ye))}}function HO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class TX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=HO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Lh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class AX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new TX(o.style,o.options&&o.options.params||{},i))}),YO(this.states,"true","1"),YO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new BO(n,o,this.states))}),this.fallbackTransition=function kX(t,n,e){return new BO(t,{type:zt.Transition,animation:{type:zt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function YO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const IX=new mm;class OX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=k0(this._driver,e,i,[]);if(i.length)throw function LW(t){return new N(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=SO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=R0(this._driver,e,r,S0,cm,new Map,new Map,i,IX,o),a.forEach(u=>{const d=or(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function jW(){return new N(3300,!1)}()),a=[]),o.length)throw function BW(t){return new N(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,za))})});const c=Ps(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function HW(t){return new N(3301,!1)}();return e}listen(n,e,i,o){const r=_0(e,"","","");return b0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const zO="ng-animate-queued",F0="ng-animate-disabled",LX=[],$O={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vr="__ng_removed";class L0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function zX(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const jh="void",j0=new L0(jh);class BX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,_r(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YW(t,n){return new N(3302,!1)}();if(null==i||0==i.length)throw function zW(t){return new N(3303,!1)}();if(!function $X(t){return"start"==t||"done"==t}(i))throw function $W(t,n){return new N(3400,!1)}();const r=or(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=or(this._engine.statesByElement,n,new Map);return s.has(e)||(_r(n,um),_r(n,um+"-"+e),s.set(e,j0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function VW(t){return new N(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new B0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(_r(n,um),_r(n,um+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new L0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=j0),c.value!==jh&&l.value===c.value){if(!function GX(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ml(n,T),ba(n,S)})}return}const h=or(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(_r(n,zO),a.onStart(()=>{ru(n,zO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let S=T.indexOf(a);S>=0&&T.splice(S,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,dm,!0);i.forEach(o=>{if(o[Vr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,jh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Ps(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||j0,u=new L0(jh),d=new B0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Vr];(!r||r===$O)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){_r(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=_0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,b0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class HX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new BX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(_m(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!_m(e))return;const r=e[Vr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),_r(n,F0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ru(n,F0))}removeNode(n,e,i){if(_m(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Vr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return _m(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,dm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,D0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ps(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Vr];if(e&&e.setForRemoval){if(n[Vr]=$O,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(F0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ps(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function ZW(t){return new N(3402,!1)}()}_flushAnimations(n,e){const i=new mm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const He=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=S0+b++;g.set(He,We),Se.forEach(nt=>_r(nt,We))});const T=[],S=new Set,H=new Set;for(let Se=0;SeS.add(nt)):H.add(He))}const re=new Map,ce=GO(h,Array.from(S));ce.forEach((Se,He)=>{const We=cm+b++;re.set(He,We),Se.forEach(nt=>_r(nt,We))}),n.push(()=>{p.forEach((Se,He)=>{const We=g.get(He);Se.forEach(nt=>ru(nt,We))}),ce.forEach((Se,He)=>{const We=re.get(He);Se.forEach(nt=>ru(nt,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const nt=We.player,St=We.element;if(G.push(nt),this.collectedEnterElements.length){const Vn=St[Vr];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(We.triggerName)){const ct=Vn.previousTriggersValues.get(We.triggerName),yn=this.statesByElement.get(We.element);if(yn&&yn.has(We.triggerName)){const ro=yn.get(We.triggerName);ro.value=ct,yn.set(We.triggerName,ro)}}return void nt.destroy()}}const Mt=!d||!this.driver.containsElement(d,St),en=re.get(St),Rn=g.get(St),an=this._buildInstruction(We,i,Rn,en,Mt);if(an.errors&&an.errors.length)return void pe.push(an);if(Mt)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);if(We.isFallbackTransition)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);const sn=[];an.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||sn.push(Vn)}),an.timelines=sn,i.append(St,an.timelines),a.push({instruction:an,player:nt,element:St}),an.queriedElements.forEach(Vn=>or(s,Vn,[]).push(nt)),an.preStyleProps.forEach((Vn,ct)=>{if(Vn.size){let yn=l.get(ct);yn||l.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))}}),an.postStyleProps.forEach((Vn,ct)=>{let yn=c.get(ct);yn||c.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))})});if(pe.length){const Se=[];pe.forEach(He=>{Se.push(function GW(t,n){return new N(3505,!1)}())}),G.forEach(He=>He.destroy()),this.reportError(Se)}const ye=new Map,be=new Map;a.forEach(Se=>{const He=Se.element;i.has(He)&&(be.set(He,He),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,ye))}),o.forEach(Se=>{const He=Se.element;this._getPreviousPlayers(He,!1,Se.namespaceId,Se.triggerName,null).forEach(nt=>{or(ye,He,[]).push(nt),nt.destroy()})});const Pe=T.filter(Se=>WO(Se,l,c)),je=new Map;ZO(je,this.driver,H,c,za).forEach(Se=>{WO(Se,l,c)&&Pe.push(Se)});const Re=new Map;p.forEach((Se,He)=>{ZO(Re,this.driver,new Set(Se),l,"!")}),Pe.forEach(Se=>{const He=je.get(Se),We=Re.get(Se);je.set(Se,new Map([...He?.entries()??[],...We?.entries()??[]]))});const Je=[],st=[],ht={};a.forEach(Se=>{const{element:He,player:We,instruction:nt}=Se;if(i.has(He)){if(u.has(He))return We.onDestroy(()=>ba(He,nt.toStyles)),We.disabled=!0,We.overrideTotalTime(nt.totalTime),void o.push(We);let St=ht;if(be.size>1){let en=He;const Rn=[];for(;en=en.parentNode;){const an=be.get(en);if(an){St=an;break}Rn.push(en)}Rn.forEach(an=>be.set(an,St))}const Mt=this._buildAnimation(We.namespaceId,nt,ye,r,Re,je);if(We.setRealPlayer(Mt),St===ht)Je.push(We);else{const en=this.playersByElement.get(St);en&&en.length&&(We.parentPlayer=Ps(en)),o.push(We)}}else Ml(He,nt.fromStyles),We.onDestroy(()=>ba(He,nt.toStyles)),st.push(We),u.has(He)&&o.push(We)}),st.forEach(Se=>{const He=r.get(Se.element);if(He&&He.length){const We=Ps(He);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!Mt.destroyed);St.length?VX(this,He,St):this.processLeaveNode(He)}return T.length=0,Je.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const He=this.players.indexOf(Se);this.players.splice(He,1)}),Se.play()}),Je}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==jh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=or(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ml(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Vr];if(T&&T.removedBeforeQueried)return new vh(g.duration,g.delay);const S=b!==l,H=function ZX(t){const n=[];return UO(t,n),n}((i.get(b)||LX).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===b),re=r.get(b),ce=a.get(b),G=SO(this._normalizer,g.keyframes,re,ce),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),S){const ye=new B0(n,s,b);ye.setRealPlayer(pe),c.push(ye)}return pe});c.forEach(g=>{or(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function YX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>_r(g,kO));const p=Ps(h);return p.onDestroy(()=>{u.forEach(g=>ru(g,kO)),ba(l,e.toStyles)}),d.forEach(g=>{or(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new vh(n.duration,n.delay)}}class B0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new vh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>b0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){or(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function _m(t){return t&&1===t.nodeType}function VO(t,n){const e=t.style.display;return t.style.display=n??"none",e}function ZO(t,n,e,i,o){const r=[];e.forEach(l=>r.push(VO(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Vr]=jX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>VO(l,r[s++])),a}function GO(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function _r(t,n){t.classList?.add(n)}function ru(t,n){t.classList?.remove(n)}function VX(t,n,e){Ps(e).onDone(()=>t.processLeaveNode(n))}function UO(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Bh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new HX(n.body,e,i,o),this._timelineEngine=new OX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=k0(this._driver,r,l,[]);if(l.length)throw function NW(t,n){return new N(3404,!1)}();s=function MX(t,n,e){return new AX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=DO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=DO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Hh{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Hh.initialStylesByElement.get(n);o||Hh.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ba(this._element,this._initialStyles),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Hh.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),ba(this._element,this._initialStyles),this._state=3)}}function H0(t){let n=null;return t.forEach((e,i)=>{(function WX(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class XO{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:A0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class JO{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return TO(n,e)}getParentElement(n){return v0(n)}query(n,e,i){return MO(n,e,i)}computeStyle(n,e,i){return A0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof XO);(function rX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function nX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function aX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,A0(t,s)))}}return n}(n,d,c);const h=function UX(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=H0(n[0]),n.length>1&&(i=H0(n[n.length-1]))):n instanceof Map&&(e=H0(n)),e||i?new Hh(t,e,i):null}(n,d);return new XO(n,d,l,h)}}const QO="@.disabled";class KO{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==QO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class XX extends KO{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function JX(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function QX(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class KX{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new KO("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new XX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let qX=(()=>{class t extends Bh{constructor(e,i,o){super(e,i,o,Ne($p,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(C0),Me(x0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const qO=[{provide:x0,useFactory:function eJ(){return new RO}},{provide:Bh,useClass:qX},{provide:X_,useFactory:function tJ(t,n,e){return new KX(t,n,e)},deps:[Nw,Bh,Ct]}],Y0=[{provide:C0,useFactory:()=>new JO},{provide:Co,useValue:"BrowserAnimations"},...qO],eR=[{provide:C0,useClass:w0},{provide:Co,useValue:"NoopAnimations"},...qO];let z0,nJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?eR:Y0}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:Y0,imports:[jw]})}}return t})();try{z0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{z0=!1}let au,Si=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?qk(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!z0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const tR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nR(){if(au)return au;if("object"!=typeof document||!document)return au=new Set(tR),au;let t=document.createElement("input");return au=new Set(tR.filter(n=>(t.setAttribute("type",n),t.type===n))),au}let Yh,kl,$0;function zh(t){return function iJ(){if(null==Yh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function oJ(){if(null==kl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kl=!1,kl;if("scrollBehavior"in document.documentElement.style)kl=!0;else{const t=Element.prototype.scrollTo;kl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kl}function Cm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ns(t){return t.composedPath?t.composedPath()[0]:t.target}function V0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fs(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Hi(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?ni((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):$i}class vJ extends me{constructor(n,e){super()}schedule(n,e=0){return this}}const Dm={setInterval(t,n,...e){const{delegate:i}=Dm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Dm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class W0 extends vJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Dm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Dm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,te(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const X0={now:()=>(X0.delegate||Date).now(),delegate:void 0};class Vh{constructor(n,e=Vh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Vh.now=X0.now;class J0 extends Vh{constructor(n,e=Vh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Q0=new J0(W0),wJ=Q0;function aR(t,n=Q0){return ni((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const vr=new _n(t=>t.complete());function io(t){return t<=0?()=>vr:ni((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function sR(t){return Ii((n,e)=>t<=e)}function K0(t,n=$i){return t=t??xJ,ni((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function xJ(t,n){return t===n}function In(t){return ni((n,e)=>{po(t).subscribe(Pn(e,()=>e.complete(),At)),!e.closed&&n.subscribe(e)})}let SJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[SJ]})}}return t})();function Em(t){return null!=t&&"false"!=`${t}`}function cR(t,n=0){return function DJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Tm(t){return Array.isArray(t)?t:[t]}function Oi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ls(t){return t instanceof Zt?t.nativeElement:t}function Mm(...t){const n=wh(t),e=II(t),{args:i,keys:o}=y2(t);if(0===i.length)return hi([],n);const r=new _n(function EJ(t,n,e=$i){return i=>{uR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=hi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>_2(o,a):$i));return e?r.pipe(Qw(e)):r}function uR(t,n,e){t?Va(e,t,n):n()}function su(t=1/0){return no($i,t)}function Am(...t){return function TJ(){return su(1)}()(hi(t,wh(t)))}function ya(...t){const n=wh(t);return ni((e,i)=>{(n?Am(t,e,n):Am(t,e)).subscribe(i)})}const dR=new Set;let Il,MJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function AJ(t,n){if(!dR.has(t))try{Il||(Il=document.createElement("style"),n&&(Il.nonce=n),Il.setAttribute("type","text/css"),document.head.appendChild(Il)),Il.sheet&&(Il.sheet.insertRule(`@media ${t} {body{ }}`,0),dR.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(e_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let IJ=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _t}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hR(Tm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Mm(hR(Tm(e)).map(a=>this._registerQuery(a).observable));return r=Am(r.pipe(io(1)),r.pipe(sR(1),aR(0))),r.pipe(Nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new _n(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ya(i),Nt(({matches:a})=>({query:e,matches:a})),In(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(MJ),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function pR(t,n,e){const i=gR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function gR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class mR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _t,this._typeaheadSubscription=me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new _t,this.change=new _t,n instanceof ds&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Hi(e=>this._pressedLetters.push(e)),aR(n),Ii(()=>this._pressedLetters.length>0),Nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof ds?this._items.toArray():this._items}}class NJ extends mR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class FJ extends mR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let q0=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function jJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function LJ(t){try{return t.frameElement}catch{return null}}(function GJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=yR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function VJ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function ZJ(t){return!function HJ(t){return function zJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function BJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function YJ(t){return function $J(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bR(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bR(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(t){if(!bR(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class UJ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(io(1)).subscribe(n)}}let _R=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new UJ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(q0),Me(Ct),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return 0===t.buttons||0===t.detail}function wR(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const WJ=new Be("cdk-input-modality-detector-options"),XJ={ignoreKeys:[18,17,224,91,16]},lu=zh({passive:!0,capture:!0});let JJ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ci(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ns(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vR(a)?"keyboard":"mouse"),this._mostRecentTarget=Ns(a))},this._onTouchstart=a=>{wR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ns(a))},this._options={...XJ,...r},this.modalityDetected=this._modality.pipe(sR(1)),this.modalityChanged=this.modalityDetected.pipe(K0()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,lu),o.addEventListener("mousedown",this._onMousedown,lu),o.addEventListener("touchstart",this._onTouchstart,lu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lu),document.removeEventListener("mousedown",this._onMousedown,lu),document.removeEventListener("touchstart",this._onTouchstart,lu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Ct),Me(Kt),Me(WJ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const QJ=new Be("liveAnnouncerElement",{providedIn:"root",factory:function KJ(){return null}}),qJ=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let eQ=0,tQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _t,this._rootNodeFocusAndBlurListener=s=>{for(let c=Ns(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||km.IMMEDIATE}monitor(e,i=!1){const o=Ls(e);if(!this._platform.isBrowser||1!==o.nodeType)return Tt();const r=function aJ(t){if(function rJ(){if(null==$0){const t=typeof document<"u"?document.head:null;$0=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $0}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new _t,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ls(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ls(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===km.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===km.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Ns(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Im)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Im),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ne(IJ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Rl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Rl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Rl.BLACK_ON_WHITE}return Rl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(eC,xR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Rl.BLACK_ON_WHITE?e.add(eC,xR):i===Rl.WHITE_ON_BLACK&&e.add(eC,SR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(DR))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[lR]})}}return t})();const oQ=new Be("cdk-dir-doc",{providedIn:"root",factory:function rQ(){return Ne(Kt)}}),aQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let js=(()=>{class t{constructor(e){this.value="ltr",this.change=new Lt,e&&(this.value=function sQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?aQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(oQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const lQ=["text"],cQ=[[["mat-icon"]],"*"],uQ=["mat-icon","*"];function dQ(t,n){if(1&t&&dt(0,"mat-pseudo-checkbox",1),2&t){const e=lt();Ke("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function hQ(t,n){1&t&&dt(0,"mat-pseudo-checkbox",3),2&t&&Ke("disabled",lt().disabled)}function fQ(t,n){if(1&t&&(_e(0,"span",4),mn(1),ve()),2&t){const e=lt();Fe(),gr("(",e.group.label,")")}}const pQ=["mat-internal-form-field",""],gQ=["*"],bQ=new Be("mat-sanity-checks",{providedIn:"root",factory:function mQ(){return!0}});let $n=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!V0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(DR),Me(bQ,8),Me(Kt))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[cu,cu]})}}return t})();class tC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Zh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(wr||{});class xQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=wr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const MR=zh({passive:!0,capture:!0});class SQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ns(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,MR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,MR)))}}const AR={enterDuration:225,exitDuration:150},kR=zh({passive:!0,capture:!0}),IR=["mousedown","touchstart"],OR=["mouseup","mouseleave","touchend","touchcancel"];class Om{static{this._eventManager=new SQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ls(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...AR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function EQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new xQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=wr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const S=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),T={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===wr.FADING_OUT||n.state===wr.HIDDEN)return;const e=n.element,i={...AR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=wr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ls(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,IR.forEach(i=>{Om._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{OR.forEach(e=>{this._triggerElement.addEventListener(e,this,kR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===wr.FADING_IN?this._startFadeOutTransition(n):n.state===wr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=wr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=wr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=vR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===wr.VISIBLE||n.config.terminateOnPointerUp&&n.state===wr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(IR.forEach(e=>Om._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&OR.forEach(e=>n.removeEventListener(e,this,kR)))}}const RR=new Be("mat-ripple-global-options");let uu=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Om(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ct),ie(Si),ie(RR,8),ie(Co,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Ye.None,"matRippleColor","color"],unbounded:[Ye.None,"matRippleUnbounded","unbounded"],centered:[Ye.None,"matRippleCentered","centered"],radius:[Ye.None,"matRippleRadius","radius"],animation:[Ye.None,"matRippleAnimation","animation"],disabled:[Ye.None,"matRippleDisabled","disabled"],trigger:[Ye.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Uh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})(),PR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(ie(Co,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&dn("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ii],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),TQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n]})}}return t})();const NR=new Be("MAT_OPTION_PARENT_COMPONENT"),FR=new Be("MatOptgroup");let MQ=0;class AQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let nC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+MQ++,this.onSelectionChange=new Lt,this._stateChanges=new _t}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Fs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new AQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ti),ie(NR,8),ie(FR,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Jn(lQ,7),2&i){let r;$t(r=Vt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&xt("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Cs("id",o.id),ln("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),dn("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Ye.HasDecoratorInputTransform,"disabled","disabled",Yt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[So,ii],ngContentSelectors:uQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Ui(cQ),kt(0,dQ,1,2,"mat-pseudo-checkbox",1),wn(1),_e(2,"span",2,0),wn(4,1),ve(),kt(5,hQ,1,1,"mat-pseudo-checkbox",3)(6,fQ,2,1,"span",4),dt(7,"div",5)),2&i&&(Mn(0,o.multiple?0:-1),Fe(5),Mn(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Fe(),Mn(6,o.group&&o.group._inert?6:-1),Fe(),Ke("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[PR,uu],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),LR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[Uh,$n,TQ]})}}return t})();const jR={capture:!0},BR=["focus","click","mouseenter","touchstart"],iC="mat-ripple-loader-uninitialized",oC="mat-ripple-loader-class-name",HR="mat-ripple-loader-centered",Rm="mat-ripple-loader-disabled";let OQ=(()=>{class t{constructor(){this._document=Ne(Kt,{optional:!0}),this._animationMode=Ne(Co,{optional:!0}),this._globalRippleOptions=Ne(RR,{optional:!0}),this._platform=Ne(Si),this._ngZone=Ne(Ct),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${iC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of BR)this._document?.addEventListener(e,this._onInteraction,jR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of BR)this._document?.removeEventListener(i,this._onInteraction,jR)}configureRipple(e,i){e.setAttribute(iC,""),(i.className||!e.hasAttribute(oC))&&e.setAttribute(oC,i.className||""),i.centered&&e.setAttribute(HR,""),i.disabled&&e.setAttribute(Rm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(Rm,""):e.removeAttribute(Rm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(oC)),e.append(o);const r=new uu(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(HR),r.disabled=e.hasAttribute(Rm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(iC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ii],attrs:pQ,ngContentSelectors:gQ,decls:1,vars:0,template:function(i,o){1&i&&(Ui(),wn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const RQ=["*",[["mat-toolbar-row"]]],PQ=["*","mat-toolbar-row"];let NQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),zR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Si),ie(Kt))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&gi(r,NQ,5),2&i){let a;$t(a=Vt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(qi(o.color?"mat-"+o.color:""),dn("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[ii],ngContentSelectors:PQ,decls:2,vars:0,template:function(i,o){1&i&&(Ui(RQ),wn(0),wn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),FQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})();const Pm=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Wh(t){return new _n(n=>{po(t()).subscribe(n)})}function du(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new _n(n?o=>n.schedule(i,0,o):i)}function rC(){return ni((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class $R extends _n{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Wu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new me;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=me.EMPTY)}return n}refCount(){return rC()(this)}}function Nm(t){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function VR(t=jQ){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function jQ(){return new Pm}function Pl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,io(1),e?Nm(n):VR(()=>new Pm))}function Ua(t){return ni((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=po(t(a,Ua(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function aC(t){return t<=0?()=>vr:ni((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const cn="primary",Xh=Symbol("RouteTitle");class $Q{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hu(t){return new $Q(t)}function VQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function GR(t){return t.length>0?t[t.length-1]:null}function Bs(t){return function LQ(t){return!!t&&(t instanceof _n||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:uh(t)?hi(Promise.resolve(t)):Tt(t)}const GQ={exact:function XR(t,n,e){if(!Nl(t.segments,n.segments)||!Fm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!XR(t.children[i],n.children[i],e))return!1;return!0},subset:JR},UR={exact:function UQ(t,n){return _a(t,n)},subset:function WQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZR(t[e],n[e]))},ignored:()=>!0};function WR(t,n,e){return GQ[e.paths](t.root,n.root,e.matrixParams)&&UR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function JR(t,n,e){return QR(t,n,n.segments,e)}function QR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Nl(o,e)||n.hasChildren()||!Fm(o,e,i))}if(t.segments.length===e.length){if(!Nl(t.segments,e)||!Fm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!JR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Nl(t.segments,o)&&Fm(t.segments,o,i)&&t.children[cn])&&QR(t.children[cn],n,r,i)}}function Fm(t,n,e){return n.every((i,o)=>UR[e](t[o].parameters,i.parameters))}class fu{constructor(n=new jn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return QQ.serialize(this)}}class jn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lm(this)}}class Jh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hu(this.parameters),this._parameterMap}toString(){return eP(this)}}function Nl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new lC,providedIn:"root"})}}return t})();class lC{parse(n){const e=new lK(n);return new fu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Qh(n.root,!0)}`,i=function eK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${jm(e)}=${jm(o)}`).join("&"):`${jm(e)}=${jm(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QQ=new lC;function Lm(t){return t.segments.map(n=>eP(n)).join("/")}function Qh(t,n){if(!t.hasChildren())return Lm(t);if(n){const e=t.children[cn]?Qh(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${Qh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function JQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[Qh(t.children[cn],!1)]:[`${o}:${Qh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Lm(t)}/${e[0]}`:`${Lm(t)}/(${e.join("//")})`}}function KR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jm(t){return KR(t).replace(/%3B/gi,";")}function cC(t){return KR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bm(t){return decodeURIComponent(t)}function qR(t){return Bm(t.replace(/\+/g,"%20"))}function eP(t){return`${cC(t.path)}${function qQ(t){return Object.entries(t).map(([n,e])=>`;${cC(n)}=${cC(e)}`).join("")}(t.parameters)}`}const tK=/^[^\/()?;#]+/;function uC(t){const n=t.match(tK);return n?n[0]:""}const nK=/^[^\/()?;=#]+/,oK=/^[^=?&#]+/,aK=/^[^&#]+/;class lK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jn([],{}):new jn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new jn(n,e)),i}parseSegment(){const n=uC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new Jh(Bm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function iK(t){const n=t.match(nK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uC(this.remaining);o&&(i=o,this.capture(i))}n[Bm(e)]=Bm(i)}parseQueryParam(n){const e=function rK(t){const n=t.match(oK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function sK(t){const n=t.match(aK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=qR(e),r=qR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new jn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function tP(t){return t.segments.length>0?new jn([],{[cn]:t}):t}function nP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=nP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function cK(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new jn(t.segments.concat(n.segments),n.children)}return t}(new jn(t.segments,n))}function gu(t){return t instanceof fu}function iP(t){let n;const o=tP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new jn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function oP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return dC(o,o,o,e,i);const r=function dK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new aP(e,n,i)}(n);if(r.toRoot())return dC(o,o,new jn([],{}),e,i);const a=function hK(t,n,e){if(t.isAbsolute)return new Ym(n,!0,0);if(!e)return new Ym(n,!1,NaN);if(null===e.parent)return new Ym(e,!0,0);const i=Hm(t.commands[0])?0:1;return function fK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new N(4005,!1);o=i.segments.length}return new Ym(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?qh(a.segmentGroup,a.index,r.commands):sP(a.segmentGroup,a.index,r.commands);return dC(o,a.segmentGroup,s,e,i)}function Hm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Kh(t){return"object"==typeof t&&null!=t&&t.outlets}function dC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:rP(t,n,e);const s=tP(nP(a));return new fu(s,r,o)}function rP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:rP(r,n,e)}),new jn(t.segments,i)}class aP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Hm(i[0]))throw new N(4003,!1);const o=i.find(Kh);if(o&&o!==GR(i))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function sP(t,n,e){if(t??=new jn([],{}),0===t.segments.length&&t.hasChildren())return qh(t,n,e);const i=function gK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(Kh(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!cP(l,c,a))return r;i+=2}else{if(!cP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=qh(t.children[cn],n,e);return new jn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=sP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new jn(t.segments,o)}}function hC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=hC(new jn([],{}),0,i))}),n}function lP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function cP(t,n,e){return t==e.path&&_a(n,e.parameters)}const ef="imperative";var bn=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}(bn||{});class va{constructor(n,e){this.id=n,this.url=e}}class zm extends va{constructor(n,e,i="imperative",o=null){super(n,e),this.type=bn.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wa extends va{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=bn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ar=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ar||{}),$m=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($m||{});class mu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationSkipped}}class Vm extends va{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=bn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uP extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yK extends va{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=bn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _K extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class CK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DK{constructor(n){this.snapshot=n,this.type=bn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EK{constructor(n){this.snapshot=n,this.type=bn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dP{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=bn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class fC{}class pC{constructor(n){this.url=n}}class TK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tf,this.attachRef=null}}let tf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new TK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class hP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=gC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=gC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=mC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return mC(n,this._root).map(e=>e.value)}}function gC(t,n){if(t===n.value)return n;for(const e of n.children){const i=gC(t,e);if(i)return i}return null}function mC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=mC(t,e);if(i.length)return i.unshift(n),i}return[]}class Zr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function yu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class fP extends hP{constructor(n,e){super(n),this.snapshot=e,_C(this,n)}toString(){return this.snapshot.toString()}}function pP(t){const n=function MK(t){const r=new yC([],{},{},"",{},cn,t,null,{});return new gP("",new Zr(r,[]))}(t),e=new ci([new Jh("",{})]),i=new ci({}),o=new ci({}),r=new ci({}),a=new ci(""),s=new Fl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new fP(new Zr(s,[]),n)}class Fl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Nt(c=>c[Xh]))??Tt(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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(Nt(n=>hu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nt(n=>hu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&bP(o)&&(i.resolve[Xh]=o.title),i}class yC{get title(){return this.data?.[Xh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gP extends hP{constructor(n,e){super(e),this.url=n,_C(this,e)}toString(){return mP(this._root)}}function _C(t,n){n.value._routerState=t,n.children.forEach(e=>_C(t,e))}function mP(t){const n=t.children.length>0?` { ${t.children.map(mP).join(", ")} } `:"";return`${t.value}${n}`}function vC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_a(n.params,e.params)||t.paramsSubject.next(e.params),function ZQ(t,n){if(t.length!==n.length)return!1;for(let e=0;e_a(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||wC(t.parent,n.parent))}function bP(t){return"string"==typeof t.title||null===t.title}let CC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Lt,this.deactivateEvents=new Lt,this.attachEvents=new Lt,this.detachEvents=new Lt,this.parentContexts=Ne(tf),this.location=Ne(jo),this.changeDetector=Ne(Ti),this.environmentInjector=Ne(No),this.inputBinder=Ne(Zm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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;const 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 N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new AK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zi]})}}return t})();class AK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Fl?this.route:n===tf?this.childContexts:this.parent.get(n,e)}}const Zm=new Be("");let yP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Mm([i.queryParams,i.params,i.data]).pipe(Wi(([r,a,s],l)=>(s={...r,...a,...s},0===l?Tt(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function q$(t){const n=un(t);if(!n)return null;const e=new Hd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function nf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function IK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return nf(t,i,o);return nf(t,i)})}(t,n,e);return new Zr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>nf(t,s)),a}}const i=function OK(t){return new Fl(new ci(t.url),new ci(t.params),new ci(t.queryParams),new ci(t.fragment),new ci(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>nf(t,r));return new Zr(i,o)}}const _P="ngNavigationCancelingError";function vP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=gu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=wP(!1,ar.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function wP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[_P]=!0,e.cancellationCode=n,e}function CP(t){return!!t&&t[_P]}let xP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["ng-component"]],standalone:!0,features:[ii],decls:1,vars:0,template:function(i,o){1&i&&dt(0,"router-outlet")},dependencies:[CC],encapsulation:2})}}return t})();function xC(t){const n=t.children&&t.children.map(xC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=xP),e}function wa(t){return t.outlet||cn}function rf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class HK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),vC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new EK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new SK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(vC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),vC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=rf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class SP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Gm{constructor(n,e){this.component=n,this.route=e}}function YK(t,n,e){const i=t._root;return af(i,n?n._root:null,e,[i.value])}function _u(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Zj(t){return null!==jf(t)}(t)?n.get(t):t:i}function af(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=yu(n);return t.children.forEach(a=>{(function $K(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function VK(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nl(t.url,n.url)||!_a(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wC(t,n)||!_a(t.queryParams,n.queryParams);default:return!wC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new SP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),af(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Gm(s.outlet.component,a))}else a&&sf(n,s,o),o.canActivateChecks.push(new SP(i)),af(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>sf(s,e.getContext(a),o)),o}function sf(t,n,e){const i=yu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{sf(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new Gm(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function lf(t){return"function"==typeof t}function DP(t){return t instanceof Pm||"EmptyError"===t?.name}const Um=Symbol("INITIAL_VALUE");function vu(){return Wi(t=>Mm(t.map(n=>n.pipe(io(1),ya(Um)))).pipe(Nt(n=>{for(const e of n)if(!0!==e){if(e===Um)return Um;if(!1===e||e instanceof fu)return e}return!0}),Ii(n=>n!==Um),io(1)))}function EP(t){return function Uu(...t){return Nf(t)}(Hi(n=>{if(gu(n))throw vP(0,n)}),Nt(n=>!0===n))}class SC{constructor(n){this.segmentGroup=n||null}}class DC extends Error{constructor(n){super(),this.urlTree=n}}function wu(t){return du(new SC(t))}class cq{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Tt(i);if(o.numberOfChildren>1||!o.children[cn])return du(new N(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new DC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new fu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new jn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new N(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const EC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uq(t,n,e,i,o){const r=TC(t,n,e);return r.matched?(i=function PK(t,n){return t.providers&&!t._injector&&(t._injector=Wp(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function aq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Tt(o.map(a=>{const s=_u(a,t);return Bs(function JK(t){return t&&lf(t.canMatch)}(s)?s.canMatch(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP()):Tt(!0)}(i,n,e).pipe(Nt(a=>!0===a?r:{...EC}))):Tt(r)}function TC(t,n,e){if("**"===n.path)return function dq(t){return{matched:!0,parameters:t.length>0?GR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...EC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||VQ)(e,t,n);if(!o)return{...EC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function TP(t,n,e,i){return e.length>0&&function pq(t,n,e){return e.some(i=>Wm(t,n,i)&&wa(i)!==cn)}(t,e,i)?{segmentGroup:new jn(n,fq(i,new jn(e,t.children))),slicedSegments:[]}:0===e.length&&function gq(t,n,e){return e.some(i=>Wm(t,n,i))}(t,e,i)?{segmentGroup:new jn(t.segments,hq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new jn(t.segments,t.children),slicedSegments:e}}function hq(t,n,e,i){const o={};for(const r of e)if(Wm(t,n,r)&&!i[wa(r)]){const a=new jn([],{});o[wa(r)]=a}return{...i,...o}}function fq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&wa(i)!==cn){const o=new jn([],{});e[wa(i)]=o}return e}function Wm(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class yq{}class wq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new cq(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}recognize(){const n=TP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Nt(e=>{const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Zr(i,e),r=new gP("",o),a=function uK(t,n,e=null,i=null){return oP(iP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(Ua(i=>{if(i instanceof DC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof SC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=bC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Nt(r=>r instanceof Zr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return hi(o).pipe(nu(r=>{const a=i.children[r],s=function jK(t,n){const e=t.filter(i=>wa(i)===n);return e.push(...t.filter(i=>wa(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function HQ(t,n){return ni(function BQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Nm(null),function YQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,aC(1),e?Nm(n):VR(()=>new Pm))}(),no(r=>{if(null===r)return wu(i);const a=MP(r);return function Cq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Tt(a)}))}processSegment(n,e,i,o,r,a){return hi(e).pipe(nu(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Ua(l=>{if(l instanceof SC)return Tt(null);throw l}))),Pl(s=>!!s),Ua(s=>{if(DP(s))return function bq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Tt(new yq):wu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function mq(t,n,e,i){return!!(wa(t)===i||i!==cn&&Wm(n,e,t))&&TC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):wu(o):wu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=TC(e,o,r);if(!s)return wu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(no(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=uq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Wi(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Wi(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new yC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Sq(t){return t.data||{}}(i),wa(i),i.component??i._loadedComponent??null,i,function Dq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=TP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Nt(S=>null===S?null:new Zr(p,S)));if(0===l.length&&0===b.length)return Tt(new Zr(p,[]));const T=wa(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Nt(S=>new Zr(p,S instanceof Zr?[S]:[])))})):wu(e)))}getChildConfig(n,e,i){return e.children?Tt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Tt({routes:e._loadedRoutes,injector:e._loadedInjector}):function rq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Tt(!0):Tt(o.map(a=>{const s=_u(a,t);return Bs(function GK(t){return t&&lf(t.canLoad)}(s)?s.canLoad(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP())}(n,e,i).pipe(no(o=>o?this.configLoader.loadChildren(n,e).pipe(Hi(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function lq(t){return du(wP(!1,ar.GuardRejected))}())):Tt({routes:[],injector:n})}}function xq(t){const n=t.value.routeConfig;return n&&""===n.path}function MP(t){const n=[],e=new Set;for(const i of t){if(!xq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=MP(i.children);n.push(new Zr(i.value,o))}return n.filter(i=>!e.has(i))}function AP(t){const n=t.children.map(e=>AP(e)).flat();return[t,...n]}function MC(t){return Wi(n=>{const e=t(n);return e?hi(e).pipe(Nt(()=>n)):Tt(n)})}let kP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[Xh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Iq),providedIn:"root"})}}return t})(),Iq=(()=>{class t extends kP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(CI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Cu=new Be("",{providedIn:"root",factory:()=>({})}),xu=new Be("");let AC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ne(VA)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bs(e.loadComponent()).pipe(Nt(IP),Hi(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),wl(()=>{this.componentLoaders.delete(e)})),o=new $R(i,()=>new _t).pipe(rC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Tt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function Oq(t,n,e,i){return Bs(t.loadChildren()).pipe(Nt(IP),no(o=>o instanceof pT||Array.isArray(o)?Tt(o):hi(n.compileModuleAsync(o))),Nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(xu,[],{optional:!0,self:!0}).flat()),{routes:a.map(xC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(wl(()=>{this.childrenLoaders.delete(i)})),a=new $R(r,()=>new _t).pipe(rC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function IP(t){return function Rq(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let kC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Pq),providedIn:"root"})}}return t})(),Pq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const OP=new Be(""),RP=new Be("");function Nq(t,n,e){const i=t.get(RP),o=t.get(Kt);return t.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Fq(t){return new Promise(n=>{IE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ea(t,()=>l({transition:s,from:n,to:e})),a})}let Xm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t,this.transitionAbortSubject=new _t,this.configLoader=Ne(AC),this.environmentInjector=Ne(No),this.urlSerializer=Ne(pu),this.rootContexts=Ne(tf),this.location=Ne(bl),this.inputBindingEnabled=null!==Ne(Zm,{optional:!0}),this.titleStrategy=Ne(kP),this.options=Ne(Cu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ne(kC),this.createViewTransition=Ne(OP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new CK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new ci({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ef,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ii(r=>0!==r.id),Nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Wi(r=>{let a=!1,s=!1;return Tt(r).pipe(Wi(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),vr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.rawUrl),d,$m.IgnoredSameUrlNavigation)),l.resolve(null),vr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Tt(l).pipe(Wi(d=>{const h=this.transitions?.getValue();return this.events.next(new zm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?vr:Promise.resolve(d)}),function Eq(t,n,e,i,o,r){return no(a=>function _q(t,n,e,i,o,r,a="emptyOnly"){return new wq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Nt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Hi(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new uP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new zm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const S=pP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:S,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Tt(r)}{const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,$m.IgnoredByUrlHandlingStrategy)),l.resolve(null),vr}}),Hi(l=>{const c=new bK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Nt(l=>(this.currentTransition=r={...l,guards:YK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function QK(t,n){return no(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Tt({...e,guardsResult:!0}):function KK(t,n,e,i){return hi(t).pipe(no(o=>function oq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Tt(r.map(s=>{const l=rf(n)??o,c=_u(s,l);return Bs(function XK(t){return t&&lf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ea(l,()=>c(t,n,e,i))).pipe(Pl())})).pipe(vu()):Tt(!0)}(o.component,o.route,e,n,i)),Pl(o=>!0!==o,!0))}(a,i,o,t).pipe(no(s=>s&&function ZK(t){return"boolean"==typeof t}(s)?function qK(t,n,e,i){return hi(n).pipe(nu(o=>Am(function tq(t,n){return null!==t&&n&&n(new xK(t)),Tt(!0)}(o.route.parent,i),function eq(t,n){return null!==t&&n&&n(new DK(t)),Tt(!0)}(o.route,i),function iq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function zK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Wh(()=>Tt(a.guards.map(l=>{const c=rf(a.node)??e,u=_u(l,c);return Bs(function WK(t){return t&&lf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ea(c,()=>u(i,t))).pipe(Pl())})).pipe(vu())));return Tt(r).pipe(vu())}(t,o.path,e),function nq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Tt(!0);const o=i.map(r=>Wh(()=>{const a=rf(n)??e,s=_u(r,a);return Bs(function UK(t){return t&&lf(t.canActivate)}(s)?s.canActivate(n,t):ea(a,()=>s(n,t))).pipe(Pl())}));return Tt(o).pipe(vu())}(t,o.route,e))),Pl(o=>!0!==o,!0))}(i,r,t,n):Tt(s)),Nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),Hi(l=>{if(r.guardsResult=l.guardsResult,gu(l.guardsResult))throw vP(0,l.guardsResult);const c=new yK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ii(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",ar.GuardRejected),!1)),MC(l=>{if(l.guards.canActivateChecks.length)return Tt(l).pipe(Hi(c=>{const u=new _K(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Wi(c=>{let u=!1;return Tt(c).pipe(function Tq(t,n){return no(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Tt(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of AP(l))a.add(c);let s=0;return hi(a).pipe(nu(l=>r.has(l)?function Mq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!bP(o)&&(r[Xh]=o.title),function Aq(t,n,e,i){const o=sC(t);if(0===o.length)return Tt({});const r={};return hi(o).pipe(no(a=>function kq(t,n,e,i){const o=rf(n)??i,r=_u(t,o);return Bs(r.resolve?r.resolve(n,e):ea(o,()=>r(n,e)))}(t[a],n,e,i).pipe(Pl(),Hi(s=>{r[a]=s}))),aC(1),function zQ(t){return Nt(()=>t)}(r),Ua(a=>DP(a)?vr:du(a)))}(r,t,n,i).pipe(Nt(a=>(t._resolvedData=a,t.data=bC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=bC(l,l.parent,t).resolve,Tt(void 0))),Hi(()=>s++),aC(1),no(l=>s===a.size?Tt(e):vr))})}(this.paramsInheritanceStrategy,this.environmentInjector),Hi({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",ar.NoDataFromResolver)}}))}),Hi(c=>{const u=new vK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),MC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Hi(h=>{u.component=h}),Nt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return Mm(c(l.targetSnapshot.root)).pipe(Nm(null),io(1))}),MC(()=>this.afterPreactivation()),Wi(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?hi(u).pipe(Nt(()=>r)):Tt(r)}),Nt(l=>{const c=function kK(t,n,e){const i=nf(t,n._root,e?e._root:void 0);return new fP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),Hi(()=>{this.events.next(new fC)}),((t,n,e,i)=>Nt(o=>(new HK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),io(1),Hi({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wa(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),In(this.transitionAbortSubject.pipe(Hi(l=>{throw l}))),wl(()=>{a||s||this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ua(l=>{if(s=!0,CP(l))this.events.next(new mu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function RK(t){return CP(t)&&gu(t.url)}(l)?this.events.next(new pC(l.url)):r.resolve(!1);else{this.events.next(new Vm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return vr}))}))}cancelNavigationTransition(e,i,o){const r=new mu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Lq(t){return t!==ef}let jq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Hq),providedIn:"root"})}}return t})();class Bq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Hq=(()=>{class t extends Bq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),PP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends PP{constructor(){super(...arguments),this.location=Ne(bl),this.urlSerializer=Ne(pu),this.options=Ne(Cu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ne(kC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof zm)this.stateMemento=this.createStateMemento();else if(e instanceof bu)this.rawUrlTree=i.initialUrl;else if(e instanceof uP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof fC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof mu&&(e.code===ar.GuardRejected||e.code===ar.NoDataFromResolver)?this.restoreHistory(i):e instanceof Vm?this.restoreHistory(i,!0):e instanceof Wa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cf=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(cf||{});function NP(t,n){t.events.pipe(Ii(e=>e instanceof Wa||e instanceof mu||e instanceof Vm||e instanceof bu),Nt(e=>e instanceof Wa||e instanceof bu?cf.COMPLETE:e instanceof mu&&(e.code===ar.Redirect||e.code===ar.SupersededByNewNavigation)?cf.REDIRECTING:cf.FAILED),Ii(e=>e!==cf.REDIRECTING),io(1)).subscribe(()=>{n()})}function zq(t){throw t}const $q={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Ne(PA),this.stateManager=Ne(PP),this.options=Ne(Cu,{optional:!0})||{},this.pendingTasks=Ne(bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ne(Xm),this.urlSerializer=Ne(pu),this.location=Ne(bl),this.urlHandlingStrategy=Ne(kC),this._events=new _t,this.errorHandler=this.options.errorHandler||zq,this.navigated=!1,this.routeReuseStrategy=Ne(jq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ne(xu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ne(Zm,{optional:!0}),this.eventsSubscription=new me,this.isNgZoneEnabled=Ne(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof mu&&i.code!==ar.Redirect&&i.code!==ar.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wa)this.navigated=!0;else if(i instanceof pC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lq(o.source)};this.scheduleNavigation(a,ef,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Gq(t){return!(t instanceof fC||t instanceof pC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ef,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=iP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return oP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=gu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ef,null,i)}navigate(e,i={skipLocationChange:!1}){return function Zq(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return NP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new _t,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Wa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function TD(t,n,e){return function e8(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?ED:Cd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(ie(Ao),ie(Fl),sa("tabindex"),ie(La),ie(Zt),ie(ml))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&xt("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&ln("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ye.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Yt],skipLocationChange:[Ye.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[Ye.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[So,Zi]})}}return t})();class FP{}let Xq=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ii(e=>e instanceof Wa),nu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Wp(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return hi(o).pipe(su())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Tt(null);const r=o.pipe(no(a=>null===a?Tt(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?hi([r,this.loader.loadComponent(i)]).pipe(su()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(Ao),Me(VA),Me(No),Me(FP),Me(AC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const IC=new Be("");let LP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof bu&&e.code===$m.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dP&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dP(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){k_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function Ca(t,n){return{\u0275kind:t,\u0275providers:n}}function BP(){const t=Ne(di);return n=>{const e=t.get(Hr);if(n!==e.components[0])return;const i=t.get(Ao),o=t.get(HP);1===t.get(OC)&&i.initialNavigation(),t.get(YP,null,fn.Optional)?.setUpPreloading(),t.get(IC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const HP=new Be("",{factory:()=>new _t}),OC=new Be("",{providedIn:"root",factory:()=>1}),YP=new Be("");function qq(t){return Ca(0,[{provide:YP,useExisting:Xq},{provide:FP,useExisting:t}])}function tee(t){return Ca(9,[{provide:OP,useValue:Nq},{provide:RP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const zP=new Be("ROUTER_FORROOT_GUARD"),nee=[bl,{provide:pu,useClass:lC},Ao,tf,{provide:Fl,useFactory:function jP(t){return t.routerState.root},deps:[Ao]},AC,[]];let $P=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[nee,[],{provide:xu,multi:!0,useValue:e},{provide:zP,useFactory:aee,deps:[[Ao,new ls,new oc]]},{provide:Cu,useValue:i||{}},i?.useHash?{provide:ml,useClass:oV}:{provide:ml,useClass:Rk},{provide:IC,useFactory:()=>{const t=Ne(C9),n=Ne(Ct),e=Ne(Cu),i=Ne(Xm),o=Ne(pu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new LP(o,i,t,n,e)}},i?.preloadingStrategy?qq(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?see(i):[],i?.bindToComponentInputs?Ca(8,[yP,{provide:Zm,useExisting:yP}]).\u0275providers:[],i?.enableViewTransitions?tee().\u0275providers:[],[{provide:VP,useFactory:BP},{provide:ew,multi:!0,useExisting:VP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:xu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(zP,8))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function aee(t){return"guarded"}function see(t){return["disabled"===t.initialNavigation?Ca(3,[{provide:Kv,multi:!0,useFactory:()=>{const n=Ne(Ao);return()=>{n.setUpLocationChangeListener()}}},{provide:OC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ca(2,[{provide:OC,useValue:0},{provide:Kv,multi:!0,deps:[di],useFactory:n=>{const e=n.get(nV,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Ao),r=n.get(HP);NP(o,()=>{i(!0)}),n.get(Xm).afterPreactivation=()=>(i(!0),r.closed?Tt(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const VP=new Be("");var cee=function(n){return function uee(t){return!!t&&"object"==typeof t}(n)&&!function dee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function pee(t){return t.$$typeof===fee}(t)}(n)},fee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function df(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Su(function gee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function mee(t,n,e){return t.concat(n).map(function(i){return df(i,e)})}function ZP(t){return Object.keys(t).concat(function yee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function GP(t,n){try{return n in t}catch{return!1}}function Su(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||mee,e.isMergeableObject=e.isMergeableObject||cee,e.cloneUnlessOtherwiseSpecified=df;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function vee(t,n,e){var i={};return e.isMergeableObject(t)&&ZP(t).forEach(function(o){i[o]=df(t[o],e)}),ZP(n).forEach(function(o){(function _ee(t,n){return GP(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=GP(t,o)&&e.isMergeableObject(n[o])?function bee(t,n){if(!n.customMerge)return Su;var e=n.customMerge(t);return"function"==typeof e?e:Su}(o,e)(t[o],n[o],e):df(n[o],e))}),i}(t,n,e):df(n,e)}Su.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Su(i,o,e)},{})};var RC=Su;function PC(t){return t instanceof HTMLElement}function Ll(t){return"function"==typeof t}function hf(t){return"string"==typeof t}function go(t){return void 0===t}class NC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function UP(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const Du=Math.min,jl=Math.max,Jm=Math.round,Qm=Math.floor,Hs=t=>({x:t,y:t}),Eee={left:"right",right:"left",bottom:"top",top:"bottom"},Tee={start:"end",end:"start"};function LC(t,n,e){return jl(t,Du(n,e))}function Eu(t,n){return"function"==typeof t?t(n):t}function Bl(t){return t.split("-")[0]}function Km(t){return t.split("-")[1]}function jC(t){return"x"===t?"y":"x"}function BC(t){return"y"===t?"height":"width"}function qm(t){return["top","bottom"].includes(Bl(t))?"y":"x"}function HC(t){return jC(qm(t))}function YC(t){return t.replace(/start|end/g,n=>Tee[n])}function eb(t){return t.replace(/left|right|bottom|top/g,n=>Eee[n])}function QP(t){return"number"!=typeof t?function Oee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function tb(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const Ree=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Pee=["mainAxis","crossAxis","limiter"];function KP(t,n,e){let{reference:i,floating:o}=t;const r=qm(n),a=HC(n),s=BC(a),l=Bl(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(Km(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Nee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=KP(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,re;const ce="y"===p?"width":"height",G=["top","left"].includes(Bl(r)),pe=a.reference[h]-a.floating[ce]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:S.crossAxis),ye=a.reference[h]+a.reference[ce]+(G?0:(null==(re=s.offset)?void 0:re[h])||0)-(G?S.crossAxis:0);bye&&(b=ye)}return{[p]:g,[h]:b}}}};function Ys(t){return eN(t)?(t.nodeName||"").toLowerCase():"#document"}function sr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function Xa(t){var n;return null==(n=(eN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function eN(t){return t instanceof Node||t instanceof sr(t).Node}function Ja(t){return t instanceof Element||t instanceof sr(t).Element}function xa(t){return t instanceof HTMLElement||t instanceof sr(t).HTMLElement}function tN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof sr(t).ShadowRoot)}function ff(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Cr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Hee(t){return["table","td","th"].includes(Ys(t))}function $C(t){const n=VC(),e=Cr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function VC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nb(t){return["html","body","#document"].includes(Ys(t))}function Cr(t){return sr(t).getComputedStyle(t)}function ib(t){return Ja(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tu(t){if("html"===Ys(t))return t;const n=t.assignedSlot||t.parentNode||tN(t)&&t.host||Xa(t);return tN(n)?n.host:n}function nN(t){const n=Tu(t);return nb(n)?t.ownerDocument?t.ownerDocument.body:t.body:xa(n)&&ff(n)?n:nN(n)}function ob(t,n){var e;void 0===n&&(n=[]);const i=nN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=sr(i);return o?n.concat(r,r.visualViewport||[],ff(i)?i:[]):n.concat(i,ob(i))}function iN(t){const n=Cr(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=xa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=Jm(e)!==r||Jm(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function ZC(t){return Ja(t)?t:t.contextElement}function Mu(t){const n=ZC(t);if(!xa(n))return Hs(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=iN(n);let a=(r?Jm(e.width):e.width)/i,s=(r?Jm(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const zee=Hs(0);function oN(t){const n=sr(t);return VC()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:zee}function Hl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=ZC(t);let a=Hs(1);n&&(i?Ja(i)&&(a=Mu(i)):a=Mu(t));const s=function $ee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==sr(t))&&n}(r,e,i)?oN(r):Hs(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=sr(r),p=i&&Ja(i)?sr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Mu(g),T=g.getBoundingClientRect(),S=Cr(g),H=T.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,re=T.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=re,g=sr(g).frameElement}}return tb({width:u,height:d,x:l,y:c})}function rN(t){return Hl(Xa(t)).left+ib(t).scrollLeft}function aN(t,n,e){let i;if("viewport"===n)i=function Uee(t,n){const e=sr(t),i=Xa(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=VC();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function Gee(t){const n=Xa(t),e=ib(t),i=t.ownerDocument.body,o=jl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=jl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+rN(t);const s=-e.scrollTop;return"rtl"===Cr(i).direction&&(a+=jl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(Xa(t));else if(Ja(n))i=function Wee(t,n){const e=Hl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=xa(t)?Mu(t):Hs(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=oN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return tb(i)}function sN(t,n){const e=Tu(t);return!(e===n||!Ja(e)||nb(e))&&("fixed"===Cr(e).position||sN(e,n))}function Xee(t,n){const e=n.get(t);if(e)return e;let i=ob(t).filter(s=>Ja(s)&&"body"!==Ys(s)),o=null;const r="fixed"===Cr(t).position;let a=r?Tu(t):t;for(;Ja(a)&&!nb(a);){const s=Cr(a),l=$C(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||ff(a)&&!l&&sN(t,a))?i=i.filter(u=>u!==a):o=s,a=Tu(a)}return n.set(t,i),i}function Kee(t,n,e){const i=xa(n),o=Xa(n),r="fixed"===e,a=Hl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=Hs(0);if(i||!i&&!r)if(("body"!==Ys(n)||ff(o))&&(s=ib(n)),i){const c=Hl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=rN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lN(t,n){return xa(t)&&"fixed"!==Cr(t).position?n?n(t):t.offsetParent:null}function cN(t,n){const e=sr(t);if(!xa(t))return e;let i=lN(t,n);for(;i&&Hee(i)&&"static"===Cr(i).position;)i=lN(i,n);return i&&("html"===Ys(i)||"body"===Ys(i)&&"static"===Cr(i).position&&!$C(i))?e:i||function Yee(t){let n=Tu(t);for(;xa(n)&&!nb(n);){if($C(n))return n;n=Tu(n)}return null}(t)||e}const qee=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||cN,s=this.getDimensions;return{reference:Kee(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),tte={convertOffsetParentRelativeRectToViewportRelativeRect:function Vee(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=xa(e),r=Xa(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=Hs(1);const l=Hs(0);if((o||!o&&"fixed"!==i)&&(("body"!==Ys(e)||ff(r))&&(a=ib(e)),xa(e))){const c=Hl(e);s=Mu(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xa,getClippingRect:function Jee(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?Xee(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=aN(n,u,o);return c.top=jl(d.top,c.top),c.right=Du(d.right,c.right),c.bottom=Du(d.bottom,c.bottom),c.left=jl(d.left,c.left),c},aN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:cN,getElementRects:qee,getClientRects:function Zee(t){return Array.from(t.getClientRects())},getDimensions:function Qee(t){return iN(t)},getScale:Mu,isElement:Ja,isRTL:function ete(t){return"rtl"===Cr(t).direction}};function rte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function dte(t,n){const e={strategy:"absolute",middleware:[]},i=function hte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return XP(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Eu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,S=JP(u,Ree),H=Bl(o),re=Bl(s)===s,ce=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(re||!T?[eb(s)]:function Aee(t){const n=eb(t);return[YC(t),n,YC(n)]}(s));!p&&"none"!==b&&G.push(...function Iee(t,n,e,i){const o=Km(t);let r=function kee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}(Bl(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(YC)))),r}(s,T,b,ce));const pe=[s,...G],ye=yield qP(e,S),be=[];let Pe=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(ye[H]),h){const Je=function Mee(t,n,e){void 0===e&&(e=!1);const i=Km(t),o=HC(t),r=BC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=eb(a)),[a,eb(a)]}(o,a,ce);be.push(ye[Je[0]],ye[Je[1]])}if(Pe=[...Pe,{placement:o,overflows:be}],!be.every(Je=>Je<=0)){var je,Xe;const Je=((null==(je=r.flip)?void 0:je.index)||0)+1,st=pe[Je];if(st)return{data:{index:Je,overflows:Pe},reset:{placement:st}};let ht=null==(Xe=Pe.filter(Se=>Se.overflows[0]<=0).sort((Se,He)=>Se.overflows[1]-He.overflows[1])[0])?void 0:Xe.placement;if(!ht)switch(g){case"bestFit":{var Re;const Se=null==(Re=Pe.map(He=>[He.placement,He.overflows.filter(We=>We>0).reduce((We,nt)=>We+nt,0)]).sort((He,We)=>He[1]-We[1])[0])?void 0:Re[0];Se&&(ht=Se);break}case"initialPlacement":ht=s}if(o!==ht)return{reset:{placement:ht}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Eu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:re,y:ce}=H;return{x:re,y:ce}}}}=a,u=JP(a,Pee),d={x:i,y:o},h=yield qP(e,u),p=qm(Bl(r)),g=jC(p);let b=d[g],T=d[p];s&&(b=LC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=LC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const S=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},S,{data:{x:S.x-i,y:S.y-o}})})()}}({limiter:Bee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Eu(t,n)||{};if(null==l)return{};const u=QP(c),d={x:e,y:i},h=HC(o),p=BC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",S=b?"bottom":"right",H=b?"clientHeight":"clientWidth",re=r.reference[p]+r.reference[h]-d[h]-r.floating[p],ce=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const ye=re/2-ce/2,be=pe/2-g[p]/2-1,Pe=Du(u[T],be),je=Du(u[S],be),Xe=Pe,Re=pe-g[p]-je,Je=pe/2-g[p]/2+ye,st=LC(Xe,Je,Re),Se=null!=Km(o)&&Je!=st&&r.reference[p]/2-(Je{o&&S.addEventListener("scroll",e,{passive:!0}),r&&S.addEventListener("resize",e)});const d=c&&s?function nte(t,n){let i,e=null;const o=Xa(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-Qm(u)+"px "+-Qm(o.clientWidth-(c+d))+"px "+-Qm(o.clientHeight-(u+h))+"px "+-Qm(c)+"px",threshold:jl(0,Du(1,l))||1};let re=!0;function ce(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!re)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}re=!1}try{e=new IntersectionObserver(ce,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(ce,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(S=>{let[H]=S;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Hl(t):null;return l&&function T(){const S=Hl(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&e(),b=S,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(S=>{o&&S.removeEventListener("scroll",e),r&&S.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function lte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:tte},e),r=mo({},o.platform,{_c:i});return Nee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function cte(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function ute(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function lr(){}function fte(t,n){for(const e in n)t[e]=n[e];return t}function uN(t){return t()}function dN(){return Object.create(null)}function pf(t){t.forEach(uN)}function GC(t){return"function"==typeof t}function Qa(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Au(t,n){t.appendChild(n)}function Gr(t,n,e){t.insertBefore(n,e||null)}function xr(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t){return document.createElement(t)}function hN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fN(t){return document.createTextNode(t)}function rb(){return fN(" ")}function ab(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function qn(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const bte=["width","height"];function pN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===bte.indexOf(i)?t[i]=n[i]:qn(t,i,n[i])}function ku(t,n,e){t.classList[e?"add":"remove"](n)}let gf;function mf(t){gf=t}function gN(){if(!gf)throw new Error("Function called outside component initialization");return gf}function UC(t){gN().$$.after_update.push(t)}const Iu=[],Ou=[];let Ru=[];const mN=[],vte=Promise.resolve();let WC=!1;function XC(t){Ru.push(t)}const JC=new Set;let Pu=0;function bN(){if(0!==Pu)return;const t=gf;do{try{for(;Pu{sb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Vl(t){t&&t.c()}function zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||XC(()=>{const a=t.$$.on_mount.map(uN).filter(GC);t.$$.on_destroy?t.$$.on_destroy.push(...a):pf(a),t.$$.on_mount=[]}),r.forEach(XC)}function $s(t,n){const e=t.$$;null!==e.fragment&&(function xte(t){const n=[],e=[];Ru.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),Ru=n}(e.after_update),pf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ka(t,n,e,i,o,r,a,s=[-1]){const l=gf;mf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:lr,not_equal:o,bound:dN(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:dN(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Dte(t,n){-1===t.$$.dirty[0]&&(Iu.push(t),function wte(){WC||(WC=!0,vte.then(bN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function pte(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Ete(t){let n,e,i,o,r;return{c(){n=Sa("button"),qn(n,"aria-label",e=t[3]?t[3]:null),qn(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],qn(n,"tabindex","0")},m(a,s){Gr(a,n,s),n.innerHTML=t[5],o||(r=ab(n,"click",function(){GC(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&qn(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&qn(n,"class",i),4&s&&(n.disabled=t[2])},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Tte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Ll(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class Mte extends qa{constructor(n){super(),Ka(this,n,Tte,Ete,Qa,{config:6,step:7})}}function yN(t,n,e){const i=t.slice();return i[2]=n[e],i}function _N(t){let n,e,i=t[1],o=[];for(let a=0;aDi(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),$l())},i(o){e||(Fn(i),e=!0)},o(o){Di(i),e=!1},d(o){o&&xr(n),i&&i.d()}}}function kte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Ite extends qa{constructor(n){super(),Ka(this,n,kte,Ate,Qa,{step:0})}}function Ote(t){let n,e,i,o,r;return{c(){n=Sa("button"),e=Sa("span"),e.textContent="\xd7",qn(e,"aria-hidden","true"),qn(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),qn(n,"class","shepherd-cancel-icon"),qn(n,"type","button")},m(a,s){Gr(a,n,s),Au(n,e),o||(r=ab(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&qn(n,"aria-label",i)},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Rte(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Pte extends qa{constructor(n){super(),Ka(this,n,Rte,Ote,Qa,{cancelIcon:0,step:2})}}function Nte(t){let n;return{c(){n=Sa("h3"),qn(n,"id",t[1]),qn(n,"class","shepherd-title")},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function Fte(t,n,e){let{labelId:i,element:o,title:r}=n;return UC(()=>{Ll(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Lte extends qa{constructor(n){super(),Ka(this,n,Fte,Nte,Qa,{labelId:1,element:0,title:2})}}function wN(t){let n,e;return n=new Lte({props:{labelId:t[0],title:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function CN(t){let n,e;return n=new Pte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function jte(t){let n,e,i,o=t[2]&&wN(t),r=t[3]&&t[3].enabled&&CN(t);return{c(){n=Sa("header"),o&&o.c(),e=rb(),r&&r.c(),qn(n,"class","shepherd-header")},m(a,s){Gr(a,n,s),o&&o.m(n,null),Au(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&Fn(o,1)):(o=wN(a),o.c(),Fn(o,1),o.m(n,e)):o&&(zl(),Di(o,1,1,()=>{o=null}),$l()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&Fn(r,1)):(r=CN(a),r.c(),Fn(r,1),r.m(n,null)):r&&(zl(),Di(r,1,1,()=>{r=null}),$l())},i(a){i||(Fn(o),Fn(r),i=!0)},o(a){Di(o),Di(r),i=!1},d(a){a&&xr(n),o&&o.d(),r&&r.d()}}}function Bte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Hte extends qa{constructor(n){super(),Ka(this,n,Bte,jte,Qa,{labelId:0,step:1})}}function Yte(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-text"),qn(n,"id",t[1])},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function zte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return UC(()=>{let{text:s}=r.options;Ll(s)&&(s=s.call(r)),PC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class $te extends qa{constructor(n){super(),Ka(this,n,zte,Yte,Qa,{descriptionId:1,element:0,step:2})}}function xN(t){let n,e;return n=new Hte({props:{labelId:t[1],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function SN(t){let n,e;return n=new $te({props:{descriptionId:t[0],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function DN(t){let n,e;return n=new Ite({props:{step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function Vte(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&xN(t),c=o&&SN(t),u=a&&DN(t);return{c(){n=Sa("div"),l&&l.c(),i=rb(),c&&c.c(),r=rb(),u&&u.c(),qn(n,"class","shepherd-content")},m(d,h){Gr(d,n,h),l&&l.m(n,null),Au(n,i),c&&c.m(n,null),Au(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&Fn(l,1)):(l=xN(d),l.c(),Fn(l,1),l.m(n,i)):l&&(zl(),Di(l,1,1,()=>{l=null}),$l()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&Fn(c,1)):(c=SN(d),c.c(),Fn(c,1),c.m(n,r)):c&&(zl(),Di(c,1,1,()=>{c=null}),$l()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&Fn(u,1)):(u=DN(d),u.c(),Fn(u,1),u.m(n,null)):u&&(zl(),Di(u,1,1,()=>{u=null}),$l())},i(d){s||(Fn(l),Fn(c),Fn(u),s=!0)},o(d){Di(l),Di(c),Di(u),s=!1},d(d){d&&xr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function Zte(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class Gte extends qa{constructor(n){super(),Ka(this,n,Zte,Vte,Qa,{descriptionId:0,labelId:1,step:2})}}function EN(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-arrow"),qn(n,"data-popper-arrow","")},m(e,i){Gr(e,n,i)},d(e){e&&xr(n)}}}function Ute(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&EN();i=new Gte({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function Kte(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function _te(t){gN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),UC(()=>{g!==u.options.classes&&function T(){(function S(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function ce(G){Ou[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class qte extends qa{constructor(n){super(),Ka(this,n,Kte,Ute,Qa,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class QC extends NC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?WP(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,UP(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function ste(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),PC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Dee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Ll(e.element)&&(e.element=e.element.call(t)),hf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Ll(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new qte({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Ll(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Cee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=RC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function ate(t,n){return{floatingUIOptions:RC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${FC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function See(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function xee(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),rte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function nne(t){let n,e,i,o,r;return{c(){n=hN("svg"),e=hN("path"),qn(e,"d",t[2]),qn(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Gr(a,n,s),Au(n,e),t[11](n),o||(r=ab(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&qn(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&qn(n,"class",i)},i:lr,o:lr,d(a){a&&xr(n),t[11](null),o=!1,r()}}}function MN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:MN(t.parentElement)}function one(t,n,e){let{element:i,openingProperties:o}=n;FC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),S()}function d(ce=0,G=0,pe,ye){if(ye){const{y:be,height:Pe}=function ine(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(ye,pe),{x:je,width:Xe,left:Re}=ye.getBoundingClientRect();e(4,o={width:Xe+2*ce,height:Pe+2*ce,x:(je||Re)-ce,y:be-ce,r:G})}else c()}function p(){e(1,r=!0)}c();const g=ce=>{ce.preventDefault()};function S(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=ce=>{"element"in ce&&e(0,i=ce.element),"openingProperties"in ce&&e(4,o=ce.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function tne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,ce=>{ce.stopPropagation()},o,()=>i,c,u,d,function h(ce){S(),ce.tour.options.useModalOverlay?(function H(ce){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=ce.options,ye=MN(ce.target),be=()=>{a=void 0,d(G,pe,ye,ce.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(ce),p()):u()},p,function re(ce){Ou[ce?"unshift":"push"](()=>{i=ce,e(0,i)})}]}class rne extends qa{constructor(n){super(),Ka(this,n,one,nne,Qa,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Zl=new NC,sne=typeof window>"u";class AN{constructor(){}}function cne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Zl,sne?{Tour:AN,Step:AN}:{Tour:class ane extends NC{constructor(n={}){return super(n),UP(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=WP(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Zl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof QC?i.tour=this:i=new QC(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Zl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=hf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Ll(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function ene(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Zl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}PC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Zl.activeTour=this}_setupModal(){this.modal=new rne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${FC()}`}},Step:QC});let kN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(cne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function lne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Zl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;I(7850);const dne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var re,S=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(re=e.wasmBinary);var ce=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Zn("no native wasm support detected");var G,Je,st,Mt,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(xe,fe,we){for(var Oe=fe+we,rt=fe;xe[rt]&&!(rt>=Oe);)++rt;if(rt-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,rt));for(var mt="";fe>10,56320|1023&zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function je(xe,fe){return xe?Pe(st,xe,fe):""}function en(){var xe=G.buffer;e.HEAP_DATA_VIEW=Mt=new DataView(xe),e.HEAP8=Je=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=st=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var an=[],sn=[],$o=[],ft=0,Pt=null,ri=null;function Zn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var dr;function Jr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Zu(xe){try{if(xe==dr&&re)return new Uint8Array(re);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Zn(fe)}}function Vb(xe,fe,we){return function cx(xe){return re||"function"!=typeof fetch?Promise.resolve().then(function(){return Zu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Zu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Zn(Oe)})}function uhe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function ux(xe){return Mt.getInt32(xe,!0)}function dx(xe){return Mt.getUint32(xe,!0)}function Zb(xe,fe){Mt.setUint32(xe,fe,!0)}function Tr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Oj(fe);return we&&function Xe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var rt=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Je,we,fe),we}function hx(xe){for(;xe.length>0;)xe.shift()(e)}function Of(xe,fe){Je.set(xe,fe)}function Gb(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Je[xe>>0];case"i16":return function fhe(xe){return Mt.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return ux(4*(xe>>2));case"float":return function dhe(xe){return Mt.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function hhe(xe){return Mt.getFloat64(xe,!0)}(8*(xe>>3));case"*":return dx(4*(xe>>2));default:Zn("invalid type for getValue: "+fe)}}e.locateFile?Jr(dr="soundswallower.web.wasm")||(dr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(dr)):dr=new URL(I(3970),I.b).href;var Rf={varargs:void 0,get:function(){return Rf.varargs+=4,ux(4*(Rf.varargs-4>>2))},getStr:function(xe){return je(xe)}};function She(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),en(),1}catch{}}var fx={};function Pf(){if(!Pf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in fx)void 0===fx[we]?delete fe[we]:fe[we]=fx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Pf.strings=Oe}return Pf.strings}var Fhe=[null,[],[]];function Lhe(xe,fe){var we=Fhe[xe];0===fe||10===fe?((1===xe?S:H)(Pe(we,0)),we.length=0):we.push(fe)}var Ub,Bhe={d:function phe(xe,fe,we){return Rf.varargs=we,0},g:function ghe(xe,fe){},i:function mhe(xe,fe,we){return Rf.varargs=we,0},r:function bhe(xe,fe,we,Oe){},e:function yhe(xe,fe,we,Oe){Rf.varargs=Oe},f:function _he(xe,fe){},n:function vhe(xe,fe,we,Oe,rt,mt,Dt){return-52},o:function whe(xe,fe,we,Oe,rt,mt){},j:function Che(){return Date.now()},m:function xhe(){return 2147483648},l:function Dhe(xe){var Hn,fe=st.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var rt=1;rt<=4;rt*=2){var mt=fe*(1+.2/rt);if(mt=Math.min(mt,xe+100663296),She(Math.min(we,(Hn=Math.max(xe,mt))+(65536-Hn%65536)%65536)))return!0}return!1},p:function Mhe(xe,fe){var we=0;return Pf().forEach(function(Oe,rt){var mt=fe+we;Zb(4*(xe+4*rt>>2),mt),function The(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Je[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function Ahe(xe,fe){var we=Pf();Zb(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(rt){Oe+=rt.length+1}),Zb(4*(fe>>2),Oe),0},a:function Ihe(xe,fe){!function khe(xe){(function ct(){return ce})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new uhe(xe))}(xe)},b:function Rhe(xe){return 52},h:function Phe(xe,fe,we,Oe){return 52},k:function Nhe(xe,fe,we,Oe,rt){return 70},c:function jhe(xe,fe,we,Oe){for(var rt=0,mt=0;mt>2)),Rt=dx(4*(fe+4>>2));fe+=8;for(var Hn=0;Hn>2),rt),0}},Oj=(function che(){var xe={a:Bhe};function fe(Oe,rt){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,en(),function sx(xe){sn.unshift(xe)}(e.asm.t),function xn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==Pt&&(clearInterval(Pt),Pt=null),ri)){var fe=ri;ri=null,fe()}}(),mt}if(function ai(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function lhe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Jr(fe)||"function"!=typeof fetch?Vb(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(rt){return WebAssembly.instantiateStreaming(rt,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),Vb(fe,we,Oe)})})})(re,dr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Oj=e._malloc=e.asm.K).apply(null,arguments)});function Rj(){function xe(){Ub||(Ub=!0,e.calledRun=!0,!pe&&(function ro(){hx(sn)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Er(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),$o.unshift(xe);var xe;hx($o)}()))}ft>0||(function yn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),an.unshift(xe);var xe;hx(an)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ri=function xe(){Ub||Rj(),Ub||(ri=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Pj(xe){return px.apply(this,arguments)}function px(){return(px=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Qr(xe){return gx.apply(this,arguments)}function gx(){return(gx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,rt=e._malloc(Oe);if(0==rt)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return Of(fe,rt),Je[rt+Oe]=0,e._s3file_init(rt,Oe-1)})).apply(this,arguments)}return Rj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function rpe(xe){return e.modelBase+xe},e.load_json=Pj,e.Decoder=class spe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=Tr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return je(e._config_serialize_json(fe))}set_config(fe,we){const Oe=Tr(fe),rt=e._decoder_config(this.cdecoder),mt=e._config_typeof(rt,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=Tr(we);e._config_set_str(rt,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(rt,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(rt,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,rt),e._free(we)}get_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&rt){const Dt=e._config_str(Oe,we);mt=0==Dt?null:je(Dt)}else 4&rt?mt=e._config_float(Oe,we):2&rt?mt=e._config_int(Oe,we):16&rt&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${rt} for parameter ${fe}`);return mt}has_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=0!=e._config_typeof(Oe,we);return e._free(we),rt}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Pj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Qr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),rt=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,rt,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Qr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Qr(fe),rt=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,rt,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,rt){var mt=this;return(0,y.Z)(function*(){const Dt=yield Qr(fe),Rt=yield Qr(we);var Hn,zi;try{Hn=yield Qr(Oe),zi=0}catch{Hn=0,zi=yield Qr(rt)}if(e._load_gmm(mt.cdecoder,Dt,Rt,zi,Hn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Qr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Qr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const rt=fe.get_config("jsgf");null!=rt&&(Oe=yield Qr(rt));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Qr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const rt=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(rt);Of(new Uint8Array(fe.buffer,fe.byteOffset,rt),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,rt/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),je(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const rt=je(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(rt)}lookup_word(fe){this.assert_initialized();const we=Tr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:je(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._endpointer_process(this.cep,rt);if(e._free(rt),0!=mt){const Dt=new Int16Array(Je.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,rt,we.length,mt);if(e._free(mt),e._free(rt),0!=Dt){const Rt=Gb(mt,"i32"),Hn=new Int16Array(Je.buffer,Dt,2*Rt);return Float32Array.from(Hn,zi=>zi>0?zi/32767:zi/32768)}return null}},e.ready});var lb,Vs=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Vs||{});let IN=(()=>{class t{constructor(){this.modelLoaded=!1,this.mode=Vs.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new lb.Decoder;return i.initialize().finally(()=>{e.modelLoaded=!0,i.delete()})})()}loadModule$(){return hi(void 0===lb?dne().then(e=>(lb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new _n(s=>{const l=new lb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zs=I(9884);const Nu=new WeakSet,ON=new WeakMap,qC=new WeakMap,RN=new WeakMap,e1=new WeakMap,cb=new WeakMap,PN=new WeakMap,t1=new WeakMap,n1=new WeakMap,o1=new WeakMap,NN={construct:()=>NN},FN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,LN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(FN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(FN)}return[e.join(";"),i]},jN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},BN=t=>{if(!(t=>{try{new new Proxy(t,NN)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Ur=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},ub=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},HN=(t,n,e,i)=>{const o=Ur(t,n),r=ub(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},bf=t=>Ur(PN,t),Fu=t=>{if(Nu.has(t))throw new Error("The AudioNode is already stored.");Nu.add(t),bf(t).forEach(n=>n(!0))},YN=t=>"port"in t,yf=t=>{if(!Nu.has(t))throw new Error("The AudioNode is not stored.");Nu.delete(t),bf(t).forEach(n=>n(!1))},r1=(t,n)=>{!YN(t)&&n.every(e=>0===e.size)&&yf(t)},xne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,db=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Da=()=>new DOMException("","IndexSizeError"),a1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Da():i}})},Ene={numberOfChannels:1},Yo=-34028234663852886e22,ko=-Yo,es=t=>Nu.has(t),Mne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Io=t=>Ur(ON,t),_f=t=>Ur(RN,t),s1=(t,n)=>{const{activeInputs:e}=Io(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||s1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:YN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=_f(o);void 0!==r&&r.activeInputs.forEach(([a])=>s1(a,n))}es(t)&&yf(t)},fb=t=>"context"in t,vf=t=>fb(t[0]),Gl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},$N=(t,n,[e,i],o)=>{Gl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},VN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Gl(r,[e,i],a=>a[0]===e,o)},Lu=t=>"inputs"in t,pb=(t,n,e,i)=>{if(Lu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},ZN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},GN=(t,n)=>{if(!bf(t).delete(n))throw new Error("Missing the expected event listener.")},UN=(t,n,e)=>{const i=Ur(t,n),o=ub(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},gb=(t,n,e,i)=>{Lu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},oi=t=>Ur(qC,t),wf=t=>Ur(e1,t),Ul=t=>t1.has(t),mb=t=>!Nu.has(t),WN=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),l1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},bb=t=>"context"in t,c1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Io(n),a=ZN(o[i],t,e);return null===a?[HN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(GN(t,r),a&&!n&&!Ul(t)&&gb(oi(t),oi(e),i,o)),es(e)){const{activeInputs:s}=Io(e);r1(e,s)}},u1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=_f(n),r=ZN(i,t,e);return null===r?[UN(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(GN(t,o),r&&!n&&!Ul(t)&&oi(t).disconnect(wf(e),i))};class XN{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function yb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const JN=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},_b=(t,n)=>{const e=[];for(let i=0;iS+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Io(n),p=yield((t,n)=>{const e=Ur(o1,t),i=oi(n);return Ur(e,i)})(i,n),g=_b(o.numberOfInputs,o.channelCount),b=_b(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((S,H)=>({...S,[H]:new Float32Array(128)}),{});for(let S=0;S0&&null!==e)for(let H=0;H{yb(e,T,H,c+re,S)});for(let H=0;H0===h.activeInputs[G].size?[]:ce),re=s(S/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let ce=0,G=0;ce{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},Mie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},vb=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Fie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Vie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Ri=()=>new DOMException("","InvalidStateError"),wb=()=>new DOMException("","InvalidAccessError"),noe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},KN=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},li=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Yi=(t,n)=>{li(t,n,"channelCount"),li(t,n,"channelCountMode"),li(t,n,"channelInterpretation")},qN=t=>"function"==typeof t.getFloatTimeDomainData,mi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},d1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},h1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},eF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),joe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),tF=(t,n)=>{const e=t.createBiquadFilter();return Yi(e,n),mi(e,n,"Q"),mi(e,n,"detune"),mi(e,n,"frequency"),mi(e,n,"gain"),li(e,n,"type"),e},Cf=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Yi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Ri()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Ri()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Ri()}})})(e),e},ju=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),nF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Yi(e,n),mi(e,n,"delayTime"),e},zo=(t,n)=>{const e=t.createGain();return Yi(e,n),mi(e,n,"gain"),e};function Woe(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function Xoe(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function iF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=Xoe(e,n),e[0]+=t[i];return e}const xf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),hre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},gre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},yre={disableNormalization:!1},Tre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},oF=()=>new DOMException("","UnknownError"),Rre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},rF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),aF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Sf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},sF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;sF(t,n,e+1e-7)}},f1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},lF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},p1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},cF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),ju(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Bu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},Xre=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Gl),Jre=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Gl),Qre=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(ub),uF=new WeakMap,Kre=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(uF),cr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Wr=typeof window>"u"?null:window,dF=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Yi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return li(o,i,"fftSize"),li(o,i,"maxDecibels"),li(o,i,"minDecibels"),li(o,i,"smoothingTimeConstant"),t(qN,()=>qN(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Io),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Io,g1,Ul),qre=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(dF,oi,oo),ei=(t=>n=>{const e=t.get(n);if(void 0===e)throw Ri();return e})(cb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Wr),Bn=(t=>n=>null!==t&&n instanceof t)(Ji),hF=new WeakMap,fF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Bu),ts=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Wr),m1=(t=>n=>null!==t&&n instanceof t)(ts),b1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Wr),pF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Wr),Hu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Wr),Ei=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(S,H,re,ce){super(re),this._context=S,this._nativeAudioNode=re;const G=u(S);d(G)&&!0!==e(WN,()=>WN(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=bb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{bb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(re),qC.set(this,re),PN.set(this,new Set),"closed"!==S.state&&H&&Fu(this),t(this,ce,re)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(S){this._nativeAudioNode.channelCount=S}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(S){this._nativeAudioNode.channelCountMode=S}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(S){this._nativeAudioNode.channelInterpretation=S}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(S,H=0,re=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const ce=u(this._context),G=g(ce);if(h(S)||p(S))throw r();if(fb(S)){const be=oi(S);try{const je=pb(this._nativeAudioNode,be,H,re),Xe=mb(this);(G||Xe)&&this._nativeAudioNode.disconnect(...je),"closed"!==this.context.state&&!Xe&&mb(S)&&Fu(S)}catch(je){throw 12===je.code?r():je}if(n(this,S,H,re,G)){const je=l([this],S);l1(je,i(G))}return S}const pe=wf(S);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||mb(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=_f(n),{outputs:a}=Io(t),s=bf(t),l=c=>{const u=oi(t),d=wf(n);if(c){const h=UN(r,t,e);$N(o,t,h,!1),!i&&!Ul(t)&&u.connect(d,e)}else{const h=((t,n,e)=>ub(t,i=>i[0]===n&&i[1]===e))(o,t,e);VN(r,h,!1),!i&&!Ul(t)&&u.disconnect(d,e)}};return!!Gl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),es(t)?$N(o,t,[e,l],!0):VN(r,[t,e,l],!0),!0)})(this,S,H,G)){const be=l([this],S);l1(be,i(G))}}disconnect(S,H,re){let ce;const G=u(this._context),pe=g(G);if(void 0===S)ce=((t,n)=>{const e=Io(t),i=[];for(const o of e.outputs)vf(o)?c1(t,n,...o):u1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof S){if(S<0||S>=this.numberOfOutputs)throw o();ce=((t,n,e)=>{const i=Io(t),o=[];for(const r of i.outputs)r[1]===e&&(vf(r)?c1(t,n,...r):u1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,S)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||fb(S)&&void 0!==re&&(re<0||re>=S.numberOfInputs))throw o();if(ce=((t,n,e,i,o)=>{const r=Io(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(vf(a)?c1(t,n,...a):u1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,S,H,re),0===ce.length)throw r()}for(const ye of ce){const be=l([this],ye);l1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,S,H)=>{const{activeInputs:re,passiveInputs:ce}=r(b),{outputs:G}=r(g),pe=s(g),ye=be=>{const Pe=l(b),je=l(g);if(be){const Xe=HN(ce,g,T,S);t(re,g,Xe,!1),!H&&!d(g)&&e(je,Pe,T,S),h(b)&&Fu(b)}else{const Xe=i(re,g,T,S);n(ce,S,Xe,!1),!H&&!d(g)&&o(je,Pe,T,S);const Re=a(b);if(0===Re)u(b)&&r1(b,re);else{const Je=p.get(b);void 0!==Je&&clearTimeout(Je),p.set(b,setTimeout(()=>{u(b)&&r1(b,re)},1e3*Re))}}};return!!c(G,[b,T,S],be=>be[0]===b&&be[1]===T&&be[2]===S,!0)&&(pe.add(ye),u(g)?t(re,g,[T,S,ye],!0):n(ce,S,[g,T,ye],!0),!0)}})(Xre,Jre,pb,Qre,gb,Io,Kre,bf,oi,Gl,es,Ul,mb),cr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(vf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(t1,gb,Io,oi,wf,es),Da,wb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(vf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(pb,t1,Io,oi,wf,ei,es,Bn),((t,n,e)=>function i(o,r){const a=fb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(hF,Io,Ur),fF,ei,m1,b1,pF,Bn,Hu),eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...xne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ei,qre,Da,dF,ei,Bn),y1=new WeakSet,gF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Wr),mF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),_1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Bj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Ene,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),a1(g)):n(db,()=>db(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Bj.prototype||t.has(u)}}})(y1,cr,yo,gF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(gF),_1,v1),Cb=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})(zo),bF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(g1,_f,Ul),Ea=(t=>(n,e,i)=>t(e,n,i))(bF),Yu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Yi(p,h),mi(p,h,"playbackRate"),li(p,h,"buffer"),li(p,h,"loop"),li(p,h,"loopEnd"),li(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Ri();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||d1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||h1(p),t(d,p),p})(Cb,cr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},f1,lF,p1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Sf),cF),Ta=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(_f),bF),nae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,Yu,oi,Ta,oo),Xr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,S=null)=>{const H=b.value,re=new Zs.AutomationEventList(H),ce=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(re):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===S?b.minValue:S},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===ce&&re.flush(p.context.currentTime),re.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const ye=Array.from(re).pop();null===ce&&re.flush(p.context.currentTime),re.add(o(pe));const be=Array.from(re).pop();b.cancelScheduledValues(pe),ye!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===ce&&re.flush(p.context.currentTime),re.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,ye){if(0===pe)throw new RangeError;if(!Number.isFinite(ye)||ye<0)throw new RangeError;const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(a(pe,ye)),b.exponentialRampToValueAtTime(pe,ye),G},linearRampToValueAtTime(pe,ye){const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(s(pe,ye)),b.linearRampToValueAtTime(pe,ye),G},setTargetAtTime:(pe,ye,be)=>(null===ce&&re.flush(p.context.currentTime),re.add(l(pe,ye,be)),b.setTargetAtTime(pe,ye,be),G),setValueAtTime:(pe,ye)=>(null===ce&&re.flush(p.context.currentTime),re.add(c(pe,ye)),b.setValueAtTime(pe,ye),G),setValueCurveAtTime(pe,ye,be){const Pe=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const je=ye+be,Xe=p.context.sampleRate,Re=Math.ceil(ye*Xe),Je=Math.floor(je*Xe),st=Je-Re,ht=new Float32Array(st);for(let He=0;He(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(RN),hF,e1,0,Zs.createCancelAndHoldAutomationEvent,Zs.createCancelScheduledValuesAutomationEvent,Zs.createExponentialRampToValueAutomationEvent,Zs.createLinearRampToValueAutomationEvent,Zs.createSetTargetAutomationEvent,Zs.createSetValueAutomationEvent,Zs.createSetValueCurveAutomationEvent,ts,sF),iae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Mne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,ko,Yo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Fu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),es(this)&&yf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ei,nae,Xr,Ri,Yu,ei,Bn,Bu),oae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ei,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Da,Ri,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})(zo,Sf),ei,Bn,oo),rae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,tF,oi,Ta,oo),Xl=(t=>(n,e)=>t.set(n,e))(uF),aae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...oie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,ko,Yo),this._detune=n(this,g,p.detune,1200*Math.log2(ko),-1200*Math.log2(ko)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(ko),Yo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ei,Xr,rae,wb,tF,ei,Bn,Xl),Gs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Gl,b1),sae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Ri,Gs),Us=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Yi(o,i),o})(ts,sae),lae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Us,oi,oo),cae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...lie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ei,lae,Us,ei,Bn),uae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Cf,oi,oo),dae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...die,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ei,uae,Cf,ei,Bn),hae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i(ju(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Cb,Yu,zo,Gs),zu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Yi(s,a),mi(s,a,"offset"),n(i,()=>i(r))||d1(s),n(o,()=>o(r))||h1(s),t(r,s),s})(Cb,cr,hae,f1,p1),fae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,zu,oi,Ta,oo),pae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...bie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,ko,Yo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ei,Xr,fae,zu,ei,Bn,Bu),yF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Yi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),li(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Sf),gae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(yF,oi,oo),mae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...wie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ei,gae,yF,ei,Bn,Xl),bae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ea,nF,oi,Ta,oo),yae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Mie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ei,Xr,bae,nF,ei,Bn,Xl),_F=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Yi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return mi(i,e,"attack"),mi(i,e,"knee"),mi(i,e,"ratio"),mi(i,e,"release"),mi(i,e,"threshold"),i})(yo),_ae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,_F,oi,Ta,oo),vae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Fie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ei,Xr,_ae,_F,yo,ei,Bn,Xl),wae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,zo,oi,Ta,oo),Cae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Vie,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,ko,Yo)}get gain(){return this._gain}})(Ei,Xr,wae,zo,ei,Bn),xae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=eF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Pe=be.inputBuffer,je=be.outputBuffer,Xe=Pe.numberOfChannels;for(let Re=0;ReS.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>S.dispatchEvent(be[0]),getFrequencyResponse(be,Pe,je){if(be.length!==Pe.length||Pe.length!==je.length)throw t();const Xe=be.length;for(let Re=0;ReS.removeEventListener(be[0],be[1],be[2])},S)})(wb,Ri,xf,yo),xb=((t,n,e,i)=>o=>t(Wl,()=>Wl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(cr,zo,xf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})(zo,Ji)),Sae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const S=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,S,S.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Yi(o,i),o})(xae),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...noe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw wb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ei,Dae,Sae,ei,Bn,Xl),Tae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:S,upX:H,upY:re,upZ:ce}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),ye=a(c);let be=!1,Pe=[0,0,-1,0,1,0],je=[0,0,0];const Xe=()=>{if(be)return;be=!0;const ht=i(c,256,9,0);ht.onaudioprocess=({inputBuffer:Se})=>{const He=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];He.some((nt,St)=>nt!==Pe[St])&&(u.setOrientation(...He),Pe=He);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((nt,St)=>nt!==je[St])&&(u.setPosition(...We),je=We)},pe.connect(ht)},Re=ht=>Se=>{Se!==Pe[ht]&&(Pe[ht]=Se,u.setOrientation(...Pe))},Je=ht=>Se=>{Se!==je[ht]&&(je[ht]=Se,u.setPosition(...je))},st=(ht,Se,He)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ht),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const nt=t({context:l},ye,We.offset,ko,Yo);return s(nt,"value",St=>()=>St.call(nt),St=>Mt=>{try{St.call(nt,Mt)}catch(en){if(9!==en.code)throw en}Xe(),ye&&He(Mt)}),nt.cancelAndHoldAtTime=(St=nt.cancelAndHoldAtTime,ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en}),nt.cancelScheduledValues=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.cancelScheduledValues),nt.exponentialRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.exponentialRampToValueAtTime),nt.linearRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.linearRampToValueAtTime),nt.setTargetAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setTargetAtTime),nt.setValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueAtTime),nt.setValueCurveAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueCurveAtTime),nt;var St};return{forwardX:st(0,0,Re(0)),forwardY:st(1,0,Re(1)),forwardZ:st(2,-1,Re(2)),positionX:st(6,0,Je(0)),positionY:st(7,0,Je(1)),positionZ:st(8,0,Je(2)),upX:st(3,0,Re(3)),upY:st(4,1,Re(4)),upZ:st(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return S},get upX(){return H},get upY(){return re},get upZ(){return ce}}})(Xr,Us,zu,xf,yo,rF,Bn,Sf),vF=new WeakMap,w1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,cb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(oae,Tae,fF,Bn,vF,Bu),wF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Yi(l,s),mi(l,s,"detune"),mi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):li(l,s,"type"),n(e,()=>e(a))||d1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||h1(l),t(a,l),l})(Cb,cr,f1,lF,p1,cF),Mae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ea,wF,oi,Ta,oo),Aae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...hre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ei,Xr,wF,Mae,ei,Bn,Bu),CF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Yu),kae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Yi(c,l),Yi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,S=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return S},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,ye=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);ye[0]=G[0],be[0]=-G[pe-1];const Pe=Math.ceil((pe+1)/2),je=(pe+1)/2-1;for(let Xe=1;Xed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o(ju(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(S)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(CF,Ri,zo,aF,Gs),Sb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Yi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();li(c,{curve:u},"curve"),li(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(CF,Ri,kae,aF,Gs,ts,Sf),Iae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:S,orientationZ:H,panningModel:re,positionX:ce,positionY:G,positionZ:pe,refDistance:ye,rolloffFactor:be,...Pe})=>{const je=u.createPanner();if(Pe.channelCount>2||"max"===Pe.channelCountMode)throw a();Yi(je,Pe);const Xe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Xe,channelInterpretation:"speakers",numberOfInputs:6}),Je=i(u,{...Pe,gain:1}),st=i(u,{...Xe,gain:1}),ht=i(u,{...Xe,gain:0}),Se=i(u,{...Xe,gain:0}),He=i(u,{...Xe,gain:0}),We=i(u,{...Xe,gain:0}),nt=i(u,{...Xe,gain:0}),St=o(u,256,6,1),Mt=r(u,{...Xe,curve:new Float32Array([1,1]),oversample:"none"});let en=[T,S,H],Rn=[ce,G,pe];const an=new Float32Array(1);St.onaudioprocess=({inputBuffer:ct})=>{const yn=[l(ct,an,0),l(ct,an,1),l(ct,an,2)];yn.some((Er,Xs)=>Er!==en[Xs])&&(je.setOrientation(...yn),en=yn);const ro=[l(ct,an,3),l(ct,an,4),l(ct,an,5)];ro.some((Er,Xs)=>Er!==Rn[Xs])&&(je.setPosition(...ro),Rn=ro)},Object.defineProperty(ht.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(He.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(nt.gain,"defaultValue",{get:()=>0});const sn={get bufferSize(){},get channelCount(){return je.channelCount},set channelCount(ct){if(ct>2)throw a();Je.channelCount=ct,je.channelCount=ct},get channelCountMode(){return je.channelCountMode},set channelCountMode(ct){if("max"===ct)throw a();Je.channelCountMode=ct,je.channelCountMode=ct},get channelInterpretation(){return je.channelInterpretation},set channelInterpretation(ct){Je.channelInterpretation=ct,je.channelInterpretation=ct},get coneInnerAngle(){return je.coneInnerAngle},set coneInnerAngle(ct){je.coneInnerAngle=ct},get coneOuterAngle(){return je.coneOuterAngle},set coneOuterAngle(ct){je.coneOuterAngle=ct},get coneOuterGain(){return je.coneOuterGain},set coneOuterGain(ct){if(ct<0||ct>1)throw n();je.coneOuterGain=ct},get context(){return je.context},get distanceModel(){return je.distanceModel},set distanceModel(ct){je.distanceModel=ct},get inputs(){return[Je]},get maxDistance(){return je.maxDistance},set maxDistance(ct){if(ct<0)throw new RangeError;je.maxDistance=ct},get numberOfInputs(){return je.numberOfInputs},get numberOfOutputs(){return je.numberOfOutputs},get orientationX(){return st.gain},get orientationY(){return ht.gain},get orientationZ(){return Se.gain},get panningModel(){return je.panningModel},set panningModel(ct){je.panningModel=ct},get positionX(){return He.gain},get positionY(){return We.gain},get positionZ(){return nt.gain},get refDistance(){return je.refDistance},set refDistance(ct){if(ct<0)throw new RangeError;je.refDistance=ct},get rolloffFactor(){return je.rolloffFactor},set rolloffFactor(ct){if(ct<0)throw new RangeError;je.rolloffFactor=ct},addEventListener:(...ct)=>Je.addEventListener(ct[0],ct[1],ct[2]),dispatchEvent:(...ct)=>Je.dispatchEvent(ct[0]),removeEventListener:(...ct)=>Je.removeEventListener(ct[0],ct[1],ct[2])};return d!==sn.coneInnerAngle&&(sn.coneInnerAngle=d),h!==sn.coneOuterAngle&&(sn.coneOuterAngle=h),p!==sn.coneOuterGain&&(sn.coneOuterGain=p),g!==sn.distanceModel&&(sn.distanceModel=g),b!==sn.maxDistance&&(sn.maxDistance=b),T!==sn.orientationX.value&&(sn.orientationX.value=T),S!==sn.orientationY.value&&(sn.orientationY.value=S),H!==sn.orientationZ.value&&(sn.orientationZ.value=H),re!==sn.panningModel&&(sn.panningModel=re),ce!==sn.positionX.value&&(sn.positionX.value=ce),G!==sn.positionY.value&&(sn.positionY.value=G),pe!==sn.positionZ.value&&(sn.positionZ.value=pe),ye!==sn.refDistance&&(sn.refDistance=ye),be!==sn.rolloffFactor&&(sn.rolloffFactor=be),(1!==en[0]||0!==en[1]||0!==en[2])&&je.setOrientation(...en),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&je.setPosition(...Rn),c(ju(sn,je),()=>{Je.connect(je),t(Je,Mt,0,0),Mt.connect(st).connect(Re,0,0),Mt.connect(ht).connect(Re,0,1),Mt.connect(Se).connect(Re,0,2),Mt.connect(He).connect(Re,0,3),Mt.connect(We).connect(Re,0,4),Mt.connect(nt).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Je.disconnect(je),s(Je,Mt,0,0),Mt.disconnect(st),st.disconnect(Re),Mt.disconnect(ht),ht.disconnect(Re),Mt.disconnect(Se),Se.disconnect(Re),Mt.disconnect(He),He.disconnect(Re),Mt.disconnect(We),We.disconnect(Re),Mt.disconnect(nt),nt.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(pb,Ri,Us,zo,xf,Sb,yo,gb,rF,Gs),xF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Yi(i,e),mi(i,e,"orientationX"),mi(i,e,"orientationY"),mi(i,e,"orientationZ"),mi(i,e,"positionX"),mi(i,e,"positionY"),mi(i,e,"positionZ"),li(i,e,"coneInnerAngle"),li(i,e,"coneOuterAngle"),li(i,e,"coneOuterGain"),li(i,e,"distanceModel"),li(i,e,"maxDistance"),li(i,e,"panningModel"),li(i,e,"refDistance"),li(i,e,"rolloffFactor"),i)})(Iae),Oae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,S=r(g);const H={channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation},re={...H,coneInnerAngle:S.coneInnerAngle,coneOuterAngle:S.coneOuterAngle,coneOuterGain:S.coneOuterGain,distanceModel:S.distanceModel,maxDistance:S.maxDistance,panningModel:S.panningModel,refDistance:S.refDistance,rolloffFactor:S.rolloffFactor},ce=bo(S,b);if("bufferSize"in S)T=i(b,{...H,gain:1});else if(!ce){const G={...re,orientationX:S.orientationX.value,orientationY:S.orientationY.value,orientationZ:S.orientationZ.value,positionX:S.positionX.value,positionY:S.positionY.value,positionZ:S.positionZ.value};S=o(b,G)}if(u.set(b,null===T?S:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Je=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Je.connect(Re.destination),d=(0,y.Z)(function*(){const st=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ht=(0,y.Z)(function*(Se,He){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===He?1:0});return yield s(Re,Se,We.offset),We});return function(Se,He){return ht.apply(this,arguments)}}()));for(let ht=0;ht<6;ht+=1)st[ht].connect(Je,0,ht),st[ht].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const ye=[];for(let Re=0;Reht!==be[Se])||st.some((ht,Se)=>ht!==Pe[Se])){be=Je,Pe=st;const ht=Re/b.sampleRate;je.gain.setValueAtTime(0,ht),je=i(b,{...H,gain:0}),Xe=o(b,{...re,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Pe[0],positionY:Pe[1],positionZ:Pe[2]}),je.gain.setValueAtTime(1,ht),pe.connect(je).connect(Xe.inputs[0]),Xe.connect(T)}}return T}return ce?(yield t(b,g.orientationX,S.orientationX),yield t(b,g.orientationY,S.orientationY),yield t(b,g.orientationZ,S.orientationZ),yield t(b,g.positionX,S.positionX),yield t(b,g.positionY,S.positionY),yield t(b,g.positionZ,S.positionZ)):(yield s(b,g.orientationX,S.orientationX),yield s(b,g.orientationY,S.orientationY),yield s(b,g.orientationZ,S.orientationZ),yield s(b,g.positionX,S.positionX),yield s(b,g.positionY,S.positionY),yield s(b,g.positionZ,S.positionZ)),Lu(S)?yield l(g,b,S.inputs[0]):yield l(g,b,S),S});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ea,Us,zu,zo,xF,oi,Ji,Ta,oo,xb),Rae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...gre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,ko,Yo),this._orientationY=n(this,p,h.orientationY,ko,Yo),this._orientationZ=n(this,p,h.orientationZ,ko,Yo),this._positionX=n(this,p,h.positionX,ko,Yo),this._positionY=n(this,p,h.positionY,ko,Yo),this._positionZ=n(this,p,h.positionZ,ko,Yo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ei,Xr,xF,Oae,ei,Bn,Xl),Pae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Da),Nae=((t,n,e,i)=>class Hj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...yre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Hj.prototype||e.has(r)}})(Pae,ei,new WeakSet),Fae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,S,H)=>{if(1===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385);for(let Pe=0;Pe<16385;Pe+=1){const je=Pe/16384*l;H[Pe]=Math.cos(je),re[Pe]=Math.sin(je)}const ce=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),ye=e(g,{...c,gain:0}),be=i(g,{...u,curve:re});return{connectGraph(){b.connect(ce),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(ye),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(ce.gain),be.connect(ye.gain),ce.connect(S,0,0),ye.connect(S,0,1)},disconnectGraph(){b.disconnect(ce),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(ye),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(ce.gain),be.disconnect(ye.gain),ce.disconnect(S,0,0),ye.disconnect(S,0,1)}}})(g,T,S,H);if(2===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385),ce=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let He=0;He<16385;He+=1)if(He>pe){const We=(He-pe)/(16384-pe)*l;H[He]=Math.cos(We),re[He]=Math.sin(We),ce[He]=0,G[He]=1}else{const We=He/(16384-pe)*l;H[He]=1,re[He]=0,ce[He]=Math.cos(We),G[He]=Math.sin(We)}const ye=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Pe=i(g,{...u,curve:H}),je=e(g,{...c,gain:0}),Xe=i(g,{...u,curve:re}),Re=i(g,{...u,curve:s}),Je=e(g,{...c,gain:0}),st=i(g,{...u,curve:ce}),ht=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(ye),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),ye.connect(be,0),ye.connect(je,0),ye.connect(Je,1),ye.connect(ht,1),Re.connect(T),T.connect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.connect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.connect(void 0===st.inputs?st:st.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.connect(be.gain),Xe.connect(je.gain),st.connect(Je.gain),Se.connect(ht.gain),be.connect(S,0,0),Je.connect(S,0,0),je.connect(S,0,1),ht.connect(S,0,1)},disconnectGraph(){b.disconnect(ye),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),ye.disconnect(be,0),ye.disconnect(je,0),ye.disconnect(Je,1),ye.disconnect(ht,1),Re.disconnect(T),T.disconnect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.disconnect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.disconnect(void 0===st.inputs?st:st.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.disconnect(be.gain),Xe.disconnect(je.gain),st.disconnect(Je.gain),Se.disconnect(ht.gain),be.disconnect(S,0,0),Je.disconnect(S,0,0),je.disconnect(S,0,1),ht.disconnect(S,0,1)}}})(g,T,S,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:S,...H})=>{if("max"===T)throw o();const re=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),ce=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:S});let{connectGraph:pe,disconnectGraph:ye}=p(g,b,ce,G,re);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return ce.channelCount},set channelCount(Re){ce.channelCount!==Re&&(Pe&&ye(),({connectGraph:pe,disconnectGraph:ye}=p(g,Re,ce,G,re)),Pe&&pe()),ce.channelCount=Re},get channelCountMode(){return ce.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();ce.channelCountMode=Re},get channelInterpretation(){return ce.channelInterpretation},set channelInterpretation(Re){ce.channelInterpretation=Re},get context(){return ce.context},get inputs(){return[ce]},get numberOfInputs(){return ce.numberOfInputs},get numberOfOutputs(){return ce.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>ce.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>ce.dispatchEvent(Re[0]),removeEventListener:(...Re)=>ce.removeEventListener(Re[0],Re[1],Re[2])};let Pe=!1;return r(ju(be,re),()=>{pe(),Pe=!0},()=>{ye(),Pe=!1})}})(Us,Cf,zo,Sb,yo,Gs),SF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Yi(r,i),mi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Fae,yo),Lae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),Lu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,SF,oi,Ta,oo),jae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Tre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ei,Xr,SF,Lae,ei,Bn),Bae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Sb,oi,oo),Hae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Rre,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ei,Ri,Sb,Bae,ei,Bn,Xl),DF=(t=>null!==t&&t.isSecureContext)(Wr),C1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Wr),EF=new WeakMap,Yae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(EF,Ji),zae=DF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const S=u.get(g);if(void 0!==S&&S.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const re=r(g),ce=void 0===re.audioWorklet?o(b).then(([G,pe])=>{const[ye,be]=LN(G,pe);return e(`${ye};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(re.currentTime,re.sampleRate,()=>G(class{},void 0,(pe,ye)=>{if(""===pe.trim())throw n();const be=n1.get(re);if(void 0!==be){if(be.has(pe))throw n();BN(ye),jN(ye.parameterDescriptors),be.set(pe,ye)}else BN(ye),jN(ye.parameterDescriptors),n1.set(re,new Map([[pe,ye]]))},re.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],ye])=>{const be=p+1;p=be;const[Pe,je]=LN(G,pe),ht=new Blob([`${Pe};((AudioWorkletProcessor,registerProcessor)=>{${je}\n})(${ye?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${ye?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${ye?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ht);return re.audioWorklet.addModule(Se,T).then(()=>{if(s(re))return re;const He=a(re);return He.audioWorklet.addModule(Se,T).then(()=>He)}).then(He=>{if(null===l)throw new SyntaxError;try{new l(He,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,ce]])):H.set(b,ce),ce.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),ce}})(cr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Wr),C1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ei,Yae,Bn,Hu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Hu,Ji),Wr):void 0,$ae=((t,n)=>e=>t(e)||n(e))(m1,Bn),Vae=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(QN(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield QN(h)}catch{}});return function(){return H.apply(this,arguments)}}(),S=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),a1(H)),t.add(H),T().then(()=>g(H))},H=>{S(null===H?new DOMException("","EncodingError"):H)})}catch(H){S(H)}})})(y1,cr,0,0,new WeakSet,ei,$ae,db,Wl,_1,v1),TF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,S,H,re)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(ye,be)=>t(this,ye,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,ye){return new e({length:pe,numberOfChannels:G,sampleRate:ye})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,ye={disableNormalization:!1}){return new S(this,{...ye,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new re(this)}decodeAudioData(G,pe,ye){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof ye&&ye(be),be})}})(zae,eae,tae,iae,aae,cae,dae,pae,mae,Vae,yae,vae,Cae,Eae,w1,Aae,Rae,Nae,jae,Hae),Zae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ei,0,ei,Bn),Gae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Yi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...yoe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ei,0,ei,Bn),Uae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ei,0,ei,Bn),Wae=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Ri,Bn),Xae=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ei,Wae,ei),Jae=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{s1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(TF,Ri,yo,oF,Zae,Gae,Uae,Xae,ts),x1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(vF),MF=((t=>{})(x1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return bb(e)?r.connect(e,0,o):r.connect(e,0)})(Da)),Kae=(t=>(n,e)=>{t(n).delete(e)})(x1),AF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?vb(t,n,e).disconnect():bb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?vb(t,n,i).disconnect(e,0):vb(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):vb(t,n,i).disconnect(e,0))(Da),kF=new WeakMap,qae=((t,n)=>e=>n(t,e))(kF,Ur),ese=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const S=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(S.some(ft=>ft<1))throw l();if(S.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,re=S.reduce((ft,Pt)=>ft+Pt,0),ce=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+ce>6||re>6)throw l();const G=new MessageChannel,pe=[],ye=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===Pt?ko:Pt},minValue:{get:()=>void 0===ri?Yo:ri}}),be.push(xn)}const Pe=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+ce)}),je=eF(g,p.sampleRate),Xe=s(p,je,H+ce,Math.max(1,re)),Re=o(p,{channelCount:Math.max(1,re),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,re)}),Je=[];for(let ft=0;ft{const ri=be[Pt];return ri.connect(Pe,0,H+Pt),ri.start(0),[ft,ri.offset]}));Pe.connect(Xe);let ht=T.channelInterpretation,Se=null;const He=0===T.numberOfOutputs?[Xe]:Je,We={get bufferSize(){return je},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ht},set channelInterpretation(ft){for(const Pt of pe)Pt.channelInterpretation=ft;ht=ft},get context(){return Xe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return st},get port(){return G.port2},addEventListener:(...ft)=>Xe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,He),disconnect:c.bind(null,He),dispatchEvent:(...ft)=>Xe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Xe.removeEventListener(ft[0],ft[1],ft[2])},nt=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...Pt)=>{if("message"===Pt[0]){const ri="function"==typeof Pt[1]?Pt[1]:"object"==typeof Pt[1]&&null!==Pt[1]&&"function"==typeof Pt[1].handleEvent?Pt[1].handleEvent:null;if(null!==ri){const ai=nt.get(Pt[1]);void 0!==ai?Pt[1]=ai:(Pt[1]=xn=>{u(p.currentTime,p.sampleRate,()=>ri(xn))},nt.set(ri,Pt[1]))}}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])}),G.port1.removeEventListener=(ft=>(...Pt)=>{if("message"===Pt[0]){const ri=nt.get(Pt[1]);void 0!==ri&&(nt.delete(Pt[1]),Pt[1]=ri)}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let Mt=null;((t,n,e,i)=>{let o=o1.get(t);void 0===o&&(o=new WeakMap,o1.set(t,o));const r=joe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>Mt=ft);const Rn=_b(T.numberOfInputs,T.channelCount),an=_b(T.numberOfOutputs,S),sn=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:Pt})=>({...ft,[Pt]:new Float32Array(128)}),{});let $o=!0;const Vn=()=>{T.numberOfOutputs>0&&Xe.disconnect(Re);for(let ft=0,Pt=0;ft{if(null!==Mt){const ri=d(We);for(let ai=0;ai{yb(ft,sn,xn,H+Zn,ai)});for(let xn=0;xn{if(ri[Jr].size>0)return ct.set(Jr,je/128),Vo;const Zu=ct.get(Jr);return void 0===Zu?[]:(Vo.every(cx=>cx.every(Vb=>0===Vb))&&(1===Zu?ct.delete(Jr):ct.set(Jr,Zu-1)),Vo)});$o=u(p.currentTime+ai/p.sampleRate,p.sampleRate,()=>Mt.process(xn,an,sn));for(let Vo=0,Jr=0;VoXe.connect(ro).connect(p.destination),Xs=()=>{Xe.disconnect(ro),ro.disconnect()};return Er(),h(We,()=>{if($o){Xs(),T.numberOfOutputs>0&&Xe.connect(Re);for(let ft=0,Pt=0;ft{$o&&(Er(),Vn()),yn=!1})})(MF,Da,Ri,Us,Cf,zu,zo,xf,yo,AF,C1,qae,Gs);let Db=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(Ua(s=>(this.toastr.error(s.message,$localize`Hmm, the file is unreachable. Please try again later.`,{timeOut:1e4}),Tt(s))),Nt(s=>s),io(1))}loadAudioBufferFromFile$(e,i){var o=new Jae({sampleRate:i});return hi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(vl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ur={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI"},"private":true,"singleFileBundleVersion":"1.5.1","singleFileBundleTimestamp":"2024-10-18+17-15-26"}')},rse={title:$localize`Welcome to ReadAlong Studio`,text:$localize`Creating a ReadAlong is easy!\ +(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,I)=>{var y={"./read-along.entry.js":[9154,154]};function z(E){if(!I.o(y,E))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+E+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[E],k=v[0];return I.e(v[1]).then(()=>I(k))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},3442:(C,de,I)=>{"use strict";I.d(de,{b:()=>ti,g:()=>B,h:()=>K,r:()=>os});var y=I(5861);let E,v,k=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",P={},U=ne=>"object"==(ne=typeof ne)||"function"===ne;function X(ne){var N,Ie,Ee;return null!==(Ee=null===(Ie=null===(N=ne.head)||void 0===N?void 0:N.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const K=(ne,N,...Ie)=>{let Ee=null,Ve=null,it=!1,qe=!1;const ot=[],bt=wt=>{for(let Ot=0;Otwt[Ot]).join(" "))}}if("function"==typeof ne)return ne(null===N?{}:N,ot,se);const vt=q(ne,null);return vt.$attrs$=N,ot.length>0&&(vt.$children$=ot),vt.$key$=Ve,vt},q=(ne,N)=>({$flags$:0,$tag$:ne,$text$:N,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},se={forEach:(ne,N)=>ne.map(Q).forEach(N),map:(ne,N)=>ne.map(Q).map(N).map(le)},Q=ne=>({vattrs:ne.$attrs$,vchildren:ne.$children$,vkey:ne.$key$,vname:ne.$name$,vtag:ne.$tag$,vtext:ne.$text$}),le=ne=>{if("function"==typeof ne.vtag){const Ie=Object.assign({},ne.vattrs);return ne.vkey&&(Ie.key=ne.vkey),ne.vname&&(Ie.name=ne.vname),K(ne.vtag,Ie,...ne.vchildren||[])}const N=q(ne.vtag,ne.vtext);return N.$attrs$=ne.vattrs,N.$children$=ne.vchildren,N.$key$=ne.vkey,N.$name$=ne.vname,N},B=ne=>fr(ne).$hostElement$,f=new WeakMap,D=(ne,N)=>"sc-"+ne.$tagName$,R=(ne,N,Ie,Ee,Ve,it)=>{if(Ie!==Ee){let qe=kr(ne,N),ot=N.toLowerCase();if("class"===N){const bt=ne.classList,vt=A(Ie),wt=A(Ee);bt.remove(...vt.filter(Ot=>Ot&&!wt.includes(Ot))),bt.add(...wt.filter(Ot=>Ot&&!vt.includes(Ot)))}else if("style"===N){for(const bt in Ie)(!Ee||null==Ee[bt])&&(bt.includes("-")?ne.style.removeProperty(bt):ne.style[bt]="");for(const bt in Ee)(!Ie||Ee[bt]!==Ie[bt])&&(bt.includes("-")?ne.style.setProperty(bt,Ee[bt]):ne.style[bt]=Ee[bt])}else if("key"!==N)if("ref"===N)Ee&&Ee(ne);else if(qe||"o"!==N[0]||"n"!==N[1]){const bt=U(Ee);if((qe||bt&&null!==Ee)&&!Ve)try{if(ne.tagName.includes("-"))ne[N]=Ee;else{const wt=Ee??"";"list"===N?qe=!1:(null==Ie||ne[N]!=wt)&&(ne[N]=wt)}}catch{}let vt=!1;ot!==(ot=ot.replace(/^xlink\:?/,""))&&(N=ot,vt=!0),null==Ee||!1===Ee?(!1!==Ee||""===ne.getAttribute(N))&&(vt?ne.removeAttributeNS(x,N):ne.removeAttribute(N)):(!qe||4&it||Ve)&&!bt&&(Ee=!0===Ee?"":Ee,vt?ne.setAttributeNS(x,N,Ee):ne.setAttribute(N,Ee))}else if(N="-"===N[2]?N.slice(3):kr(rs,ot)?ot.slice(2):ot[2]+N.slice(3),Ie||Ee){const bt=N.endsWith(_);N=N.replace(he,""),Ie&&yi.rel(ne,N,Ie,bt),Ee&&yi.ael(ne,N,Ee,bt)}}},Z=/\s/,A=ne=>ne?ne.split(Z):[],_="Capture",he=new RegExp(_+"$"),ue=(ne,N,Ie,Ee)=>{const Ve=11===N.$elm$.nodeType&&N.$elm$.host?N.$elm$.host:N.$elm$,it=ne&&ne.$attrs$||P,qe=N.$attrs$||P;for(Ee of De(Object.keys(it)))Ee in qe||R(Ve,Ee,it[Ee],void 0,Ie,N.$flags$);for(Ee of De(Object.keys(qe)))R(Ve,Ee,it[Ee],qe[Ee],Ie,N.$flags$)};function De(ne){return ne.includes("ref")?[...ne.filter(N=>"ref"!==N),"ref"]:ne}const Qe=(ne,N,Ie,Ee)=>{const Ve=N.$children$[Ie];let qe,ot,it=0;if(null!==Ve.$text$)qe=Ve.$elm$=Zo.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Zo.createElement(Ve.$tag$),ue(null,Ve,!1),(ne=>null!=ne)(E)&&qe["s-si"]!==E&&qe.classList.add(qe["s-si"]=E),Ve.$children$)for(it=0;it{let ot,qe=ne;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=it;++Ve)Ee[Ve]&&(ot=Qe(null,Ie,Ve),ot&&(Ee[Ve].$elm$=ot,qe.insertBefore(ot,N)))},Ce=(ne,N,Ie)=>{for(let Ee=N;Ee<=Ie;++Ee){const Ve=ne[Ee];if(Ve){const it=Ve.$elm$;Et(Ve),it&&it.remove()}}},at=(ne,N,Ie=!1)=>ne.$tag$===N.$tag$&&(!!Ie||ne.$key$===N.$key$),ut=(ne,N,Ie=!1)=>{const Ee=N.$elm$=ne.$elm$,Ve=ne.$children$,it=N.$children$,ot=N.$text$;null===ot?("slot"===N.$tag$&&!k||ue(ne,N,!1),null!==Ve&&null!==it?((ne,N,Ie,Ee,Ve=!1)=>{let Vi,nn,it=0,qe=0,ot=0,bt=0,vt=N.length-1,wt=N[0],Ot=N[vt],fi=Ee.length-1,Gn=Ee[0],Yn=Ee[fi];for(;it<=vt&&qe<=fi;)if(null==wt)wt=N[++it];else if(null==Ot)Ot=N[--vt];else if(null==Gn)Gn=Ee[++qe];else if(null==Yn)Yn=Ee[--fi];else if(at(wt,Gn,Ve))ut(wt,Gn,Ve),wt=N[++it],Gn=Ee[++qe];else if(at(Ot,Yn,Ve))ut(Ot,Yn,Ve),Ot=N[--vt],Yn=Ee[--fi];else if(at(wt,Yn,Ve))ut(wt,Yn,Ve),ne.insertBefore(wt.$elm$,Ot.$elm$.nextSibling),wt=N[++it],Yn=Ee[--fi];else if(at(Ot,Gn,Ve))ut(Ot,Gn,Ve),ne.insertBefore(Ot.$elm$,wt.$elm$),Ot=N[--vt],Gn=Ee[++qe];else{for(ot=-1,bt=it;bt<=vt;++bt)if(N[bt]&&null!==N[bt].$key$&&N[bt].$key$===Gn.$key$){ot=bt;break}ot>=0?(nn=N[ot],nn.$tag$!==Gn.$tag$?Vi=Qe(N&&N[qe],Ie,ot):(ut(nn,Gn,Ve),N[ot]=void 0,Vi=nn.$elm$),Gn=Ee[++qe]):(Vi=Qe(N&&N[qe],Ie,qe),Gn=Ee[++qe]),Vi&&wt.$elm$.parentNode.insertBefore(Vi,wt.$elm$)}it>vt?yt(ne,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(N,it,vt)})(Ee,Ve,N,it,Ie):null!==it?(null!==ne.$text$&&(Ee.textContent=""),yt(Ee,null,N,it,0,it.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):ne.$text$!==ot&&(Ee.data=ot)},Et=ne=>{ne.$attrs$&&ne.$attrs$.ref&&ne.$attrs$.ref(null),ne.$children$&&ne.$children$.map(Et)},w=(ne,N)=>{N&&!ne.$onRenderResolve$&&N["s-p"]&&N["s-p"].push(new Promise(Ie=>ne.$onRenderResolve$=Ie))},Ae=(ne,N)=>{if(ne.$flags$|=16,!(4&ne.$flags$))return w(ne,ne.$ancestorComponent$),bx(()=>ke(ne,N));ne.$flags$|=512},ke=(ne,N)=>{const Ee=ne.$lazyInstance$;let Ve;return N&&(ne.$flags$|=256,ne.$queuedListeners$&&(ne.$queuedListeners$.map(([it,qe])=>Ue(Ee,it,qe)),ne.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),ae(Ve,()=>me(ne,Ee,N))},ae=(ne,N)=>te(ne)?ne.then(N):N(),te=ne=>ne instanceof Promise||ne&&ne.then&&"function"==typeof ne.then,me=function(){var ne=(0,y.Z)(function*(N,Ie,Ee){var Ve;const it=N.$hostElement$,ot=it["s-rc"];Ee&&(ne=>{const N=ne.$cmpMeta$,Ie=ne.$hostElement$,Ee=N.$flags$,it=((ne,N,Ie)=>{var Ee;const Ve=D(N),it=_n.get(Ve);if(ne=11===ne.nodeType?ne:Zo,it)if("string"==typeof it){let ot,qe=f.get(ne=ne.head||ne);if(qe||f.set(ne,qe=new Set),!qe.has(Ve)){{ot=Zo.createElement("style"),ot.innerHTML=it;const bt=null!==(Ee=yi.$nonce$)&&void 0!==Ee?Ee:X(Zo);null!=bt&&ot.setAttribute("nonce",bt),ne.insertBefore(ot,ne.querySelector("link"))}4&N.$flags$&&(ot.innerHTML+=V),qe&&qe.add(Ve)}}else ne.adoptedStyleSheets.includes(it)||(ne.adoptedStyleSheets=[...ne.adoptedStyleSheets,it]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),N);10&Ee&&(Ie["s-sc"]=it,Ie.classList.add(it+"-h"))})(N);ze(N,Ie,it,Ee),ot&&(ot.map(vt=>vt()),it["s-rc"]=void 0);{const vt=null!==(Ve=it["s-p"])&&void 0!==Ve?Ve:[],wt=()=>Ge(N);0===vt.length?wt():(Promise.all(vt).then(wt),N.$flags$|=4,vt.length=0)}});return function(Ie,Ee,Ve){return ne.apply(this,arguments)}}(),ze=(ne,N,Ie,Ee)=>{try{N=N.render(),ne.$flags$&=-17,ne.$flags$|=2,((ne,N,Ie=!1)=>{const Ee=ne.$hostElement$,Ve=ne.$cmpMeta$,it=ne.$vnode$||q(null,null),qe=(ne=>ne&&ne.$tag$===J)(N)?N:K(null,null,N);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([ot,bt])=>qe.$attrs$[bt]=Ee[ot])),Ie&&qe.$attrs$)for(const ot of Object.keys(qe.$attrs$))Ee.hasAttribute(ot)&&!["key","ref","style","class"].includes(ot)&&(qe.$attrs$[ot]=Ee[ot]);qe.$tag$=null,qe.$flags$|=4,ne.$vnode$=qe,qe.$elm$=it.$elm$=Ee.shadowRoot||Ee,E=Ee["s-sc"],k=0!=(1&Ve.$flags$),ut(it,qe,Ie)})(ne,N,Ee)}catch(Ve){$i(Ve,ne.$hostElement$)}return null},Ge=ne=>{const Ie=ne.$hostElement$,Ve=ne.$lazyInstance$,it=ne.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&ne.$flags$?Ue(Ve,"componentDidUpdate"):(ne.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),ne.$onReadyResolve$(Ie),it||Te()),ne.$onInstanceResolve$(Ie),ne.$onRenderResolve$&&(ne.$onRenderResolve$(),ne.$onRenderResolve$=void 0),512&ne.$flags$&&Nt(()=>Ae(ne,!1)),ne.$flags$&=-517},Te=ne=>{pt(Zo.documentElement),Nt(()=>((ne,N,Ie)=>{const Ee=yi.ce("appload",{detail:{namespace:"web-component"}});return ne.dispatchEvent(Ee),Ee})(rs))},Ue=(ne,N,Ie)=>{if(ne&&ne[N])try{return ne[N](Ie)}catch(Ee){$i(Ee)}},pt=ne=>ne.classList.add("hydrated"),Dn=(ne,N,Ie)=>{var Ee;const Ve=ne.prototype;if(N.$members$){ne.watchers&&(N.$watchers$=ne.watchers);const it=Object.entries(N.$members$);if(it.map(([qe,[ot]])=>{31&ot||2&Ie&&32&ot?Object.defineProperty(Ve,qe,{get(){return((ne,N)=>fr(this).$instanceValues$.get(N))(0,qe)},set(bt){((ne,N,Ie,Ee)=>{const Ve=fr(ne),it=Ve.$hostElement$,qe=Ve.$instanceValues$.get(N),ot=Ve.$flags$,bt=Ve.$lazyInstance$;Ie=((ne,N)=>null==ne||U(ne)?ne:4&N?"false"!==ne&&(""===ne||!!ne):2&N?parseFloat(ne):1&N?String(ne):ne)(Ie,Ee.$members$[N][0]);const vt=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&ot)||void 0===qe)&&Ie!==qe&&!vt&&(Ve.$instanceValues$.set(N,Ie),bt)){if(Ee.$watchers$&&128&ot){const Ot=Ee.$watchers$[N];Ot&&Ot.map(fi=>{try{bt[fi](Ie,qe,N)}catch(Gn){$i(Gn,it)}})}2==(18&ot)&&Ae(Ve,!1)}})(this,qe,bt,N)},configurable:!0,enumerable:!0}):1&Ie&&64&ot&&Object.defineProperty(Ve,qe,{value(...bt){var vt;const wt=fr(this);return null===(vt=wt?.$onInstancePromise$)||void 0===vt?void 0:vt.then(()=>{var Ot;return null===(Ot=wt.$lazyInstance$)||void 0===Ot?void 0:Ot[qe](...bt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(ot,bt,vt){yi.jmp(()=>{var wt;const Ot=qe.get(ot);if(this.hasOwnProperty(Ot))vt=this[Ot],delete this[Ot];else{if(Ve.hasOwnProperty(Ot)&&"number"==typeof this[Ot]&&this[Ot]==vt)return;if(null==Ot){const fi=fr(this),Gn=fi?.$flags$;if(Gn&&!(8&Gn)&&128&Gn&&vt!==bt){const Yn=fi.$lazyInstance$,Vi=null===(wt=N.$watchers$)||void 0===wt?void 0:wt[ot];Vi?.forEach(nn=>{null!=Yn[nn]&&Yn[nn].call(Yn,vt,bt,ot)})}return}}this[Ot]=(null!==vt||"boolean"!=typeof this[Ot])&&vt})},ne.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=N.$watchers$)&&void 0!==Ee?Ee:{}),...it.filter(([ot,bt])=>15&bt[0]).map(([ot,bt])=>{var vt;const wt=bt[1]||ot;return qe.set(wt,ot),512&bt[0]&&(null===(vt=N.$attrsToReflect$)||void 0===vt||vt.push([ot,wt])),wt})]))}}return ne},hn=function(){var ne=(0,y.Z)(function*(N,Ie,Ee,Ve){let it;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(it=Nf(Ee),it.then){const wt=()=>{};it=yield it,wt()}it.isProxied||(Ee.$watchers$=it.watchers,Dn(it,Ee,2),it.isProxied=!0);const vt=()=>{};Ie.$flags$|=8;try{new it(Ie)}catch(wt){$i(wt)}Ie.$flags$&=-9,Ie.$flags$|=128,vt()}else it=N.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(it.style){let vt=it.style;const wt=D(Ee);if(!_n.has(wt)){const Ot=()=>{};((ne,N,Ie)=>{let Ee=_n.get(ne);Ff&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=N:Ee.replaceSync(N)):Ee=N,_n.set(ne,Ee)})(wt,vt,!!(1&Ee.$flags$)),Ot()}}}const qe=Ie.$ancestorComponent$,ot=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(ot):ot()});return function(Ie,Ee,Ve,it){return ne.apply(this,arguments)}}(),bi=ne=>{Ue(ne,"disconnectedCallback")},hr=function(){var ne=(0,y.Z)(function*(N){if(!(1&yi.$flags$)){const Ie=fr(N);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?bi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>bi(Ie.$lazyInstance$))}});return function(Ie){return ne.apply(this,arguments)}}(),ti=(ne,N={})=>{var Ie;const Ve=[],it=N.exclude||[],qe=rs.customElements,ot=Zo.head,bt=ot.querySelector("meta[charset]"),vt=Zo.createElement("style"),wt=[];let Ot,fi=!0;Object.assign(yi,N),yi.$resourcesUrl$=new URL(N.resourcesUrl||"./",Zo.baseURI).href;let Gn=!1;if(ne.map(Yn=>{Yn[1].map(Vi=>{var nn;const Ir={$flags$:Vi[0],$tagName$:Vi[1],$members$:Vi[2],$listeners$:Vi[3]};4&Ir.$flags$&&(Gn=!0),Ir.$members$=Vi[2],Ir.$listeners$=Vi[3],Ir.$attrsToReflect$=[],Ir.$watchers$=null!==(nn=Vi[4])&&void 0!==nn?nn:{};const Ju=Ir.$tagName$,En=class extends HTMLElement{constructor(nc){super(nc),Aa(nc=this,Ir),1&Ir.$flags$&&nc.attachShadow({mode:"open"})}connectedCallback(){Ot&&(clearTimeout(Ot),Ot=null),fi?wt.push(this):yi.jmp(()=>(ne=>{if(!(1&yi.$flags$)){const N=fr(ne),Ie=N.$cmpMeta$,Ee=()=>{};if(1&N.$flags$)Ar(ne,N,Ie.$listeners$),N?.$lazyInstance$||N?.$onReadyPromise$&&N.$onReadyPromise$.then(()=>{});else{N.$flags$|=1;{let Ve=ne;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(N,N.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[it]])=>{if(31&it&&ne.hasOwnProperty(Ve)){const qe=ne[Ve];delete ne[Ve],ne[Ve]=qe}}),hn(ne,N,Ie)}Ee()}})(this))}disconnectedCallback(){yi.jmp(()=>hr(this))}componentOnReady(){return fr(this).$onReadyPromise$}};Ir.$lazyBundleId$=Yn[0],!it.includes(Ju)&&!qe.get(Ju)&&(Ve.push(Ju),qe.define(Ju,Dn(En,Ir,1)))})}),Ve.length>0&&(Gn&&(vt.textContent+=V),vt.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",vt.innerHTML.length)){vt.setAttribute("data-styles","");const Yn=null!==(Ie=yi.$nonce$)&&void 0!==Ie?Ie:X(Zo);null!=Yn&&vt.setAttribute("nonce",Yn),ot.insertBefore(vt,bt?bt.nextSibling:ot.firstChild)}fi=!1,wt.length?wt.map(Yn=>Yn.connectedCallback()):yi.jmp(()=>Ot=setTimeout(Te,30))},Ar=(ne,N,Ie,Ee)=>{Ie&&Ie.map(([Ve,it,qe])=>{const ot=_o(ne,Ve),bt=Js(N,qe),vt=tc(Ve);yi.ael(ot,it,bt,vt),(N.$rmListeners$=N.$rmListeners$||[]).push(()=>yi.rel(ot,it,bt,vt))})},Js=(ne,N)=>Ie=>{try{256&ne.$flags$?ne.$lazyInstance$[N](Ie):(ne.$queuedListeners$=ne.$queuedListeners$||[]).push([N,Ie])}catch(Ee){$i(Ee)}},_o=(ne,N)=>8&N?rs:ne,tc=ne=>Wb?{passive:0!=(1&ne),capture:0!=(2&ne)}:0!=(2&ne),Kr=new WeakMap,fr=ne=>Kr.get(ne),os=(ne,N)=>Kr.set(N.$lazyInstance$=ne,N),Aa=(ne,N)=>{const Ie={$flags$:0,$hostElement$:ne,$cmpMeta$:N,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),ne["s-p"]=[],ne["s-rc"]=[],Ar(ne,Ie,N.$listeners$),Kr.set(ne,Ie)},kr=(ne,N)=>N in ne,$i=(ne,N)=>(0,console.error)(ne,N),Uu=new Map,Nf=(ne,N,Ie)=>{const Ee=ne.$tagName$.replace(/-/g,"_"),Ve=ne.$lazyBundleId$,it=Uu.get(Ve);if(it)return it[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=ot=>(Uu.set(Ve,ot),ot[Ee]);if("read-along"===Ve)return I.e(154).then(I.bind(I,9154)).then(qe,$i)}return I(8718)(`./${Ve}.entry.js`).then(qe=>(Uu.set(Ve,qe),qe[Ee]),$i)},_n=new Map,rs=typeof window<"u"?window:{},Zo=rs.document||{head:{}},yi={$flags$:0,$resourcesUrl$:"",jmp:ne=>ne(),raf:ne=>requestAnimationFrame(ne),ael:(ne,N,Ie,Ee)=>ne.addEventListener(N,Ie,Ee),rel:(ne,N,Ie,Ee)=>ne.removeEventListener(N,Ie,Ee),ce:(ne,N)=>new CustomEvent(ne,N)},Wb=(()=>{let ne=!1;try{Zo.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ne=!0}}))}catch{}return ne})(),Ff=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ci=[],Wu=[],ni=(ne,N)=>Ie=>{ne.push(Ie),j||(j=!0,N&&4&yi.$flags$?Nt(Xu):yi.raf(Xu))},Pn=ne=>{for(let N=0;N{Pn(ci),Pn(Wu),(j=ci.length>0)&&yi.raf(Xu)},Nt=ne=>Promise.resolve(void 0).then(ne),bx=ni(Wu,!0)},1656:(C,de,I)=>{"use strict";var y=I(5861);let E=null,k=1;const L=Symbol("SIGNAL");function j(t){const n=E;return E=t,n}function O(t){if((!ge(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==k)){if(!t.producerMustRecompute(t)&&!ee(t))return t.dirty=!1,void(t.lastCleanEpoch=k);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=k}}function ee(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const ae=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function te(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class me{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof ae?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof ae?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ae(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof me){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&te(e,n)}remove(n){const{_finalizers:e}=this;e&&te(e,n),n instanceof me&&n._removeParent(this)}}me.EMPTY=(()=>{const t=new me;return t.closed=!0,t})();const ze=me.EMPTY;function Ge(t){return t instanceof me||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function At(){}const Dn=Mr("C",void 0,void 0);function Mr(t,n,e){return{kind:t,value:n,error:e}}let bi=null;function hr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!bi;if(n&&(bi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=bi;if(bi=null,e)throw i}}else t()}class Ar extends me{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Aa}static create(n,e,i){return new is(n,e,i)}next(n){this.isStopped?os(function ao(t){return Mr("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?os(function hn(t){return Mr("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?os(Dn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Js=Function.prototype.bind;function _o(t,n){return Js.call(t,n)}class tc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Kr(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Kr(i)}else Kr(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Kr(e)}}}class is extends Ar{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new tc(o)}}function Kr(t){Ue.useDeprecatedSynchronousErrorHandling?function ti(t){Ue.useDeprecatedSynchronousErrorHandling&&bi&&(bi.errorThrown=!0,bi.error=t)}(t):et(t)}function os(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Aa={closed:!0,next:At,error:function fr(t){throw t},complete:At},kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function $i(t){return t}function Nf(t){return 0===t.length?$i:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let _n=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function yi(t){return t&&t instanceof Ar||function Zo(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new is(e,i,o);return hr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=rs(i))((o,r)=>{const a=new is({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[kr](){return this}pipe(...e){return Nf(e)(this)}toPromise(e){return new(e=rs(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function rs(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Wb=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _t=(()=>{class t extends _n{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ff(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Wb}next(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new me(()=>{this.currentObservers=null,te(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new _n;return e.source=this,e}}return t.create=(n,e)=>new Ff(n,e),t})();class Ff extends _t{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class ci extends _t{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Wu(t){return Ae(t?.lift)}function ni(t){return n=>{if(Wu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new Xu(t,n,e,i,o)}class Xu extends Ar{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Nt(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const ne="https://g.co/ng/security#xss";class N extends Error{constructor(n,e){super(function Ie(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function bt(t){return{toString:t}.toString()}const wt="__parameters__";function Yn(t,n,e){return bt(()=>{const i=function Gn(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(wt)?l[wt]:Object.defineProperty(l,wt,{value:[]})[wt];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const nn=globalThis;function En(t){for(let n in t)if(t[n]===En)return n;throw Error("Could not find renamed property on target object.")}function nc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Xb(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Yj=En({__forward_ref__:En});function Sn(t){return t.__forward_ref__=Sn,t.toString=function(){return Pi(this())},t}function jt(t){return Lf(t)?t():t}function Lf(t){return"function"==typeof t&&t.hasOwnProperty(Yj)&&t.__forward_ref__===Sn}function as(t,n,e){t!=n&&function Ft(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function jf(t){return yx(t,Hf)||yx(t,_x)}function yx(t,n){return t.hasOwnProperty(n)?t[n]:null}function Bf(t){return t&&(t.hasOwnProperty(Jb)||t.hasOwnProperty(Uj))?t[Jb]:null}const Hf=En({\u0275prov:En}),Jb=En({\u0275inj:En}),_x=En({ngInjectableDef:En}),Uj=En({ngInjectorDef:En});class Be{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ty(t){return t&&!!t.\u0275providers}const Qu=En({\u0275cmp:En}),ny=En({\u0275dir:En}),iy=En({\u0275pipe:En}),wx=En({\u0275mod:En}),ka=En({\u0275fac:En}),Ku=En({__NG_ELEMENT_ID__:En}),Cx=En({__NG_ENV_ID__:En});function Gt(t){return"string"==typeof t?t:null==t?"":String(t)}function oy(t,n){throw new N(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let ry;function xx(){return ry}function Oo(t){const n=ry;return ry=t,n}function Sx(t,n,e){const i=jf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void oy()}const qu={},ay="__NG_DI_FLAG__",Yf="ngTempTokenPath",qj=/\n/gm,Dx="__source";let ic;function ss(t){const n=ic;return ic=t,n}function n3(t,n=fn.Default){if(void 0===ic)throw new N(-203,!1);return null===ic?Sx(t,void 0,n):ic.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(xx()||n3)(jt(t),n)}function Ne(t,n=fn.Default){return Me(t,zf(n))}function zf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sy(t){const n=[];for(let e=0;eArray.isArray(e)?rc(e,n):n(e))}function Tx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $f(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Wo(t,n,e){let i=ac(t,n);return i>=0?t[1|i]=e:(i=~i,function Mx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function cy(t,n){const e=ac(t,n);if(e>=0)return t[1|e]}function ac(t,n){return function Ax(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Rr(i))return!1;a=!0}}}}else{if(!a&&!Rr(i)&&!Rr(l))return!1;if(a&&Rr(l))continue;a=!1,i=l|1&i}}return Rr(i)||a}function Rr(t){return 0==(1&t)}function p3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Rr(a)&&(n+=Fx(r,o),o=""),i=a,r=r||!Rr(i);e++}return""!==o&&(n+=Fx(r,o)),n}function gn(t){return bt(()=>{const n=jx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Or.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""};Bx(e);const i=t.dependencies;return e.directiveDefs=Uf(i,!1),e.pipeDefs=Uf(i,!0),e.id=function D3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function C3(t){return un(t)||Ni(t)}function x3(t){return null!==t}function on(t){return bt(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Lx(t,n){if(null==t)return qr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Ye.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Ye.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return bt(()=>{const n=jx(t);return Bx(n),n})}function Po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function un(t){return t[Qu]||null}function Ni(t){return t[ny]||null}function Qi(t){return t[iy]||null}function so(t,n){const e=t[wx]||null;if(!e&&!0===n)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function jx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||qr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lx(t.inputs,n),outputs:Lx(t.outputs),debugInfo:null}}function Bx(t){t.features?.forEach(n=>n(t))}function Uf(t,n){if(!t)return null;const e=n?Qi:C3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(x3)}function sc(t){return{\u0275providers:t}}function E3(...t){return{\u0275providers:fy(0,t),\u0275fromNgModule:!0}}function fy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return rc(n,a=>{const s=a;Wf(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Hx(o,r),e}function Hx(t,n){for(let e=0;e{n(r,i)})}}function Wf(t,n,e,i){if(!(t=jt(t)))return!1;let o=null,r=Bf(t);const a=!r&&un(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Bf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)Wf(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{rc(r.imports,u=>{Wf(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Hx(c,n)}if(!s){const c=Qs(o)||(()=>new o);n({provide:o,useFactory:c,deps:vn},o),n({provide:uy,useValue:o,multi:!0},o),n({provide:Ks,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;py(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function py(t,n){for(let e of t)ty(e)&&(e=e.\u0275providers),Array.isArray(e)?py(e,n):n(e)}const T3=En({provide:String,useValue:En});function gy(t){return null!==t&&"object"==typeof t&&T3 in t}function qs(t){return"function"==typeof t}const my=new Be(""),Xf={},A3={};let by;function Jf(){return void 0===by&&(by=new Zf),by}class No{}class lc extends No{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_y(n,a=>this.processProvider(a)),this.records.set(kx,cc(void 0,this)),o.has("environment")&&this.records.set(No,cc(void 0,this));const r=this.records.get(my);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(uy,vn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ss(this),i=Oo(void 0);try{return n()}finally{ss(e),Oo(i)}}get(n,e=qu,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Cx))return n[Cx](this);i=zf(i);const r=ss(this),a=Oo(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function P3(t){return"function"==typeof t||"object"==typeof t&&t instanceof Be}(n)&&jf(n);l=c&&this.injectableDefInScope(c)?cc(yy(n),Xf):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?Jf():this.parent).get(n,e=i&fn.Optional&&e===qu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Yf]=s[Yf]||[]).unshift(Pi(n)),r)throw s;return function o3(t,n,e,i){const o=t[Yf];throw n[Dx]&&o.unshift(n[Dx]),t.message=function r3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Pi(n);if(Array.isArray(n))o=n.map(Pi).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(qj,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Yf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Oo(a),ss(r)}}resolveInjectorInitializers(){const n=j(null),e=ss(this),i=Oo(void 0);try{const r=this.get(Ks,vn,fn.Self);for(const a of r)a()}finally{ss(e),Oo(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Pi(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(n){let e=qs(n=jt(n))?n:jt(n&&n.provide);const i=function I3(t){return gy(t)?cc(void 0,t.useValue):cc($x(t),Xf)}(n);if(!qs(n)&&!0===n.multi){let o=this.records.get(e);o||(o=cc(void 0,Xf,!0),o.factory=()=>sy(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===Xf&&(e.value=A3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function R3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=jt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function yy(t){const n=jf(t),e=null!==n?n.factory:Qs(t);if(null!==e)return e;if(t instanceof Be)throw new N(204,!1);if(t instanceof Function)return function k3(t){if(t.length>0)throw new N(204,!1);const e=function Gj(t){return t&&(t[Hf]||t[_x])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new N(204,!1)}function $x(t,n,e){let i;if(qs(t)){const o=jt(t);return Qs(o)||yy(o)}if(gy(t))i=()=>jt(t.useValue);else if(function zx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sy(t.deps||[]));else if(function Yx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(jt(t.useExisting));else{const o=jt(t&&(t.useClass||t.provide));if(!function O3(t){return!!t.deps}(t))return Qs(o)||yy(o);i=()=>new o(...sy(t.deps))}return i}function cc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function _y(t,n){for(const e of t)Array.isArray(e)?_y(e,n):e&&ty(e)?_y(e.\u0275providers,n):n(e)}function ea(t,n){t instanceof lc&&t.assertNotDestroyed();const i=ss(t),o=Oo(void 0);try{return n()}finally{ss(i),Oo(o)}}function Vx(){return void 0!==xx()||null!=function t3(){return ic}()}const si=0,tt=1,It=2,_i=3,Pr=4,lo=5,Xo=6,dc=7,Un=8,Ki=9,Nr=10,Bt=11,id=12,Gx=13,hc=14,ui=15,od=16,fc=17,Ia=18,rd=19,Ux=20,us=21,qf=22,el=23,Ut=25,wy=1,ta=7,pc=9,vi=10;var Cy=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Cy||{});function co(t){return Array.isArray(t)&&"object"==typeof t[wy]}function uo(t){return Array.isArray(t)&&!0===t[wy]}function xy(t){return 0!=(4&t.flags)}function tl(t){return t.componentOffset>-1}function tp(t){return 1==(1&t.flags)}function Fr(t){return!!t.template}function Sy(t){return 0!=(512&t[It])}class U3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qx(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Zi(){return Kx}function Kx(t){return t.type.prototype.ngOnChanges&&(t.setInput=X3),W3}function W3(){const t=eS(this),n=t?.current;if(n){const e=t.previous;if(e===qr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function X3(t,n,e,i,o){const r=this.declaredInputs[i],a=eS(t)||function J3(t,n){return t[qx]=n}(t,{previous:qr,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new U3(c&&c.currentValue,e,l===qr),Qx(t,n,o,e)}Zi.ngInherit=!0;const qx="__ngSimpleChanges__";function eS(t){return t[qx]||null}const na=function(t,n,e){},tS="svg";let iS=!1;function Ln(t){for(;Array.isArray(t);)t=t[si];return t}function sd(t,n){return Ln(n[t])}function vo(t,n){return Ln(n[t.index])}function ld(t,n){return t.data[n]}function gc(t,n){return t[n]}function Jo(t,n){const e=n[t];return co(e)?e:e[si]}function Ay(t){return 128==(128&t[It])}function ia(t,n){return null==n?null:t[n]}function oS(t){t[fc]=0}function n4(t){1024&t[It]||(t[It]|=1024,Ay(t)&&cd(t))}function ky(t){return!!(9216&t[It]||t[el]?.dirty)}function Iy(t){t[Nr].changeDetectionScheduler?.notify(1),ky(t)?cd(t):64&t[It]&&(function K3(){return iS}()?(t[It]|=1024,cd(t)):t[Nr].changeDetectionScheduler?.notify())}function cd(t){t[Nr].changeDetectionScheduler?.notify();let n=nl(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Ay(n));)n=nl(n)}function np(t,n){if(256==(256&t[It]))throw new N(911,!1);null===t[us]&&(t[us]=[]),t[us].push(n)}function nl(t){const n=t[_i];return uo(n)?n[_i]:n}const Ht={lFrame:pS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sS(){return Ht.bindingsEnabled}function mc(){return null!==Ht.skipHydrationRootTNode}function Le(){return Ht.lFrame.lView}function pn(){return Ht.lFrame.tView}function Xt(t){return Ht.lFrame.contextLView=t,t[Un]}function Jt(t){return Ht.lFrame.contextLView=null,t}function Nn(){let t=lS();for(;null!==t&&64===t.type;)t=t.parent;return t}function lS(){return Ht.lFrame.currentTNode}function ud(){const t=Ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function oa(t,n){const e=Ht.lFrame;e.currentTNode=t,e.isParent=n}function Ry(){return Ht.lFrame.isParent}function Py(){Ht.lFrame.isParent=!1}function wo(){const t=Ht.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Lr(){return Ht.lFrame.bindingIndex++}function Ra(t){const n=Ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function dS(t){Ht.lFrame.inI18n=t}function f4(t,n){const e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ny(n)}function Ny(t){Ht.lFrame.currentDirectiveIndex=t}function Fy(t){const n=Ht.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Ly(){return Ht.lFrame.currentQueryIndex}function ip(t){Ht.lFrame.currentQueryIndex=t}function g4(t){const n=t[tt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function hS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=g4(r),null===o||(r=r[hc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Ht.lFrame=fS();return i.currentTNode=n,i.lView=t,!0}function jy(t){const n=fS(),e=t[tt];Ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function fS(){const t=Ht.lFrame,n=null===t?null:t.child;return null===n?pS(t):n}function pS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function gS(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mS=gS;function By(){const t=gS();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Ht.lFrame.selectedIndex}function il(t){Ht.lFrame.selectedIndex=t}function Wn(){const t=Ht.lFrame;return ld(t.tView,t.selectedIndex)}function op(){Ht.lFrame.currentNamespace=tS}let yS=!0;function dd(){return yS}function ra(t){yS=t}function rp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[fc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,vS(s,r)):vS(s,r)}const bc=-1;class hd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function zy(t){return t!==bc}function fd(t){return 32767&t}function pd(t,n){let e=function E4(t){return t>>16}(t),i=n;for(;e>0;)i=i[hc],e--;return i}let $y=!0;function lp(t){const n=$y;return $y=t,n}const wS=255,CS=5;let T4=0;const aa={};function cp(t,n){const e=xS(t,n);if(-1!==e)return e;const i=n[tt];i.firstCreatePass&&(t.injectorIndex=n.length,Vy(i.data,t),Vy(n,null),Vy(i.blueprint,null));const o=up(t,n),r=t.injectorIndex;if(zy(o)){const a=fd(o),s=pd(o,n),l=s[tt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function Vy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function up(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kS(o),null===i)return bc;if(e++,o=o[hc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return bc}function Zy(t,n,e){!function M4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ku)&&(i=e[Ku]),null==i&&(i=e[Ku]=T4++);const o=i&wS;n.data[t+(o>>CS)]|=1<=0?n&wS:O4:n}(e);if("function"==typeof r){if(!hS(n,t,i))return i&fn.Host?SS(o,0,i):DS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;oy()}finally{mS()}}else if("number"==typeof r){let a=null,s=xS(t,n),l=bc,c=i&fn.Host?n[ui][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?up(t,n):n[s+8],l!==bc&&AS(i,!1)?(a=n[tt],s=fd(l),n=pd(l,n)):s=-1);-1!==s;){const u=n[tt];if(MS(r,s,u.data)){const d=k4(s,n,e,a,i,c);if(d!==aa)return d}l=n[s+8],l!==bc&&AS(i,n[tt].data[s+8]===c)&&MS(r,s,n)?(a=u,s=fd(l),n=pd(l,n)):s=-1}}return o}function k4(t,n,e,i,o,r){const a=n[tt],s=a.data[t+8],u=dp(s,a,e,null==i?tl(s)&&$y:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ol(n,a,u,s):aa}function dp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Fr(p)&&p.type===e)return l}return null}function ol(t,n,e,i){let o=t[e];const r=n.data;if(function C4(t){return t instanceof hd}(o)){const a=o;a.resolving&&function Jj(t,n){throw n&&n.join(" > "),new N(-200,t)}(function Tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gt(t)}(r[e]));const s=lp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Oo(a.injectImpl):null;hS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function v4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Kx(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Oo(c),lp(s),a.resolving=!1,mS()}}return o}function MS(t,n,e){return!!(e[n+(t>>CS)]&1<{const n=t.prototype.constructor,e=n[ka]||Gy(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[ka]||Gy(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Gy(t){return Lf(t)?()=>{const n=Gy(jt(t));return n&&n()}:Qs(t)}function kS(t){const n=t[tt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function sa(t){return function A4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=qu}static{this.NULL=new Zf}static create(e,i){if(Array.isArray(e))return NS({name:""},i,e,"");{const o=e.name??"";return NS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(kx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Wy(t){return t.ngOriginalError}class Qo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Wy(n);for(;e&&Wy(e);)e=Wy(e);return e||null}}const jS=new Be("",{providedIn:"root",factory:()=>Ne(Qo).handleError.bind(void 0)});let vc=(()=>{class t{static{this.__NG_ELEMENT_ID__=z4}static{this.__NG_ENV_ID__=e=>e}}return t})();class Y4 extends vc{constructor(n){super(),this._lView=n}onDestroy(n){return np(this._lView,n),()=>function Oy(t,n){if(null===t[us])return;const e=t[us].indexOf(n);-1!==e&&t[us].splice(e,1)}(this._lView,n)}}function z4(){return new Y4(Le())}function $4(){return wc(Nn(),Le())}function wc(t,n){return new Zt(vo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=$4}}return t})();function HS(t){return t instanceof Zt?t.nativeElement:t}function Xy(t){return n=>{setTimeout(t,void 0,n)}}const Lt=class V4 extends _t{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Vx()&&(this.destroyRef=Ne(vc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=Xy(r),o&&(o=Xy(o)),a&&(a=Xy(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof me&&n.add(s),s}};function Z4(){return this._results[Symbol.iterator]()}class ds{get changes(){return this._changes??=new Lt}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=ds.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Z4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function c3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;if5}),f5="ng",aD=new Be(""),Pa=new Be("",{providedIn:"platform",factory:()=>"unknown"}),Co=new Be(""),e_=new Be("",{providedIn:"root",factory:()=>hs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sD=()=>null;function l_(t,n,e=!1){return sD(t,n,e)}const hD=new Be("",{providedIn:"root",factory:()=>!1});let xp,Sp;function Sc(t){return function h_(){if(void 0===xp&&(xp=null,nn.trustedTypes))try{xp=nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xp}()?.createHTML(t)||t}function f_(){if(void 0===Sp&&(Sp=null,nn.trustedTypes))try{Sp=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sp}function pD(t){return f_()?.createHTML(t)||t}function mD(t){return f_()?.createScriptURL(t)||t}class rl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class T5 extends rl{getTypeName(){return"HTML"}}class M5 extends rl{getTypeName(){return"Style"}}class A5 extends rl{getTypeName(){return"Script"}}class k5 extends rl{getTypeName(){return"URL"}}class I5 extends rl{getTypeName(){return"ResourceURL"}}function Ko(t){return t instanceof rl?t.changingThisBreaksApplicationSecurity:t}function la(t,n){const e=function O5(t){return t instanceof rl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${ne})`)}return e===n}function bD(t){const n=new B5(t);return function H5(){try{return!!(new window.DOMParser).parseFromString(Sc(""),"text/html")}catch{return!1}}()?new j5(n):n}class j5{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class B5{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Sc(n),e}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dp(t){return(t=String(t)).match(Y5)?t:"unsafe:"+t}function Na(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function wd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const yD=Na("area,br,col,hr,img,wbr"),_D=Na("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vD=Na("rp,rt"),p_=wd(yD,wd(_D,Na("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wd(vD,Na("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wd(vD,_D)),g_=Na("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wD=wd(g_,Na("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Na("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),z5=Na("script,style,template");class $5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=G5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=Z5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=CD(n).toLowerCase();if(!p_.hasOwnProperty(e))return this.sanitizedSomething=!0,!z5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=CD(n).toLowerCase();p_.hasOwnProperty(e)&&!yD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(SD(n))}}function Z5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw xD(n);return n}function G5(t){const n=t.firstChild;if(n&&function V5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw xD(n);return n}function CD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function xD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const U5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W5=/([^\#-~ |!])/g;function SD(t){return t.replace(/&/g,"&").replace(U5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(W5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ep;function DD(t,n){let e=null;try{Ep=Ep||bD(t);let i=n?String(n):"";e=Ep.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Ep.getInertBodyElement(i)}while(i!==r);return Sc((new $5).sanitizeChildren(m_(e)||e))}finally{if(e){const i=m_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function m_(t){return"content"in t&&function X5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Gi||{});function b_(t){const n=xd();return n?pD(n.sanitize(Gi.HTML,t)||""):la(t,"HTML")?pD(Ko(t)):DD(hs(),Gt(t))}function Cd(t){const n=xd();return n?n.sanitize(Gi.URL,t)||"":la(t,"URL")?Ko(t):Dp(Gt(t))}function ED(t){const n=xd();if(n)return mD(n.sanitize(Gi.RESOURCE_URL,t)||"");if(la(t,"ResourceURL"))return mD(Ko(t));throw new N(904,!1)}function xd(){const t=Le();return t&&t[Nr].sanitizer}const t8=/^>|^->||--!>|)/g,i8="\u200b$1\u200b";function qo(t){return t instanceof Function?t():t}var ps=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ps||{});let w_;function C_(t,n){return w_(t,n)}function Ec(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[si]);const s=Ln(i);0===t&&null!==e?null==o?BD(n,e,s):al(n,e,s,o||null,!0):1===t&&null!==e?al(n,e,s,o||null,!0):2===t?function Ed(t,n,e){const i=Ip(t,n);i&&function C8(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function D8(t,n,e,i,o){const r=e[ta];r!==Ln(e)&&Ec(n,t,i,r,o);for(let s=vi;sn.replace(n8,i8))}(n))}function Ap(t,n,e){return t.createElement(n,e)}function FD(t,n){n[Nr].changeDetectionScheduler?.notify(1),Rp(t,n,n[Bt],2,null,null)}function LD(t,n){const e=t[pc],i=e.indexOf(n);e.splice(i,1)}function Sd(t,n){if(t.length<=vi)return;const e=vi+n,i=t[e];if(i){const o=i[od];null!==o&&o!==t&&LD(o,i),n>0&&(t[e-1][Pr]=i[Pr]);const r=$f(t,vi+n);!function g8(t,n){FD(t,n),n[si]=null,n[lo]=null}(i[tt],i);const a=r[Ia];null!==a&&a.detachView(r[tt]),i[_i]=null,i[Pr]=null,i[It]&=-129}return i}function kp(t,n){if(!(256&n[It])){const e=n[Bt];e.destroyNode&&Rp(t,n,e,3,null,null),function b8(t){let n=t[id];if(!n)return D_(t[tt],t);for(;n;){let e=null;if(co(n))e=n[id];else{const i=n[vi];i&&(e=i)}if(!e){for(;n&&!n[Pr]&&n!==t;)co(n)&&D_(n[tt],n),n=n[_i];null===n&&(n=t),co(n)&&D_(n[tt],n),e=n&&n[Pr]}n=e}}(n)}}function D_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[el]&&function se(t){if(B(t),ge(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[dc]=null);const o=n[us];if(null!==o){n[us]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Or.None||r===Or.Emulated)return null}return vo(i,e)}}function al(t,n,e,i,o){t.insertBefore(n,e,i,o)}function BD(t,n,e){t.appendChild(n,e)}function HD(t,n,e,i,o){null!==i?al(t,n,e,i,o):BD(t,n,e)}function Ip(t,n){return t.parentNode(n)}function YD(t,n,e){return $D(t,n,e)}function zD(t,n,e){return 40&t.type?vo(t,e):null}let T_,$D=zD;function VD(t,n){$D=t,T_=n}function Op(t,n,e,i){const o=E_(t,i,n),r=n[Bt],s=YD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lUt&&JD(t,n,Ut,!1),na(a?2:0,o),e(i,o)}finally{il(r),na(a?3:1,o)}}function O_(t,n,e){if(xy(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function tE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Ye.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?nE(i,e,c,s,l):nE(i,e,c,s)}return i}function nE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Lo(t,n,e,i,o,r,a,s){const l=vo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(H_(t,e,u,i,o),tl(n)&&function j8(t,n){const e=Jo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function L8(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function F_(t,n,e,i){if(sS()){const o=null===i?null:{"":-1},r=function V8(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Td(t,e,o.hostVars,Qt),o)}function ca(t,n,e,i,o,r){const a=vo(t,n);!function j_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Gt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Bt],a,r,t.value,e,i,o)}function J8(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Pr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cd(t.lView)},consumerOnSignalRead(){this.lView[el]=this}},fE=100;function Lp(t,n=!0,e=0){const i=t[Nr],o=i.rendererFactory;o.begin?.();try{!function rB(t,n){$_(t,n);let e=0;for(;ky(t);){if(e===fE)throw new N(103,!1);e++,$_(t,1)}}(t,e)}catch(a){throw n&&Fp(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function aB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Nr].inlineEffectRunner?.flush(),jy(n);let a=null,s=null;(function sB(t){return 2!==t.type})(t)&&(s=function tB(t){return t[el]??function nB(t){const n=hE.pop()??Object.create(oB);return n.lView=t,n}(t)}(n),a=function q(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{oS(n),function uS(t){return Ht.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&KD(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&ap(n,d,null)}else{const d=t.preOrderHooks;null!==d&&sp(n,d,0,null),Hy(n,0)}if(function lB(t){for(let n=JS(t);null!==n;n=QS(n)){if(!(n[It]&Cy.HasTransplantedViews))continue;const e=n[pc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function iB(t){t.lView[el]!==t&&(t.lView=null,hE.push(t))}(s)),By()}}function pE(t,n){for(let e=JS(t);null!==e;e=QS(e))for(let i=vi;i-1&&(Sd(n,i),$f(e,i))}this._attachedToViewContainer=!1}kp(this._lView[tt],this._lView)}onDestroy(n){np(this._lView,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){Iy(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,FD(this._lView[tt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n,Iy(this._lView)}}let xo=(()=>{class t{static{this.__NG_ELEMENT_ID__=hB}}return t})();const uB=xo,dB=class extends uB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=Md(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Od(o)}};function hB(){return jp(Nn(),Le())}function jp(t,n){return 4&t.type?new dB(n,t,wc(t,n)):null}let CE=()=>null;function Ac(t,n){return CE(t,n)}class $p{}class FB{}class xE{}class jB{resolveComponentFactory(n){throw function LB(t){const n=Error(`No component factory found for ${Pi(t)}.`);return n.ngComponent=t,n}(n)}}let sl=(()=>{class t{static{this.NULL=new jB}}return t})();class X_{}let La=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function BB(){const t=Le(),e=Jo(Nn().index,t);return(co(e)?e:t)[Bt]}()}}return t})(),HB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const J_={},DE=new Set;function ua(t){DE.has(t)||(DE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function EE(...t){}class Ct{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lt(!1),this.onMicrotaskEmpty=new Lt(!1),this.onStable=new Lt(!1),this.onError=new Lt(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function YB(){const t="function"==typeof nn.requestAnimationFrame;let n=nn[t?"requestAnimationFrame":"setTimeout"],e=nn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function VB(t){const n=()=>{!function $B(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(nn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,K_(t),t.isCheckStableRunning=!0,Q_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),K_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function ZB(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return TE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ME(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return TE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ME(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,K_(t),Q_(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new N(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,zB,EE,EE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const zB={};function Q_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function K_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function TE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ME(t){t._nesting--,Q_(t)}class AE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lt,this.onMicrotaskEmpty=new Lt,this.onStable=new Lt,this.onError=new Lt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var ll=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ll||{});const kE={destroy(){}};function IE(t,n){!n&&function Qf(t){if(!Vx())throw new N(-203,!1)}();const e=n?.injector??Ne(di);if(!function fs(t){return"browser"===(t??Ne(di)).get(Pa)}(e))return kE;ua("NgAfterNextRender");const i=e.get(Ld),o=i.handler??=new RE,r=n?.phase??ll.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(vc).onDestroy(a),l=ea(e,()=>new OE(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class OE{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Ne(Ct),this.errorHandler=Ne(Qo,{optional:!0}),Ne($p,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class RE{constructor(){this.executingCallbacks=!1,this.buckets={[ll.EarlyRead]:new Set,[ll.Write]:new Set,[ll.MixedReadWrite]:new Set,[ll.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ld=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Zp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&WD(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function o6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=a6}}return t})();function a6(){return HE(Nn(),Le())}const s6=jo,jE=class extends s6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return wc(this._hostTNode,this._hostLView)}get injector(){return new Li(this._hostTNode,this._hostLView)}get parentInjector(){const n=up(this._hostTNode,this._hostLView);if(zy(n)){const e=pd(n,this._hostLView),i=fd(n);return new Li(e[tt].data[i+8],e)}return new Li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=BE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Ac(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Mc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function nd(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new Hd(un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(No,null);b&&(r=b)}const u=un(l.componentType??{}),d=Ac(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Mc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function t4(t){return uo(t[_i])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[_i],c=new jE(l,l[lo],l[_i]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Ad(a,o,r,i),n.attachToViewContainerRef(),Tx(nv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=BE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);i&&($f(nv(this._lContainer),e),kp(i[tt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Sd(this._lContainer,e);return i&&null!=$f(nv(this._lContainer),e)?new Od(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function BE(t){return t[8]}function nv(t){return t[8]||(t[8]=[])}function HE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=rE(i,n,null,t),n[t.index]=e,Np(n,e)),YE(e,n,t,i),new jE(e,t,n)}let YE=function $E(t,n,e,i){if(t[ta])return;let o;o=8&e.type?Ln(i):function l6(t,n){const e=t[Bt],i=e.createComment(""),o=vo(n,t);return al(e,Ip(e,o),i,function x8(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[ta]=o},iv=()=>!1;class ov{constructor(n){this.queryList=n,this.matches=null}clone(){return new ov(this.queryList)}setDirty(){this.queryList.setDirty()}}class rv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class av{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=vi;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=td(o.hostAttrs,e=td(e,o.hostAttrs))}}(i)}function M6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Up(t){return t===qr?{}:t===vn?[]:t}function k6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function I6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function O6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function So(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class cl{}class pT{}class hv extends cl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FE(this);const o=so(n);this._bootstrapComponents=qo(o.bootstrap),this._r3Injector=FS(n,e,[{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver},...i],Pi(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fv extends pT{constructor(n){super(),this.moduleType=n}create(n){return new hv(this.moduleType,n,[])}}class gT extends cl{constructor(n){super(),this.componentFactoryResolver=new FE(this),this.instance=null;const e=new lc([...n.providers,{provide:cl,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],n.parent||Jf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wp(t,n,e=null){return new gT({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let bs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jp(t){return!!pv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function pv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function da(t,n,e){return t[n]=e}function wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ul(t,n,e,i){const o=wi(t,n,e);return wi(t,n+1,i)||o}function kt(t,n,e,i,o,r,a,s){const l=Le(),c=pn(),u=t+Ut,d=c.firstCreatePass?function Z6(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Tc(n,t,4,a||null,ia(c,s));F_(n,e,u,ia(c,l)),rp(n,u);const d=u.tView=N_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];oa(d,!1);const h=mT(c,l,d,t);dd()&&Op(c,l,h,d),fo(h,l);const p=rE(h,l,h,d);return l[u]=p,Np(l,p),function zE(t,n,e){return iv(t,n,e)}(p,d,l),tp(d)&&R_(c,l,d),null!=a&&P_(l,d,s),kt}let mT=function bT(t,n,e,i){return ra(!0),n[Bt].createComment("")};function ln(t,n,e,i){const o=Le();return wi(o,Lr(),n)&&(pn(),ca(Wn(),o,t,n,e,i)),ln}function jc(t,n,e,i){return wi(t,Lr(),e)?n+Gt(e)+i:Qt}function Bc(t,n,e,i,o,r){const s=ul(t,function Oa(){return Ht.lFrame.bindingIndex}(),e,o);return Ra(2),s?n+Gt(e)+i+Gt(o)+r:Qt}function ig(t,n){return t<<17|n<<2}function _s(t){return t>>17&32767}function Sv(t){return 2|t}function hl(t){return(131068&t)>>2}function Dv(t,n){return-131069&t|n<<2}function Ev(t){return 1|t}function WT(t,n,e,i){const o=t[e+1],r=null===n;let a=i?_s(o):hl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];A7(t[a],n)&&(s=!0,t[a+1]=i?Ev(c):Sv(c)),a=i?_s(c):hl(c)}s&&(t[e+1]=i?Sv(o):Ev(o))}function A7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ac(t,n)>=0}const ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XT(t){return t.substring(ji.key,ji.keyEnd)}function JT(t,n){const e=ji.textEnd;return e===n?-1:(n=ji.keyEnd=function R7(t,n,e){for(;n32;)n++;return n}(t,ji.key=n,e),Gc(t,n,e))}function Gc(t,n,e){for(;n=0;e=JT(n,e))Wo(t,XT(n),!0)}function jr(t,n,e,i){const o=Le(),r=pn(),a=Ra(2);r.firstUpdatePass&&nM(r,t,a,i),n!==Qt&&wi(o,a,n)&&oM(r,r.data[ho()],o,o[Bt],t,o[a+1]=function V7(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Pi(Ko(t)))),t}(n,e),i,a)}function Br(t,n,e,i){const o=pn(),r=Ra(2);o.firstUpdatePass&&nM(o,null,r,i);const a=Le();if(e!==Qt&&wi(a,r,e)){const s=o.data[ho()];if(aM(s,i)&&!tM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=Xb(l,e||"")),Tv(o,s,a,e,i)}else!function $7(t,n,e,i,o,r,a,s){o===Qt&&(o=vn);let l=0,c=0,u=0=t.expandoStartIndex}function nM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=tM(t,e);aM(r,i)&&null===n&&!a&&(n=!1),n=function L7(t,n,e,i){const o=Fy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Ud(e=Mv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Mv(o,t,n,e,i),null===r){let l=function j7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==hl(i))return t[_s(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Mv(null,t,n,l[1],i),l=Ud(l,n.attrs,i),function B7(t,n,e,i){t[_s(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function H7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=_s(t[s+1]);t[i+1]=ig(h,s),0!==h&&(t[h+1]=Dv(t[h+1],i)),t[s+1]=function D7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ig(s,0),0!==s&&(t[s+1]=Dv(t[s+1],i)),s=i;else t[i+1]=ig(l,0),0===s?s=i:t[l+1]=Dv(t[l+1],i),l=i;c&&(t[i+1]=Sv(t[i+1])),WT(t,u,i,!0),WT(t,u,i,!1),function M7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&ac(r,n)>=0&&(e[i+1]=Ev(e[i+1]))}(n,u,t,i,r),a=ig(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Mv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===Qt&&(h=d?vn:void 0);let p=d?cy(h,i):u===i?h:void 0;if(c&&!og(p)&&(p=cy(l,i)),og(p)&&(s=p,a))return s;const g=t[o+1];o=a?_s(g):hl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=cy(l,i))}return s}function og(t){return void 0!==t}function aM(t,n){return 0!=(t.flags&(n?8:16))}function Av(t,n,e){Br(Wo,fa,jc(Le(),t,n,e),!0)}class eH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function kv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function Iv(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function sM(t,n,e,i,o){if(Iv(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function lM(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class cM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function Mn(t,n,e){ua("NgControlFlow");const i=Le(),o=Lr(),r=Ov(i,Ut+t);if(wi(i,o,n)){const s=j(null);try{if(z_(r,0),-1!==n){const l=Rv(i[tt],Ut+n),c=Ac(r,l.tView.ssrId);Ad(r,Md(i,l,e,{dehydratedView:c}),0,Mc(l,c))}}finally{j(s)}}else{const s=uE(r,0);void 0!==s&&(s[Un]=e)}}class nH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-vi}}function rg(t,n){return n}class oH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function ag(t,n,e,i,o,r,a,s,l,c,u,d,h){ua("NgControlFlow");const p=void 0!==l,g=Le(),b=s?a.bind(g[ui][Un]):a,T=new oH(p,b);g[Ut+t]=T,kt(t+1,n,e,i,o,r),p&&kt(t+2,l,c,u,d,h)}class rH extends eH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-vi}at(n){return this.getLView(n)[Un].$implicit}attach(n,e){const i=e[Xo];this.needsIndexUpdate||=n!==this.length,Ad(this.lContainer,e,n,Mc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function aH(t,n){return Sd(t,n)}(this.lContainer,n)}create(n,e){const i=Ac(this.lContainer,this.templateTNode.tView.ssrId);return Md(this.hostLView,this.templateTNode,new nH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){kp(n[tt],n)}updateValue(n,e){this.getLView(n)[Un].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=Lr(),l=0===a.length;if(wi(i,s,l)){const c=e+2,u=Ov(i,c);if(l){const d=Rv(o,c),h=Ac(u,d.tView.ssrId);Ad(u,Md(i,d,void 0,{dehydratedView:h}),0,Mc(d,h))}else z_(u,0)}}}finally{j(n)}}function Ov(t,n){return t[n]}function Rv(t,n){return ld(t,n)}function _e(t,n,e,i){const o=Le(),r=pn(),a=Ut+t,s=o[Bt],l=r.firstCreatePass?function lH(t,n,e,i,o,r){const a=n.consts,l=Tc(n,t,2,i,ia(a,o));return F_(n,e,l,ia(a,r)),null!==l.attrs&&Zp(l,l.attrs,!1),null!==l.mergedAttrs&&Zp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=uM(r,o,l,s,n,t);o[a]=c;const u=tp(l);return oa(l,!0),XD(s,c,l),!function $d(t){return 32==(32&t.flags)}(l)&&dd()&&Op(r,o,c,l),0===function i4(){return Ht.lFrame.elementDepthCount}()&&fo(c,o),function o4(){Ht.lFrame.elementDepthCount++}(),u&&(R_(r,o,l),O_(r,l,o)),null!==i&&P_(o,l),_e}function ve(){let t=Nn();Ry()?Py():(t=t.parent,oa(t,!1));const n=t;(function a4(t){return Ht.skipHydrationRootTNode===t})(n)&&function u4(){Ht.skipHydrationRootTNode=null}(),function r4(){Ht.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(rp(e,t),xy(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function S4(t){return 0!=(8&t.flags)}(n)&&Tv(e,n,Le(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function D4(t){return 0!=(16&t.flags)}(n)&&Tv(e,n,Le(),n.stylesWithoutHost,!1),ve}function dt(t,n,e,i){return _e(t,n,e,i),ve(),dt}let uM=(t,n,e,i,o,r)=>(ra(!0),Ap(i,o,function bS(){return Ht.lFrame.currentNamespace}()));function Wd(t,n,e){const i=Le(),o=pn(),r=t+Ut,a=o.firstCreatePass?function dH(t,n,e,i,o){const r=n.consts,a=ia(r,i),s=Tc(n,t,8,"ng-container",a);return null!==a&&Zp(s,a,!0),F_(n,e,s,ia(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];oa(a,!0);const s=dM(o,i,a,t);return i[r]=s,dd()&&Op(o,i,s,a),fo(s,i),tp(a)&&(R_(o,i,a),O_(o,a,i)),null!=e&&P_(i,a),Wd}function Xd(){let t=Nn();const n=pn();return Ry()?Py():(t=t.parent,oa(t,!1)),n.firstCreatePass&&(rp(n,t),xy(t)&&n.queries.elementEnd(t)),Xd}function ws(t,n,e){return Wd(t,n,e),Xd(),ws}let dM=(t,n,e,i)=>(ra(!0),S_(n[Bt],""));function On(){return Le()}function Cs(t,n,e){const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!0),Cs}function Pv(t,n,e){const i=Le();if(wi(i,Lr(),n)){const r=pn(),a=Wn();Lo(r,a,i,t,n,cE(Fy(r.data),a,i),e,!0)}return Pv}const Wc="en-US",lg={marker:"element"},cg={marker:"ICU"};var Bo=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Bo||{});let pM=Wc;function mM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?zD(t,0,e):Ln(e[o])}function bM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];_M(i)||wH(i,n)&&null===CH(i)&&xH(i,n.index)}}function _M(t){return!(64&t.type)}function wH(t,n){return _M(n)||t.index>n.index}function CH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function xH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(VD(mM,bM),t.insertBeforeIndex=n)}function EH(t,n,e){const i=I_(t,e,64,null,null);return yM(n,i),i}let qd=(t,n,e,i)=>(ra(!0),function xM(t,n,e){const i=t[Bt];switch(e){case Node.COMMENT_NODE:return S_(i,n);case Node.TEXT_NODE:return x_(i,n);case Node.ELEMENT_NODE:return Ap(i,n,null)}}(t,e,i));function NH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function ug(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:vn}function a(){if(n0?e[s]:(t.push(n,i),r(e[tt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const dg=/\ufffd(\d+):?\d*\ufffd/gi,LH=/\ufffd(\d+)\ufffd/,AM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,eh="\ufffd",jH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,BH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,HH=/\uE500/g;function kM(t,n,e,i,o,r,a){const s=Td(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Nv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);AM.test(l)?i.push(WH(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function XH(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=bD(hs()).getInertBodyElement(s),g=m_(p)||p;return g?PM(t,n,e,i,o,c,u,d,g,r,l,0):0}function PM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Td(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(p_.hasOwnProperty(T)){Fv(r,lg,T,c,g),n.data[g]=T;const ce=b.attributes;for(let pe=0;pe>>Bo.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=qd(t,u,n[r],(a&Bo.COMMENT)===Bo.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=dd()),c&&null!==e&&h&&al(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),dS(!0)}function to(){dS(!1)}function Wt(t,n,e){eo(t,n,e),to()}function hg(t,n={}){return function sY(t,n={}){let e=t;if(eY.test(t)){const i={},o=[0];e=e.replace(tY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(aY),S=T?parseInt(T[1],10):0,H=rY.test(b);c.push([S,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(iY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(oY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function xt(t,n,e,i){const o=Le(),r=pn(),a=Nn();return Lv(r,o,o[Bt],a,t,n,i),xt}function Lv(t,n,e,i,o,r,a){const s=tp(i),c=t.firstCreatePass&&lE(t),u=n[Un],d=sE(n);let h=!0;if(3&i.type||a){const b=vo(i,n),T=a?a(b):b,S=d.length,H=a?ce=>a(Ln(ce[i.index])):i.index;let re=null;if(!a&&s&&(re=function uY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==re)(re.__ngLastListenerFn__||re).__ngNextListenerFn__=r,re.__ngLastListenerFn__=r,h=!1;else{r=HM(i,n,u,r,!1);const ce=e.listen(T,o,r);d.push(r,ce),c&&c.push(o,H,S,S+1)}}else r=HM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Jo(t.index,n):n);let l=BM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=BM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function lt(t=1){return function m4(t){return(Ht.lFrame.contextLView=function rS(t,n){for(;t>0;)n=n[hc],t--;return n}(t,Ht.lFrame.contextLView))[Un]}(t)}function dY(t,n){let e=null;const i=function g3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(ra(!0),x_(n[Bt],i));function Ho(t){return gr("",t,""),Ho}function gr(t,n,e){const i=Le(),o=jc(i,t,n,e);return o!==Qt&&Fa(i,ho(),o),gr}function jv(t,n,e,i,o){const r=Le(),a=Bc(r,t,n,e,i,o);return a!==Qt&&Fa(r,ho(),a),jv}function nh(t,n,e){qE(n)&&(n=n());const i=Le();return wi(i,Lr(),n)&&Lo(pn(),Wn(),i,t,n,i[Bt],e,!1),nh}function pg(t,n){const e=qE(t);return e&&t.set(n),e}function ih(t,n){const e=Le(),i=pn(),o=Nn();return Lv(i,e,e[Bt],o,t,n),ih}function Bv(t,n,e,i,o){if(t=jt(t),Array.isArray(t))for(let r=0;r>20;if(qs(t)||!t.multi){const p=new hd(c,o,ie),g=Yv(l,n,o?u:u+h,d);-1===g?(Zy(cp(s,a),r,l),Hv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=Yv(l,n,u+h,d),g=Yv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){Zy(cp(s,a),r,l);const S=function kY(t,n,e,i,o){const r=new hd(t,e,ie);return r.multi=[],r.index=n,r.componentProviders=0,hA(r,o,i&&!e),r}(o?AY:MY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=S),Hv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(S),a.push(S)}else Hv(r,t,p>-1?p:g,hA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Hv(t,n,e,i){const o=qs(n),r=function M3(t){return!!t.useClass}(n);if(o||r){const l=(r?jt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Yv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function TY(t,n,e){const i=pn();if(i.firstCreatePass){const o=Fr(t);Bv(e,i.data,i.blueprint,o,!0),Bv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let IY=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=fy(0,e.type),o=i.length>0?Wp([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(No))})}}return t})();function ii(t){ua("NgStandalone"),t.getStandaloneInjector=n=>n.get(IY).getOrCreateStandaloneInjector(t)}function oh(t,n,e,i){return pA(Le(),wo(),t,n,e,i)}function rh(t,n,e,i,o){return function gA(t,n,e,i,o,r,a){const s=n+e;return ul(t,s,o,r)?da(t,s+2,a?i.call(a,o,r):i(o,r)):ah(t,s+2)}(Le(),wo(),t,n,e,i,o)}function ah(t,n){const e=t[n];return e===Qt?void 0:e}function pA(t,n,e,i,o,r){const a=n+e;return wi(t,a,o)?da(t,a+1,r?i.call(r,o):i(o)):ah(t,a+1)}function Jc(t,n){const e=pn();let i;const o=t+Ut;e.firstCreatePass?(i=function zY(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Qs(i.type)),s=Oo(ie);try{const l=lp(!1),c=r();return lp(l),function gY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Le(),o,c),c}finally{Oo(s)}}function Qc(t,n,e){const i=t+Ut,o=Le(),r=gc(o,i);return function sh(t,n){return t[tt].data[n].pure}(o,i)?pA(o,wo(),n,r.transform,e,r):r.transform(e)}function $v(t,n){return jp(t,n)}let PA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const BA=new Be(""),yg=new Be("");let Qv,Xv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Qv||(function Bz(t){Qv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(Ct),Me(Jv),Me(yg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Jv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Qv?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function uh(t){return!!t&&"function"==typeof t.then}function HA(t){return!!t&&"function"==typeof t.subscribe}const Kv=new Be("");let qv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ne(Kv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(uh(r))e.push(r);else if(HA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ew=new Be("");function $A(t,n){return Array.isArray(n)?n.reduce($A,t):{...t,...n}}let Hr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(jS),this.afterRenderEffectManager=Ne(Ld),this.externalTestViews=new Set,this.beforeRender=new _t,this.afterTick=new _t,this.componentTypes=[],this.components=[],this.isStable=Ne(bs).hasPendingTasks.pipe(Nt(e=>!e)),this._injector=Ne(No)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof xE;if(!this._injector.get(qv).done)throw!o&&function cs(t){const n=un(t)||Ni(t)||Qi(t);return null!==n&&n.standalone}(e),new N(405,!1);let a;a=o?e:this._injector.get(sl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Hz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(cl),c=a.create(di.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),_g(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new N(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===fE)throw new N(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)zz(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>tw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;_g(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(ew,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>_g(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _g(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function zz(t,n,e){!n&&!tw(t)||function $z(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Lp(t,n,i)}(t,e,n)}function tw(t){return ky(t)}class Vz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let VA=(()=>{class t{compileModuleSync(e){return new fv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=qo(so(e).declarations).reduce((a,s)=>{const l=un(s);return l&&a.push(new Hd(l)),a},[]);return new Vz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uz=(()=>{class t{constructor(){this.zone=Ne(Ct),this.applicationRef=Ne(Hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Wz(){const t=Ne(Ct),n=Ne(Qo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Jz=(()=>{class t{constructor(){this.subscription=new me,this.initialized=!1,this.zone=Ne(Ct),this.pendingTasks=Ne(bs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const pa=new Be("",{providedIn:"root",factory:()=>Ne(pa,fn.Optional|fn.SkipSelf)||function Qz(){return typeof $localize<"u"&&$localize.locale||Wc}()}),nw=new Be("");let WA=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function GB(t="zone.js",n){return"noop"===t?new AE:"zone.js"===t?new Ct(n):t}(i?.ngZone,function UA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function B6(t,n,e){return new hv(t,n,e)}(e.moduleType,this.injector,function GA(t){return[{provide:Ct,useFactory:t},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Uz,{optional:!0});return()=>n.initialize()}},{provide:Ks,multi:!0,useFactory:()=>{const n=Ne(Jz);return()=>{n.initialize()}}},{provide:jS,useFactory:Wz}]}(()=>o)),a=r.injector.get(Qo,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{_g(this._modules,r),s.unsubscribe()})}),function zA(t,n,e){try{const i=e();return uh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(qv);return s.runInitializers(),s.donePromise.then(()=>(function gM(t){"string"==typeof t&&(pM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(pa,Wc)||Wc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=$A({},i);return function Gz(t,n,e){const i=new fv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Hr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new N(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(di))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ss=null;const XA=new Be("");function JA(t,n,e=[]){const i=`Platform: ${n}`,o=new Be(i);return(r=[])=>{let a=iw();if(!a||a.injector.get(XA,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function e$(t){if(Ss&&!Ss.get(XA,!1))throw new N(400,!1);(function YA(){!function _(t){Z=t}(()=>{throw new N(600,!1)})})(),Ss=t;const n=t.get(WA);(function KA(t){t.get(aD,null)?.forEach(e=>e())})(t)}(function QA(t=[],n){return di.create({name:n,providers:[{provide:my,useValue:"platform"},{provide:nw,useValue:new Set([()=>Ss=null])},...t]})}(s,i))}return function t$(t){const n=iw();if(!n)throw new N(401,!1);return n}()}}function iw(){return Ss?.get(WA)??null}let Ti=(()=>{class t{static{this.__NG_ELEMENT_ID__=i$}}return t})();function i$(t){return function o$(t,n,e){if(tl(t)&&!e){const i=Jo(t.index,n);return new Od(i,i)}return 47&t.type?new Od(n[ui],n):null}(Nn(),Le(),16==(16&t))}class nk{constructor(){}supports(n){return Jp(n)}create(n){return new u$(n)}}const c$=(t,n)=>n;class u${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||c$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new d$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new ik),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ik),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class d${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class h${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ik{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new h$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ok(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new p$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class p${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ak(){return new lw([new nk])}let lw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:ak})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ak()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new N(901,!1)}}return t})();function sk(){return new xg([new rk])}let xg=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:sk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||sk()),deps:[[t,new oc,new ls]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new N(901,!1)}}return t})();const b$=JA(null,"core",[]);let y$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Hr))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function Yt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Ds(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Ak(t){const n=j(null);try{return t()}finally{j(n)}}let kk=null;function ja(){return kk}class tV{}const Kt=new Be("");let dw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(iV),providedIn:"platform"})}}return t})();const nV=new Be("");let iV=(()=>{class t extends dw{constructor(){super(),this._doc=Ne(Kt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ja().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function hw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Ik(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ba(t){return t&&"?"!==t[0]?"?"+t:t}let ml=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Rk),providedIn:"root"})}}return t})();const Ok=new Be("");let Rk=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(Kt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return hw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ba(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Ba(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oV=(()=>{class t extends ml{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=hw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Ba(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(dw),Me(Ok,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),bl=(()=>{class t{constructor(e){this._subject=new Lt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function sV(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Ik(Pk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ba(i))}normalize(e){return t.stripTrailingSlash(function aV(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Pk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ba(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=Ba}static{this.joinWithSlash=hw}static{this.stripTrailingSlash=Ik}static{this.\u0275fac=function(i){return new(i||t)(Me(ml))}}static{this.\u0275prov=$e({token:t,factory:()=>function rV(){return new bl(Me(ml))}(),providedIn:"root"})}}return t})();function Pk(t){return t.replace(/\/index.html$/,"")}function $k(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Cw=/\s+/,Vk=[];let Zk=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=Vk,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cw):Vk}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Cw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Ye.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class GV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new GV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),Uk(s,o)}});for(let o=0,r=i.length;o{Uk(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo),ie(lw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Uk(t,n){t.context.$implicit=n.item}let Es=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new UV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wk("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wk("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(ie(jo),ie(xo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class UV{constructor(){this.$implicit=null,this.ngIf=null}}function Wk(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(n)}'.`)}let Jk=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:ps.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(xg),ie(La))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Hg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(ie(jo))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zi]})}}return t})();class KV{createSubscription(n,e){return Ak(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Ak(()=>n.unsubscribe())}}class qV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const e9=new qV,t9=new KV;let Ew=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(uh(e))return e9;if(HA(e))return t9;throw function zr(t,n){return new N(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(ie(Ti,16))}}static{this.\u0275pipe=Po({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),yl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const Kk="browser";function qk(t){return t===Kk}function eI(t){return"server"===t}let C9=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>qk(Ne(Pa))?new x9(Ne(Kt),window):new D9})}}return t})();class x9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function S9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class D9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class tI{}class q9 extends tV{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kw extends q9{static makeCurrent(){!function eV(t){kk??=t}(new kw)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).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"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function eZ(){return mh=mh||document.querySelector("base"),mh?mh.getAttribute("href"):null}();return null==e?null:function tZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){mh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return $k(document.cookie,n)}}let mh=null,iZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Iw=new Be("");let uI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Iw),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class dI{constructor(n){this._doc=n}}const Ow="ng-app-id";let hI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Ow}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Ow),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ow,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(mp),Me(e_,8),Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Rw={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/MathML/"},Pw=/%COMP%/g,sZ=new Be("",{providedIn:"root",factory:()=>!0});function pI(t,n){return n.map(e=>e.replace(Pw,t))}let Nw=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eI(s),this.defaultRenderer=new Fw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Or.ShadowDom&&(i={...i,encapsulation:Or.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof mI?o.applyToHost(e):o instanceof Lw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Or.Emulated:r=new mI(l,c,i,this.appId,u,a,s,d);break;case Or.ShadowDom:return new dZ(l,c,e,i,a,s,this.nonce,d);default:r=new Lw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(uI),Me(hI),Me(mp),Me(sZ),Me(Kt),Me(Pa),Me(Ct),Me(e_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Fw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Rw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(gI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(gI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new N(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Rw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Rw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(ps.DashCase|ps.Important)?n.style.setProperty(e,i,o&ps.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ps.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=ja().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function gI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class dZ extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=pI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Lw extends Fw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?pI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mI extends Lw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function lZ(t){return"_ngcontent-%COMP%".replace(Pw,t)}(c),this.hostAttr=function cZ(t){return"_nghost-%COMP%".replace(Pw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let hZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const bI=["alt","control","meta","shift"],fZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let gZ=(()=>{class t extends dI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ja().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),bI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=fZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),bI.forEach(a=>{a!==o&&(0,pZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const _I=[{provide:Pa,useValue:Kk},{provide:aD,useValue:function mZ(){kw.makeCurrent()},multi:!0},{provide:Kt,useFactory:function yZ(){return function h5(t){qy=t}(document),document},deps:[]}],_Z=JA(b$,"browser",_I),vZ=new Be(""),vI=[{provide:yg,useClass:class nZ{addToWindow(n){nn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new N(5103,!1);return r},nn.getAllAngularTestabilities=()=>n.getAllTestabilities(),nn.getAllAngularRootElements=()=>n.getAllRootElements(),nn.frameworkStabilizers||(nn.frameworkStabilizers=[]),nn.frameworkStabilizers.push(i=>{const o=nn.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ja().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Xv,deps:[Ct,Jv,yg]},{provide:Xv,useClass:Xv,deps:[Ct,Jv,yg]}],wI=[{provide:my,useValue:"root"},{provide:Qo,useFactory:function bZ(){return new Qo},deps:[]},{provide:Iw,useClass:hZ,multi:!0,deps:[Kt,Ct,Pa]},{provide:Iw,useClass:gZ,multi:!0,deps:[Kt]},Nw,hI,uI,{provide:X_,useExisting:Nw},{provide:tI,useClass:iZ,deps:[]},[]];let jw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:mp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(vZ,12))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[...wI,...vI],imports:[yl,y$]})}}return t})(),wZ=(()=>{class t{constructor(e){this._doc=e,this._dom=ja()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return CZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const CZ={httpEquiv:"http-equiv"};let CI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$g=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(EZ),o},providedIn:"root"})}}return t})(),EZ=(()=>{class t extends $g{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Gi.NONE:return i;case Gi.HTML:return la(i,"HTML")?Ko(i):DD(this._doc,String(i)).toString();case Gi.STYLE:return la(i,"Style")?Ko(i):i;case Gi.SCRIPT:if(la(i,"Script"))return Ko(i);throw new N(5200,!1);case Gi.URL:return la(i,"URL")?Ko(i):Dp(String(i));case Gi.RESOURCE_URL:if(la(i,"ResourceURL"))return Ko(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(e){return function R5(t){return new T5(t)}(e)}bypassSecurityTrustStyle(e){return function P5(t){return new M5(t)}(e)}bypassSecurityTrustScript(e){return function N5(t){return new A5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new k5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function L5(t){return new I5(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zt||{});const za="*";function _l(t,n){return{type:zt.Trigger,name:t,definitions:n,options:{}}}function $a(t,n=null){return{type:zt.Animate,styles:n,timings:t}}function Vg(t,n=null){return{type:zt.Group,steps:t,options:n}}function ki(t){return{type:zt.Style,styles:t,offset:null}}function nr(t,n,e){return{type:zt.State,name:t,styles:n,options:e}}function ga(t,n,e=null){return{type:zt.Transition,expr:t,animation:n,options:e}}function yh(t=null){return{type:zt.AnimateChild,options:t}}function _h(t,n,e=null){return{type:zt.Query,selector:t,animation:n,options:e}}class vh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class EI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const TI=["toast-component",""];function IZ(t,n){if(1&t){const e=On();_e(0,"button",5),xt("click",function(){return Xt(e),Jt(lt().remove())}),_e(1,"span",6),mn(2,"\xd7"),ve()()}}function OZ(t,n){if(1&t&&(Wd(0),mn(1),Xd()),2&t){const e=lt(2);Fe(),gr("[",e.duplicatesCount+1,"]")}}function RZ(t,n){if(1&t&&(_e(0,"div"),mn(1),kt(2,OZ,2,1,"ng-container",4),ve()),2&t){const e=lt();qi(e.options.titleClass),ln("aria-label",e.title),Fe(),gr(" ",e.title," "),Fe(),Ke("ngIf",e.duplicatesCount)}}function PZ(t,n){if(1&t&&dt(0,"div",7),2&t){const e=lt();qi(e.options.messageClass),Ke("innerHTML",e.message,b_)}}function NZ(t,n){if(1&t&&(_e(0,"div",8),mn(1),ve()),2&t){const e=lt();qi(e.options.messageClass),ln("aria-label",e.message),Fe(),gr(" ",e.message," ")}}function FZ(t,n){if(1&t&&(_e(0,"div"),dt(1,"div",9),ve()),2&t){const e=lt();Fe(),vs("width",e.width+"%")}}class $Z{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class VZ{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class ZZ{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _t;_activate=new _t;_manualClose=new _t;_resetTimeout=new _t;_countDuplicate=new _t;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Zg{toastId;config;message;title;toastType;toastRef;_onTap=new _t;_onAction=new _t;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const AI=new Be("ToastConfig");class GZ extends VZ{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let UZ=(()=>{class t{_document=Ne(Kt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class WZ{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let XZ=(()=>{class t{_overlayContainer=Ne(UZ);_componentFactoryResolver=Ne(sl);_appRef=Ne(Hr);_document=Ne(Kt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new GZ(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new WZ(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Gi.HTML,i));const u=new ZZ(l),d=new Zg(this.index,r,c,o,e,u),p=di.create({providers:[{provide:Zg,useValue:d}],parent:this._injector}),g=new $Z(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(AI),Me(XZ),Me(di),Me($g),Me(Ct))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const JZ={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(ie(vl),ie(Zg),ie(Ct))};static \u0275cmp=gn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&xt("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Pv("@flyInOut",o.state),qi(o.toastClasses),vs("display",o.displayStyle))},standalone:!0,features:[ii],attrs:TI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&kt(0,IZ,3,0,"button",0)(1,RZ,3,5,"div",1)(2,PZ,1,3,"div",2)(3,NZ,2,4,"div",3)(4,FZ,2,2,"div",4),2&i&&(Ke("ngIf",o.options.closeButton),Fe(),Ke("ngIf",o.title),Fe(),Ke("ngIf",o.message&&o.options.enableHtml),Fe(),Ke("ngIf",o.message&&!o.options.enableHtml),Fe(),Ke("ngIf",o.options.progressBar))},dependencies:[Es],encapsulation:2,data:{animation:[_l("flyInOut",[nr("inactive",ki({opacity:0})),nr("active",ki({opacity:1})),nr("removed",ki({opacity:0})),ga("inactive => active",$a("{{ easeTime }}ms {{ easing }}")),ga("active => removed",$a("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},QZ=(t={})=>sc([{provide:AI,useValue:{default:JZ,config:t}}]);let KZ=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[QZ(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=on({type:t});static \u0275inj=qt({})}return t})();function kI(t){return t&&Ae(t.schedule)}function Hw(t){return t[t.length-1]}function II(t){return Ae(Hw(t))?t.pop():void 0}function wh(t){return kI(Hw(t))?t.pop():void 0}function Ts(t){return this instanceof Ts?(this.v=t,this):new Ts(t)}function LI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Vw(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Zw=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function jI(t){return Ae(t?.then)}function BI(t){return Ae(t[kr])}function HI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function YI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zI=function _G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $I(t){return Ae(t?.[zI])}function VI(t){return function FI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Ts(e.read());if(o)return yield Ts(void 0);yield yield Ts(i)}}finally{e.releaseLock()}})}function ZI(t){return Ae(t?.getReader)}function po(t){if(t instanceof _n)return t;if(null!=t){if(BI(t))return function vG(t){return new _n(n=>{const e=t[kr]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Zw(t))return function wG(t){return new _n(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,et)})}(t);if(HI(t))return GI(t);if($I(t))return function xG(t){return new _n(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ZI(t))return function SG(t){return GI(VI(t))}(t)}throw YI(t)}function GI(t){return new _n(n=>{(function DG(t,n){var e,i,o,r;return function PI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=LI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Va(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function UI(t,n=0){return ni((e,i)=>{e.subscribe(Pn(i,o=>Va(i,t,()=>i.next(o),n),()=>Va(i,t,()=>i.complete(),n),o=>Va(i,t,()=>i.error(o),n)))})}function WI(t,n=0){return ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function XI(t,n){if(!t)throw new Error("Iterable cannot be null");return new _n(e=>{Va(e,n,()=>{const i=t[Symbol.asyncIterator]();Va(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hi(t,n){return n?function IG(t,n){if(null!=t){if(BI(t))return function EG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(Zw(t))return function MG(t,n){return new _n(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(jI(t))return function TG(t,n){return po(t).pipe(WI(n),UI(n))}(t,n);if(HI(t))return XI(t,n);if($I(t))return function AG(t,n){return new _n(e=>{let i;return Va(e,n,()=>{i=t[zI](),Va(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(ZI(t))return function kG(t,n){return XI(VI(t),n)}(t,n)}throw YI(t)}(t,n):po(t)}function Tt(...t){return hi(t,wh(t))}function no(t,n,e=1/0){return Ae(n)?no((i,o)=>Nt((r,a)=>n(i,r,o,a))(po(t(i,o))),e):("number"==typeof n&&(e=n),ni((i,o)=>function OG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;po(e(b,u++)).subscribe(Pn(n,S=>{o?.(S),r?p(S):n.next(S)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(S)):g(S)}h()}catch(S){n.error(S)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function nu(t,n){return Ae(n)?no(t,n,1):no(t,1)}function Ii(t,n){return ni((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function wl(t){return ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Wi(t,n){return ni((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;po(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Gg{}class Ug{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new yr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class RG{encodeKey(n){return JI(n)}encodeValue(n){return JI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const NG=/%(\d[a-f0-9])/gi,FG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function JI(t){return encodeURIComponent(t).replace(NG,(n,e)=>FG[e]??n)}function Wg(t){return`${t}`}class Ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function PG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Wg):[Wg(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ms({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Wg(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Wg(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class LG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function QI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function KI(t){return typeof Blob<"u"&&t instanceof Blob}function qI(t){return typeof FormData<"u"&&t instanceof FormData}class Ch{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function jG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new yr,this.context??=new LG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Ch(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var As=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(As||{});class Gw{constructor(n,e=xh.Ok,i="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xg extends Gw{constructor(n={}){super(n),this.type=As.ResponseHeader}clone(n={}){return new Xg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cl extends Gw{constructor(n={}){super(n),this.type=As.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Cl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Za extends Gw{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var xh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(xh||{});function Uw(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let iu=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Ch)r=e;else{let l,c;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(c=o.params instanceof Ms?o.params:new Ms({fromObject:o.params})),r=new Ch(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Tt(r).pipe(nu(l=>this.handler.handle(l)));if(e instanceof Ch||"events"===o.observe)return a;const s=a.pipe(Ii(l=>l instanceof Cl));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Nt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Nt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Nt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Uw(o,i))}post(e,i,o={}){return this.request("POST",e,Uw(o,i))}put(e,i,o={}){return this.request("PUT",e,Uw(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Gg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function t2(t,n){return n(t)}function VG(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const GG=new Be(""),Sh=new Be(""),n2=new Be(""),o2=new Be("");function UG(){let t=null;return(n,e)=>{null===t&&(t=(Ne(GG,{optional:!0})??[]).reduceRight(VG,t2));const i=Ne(bs),o=i.add();return t(n,e).pipe(wl(()=>i.remove(o)))}}let r2=(()=>{class t extends Gg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ne(bs);const o=Ne(o2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Sh),...this.injector.get(n2,[])]));this.chain=o.reduceRight((r,a)=>function ZG(t,n,e){return(i,o)=>ea(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),t2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(wl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ug),Me(No))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const KG=/^\)\]\}',?\n/;let s2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new N(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?hi(i.\u0275loadImpl()):Tt(null)).pipe(Wi(()=>new _n(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new yr(a.getAllResponseHeaders()),S=function qG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new Xg({headers:T,status:a.status,statusText:b,url:S}),l},u=()=>{let{headers:b,status:T,statusText:S,url:H}=c(),re=null;T!==xh.NoContent&&(re=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=re?xh.Ok:0);let ce=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof re){const G=re;re=re.replace(KG,"");try{re=""!==re?JSON.parse(re):null}catch(pe){re=G,ce&&(ce=!1,re={error:pe,text:re})}}ce?(r.next(new Cl({body:re,headers:b,status:T,statusText:S,url:H||void 0})),r.complete()):r.error(new Za({error:re,headers:b,status:T,statusText:S,url:H||void 0}))},d=b=>{const{url:T}=c(),S=new Za({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(S)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:As.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:As.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:As.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(tI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Jw=new Be(""),l2=new Be("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),c2=new Be("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class u2{}let nU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(Pa),Me(l2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function iU(t,n){const e=t.url.toLowerCase();if(!Ne(Jw)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ne(u2).getToken(),o=Ne(c2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ks=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ks||{});function xl(t,n){return{\u0275kind:t,\u0275providers:n}}function oU(...t){const n=[iu,s2,r2,{provide:Gg,useExisting:r2},{provide:Ug,useExisting:s2},{provide:Sh,useValue:iU,multi:!0},{provide:Jw,useValue:!0},{provide:u2,useClass:nU}];for(const e of t)n.push(...e.\u0275providers);return sc(n)}const d2=new Be("");let aU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[oU(xl(ks.LegacyInterceptors,[{provide:d2,useFactory:UG},{provide:Sh,useExisting:d2,multi:!0}]))]})}}return t})();const{isArray:hU}=Array,{getPrototypeOf:fU,prototype:pU,keys:gU}=Object;function y2(t){if(1===t.length){const n=t[0];if(hU(n))return{args:n,keys:null};if(function mU(t){return t&&"object"==typeof t&&fU(t)===pU}(n)){const e=gU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:bU}=Array;function Qw(t){return Nt(n=>function yU(t,n){return bU(n)?t(...n):t(n)}(t,n))}function _2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Dh(...t){const n=II(t),{args:e,keys:i}=y2(t),o=new _n(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?_2(i,s):s),r.complete())}))}});return n?o.pipe(Qw(n)):o}let v2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Sl=(()=>{class t extends v2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[rn]})}}return t})();const ir=new Be(""),vU={provide:ir,useExisting:Sn(()=>Eh),multi:!0},CU=new Be("");let Eh=(()=>{class t extends v2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wU(){const t=ja()?ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(La),ie(Zt),ie(CU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&xt("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Cn([vU]),rn]})}}return t})();function Is(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function C2(t){return null!=t&&"number"==typeof t.length}const Xi=new Be(""),Os=new Be(""),xU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rs{static min(n){return function x2(t){return n=>{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Is(n.value)||Is(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return D2(n)}static requiredTrue(n){return function E2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function T2(t){return Is(t.value)||xU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function M2(t){return n=>Is(n.value)||!C2(n.value)?null:n.value.lengthC2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function k2(t){if(!t)return Qg;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Is(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return F2(n)}static composeAsync(n){return L2(n)}}function D2(t){return Is(t.value)?{required:!0}:null}function Qg(t){return null}function I2(t){return null!=t}function O2(t){return uh(t)?hi(t):t}function R2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function P2(t,n){return n.map(e=>e(t))}function N2(t){return t.map(n=>function SU(t){return!t.validate}(n)?n:e=>n.validate(e))}function F2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return R2(P2(e,n))}}function Kw(t){return null!=t?F2(N2(t)):null}function L2(t){if(!t)return null;const n=t.filter(I2);return 0==n.length?null:function(e){return Dh(P2(e,n).map(O2)).pipe(Nt(R2))}}function qw(t){return null!=t?L2(N2(t)):null}function j2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function B2(t){return t._rawValidators}function H2(t){return t._rawAsyncValidators}function e0(t){return t?Array.isArray(t)?t:[t]:[]}function Kg(t,n){return Array.isArray(t)?t.includes(n):t===n}function Y2(t,n){const e=e0(n);return e0(t).forEach(o=>{Kg(e,o)||e.push(o)}),e}function z2(t,n){return e0(n).filter(e=>!Kg(t,e))}class $2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Kw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=qw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Mo extends $2{get formDirective(){return null}get path(){return null}}class ma extends $2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class V2{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qg=(()=>{class t extends V2{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(ie(ma,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&dn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[rn]})}}return t})();const Th="VALID",tm="INVALID",ou="PENDING",Mh="DISABLED";function o0(t){return(nm(t)?t.validators:t)||null}function r0(t,n){return(nm(n)?n.asyncValidators:t)||null}function nm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function G2(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new N(1e3,"");if(!i[e])throw new N(1001,"")}function U2(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new N(1002,"")})}class im{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Th}get invalid(){return this.status===tm}get pending(){return this.status==ou}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Y2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Y2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(z2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(z2(n,this._rawAsyncValidators))}hasValidator(n){return Kg(this._rawValidators,n)}hasAsyncValidator(n){return Kg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ou,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Th,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Th||this.status===ou)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:Th}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ou,this._hasOwnPendingAsyncValidator=!0;const e=O2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Lt,this.statusChanges=new Lt}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?tm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ou)?ou:this._anyControlsHaveStatus(tm)?tm:Th}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){nm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function AU(t){return Array.isArray(t)?Kw(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kU(t){return Array.isArray(t)?qw(t):t||null}(this._rawAsyncValidators)}}class Ah extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){U2(this,0,n),Object.keys(n).forEach(i=>{G2(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class W2 extends Ah{}const Dl=new Be("CallSetDisabledState",{providedIn:"root",factory:()=>kh}),kh="always";function Ih(t,n,e=kh){a0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function OU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X2(t,n)})}(t,n),function PU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function RU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X2(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function IU(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function rm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),sm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function am(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function a0(t,n){const e=B2(t);null!==n.validator?t.setValidators(j2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=H2(t);null!==n.asyncValidator?t.setAsyncValidators(j2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();am(n._rawValidators,o),am(n._rawAsyncValidators,o)}function sm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=B2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=H2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return am(n._rawValidators,i),am(n._rawAsyncValidators,i),e}function X2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J2(t,n){a0(t,n)}function l0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Q2(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function c0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Eh?e=r:function LU(t){return Object.getPrototypeOf(t.constructor)===Sl}(r)?i=r:o=r}),o||i||e||null}const BU={provide:Mo,useExisting:Sn(()=>Rh)},Oh=(()=>Promise.resolve())();let Rh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Lt,this.form=new Ah({},Kw(e),qw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Oh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ih(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path),o=new Ah({});J2(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Oh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Oh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Q2(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Ye.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([BU]),rn]})}}return t})();function K2(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function q2(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const $r=class extends im{constructor(n=null,e,i){super(o0(e),r0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),nm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=q2(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){K2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){K2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){q2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},zU={provide:ma,useExisting:Sn(()=>Ph)},nO=(()=>Promise.resolve())();let Ph=(()=>{class t extends ma{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new $r,this._registered=!1,this.name="",this.update=new Lt,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=c0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),l0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ih(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){nO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Yt(i);nO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function om(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(ie(Mo,9),ie(Xi,10),ie(Os,10),ie(ir,10),ie(Ti,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Cn([zU]),rn,Zi]})}}return t})();const u0=new Be(""),WU={provide:ma,useExisting:Sn(()=>d0)};let d0=(()=>{class t extends ma{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Lt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=c0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&rm(i,this,!1),Ih(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}l0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(ir,10),ie(u0,8),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Ye.None,"formControl","form"],isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Cn([WU]),rn,Zi]})}}return t})();const XU={provide:Mo,useExisting:Sn(()=>Nh)};let Nh=(()=>{class t extends Mo{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Lt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ih(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){rm(e.control||null,e,!1),function jU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Q2(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(rm(i||null,e),(t=>t instanceof $r)(o)&&(Ih(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);J2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function NU(t,n){return sm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a0(this.form,this),this._oldForm&&sm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Xi,10),ie(Os,10),ie(Dl,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&xt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Ye.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cn([XU]),rn,Zi]})}}return t})(),El=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Zi]})}}return t})();const sW={provide:Xi,useExisting:Sn(()=>lm),multi:!0};let lm=(()=>{class t extends El{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Yt,this.createValidator=e=>D2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&ln("required",o._enabled?"":null)},inputs:{required:"required"},features:[Cn([sW]),rn]})}}return t})(),yO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();class _O extends im{constructor(n,e,i){super(o0(e),r0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){U2(this,0,n),n.forEach((i,o)=>{G2(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function vO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return vO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Ah(o,r)}record(e,i=null){const o=this._reduceControls(e);return new W2(o,i)}control(e,i,o){let r={};return this.useNonNullable?(vO(i)?r=i:(r.validators=i,r.asyncValidators=o),new $r(e,{...r,nonNullable:!0})):new $r(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new _O(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof $r||e instanceof im?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),CO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})(),fW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Dl,useValue:e.callSetDisabledState??kh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[yO]})}}return t})();function xO(t){return new N(3e3,!1)}function Ps(t){switch(t.length){case 0:return new vh;case 1:return t[0];default:return new EI(t)}}function SO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case za:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function FW(t){return new N(3502,!1)}();return r}function b0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&y0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&y0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&y0(e,"destroy",t)))}}function y0(t,n,e){const r=_0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function _0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function or(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function DO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const WW=(()=>typeof document>"u"?null:document.documentElement)();function v0(t){const n=t.parentNode||t.host||null;return n===WW?null:n}let Tl=null,EO=!1;function TO(t,n){for(;n;){if(n===t)return!0;n=v0(n)}return!1}function MO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let w0=(()=>{class t{validateStyleProperty(e){return function JW(t){Tl||(Tl=function QW(){return typeof document<"u"?document.body:null}()||{},EO=!!Tl.style&&"WebkitAppearance"in Tl.style);let n=!0;return Tl.style&&!function XW(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Tl.style,!n&&EO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return TO(e,i)}getParentElement(e){return v0(e)}query(e,i,o){return MO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new vh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class C0{static{this.NOOP=new w0}}class x0{}const qW=1e3,S0="ng-enter",cm="ng-leave",um="ng-trigger",dm=".ng-trigger",kO="ng-animating",D0=".ng-animating";function Ga(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:E0(parseFloat(n[1]),n[2])}function E0(t,n){return"s"===n?t*qW:t}function hm(t,n,e){return t.hasOwnProperty("duration")?t:function tX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(xO()),{duration:0,delay:0,easing:""};o=E0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=E0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function pW(){return new N(3100,!1)}()),s=!0),r<0&&(n.push(function gW(){return new N(3101,!1)}()),s=!0),s&&n.splice(l,0,xO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function ba(t,n,e){n.forEach((i,o)=>{const r=M0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ml(t,n){n.forEach((e,i)=>{const o=M0(i);t.style[o]=""})}function Fh(t){return Array.isArray(t)?1==t.length?t[0]:function TZ(t,n=null){return{type:zt.Sequence,steps:t,options:n}}(t):t}const T0=new RegExp("{{\\s*(.+?)\\s*}}","g");function OO(t){let n=[];if("string"==typeof t){let e;for(;e=T0.exec(t);)n.push(e[1]);T0.lastIndex=0}return n}function Lh(t,n,e){const i=`${t}`,o=i.replace(T0,(r,a)=>{let s=n[a];return null==s&&(e.push(function bW(t){return new N(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const oX=/-+([a-z0-9])/g;function M0(t){return t.replace(oX,(...n)=>n[1].toUpperCase())}function rr(t,n,e){switch(n.type){case zt.Trigger:return t.visitTrigger(n,e);case zt.State:return t.visitState(n,e);case zt.Transition:return t.visitTransition(n,e);case zt.Sequence:return t.visitSequence(n,e);case zt.Group:return t.visitGroup(n,e);case zt.Animate:return t.visitAnimate(n,e);case zt.Keyframes:return t.visitKeyframes(n,e);case zt.Style:return t.visitStyle(n,e);case zt.Reference:return t.visitReference(n,e);case zt.AnimateChild:return t.visitAnimateChild(n,e);case zt.AnimateRef:return t.visitAnimateRef(n,e);case zt.Query:return t.visitQuery(n,e);case zt.Stagger:return t.visitStagger(n,e);default:throw function yW(t){return new N(3004,!1)}()}}function A0(t,n){return window.getComputedStyle(t)[n]}const sX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RO extends x0{normalizePropertyName(n,e){return M0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(sX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function _W(t,n){return new N(3005,!1)}())}return a+r}}const fm="*";const pm=new Set(["true","1"]),gm=new Set(["false","0"]);function PO(t,n){const e=pm.has(t)||gm.has(t),i=pm.has(n)||gm.has(n);return(o,r)=>{let a=t==fm||t==o,s=n==fm||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?pm.has(t):gm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?pm.has(n):gm.has(n)),a&&s}}const dX=new RegExp("s*:selfs*,?","g");function k0(t,n,e,i){return new hX(t).build(n,e,i)}class hX{constructor(n){this._driver=n}build(n,e,i){const o=new gX(e);return this._resetContextStyleTimingState(o),rr(this,Fh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function vW(){return new N(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==zt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==zt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function wW(){return new N(3007,!1)}())}),{type:zt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{OO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function CW(t,n){return new N(3008,!1)}(0,r.values()))}return{type:zt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=rr(this,Fh(n.animation),e),o=function lX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function cX(t,n,e){if(":"==t[0]){const l=function uX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function IW(t){return new N(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(PO(o,a)),"<"==r[0]&&(o!=fm||a!=fm)&&n.push(PO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:zt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Al(n.options)}}visitSequence(n,e){return{type:zt.Sequence,steps:n.steps.map(i=>rr(this,i,e)),options:Al(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=rr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:zt.Group,steps:r,options:Al(n.options)}}visitAnimate(n,e){const i=function bX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return I0(hm(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=I0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=hm(e,n);return I0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ki({});if(r.type==zt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=ki(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:zt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===za?i.push(s):e.errors.push(new N(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:zt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function SW(t,n,e,i,o){return new N(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function iX(t,n,e){const i=n.params||{},o=OO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function mW(t){return new N(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:zt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new N(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(S=>{const H=this._makeStyleAst(S,e);let re=null!=H.offset?H.offset:function mX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),ce=0;return null!=re&&(r++,ce=H.offset=re),l=l||ce<0||ce>1,s=s||ce0&&r{const re=h>0?H==p?1:h*H:a[H],ce=re*T;e.currentTime=g+b.delay+ce,b.duration=ce,this._validateStyleAst(S,e),S.offset=re,i.styles.push(S)}),i}visitReference(n,e){return{type:zt.Reference,animation:rr(this,Fh(n.animation),e),options:Al(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:zt.AnimateChild,options:Al(n.options)}}visitAnimateRef(n,e){return{type:zt.AnimateRef,animation:this.visitReference(n.animation,e),options:Al(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function fX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(dX,"")),t=t.replace(/@\*/g,dm).replace(/@\w+/g,e=>dm+"-"+e.slice(1)).replace(/:animating/g,D0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,or(e.collectedStyles,e.currentQuerySelector,new Map);const s=rr(this,Fh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:zt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Al(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function AW(){return new N(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:hm(n.timings,e.errors,!0);return{type:zt.Stagger,animation:rr(this,Fh(n.animation),e),timings:i,options:null}}}class gX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Al(t){return t?(t={...t}).params&&(t.params=function pX(t){return t?{...t}:null}(t.params)):t={},t}function I0(t,n,e){return{duration:t,delay:n,easing:e}}function O0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class mm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const vX=new RegExp(":enter","g"),CX=new RegExp(":leave","g");function R0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new xX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class xX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new mm;const d=new P0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ga(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),rr(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[O0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ga(Lh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ga(i.duration):null,s=null!=i.delay?Ga(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),rr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==zt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=bm);const a=Ga(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>rr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ga(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),rr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return hm(e.params?Lh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==zt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ga(o.delay):0;r&&(e.previousNode.type===zt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),rr(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;rr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const bm={};class P0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ym(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ga(i.duration)),null!=i.delay&&(o.delay=Ga(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Lh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new P0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=bm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new SX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(vX,"."+this._enterClassName)).replace(CX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function kW(t){return new N(3014,!1)}()),s}}class ym{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ym(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||za),this._currentKeyframe.set(e,za);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function DX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,za)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Lh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??za),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===za&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return O0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class SX extends ym{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",LO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",LO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return O0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function LO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function jO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const N0={};class BO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function EX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||N0,g=this.buildStyles(i,s&&s.params||N0,d),b=l&&l.params||N0,T=this.buildStyles(o,b,d),S=new Set,H=new Map,re=new Map,ce="void"===o,G={params:HO(b,h),delay:this.ast.options?.delay},pe=u?[]:R0(n,e,this.ast.animation,r,a,g,T,G,c,d);let ye=0;return pe.forEach(be=>{ye=Math.max(be.duration+be.delay,ye)}),d.length?jO(e,this._triggerName,i,o,ce,g,T,[],[],H,re,ye,d):(pe.forEach(be=>{const Pe=be.element,je=or(H,Pe,new Set);be.preStyleProps.forEach(Re=>je.add(Re));const Xe=or(re,Pe,new Set);be.postStyleProps.forEach(Re=>Xe.add(Re)),Pe!==e&&S.add(Pe)}),jO(e,this._triggerName,i,o,ce,g,T,pe,[...S.values()],H,re,ye))}}function HO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class TX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=HO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Lh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class AX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new TX(o.style,o.options&&o.options.params||{},i))}),YO(this.states,"true","1"),YO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new BO(n,o,this.states))}),this.fallbackTransition=function kX(t,n,e){return new BO(t,{type:zt.Transition,animation:{type:zt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function YO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const IX=new mm;class OX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=k0(this._driver,e,i,[]);if(i.length)throw function LW(t){return new N(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=SO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=R0(this._driver,e,r,S0,cm,new Map,new Map,i,IX,o),a.forEach(u=>{const d=or(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function jW(){return new N(3300,!1)}()),a=[]),o.length)throw function BW(t){return new N(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,za))})});const c=Ps(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function HW(t){return new N(3301,!1)}();return e}listen(n,e,i,o){const r=_0(e,"","","");return b0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const zO="ng-animate-queued",F0="ng-animate-disabled",LX=[],$O={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vr="__ng_removed";class L0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function zX(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const jh="void",j0=new L0(jh);class BX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,_r(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YW(t,n){return new N(3302,!1)}();if(null==i||0==i.length)throw function zW(t){return new N(3303,!1)}();if(!function $X(t){return"start"==t||"done"==t}(i))throw function $W(t,n){return new N(3400,!1)}();const r=or(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=or(this._engine.statesByElement,n,new Map);return s.has(e)||(_r(n,um),_r(n,um+"-"+e),s.set(e,j0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function VW(t){return new N(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new B0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(_r(n,um),_r(n,um+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new L0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=j0),c.value!==jh&&l.value===c.value){if(!function GX(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ml(n,T),ba(n,S)})}return}const h=or(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(_r(n,zO),a.onStart(()=>{ru(n,zO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let S=T.indexOf(a);S>=0&&T.splice(S,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,dm,!0);i.forEach(o=>{if(o[Vr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,jh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Ps(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||j0,u=new L0(jh),d=new B0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Vr];(!r||r===$O)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){_r(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=_0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,b0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class HX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new BX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(_m(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!_m(e))return;const r=e[Vr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),_r(n,F0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ru(n,F0))}removeNode(n,e,i){if(_m(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Vr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return _m(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,dm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,D0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ps(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Vr];if(e&&e.setForRemoval){if(n[Vr]=$O,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(F0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ps(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function ZW(t){return new N(3402,!1)}()}_flushAnimations(n,e){const i=new mm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const He=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=S0+b++;g.set(He,We),Se.forEach(nt=>_r(nt,We))});const T=[],S=new Set,H=new Set;for(let Se=0;SeS.add(nt)):H.add(He))}const re=new Map,ce=GO(h,Array.from(S));ce.forEach((Se,He)=>{const We=cm+b++;re.set(He,We),Se.forEach(nt=>_r(nt,We))}),n.push(()=>{p.forEach((Se,He)=>{const We=g.get(He);Se.forEach(nt=>ru(nt,We))}),ce.forEach((Se,He)=>{const We=re.get(He);Se.forEach(nt=>ru(nt,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const nt=We.player,St=We.element;if(G.push(nt),this.collectedEnterElements.length){const Vn=St[Vr];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(We.triggerName)){const ct=Vn.previousTriggersValues.get(We.triggerName),yn=this.statesByElement.get(We.element);if(yn&&yn.has(We.triggerName)){const ro=yn.get(We.triggerName);ro.value=ct,yn.set(We.triggerName,ro)}}return void nt.destroy()}}const Mt=!d||!this.driver.containsElement(d,St),en=re.get(St),Rn=g.get(St),an=this._buildInstruction(We,i,Rn,en,Mt);if(an.errors&&an.errors.length)return void pe.push(an);if(Mt)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);if(We.isFallbackTransition)return nt.onStart(()=>Ml(St,an.fromStyles)),nt.onDestroy(()=>ba(St,an.toStyles)),void o.push(nt);const sn=[];an.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||sn.push(Vn)}),an.timelines=sn,i.append(St,an.timelines),a.push({instruction:an,player:nt,element:St}),an.queriedElements.forEach(Vn=>or(s,Vn,[]).push(nt)),an.preStyleProps.forEach((Vn,ct)=>{if(Vn.size){let yn=l.get(ct);yn||l.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))}}),an.postStyleProps.forEach((Vn,ct)=>{let yn=c.get(ct);yn||c.set(ct,yn=new Set),Vn.forEach((ro,Er)=>yn.add(Er))})});if(pe.length){const Se=[];pe.forEach(He=>{Se.push(function GW(t,n){return new N(3505,!1)}())}),G.forEach(He=>He.destroy()),this.reportError(Se)}const ye=new Map,be=new Map;a.forEach(Se=>{const He=Se.element;i.has(He)&&(be.set(He,He),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,ye))}),o.forEach(Se=>{const He=Se.element;this._getPreviousPlayers(He,!1,Se.namespaceId,Se.triggerName,null).forEach(nt=>{or(ye,He,[]).push(nt),nt.destroy()})});const Pe=T.filter(Se=>WO(Se,l,c)),je=new Map;ZO(je,this.driver,H,c,za).forEach(Se=>{WO(Se,l,c)&&Pe.push(Se)});const Re=new Map;p.forEach((Se,He)=>{ZO(Re,this.driver,new Set(Se),l,"!")}),Pe.forEach(Se=>{const He=je.get(Se),We=Re.get(Se);je.set(Se,new Map([...He?.entries()??[],...We?.entries()??[]]))});const Je=[],st=[],ht={};a.forEach(Se=>{const{element:He,player:We,instruction:nt}=Se;if(i.has(He)){if(u.has(He))return We.onDestroy(()=>ba(He,nt.toStyles)),We.disabled=!0,We.overrideTotalTime(nt.totalTime),void o.push(We);let St=ht;if(be.size>1){let en=He;const Rn=[];for(;en=en.parentNode;){const an=be.get(en);if(an){St=an;break}Rn.push(en)}Rn.forEach(an=>be.set(an,St))}const Mt=this._buildAnimation(We.namespaceId,nt,ye,r,Re,je);if(We.setRealPlayer(Mt),St===ht)Je.push(We);else{const en=this.playersByElement.get(St);en&&en.length&&(We.parentPlayer=Ps(en)),o.push(We)}}else Ml(He,nt.fromStyles),We.onDestroy(()=>ba(He,nt.toStyles)),st.push(We),u.has(He)&&o.push(We)}),st.forEach(Se=>{const He=r.get(Se.element);if(He&&He.length){const We=Ps(He);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!Mt.destroyed);St.length?VX(this,He,St):this.processLeaveNode(He)}return T.length=0,Je.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const He=this.players.indexOf(Se);this.players.splice(He,1)}),Se.play()}),Je}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==jh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=or(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ml(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Vr];if(T&&T.removedBeforeQueried)return new vh(g.duration,g.delay);const S=b!==l,H=function ZX(t){const n=[];return UO(t,n),n}((i.get(b)||LX).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===b),re=r.get(b),ce=a.get(b),G=SO(this._normalizer,g.keyframes,re,ce),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),S){const ye=new B0(n,s,b);ye.setRealPlayer(pe),c.push(ye)}return pe});c.forEach(g=>{or(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function YX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>_r(g,kO));const p=Ps(h);return p.onDestroy(()=>{u.forEach(g=>ru(g,kO)),ba(l,e.toStyles)}),d.forEach(g=>{or(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new vh(n.duration,n.delay)}}class B0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new vh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>b0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){or(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function _m(t){return t&&1===t.nodeType}function VO(t,n){const e=t.style.display;return t.style.display=n??"none",e}function ZO(t,n,e,i,o){const r=[];e.forEach(l=>r.push(VO(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Vr]=jX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>VO(l,r[s++])),a}function GO(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function _r(t,n){t.classList?.add(n)}function ru(t,n){t.classList?.remove(n)}function VX(t,n,e){Ps(e).onDone(()=>t.processLeaveNode(n))}function UO(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Bh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new HX(n.body,e,i,o),this._timelineEngine=new OX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=k0(this._driver,r,l,[]);if(l.length)throw function NW(t,n){return new N(3404,!1)}();s=function MX(t,n,e){return new AX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=DO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=DO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Hh{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Hh.initialStylesByElement.get(n);o||Hh.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ba(this._element,this._initialStyles),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Hh.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),ba(this._element,this._initialStyles),this._state=3)}}function H0(t){let n=null;return t.forEach((e,i)=>{(function WX(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class XO{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:A0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class JO{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return TO(n,e)}getParentElement(n){return v0(n)}query(n,e,i){return MO(n,e,i)}computeStyle(n,e,i){return A0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof XO);(function rX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function nX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function aX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,A0(t,s)))}}return n}(n,d,c);const h=function UX(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=H0(n[0]),n.length>1&&(i=H0(n[n.length-1]))):n instanceof Map&&(e=H0(n)),e||i?new Hh(t,e,i):null}(n,d);return new XO(n,d,l,h)}}const QO="@.disabled";class KO{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==QO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class XX extends KO{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function JX(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function QX(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class KX{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new KO("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new XX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let qX=(()=>{class t extends Bh{constructor(e,i,o){super(e,i,o,Ne($p,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(Kt),Me(C0),Me(x0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const qO=[{provide:x0,useFactory:function eJ(){return new RO}},{provide:Bh,useClass:qX},{provide:X_,useFactory:function tJ(t,n,e){return new KX(t,n,e)},deps:[Nw,Bh,Ct]}],Y0=[{provide:C0,useFactory:()=>new JO},{provide:Co,useValue:"BrowserAnimations"},...qO],eR=[{provide:C0,useClass:w0},{provide:Co,useValue:"NoopAnimations"},...qO];let z0,nJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?eR:Y0}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:Y0,imports:[jw]})}}return t})();try{z0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{z0=!1}let au,Si=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?qk(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!z0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(Pa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const tR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nR(){if(au)return au;if("object"!=typeof document||!document)return au=new Set(tR),au;let t=document.createElement("input");return au=new Set(tR.filter(n=>(t.setAttribute("type",n),t.type===n))),au}let Yh,kl,$0;function zh(t){return function iJ(){if(null==Yh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function oJ(){if(null==kl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kl=!1,kl;if("scrollBehavior"in document.documentElement.style)kl=!0;else{const t=Element.prototype.scrollTo;kl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kl}function Cm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ns(t){return t.composedPath?t.composedPath()[0]:t.target}function V0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fs(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Hi(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?ni((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):$i}class vJ extends me{constructor(n,e){super()}schedule(n,e=0){return this}}const Dm={setInterval(t,n,...e){const{delegate:i}=Dm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Dm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class W0 extends vJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Dm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Dm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,te(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const X0={now:()=>(X0.delegate||Date).now(),delegate:void 0};class Vh{constructor(n,e=Vh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Vh.now=X0.now;class J0 extends Vh{constructor(n,e=Vh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Q0=new J0(W0),wJ=Q0;function aR(t,n=Q0){return ni((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const vr=new _n(t=>t.complete());function io(t){return t<=0?()=>vr:ni((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function sR(t){return Ii((n,e)=>t<=e)}function K0(t,n=$i){return t=t??xJ,ni((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function xJ(t,n){return t===n}function In(t){return ni((n,e)=>{po(t).subscribe(Pn(e,()=>e.complete(),At)),!e.closed&&n.subscribe(e)})}let SJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({providers:[SJ]})}}return t})();function Em(t){return null!=t&&"false"!=`${t}`}function cR(t,n=0){return function DJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Tm(t){return Array.isArray(t)?t:[t]}function Oi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ls(t){return t instanceof Zt?t.nativeElement:t}function Mm(...t){const n=wh(t),e=II(t),{args:i,keys:o}=y2(t);if(0===i.length)return hi([],n);const r=new _n(function EJ(t,n,e=$i){return i=>{uR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=hi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>_2(o,a):$i));return e?r.pipe(Qw(e)):r}function uR(t,n,e){t?Va(e,t,n):n()}function su(t=1/0){return no($i,t)}function Am(...t){return function TJ(){return su(1)}()(hi(t,wh(t)))}function ya(...t){const n=wh(t);return ni((e,i)=>{(n?Am(t,e,n):Am(t,e)).subscribe(i)})}const dR=new Set;let Il,MJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function AJ(t,n){if(!dR.has(t))try{Il||(Il=document.createElement("style"),n&&(Il.nonce=n),Il.setAttribute("type","text/css"),document.head.appendChild(Il)),Il.sheet&&(Il.sheet.insertRule(`@media ${t} {body{ }}`,0),dR.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(e_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let IJ=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _t}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hR(Tm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Mm(hR(Tm(e)).map(a=>this._registerQuery(a).observable));return r=Am(r.pipe(io(1)),r.pipe(sR(1),aR(0))),r.pipe(Nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new _n(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ya(i),Nt(({matches:a})=>({query:e,matches:a})),In(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(MJ),Me(Ct))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function pR(t,n,e){const i=gR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function gR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class mR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _t,this._typeaheadSubscription=me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new _t,this.change=new _t,n instanceof ds&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Hi(e=>this._pressedLetters.push(e)),aR(n),Ii(()=>this._pressedLetters.length>0),Nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof ds?this._items.toArray():this._items}}class NJ extends mR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class FJ extends mR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let q0=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function jJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function LJ(t){try{return t.frameElement}catch{return null}}(function GJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=yR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function VJ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function ZJ(t){return!function HJ(t){return function zJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function BJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function YJ(t){return function $J(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bR(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bR(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(t){if(!bR(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class UJ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(io(1)).subscribe(n)}}let _R=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new UJ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(q0),Me(Ct),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return 0===t.buttons||0===t.detail}function wR(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const WJ=new Be("cdk-input-modality-detector-options"),XJ={ignoreKeys:[18,17,224,91,16]},lu=zh({passive:!0,capture:!0});let JJ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ci(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ns(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vR(a)?"keyboard":"mouse"),this._mostRecentTarget=Ns(a))},this._onTouchstart=a=>{wR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ns(a))},this._options={...XJ,...r},this.modalityDetected=this._modality.pipe(sR(1)),this.modalityChanged=this.modalityDetected.pipe(K0()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,lu),o.addEventListener("mousedown",this._onMousedown,lu),o.addEventListener("touchstart",this._onTouchstart,lu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lu),document.removeEventListener("mousedown",this._onMousedown,lu),document.removeEventListener("touchstart",this._onTouchstart,lu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Ct),Me(Kt),Me(WJ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const QJ=new Be("liveAnnouncerElement",{providedIn:"root",factory:function KJ(){return null}}),qJ=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let eQ=0,tQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _t,this._rootNodeFocusAndBlurListener=s=>{for(let c=Ns(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||km.IMMEDIATE}monitor(e,i=!1){const o=Ls(e);if(!this._platform.isBrowser||1!==o.nodeType)return Tt();const r=function aJ(t){if(function rJ(){if(null==$0){const t=typeof document<"u"?document.head:null;$0=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $0}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new _t,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ls(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ls(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===km.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===km.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Ns(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Im)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Im),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Im),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ne(IJ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Rl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Rl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Rl.BLACK_ON_WHITE}return Rl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(eC,xR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Rl.BLACK_ON_WHITE?e.add(eC,xR):i===Rl.WHITE_ON_BLACK&&e.add(eC,SR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Si),Me(Kt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(DR))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[lR]})}}return t})();const oQ=new Be("cdk-dir-doc",{providedIn:"root",factory:function rQ(){return Ne(Kt)}}),aQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let js=(()=>{class t{constructor(e){this.value="ltr",this.change=new Lt,e&&(this.value=function sQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?aQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(oQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();const lQ=["text"],cQ=[[["mat-icon"]],"*"],uQ=["mat-icon","*"];function dQ(t,n){if(1&t&&dt(0,"mat-pseudo-checkbox",1),2&t){const e=lt();Ke("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function hQ(t,n){1&t&&dt(0,"mat-pseudo-checkbox",3),2&t&&Ke("disabled",lt().disabled)}function fQ(t,n){if(1&t&&(_e(0,"span",4),mn(1),ve()),2&t){const e=lt();Fe(),gr("(",e.group.label,")")}}const pQ=["mat-internal-form-field",""],gQ=["*"],bQ=new Be("mat-sanity-checks",{providedIn:"root",factory:function mQ(){return!0}});let $n=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!V0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(DR),Me(bQ,8),Me(Kt))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[cu,cu]})}}return t})();class tC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Zh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(wr||{});class xQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=wr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const MR=zh({passive:!0,capture:!0});class SQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ns(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,MR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,MR)))}}const AR={enterDuration:225,exitDuration:150},kR=zh({passive:!0,capture:!0}),IR=["mousedown","touchstart"],OR=["mouseup","mouseleave","touchend","touchcancel"];class Om{static{this._eventManager=new SQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ls(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...AR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function EQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new xQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=wr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const S=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),T={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===wr.FADING_OUT||n.state===wr.HIDDEN)return;const e=n.element,i={...AR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=wr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ls(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,IR.forEach(i=>{Om._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{OR.forEach(e=>{this._triggerElement.addEventListener(e,this,kR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===wr.FADING_IN?this._startFadeOutTransition(n):n.state===wr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=wr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=wr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=vR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===wr.VISIBLE||n.config.terminateOnPointerUp&&n.state===wr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(IR.forEach(e=>Om._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&OR.forEach(e=>n.removeEventListener(e,this,kR)))}}const RR=new Be("mat-ripple-global-options");let uu=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Om(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ct),ie(Si),ie(RR,8),ie(Co,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Ye.None,"matRippleColor","color"],unbounded:[Ye.None,"matRippleUnbounded","unbounded"],centered:[Ye.None,"matRippleCentered","centered"],radius:[Ye.None,"matRippleRadius","radius"],animation:[Ye.None,"matRippleAnimation","animation"],disabled:[Ye.None,"matRippleDisabled","disabled"],trigger:[Ye.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),Uh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})(),PR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(ie(Co,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&dn("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ii],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),TQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n]})}}return t})();const NR=new Be("MAT_OPTION_PARENT_COMPONENT"),FR=new Be("MatOptgroup");let MQ=0;class AQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let nC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+MQ++,this.onSelectionChange=new Lt,this._stateChanges=new _t}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Fs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new AQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Ti),ie(NR,8),ie(FR,8))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Jn(lQ,7),2&i){let r;$t(r=Vt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&xt("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Cs("id",o.id),ln("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),dn("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Ye.HasDecoratorInputTransform,"disabled","disabled",Yt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[So,ii],ngContentSelectors:uQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Ui(cQ),kt(0,dQ,1,2,"mat-pseudo-checkbox",1),wn(1),_e(2,"span",2,0),wn(4,1),ve(),kt(5,hQ,1,1,"mat-pseudo-checkbox",3)(6,fQ,2,1,"span",4),dt(7,"div",5)),2&i&&(Mn(0,o.multiple?0:-1),Fe(5),Mn(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Fe(),Mn(6,o.group&&o.group._inert?6:-1),Fe(),Ke("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[PR,uu],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),LR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[Uh,$n,TQ]})}}return t})();const jR={capture:!0},BR=["focus","click","mouseenter","touchstart"],iC="mat-ripple-loader-uninitialized",oC="mat-ripple-loader-class-name",HR="mat-ripple-loader-centered",Rm="mat-ripple-loader-disabled";let OQ=(()=>{class t{constructor(){this._document=Ne(Kt,{optional:!0}),this._animationMode=Ne(Co,{optional:!0}),this._globalRippleOptions=Ne(RR,{optional:!0}),this._platform=Ne(Si),this._ngZone=Ne(Ct),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${iC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of BR)this._document?.addEventListener(e,this._onInteraction,jR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of BR)this._document?.removeEventListener(i,this._onInteraction,jR)}configureRipple(e,i){e.setAttribute(iC,""),(i.className||!e.hasAttribute(oC))&&e.setAttribute(oC,i.className||""),i.centered&&e.setAttribute(HR,""),i.disabled&&e.setAttribute(Rm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(Rm,""):e.removeAttribute(Rm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(oC)),e.append(o);const r=new uu(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(HR),r.disabled=e.hasAttribute(Rm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(iC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&dn("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ii],attrs:pQ,ngContentSelectors:gQ,decls:1,vars:0,template:function(i,o){1&i&&(Ui(),wn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const RQ=["*",[["mat-toolbar-row"]]],PQ=["*","mat-toolbar-row"];let NQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),zR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(ie(Zt),ie(Si),ie(Kt))}}static{this.\u0275cmp=gn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&gi(r,NQ,5),2&i){let a;$t(a=Vt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(qi(o.color?"mat-"+o.color:""),dn("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[ii],ngContentSelectors:PQ,decls:2,vars:0,template:function(i,o){1&i&&(Ui(RQ),wn(0),wn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),FQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({imports:[$n,$n]})}}return t})();const Pm=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Wh(t){return new _n(n=>{po(t()).subscribe(n)})}function du(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new _n(n?o=>n.schedule(i,0,o):i)}function rC(){return ni((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class $R extends _n{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Wu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new me;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=me.EMPTY)}return n}refCount(){return rC()(this)}}function Nm(t){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function VR(t=jQ){return ni((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function jQ(){return new Pm}function Pl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,io(1),e?Nm(n):VR(()=>new Pm))}function Ua(t){return ni((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=po(t(a,Ua(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function aC(t){return t<=0?()=>vr:ni((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const cn="primary",Xh=Symbol("RouteTitle");class $Q{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hu(t){return new $Q(t)}function VQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function GR(t){return t.length>0?t[t.length-1]:null}function Bs(t){return function LQ(t){return!!t&&(t instanceof _n||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:uh(t)?hi(Promise.resolve(t)):Tt(t)}const GQ={exact:function XR(t,n,e){if(!Nl(t.segments,n.segments)||!Fm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!XR(t.children[i],n.children[i],e))return!1;return!0},subset:JR},UR={exact:function UQ(t,n){return _a(t,n)},subset:function WQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ZR(t[e],n[e]))},ignored:()=>!0};function WR(t,n,e){return GQ[e.paths](t.root,n.root,e.matrixParams)&&UR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function JR(t,n,e){return QR(t,n,n.segments,e)}function QR(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Nl(o,e)||n.hasChildren()||!Fm(o,e,i))}if(t.segments.length===e.length){if(!Nl(t.segments,e)||!Fm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!JR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Nl(t.segments,o)&&Fm(t.segments,o,i)&&t.children[cn])&&QR(t.children[cn],n,r,i)}}function Fm(t,n,e){return n.every((i,o)=>UR[e](t[o].parameters,i.parameters))}class fu{constructor(n=new jn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return QQ.serialize(this)}}class jn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lm(this)}}class Jh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hu(this.parameters),this._parameterMap}toString(){return eP(this)}}function Nl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new lC,providedIn:"root"})}}return t})();class lC{parse(n){const e=new lK(n);return new fu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Qh(n.root,!0)}`,i=function eK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${jm(e)}=${jm(o)}`).join("&"):`${jm(e)}=${jm(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QQ=new lC;function Lm(t){return t.segments.map(n=>eP(n)).join("/")}function Qh(t,n){if(!t.hasChildren())return Lm(t);if(n){const e=t.children[cn]?Qh(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${Qh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function JQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[Qh(t.children[cn],!1)]:[`${o}:${Qh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Lm(t)}/${e[0]}`:`${Lm(t)}/(${e.join("//")})`}}function KR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jm(t){return KR(t).replace(/%3B/gi,";")}function cC(t){return KR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bm(t){return decodeURIComponent(t)}function qR(t){return Bm(t.replace(/\+/g,"%20"))}function eP(t){return`${cC(t.path)}${function qQ(t){return Object.entries(t).map(([n,e])=>`;${cC(n)}=${cC(e)}`).join("")}(t.parameters)}`}const tK=/^[^\/()?;#]+/;function uC(t){const n=t.match(tK);return n?n[0]:""}const nK=/^[^\/()?;=#]+/,oK=/^[^=?&#]+/,aK=/^[^&#]+/;class lK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jn([],{}):new jn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new jn(n,e)),i}parseSegment(){const n=uC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new Jh(Bm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function iK(t){const n=t.match(nK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uC(this.remaining);o&&(i=o,this.capture(i))}n[Bm(e)]=Bm(i)}parseQueryParam(n){const e=function rK(t){const n=t.match(oK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function sK(t){const n=t.match(aK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=qR(e),r=qR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new jn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function tP(t){return t.segments.length>0?new jn([],{[cn]:t}):t}function nP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=nP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function cK(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new jn(t.segments.concat(n.segments),n.children)}return t}(new jn(t.segments,n))}function gu(t){return t instanceof fu}function iP(t){let n;const o=tP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new jn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function oP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return dC(o,o,o,e,i);const r=function dK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new aP(e,n,i)}(n);if(r.toRoot())return dC(o,o,new jn([],{}),e,i);const a=function hK(t,n,e){if(t.isAbsolute)return new Ym(n,!0,0);if(!e)return new Ym(n,!1,NaN);if(null===e.parent)return new Ym(e,!0,0);const i=Hm(t.commands[0])?0:1;return function fK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new N(4005,!1);o=i.segments.length}return new Ym(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?qh(a.segmentGroup,a.index,r.commands):sP(a.segmentGroup,a.index,r.commands);return dC(o,a.segmentGroup,s,e,i)}function Hm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Kh(t){return"object"==typeof t&&null!=t&&t.outlets}function dC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:rP(t,n,e);const s=tP(nP(a));return new fu(s,r,o)}function rP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:rP(r,n,e)}),new jn(t.segments,i)}class aP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Hm(i[0]))throw new N(4003,!1);const o=i.find(Kh);if(o&&o!==GR(i))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function sP(t,n,e){if(t??=new jn([],{}),0===t.segments.length&&t.hasChildren())return qh(t,n,e);const i=function gK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(Kh(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!cP(l,c,a))return r;i+=2}else{if(!cP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=qh(t.children[cn],n,e);return new jn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=sP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new jn(t.segments,o)}}function hC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=hC(new jn([],{}),0,i))}),n}function lP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function cP(t,n,e){return t==e.path&&_a(n,e.parameters)}const ef="imperative";var bn=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}(bn||{});class va{constructor(n,e){this.id=n,this.url=e}}class zm extends va{constructor(n,e,i="imperative",o=null){super(n,e),this.type=bn.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wa extends va{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=bn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ar=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ar||{}),$m=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($m||{});class mu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bu extends va{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=bn.NavigationSkipped}}class Vm extends va{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=bn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uP extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yK extends va{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=bn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _K extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vK extends va{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=bn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class CK{constructor(n){this.route=n,this.type=bn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SK{constructor(n){this.snapshot=n,this.type=bn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DK{constructor(n){this.snapshot=n,this.type=bn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EK{constructor(n){this.snapshot=n,this.type=bn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dP{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=bn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class fC{}class pC{constructor(n){this.url=n}}class TK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tf,this.attachRef=null}}let tf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new TK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class hP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=gC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=gC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=mC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return mC(n,this._root).map(e=>e.value)}}function gC(t,n){if(t===n.value)return n;for(const e of n.children){const i=gC(t,e);if(i)return i}return null}function mC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=mC(t,e);if(i.length)return i.unshift(n),i}return[]}class Zr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function yu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class fP extends hP{constructor(n,e){super(n),this.snapshot=e,_C(this,n)}toString(){return this.snapshot.toString()}}function pP(t){const n=function MK(t){const r=new yC([],{},{},"",{},cn,t,null,{});return new gP("",new Zr(r,[]))}(t),e=new ci([new Jh("",{})]),i=new ci({}),o=new ci({}),r=new ci({}),a=new ci(""),s=new Fl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new fP(new Zr(s,[]),n)}class Fl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Nt(c=>c[Xh]))??Tt(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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(Nt(n=>hu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nt(n=>hu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&bP(o)&&(i.resolve[Xh]=o.title),i}class yC{get title(){return this.data?.[Xh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gP extends hP{constructor(n,e){super(e),this.url=n,_C(this,e)}toString(){return mP(this._root)}}function _C(t,n){n.value._routerState=t,n.children.forEach(e=>_C(t,e))}function mP(t){const n=t.children.length>0?` { ${t.children.map(mP).join(", ")} } `:"";return`${t.value}${n}`}function vC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_a(n.params,e.params)||t.paramsSubject.next(e.params),function ZQ(t,n){if(t.length!==n.length)return!1;for(let e=0;e_a(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||wC(t.parent,n.parent))}function bP(t){return"string"==typeof t.title||null===t.title}let CC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Lt,this.deactivateEvents=new Lt,this.attachEvents=new Lt,this.detachEvents=new Lt,this.parentContexts=Ne(tf),this.location=Ne(jo),this.changeDetector=Ne(Ti),this.environmentInjector=Ne(No),this.inputBinder=Ne(Zm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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;const 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 N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new AK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zi]})}}return t})();class AK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Fl?this.route:n===tf?this.childContexts:this.parent.get(n,e)}}const Zm=new Be("");let yP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Mm([i.queryParams,i.params,i.data]).pipe(Wi(([r,a,s],l)=>(s={...r,...a,...s},0===l?Tt(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function q$(t){const n=un(t);if(!n)return null;const e=new Hd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function nf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function IK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return nf(t,i,o);return nf(t,i)})}(t,n,e);return new Zr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>nf(t,s)),a}}const i=function OK(t){return new Fl(new ci(t.url),new ci(t.params),new ci(t.queryParams),new ci(t.fragment),new ci(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>nf(t,r));return new Zr(i,o)}}const _P="ngNavigationCancelingError";function vP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=gu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=wP(!1,ar.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function wP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[_P]=!0,e.cancellationCode=n,e}function CP(t){return!!t&&t[_P]}let xP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=gn({type:t,selectors:[["ng-component"]],standalone:!0,features:[ii],decls:1,vars:0,template:function(i,o){1&i&&dt(0,"router-outlet")},dependencies:[CC],encapsulation:2})}}return t})();function xC(t){const n=t.children&&t.children.map(xC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=xP),e}function wa(t){return t.outlet||cn}function rf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class HK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),vC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=yu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=yu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new EK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new SK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(vC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),vC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=rf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class SP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Gm{constructor(n,e){this.component=n,this.route=e}}function YK(t,n,e){const i=t._root;return af(i,n?n._root:null,e,[i.value])}function _u(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Zj(t){return null!==jf(t)}(t)?n.get(t):t:i}function af(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=yu(n);return t.children.forEach(a=>{(function $K(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function VK(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nl(t.url,n.url)||!_a(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wC(t,n)||!_a(t.queryParams,n.queryParams);default:return!wC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new SP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),af(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Gm(s.outlet.component,a))}else a&&sf(n,s,o),o.canActivateChecks.push(new SP(i)),af(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>sf(s,e.getContext(a),o)),o}function sf(t,n,e){const i=yu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{sf(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new Gm(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function lf(t){return"function"==typeof t}function DP(t){return t instanceof Pm||"EmptyError"===t?.name}const Um=Symbol("INITIAL_VALUE");function vu(){return Wi(t=>Mm(t.map(n=>n.pipe(io(1),ya(Um)))).pipe(Nt(n=>{for(const e of n)if(!0!==e){if(e===Um)return Um;if(!1===e||e instanceof fu)return e}return!0}),Ii(n=>n!==Um),io(1)))}function EP(t){return function Uu(...t){return Nf(t)}(Hi(n=>{if(gu(n))throw vP(0,n)}),Nt(n=>!0===n))}class SC{constructor(n){this.segmentGroup=n||null}}class DC extends Error{constructor(n){super(),this.urlTree=n}}function wu(t){return du(new SC(t))}class cq{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Tt(i);if(o.numberOfChildren>1||!o.children[cn])return du(new N(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new DC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new fu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new jn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new N(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const EC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uq(t,n,e,i,o){const r=TC(t,n,e);return r.matched?(i=function PK(t,n){return t.providers&&!t._injector&&(t._injector=Wp(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function aq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Tt(o.map(a=>{const s=_u(a,t);return Bs(function JK(t){return t&&lf(t.canMatch)}(s)?s.canMatch(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP()):Tt(!0)}(i,n,e).pipe(Nt(a=>!0===a?r:{...EC}))):Tt(r)}function TC(t,n,e){if("**"===n.path)return function dq(t){return{matched:!0,parameters:t.length>0?GR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...EC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||VQ)(e,t,n);if(!o)return{...EC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function TP(t,n,e,i){return e.length>0&&function pq(t,n,e){return e.some(i=>Wm(t,n,i)&&wa(i)!==cn)}(t,e,i)?{segmentGroup:new jn(n,fq(i,new jn(e,t.children))),slicedSegments:[]}:0===e.length&&function gq(t,n,e){return e.some(i=>Wm(t,n,i))}(t,e,i)?{segmentGroup:new jn(t.segments,hq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new jn(t.segments,t.children),slicedSegments:e}}function hq(t,n,e,i){const o={};for(const r of e)if(Wm(t,n,r)&&!i[wa(r)]){const a=new jn([],{});o[wa(r)]=a}return{...i,...o}}function fq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&wa(i)!==cn){const o=new jn([],{});e[wa(i)]=o}return e}function Wm(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class yq{}class wq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new cq(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}recognize(){const n=TP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Nt(e=>{const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Zr(i,e),r=new gP("",o),a=function uK(t,n,e=null,i=null){return oP(iP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(Ua(i=>{if(i instanceof DC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof SC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=bC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Nt(r=>r instanceof Zr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return hi(o).pipe(nu(r=>{const a=i.children[r],s=function jK(t,n){const e=t.filter(i=>wa(i)===n);return e.push(...t.filter(i=>wa(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function HQ(t,n){return ni(function BQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Nm(null),function YQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ii((o,r)=>t(o,r,i)):$i,aC(1),e?Nm(n):VR(()=>new Pm))}(),no(r=>{if(null===r)return wu(i);const a=MP(r);return function Cq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Tt(a)}))}processSegment(n,e,i,o,r,a){return hi(e).pipe(nu(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Ua(l=>{if(l instanceof SC)return Tt(null);throw l}))),Pl(s=>!!s),Ua(s=>{if(DP(s))return function bq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Tt(new yq):wu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function mq(t,n,e,i){return!!(wa(t)===i||i!==cn&&Wm(n,e,t))&&TC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):wu(o):wu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=TC(e,o,r);if(!s)return wu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(no(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=uq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Wi(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Wi(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new yC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Sq(t){return t.data||{}}(i),wa(i),i.component??i._loadedComponent??null,i,function Dq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=TP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Nt(S=>null===S?null:new Zr(p,S)));if(0===l.length&&0===b.length)return Tt(new Zr(p,[]));const T=wa(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Nt(S=>new Zr(p,S instanceof Zr?[S]:[])))})):wu(e)))}getChildConfig(n,e,i){return e.children?Tt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Tt({routes:e._loadedRoutes,injector:e._loadedInjector}):function rq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Tt(!0):Tt(o.map(a=>{const s=_u(a,t);return Bs(function GK(t){return t&&lf(t.canLoad)}(s)?s.canLoad(n,e):ea(t,()=>s(n,e)))})).pipe(vu(),EP())}(n,e,i).pipe(no(o=>o?this.configLoader.loadChildren(n,e).pipe(Hi(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function lq(t){return du(wP(!1,ar.GuardRejected))}())):Tt({routes:[],injector:n})}}function xq(t){const n=t.value.routeConfig;return n&&""===n.path}function MP(t){const n=[],e=new Set;for(const i of t){if(!xq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=MP(i.children);n.push(new Zr(i.value,o))}return n.filter(i=>!e.has(i))}function AP(t){const n=t.children.map(e=>AP(e)).flat();return[t,...n]}function MC(t){return Wi(n=>{const e=t(n);return e?hi(e).pipe(Nt(()=>n)):Tt(n)})}let kP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[Xh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Iq),providedIn:"root"})}}return t})(),Iq=(()=>{class t extends kP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(CI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Cu=new Be("",{providedIn:"root",factory:()=>({})}),xu=new Be("");let AC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ne(VA)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bs(e.loadComponent()).pipe(Nt(IP),Hi(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),wl(()=>{this.componentLoaders.delete(e)})),o=new $R(i,()=>new _t).pipe(rC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Tt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function Oq(t,n,e,i){return Bs(t.loadChildren()).pipe(Nt(IP),no(o=>o instanceof pT||Array.isArray(o)?Tt(o):hi(n.compileModuleAsync(o))),Nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(xu,[],{optional:!0,self:!0}).flat()),{routes:a.map(xC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(wl(()=>{this.childrenLoaders.delete(i)})),a=new $R(r,()=>new _t).pipe(rC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function IP(t){return function Rq(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let kC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Pq),providedIn:"root"})}}return t})(),Pq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const OP=new Be(""),RP=new Be("");function Nq(t,n,e){const i=t.get(RP),o=t.get(Kt);return t.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Fq(t){return new Promise(n=>{IE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ea(t,()=>l({transition:s,from:n,to:e})),a})}let Xm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t,this.transitionAbortSubject=new _t,this.configLoader=Ne(AC),this.environmentInjector=Ne(No),this.urlSerializer=Ne(pu),this.rootContexts=Ne(tf),this.location=Ne(bl),this.inputBindingEnabled=null!==Ne(Zm,{optional:!0}),this.titleStrategy=Ne(kP),this.options=Ne(Cu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ne(kC),this.createViewTransition=Ne(OP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new CK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new ci({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ef,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ii(r=>0!==r.id),Nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Wi(r=>{let a=!1,s=!1;return Tt(r).pipe(Wi(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),vr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.rawUrl),d,$m.IgnoredSameUrlNavigation)),l.resolve(null),vr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Tt(l).pipe(Wi(d=>{const h=this.transitions?.getValue();return this.events.next(new zm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?vr:Promise.resolve(d)}),function Eq(t,n,e,i,o,r){return no(a=>function _q(t,n,e,i,o,r,a="emptyOnly"){return new wq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Nt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Hi(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new uP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new zm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const S=pP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:S,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Tt(r)}{const d="";return this.events.next(new bu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,$m.IgnoredByUrlHandlingStrategy)),l.resolve(null),vr}}),Hi(l=>{const c=new bK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Nt(l=>(this.currentTransition=r={...l,guards:YK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function QK(t,n){return no(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Tt({...e,guardsResult:!0}):function KK(t,n,e,i){return hi(t).pipe(no(o=>function oq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Tt(r.map(s=>{const l=rf(n)??o,c=_u(s,l);return Bs(function XK(t){return t&&lf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ea(l,()=>c(t,n,e,i))).pipe(Pl())})).pipe(vu()):Tt(!0)}(o.component,o.route,e,n,i)),Pl(o=>!0!==o,!0))}(a,i,o,t).pipe(no(s=>s&&function ZK(t){return"boolean"==typeof t}(s)?function qK(t,n,e,i){return hi(n).pipe(nu(o=>Am(function tq(t,n){return null!==t&&n&&n(new xK(t)),Tt(!0)}(o.route.parent,i),function eq(t,n){return null!==t&&n&&n(new DK(t)),Tt(!0)}(o.route,i),function iq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function zK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Wh(()=>Tt(a.guards.map(l=>{const c=rf(a.node)??e,u=_u(l,c);return Bs(function WK(t){return t&&lf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ea(c,()=>u(i,t))).pipe(Pl())})).pipe(vu())));return Tt(r).pipe(vu())}(t,o.path,e),function nq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Tt(!0);const o=i.map(r=>Wh(()=>{const a=rf(n)??e,s=_u(r,a);return Bs(function UK(t){return t&&lf(t.canActivate)}(s)?s.canActivate(n,t):ea(a,()=>s(n,t))).pipe(Pl())}));return Tt(o).pipe(vu())}(t,o.route,e))),Pl(o=>!0!==o,!0))}(i,r,t,n):Tt(s)),Nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),Hi(l=>{if(r.guardsResult=l.guardsResult,gu(l.guardsResult))throw vP(0,l.guardsResult);const c=new yK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ii(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",ar.GuardRejected),!1)),MC(l=>{if(l.guards.canActivateChecks.length)return Tt(l).pipe(Hi(c=>{const u=new _K(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Wi(c=>{let u=!1;return Tt(c).pipe(function Tq(t,n){return no(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Tt(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of AP(l))a.add(c);let s=0;return hi(a).pipe(nu(l=>r.has(l)?function Mq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!bP(o)&&(r[Xh]=o.title),function Aq(t,n,e,i){const o=sC(t);if(0===o.length)return Tt({});const r={};return hi(o).pipe(no(a=>function kq(t,n,e,i){const o=rf(n)??i,r=_u(t,o);return Bs(r.resolve?r.resolve(n,e):ea(o,()=>r(n,e)))}(t[a],n,e,i).pipe(Pl(),Hi(s=>{r[a]=s}))),aC(1),function zQ(t){return Nt(()=>t)}(r),Ua(a=>DP(a)?vr:du(a)))}(r,t,n,i).pipe(Nt(a=>(t._resolvedData=a,t.data=bC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=bC(l,l.parent,t).resolve,Tt(void 0))),Hi(()=>s++),aC(1),no(l=>s===a.size?Tt(e):vr))})}(this.paramsInheritanceStrategy,this.environmentInjector),Hi({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",ar.NoDataFromResolver)}}))}),Hi(c=>{const u=new vK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),MC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Hi(h=>{u.component=h}),Nt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return Mm(c(l.targetSnapshot.root)).pipe(Nm(null),io(1))}),MC(()=>this.afterPreactivation()),Wi(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?hi(u).pipe(Nt(()=>r)):Tt(r)}),Nt(l=>{const c=function kK(t,n,e){const i=nf(t,n._root,e?e._root:void 0);return new fP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),Hi(()=>{this.events.next(new fC)}),((t,n,e,i)=>Nt(o=>(new HK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),io(1),Hi({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wa(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),In(this.transitionAbortSubject.pipe(Hi(l=>{throw l}))),wl(()=>{a||s||this.cancelNavigationTransition(r,"",ar.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ua(l=>{if(s=!0,CP(l))this.events.next(new mu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function RK(t){return CP(t)&&gu(t.url)}(l)?this.events.next(new pC(l.url)):r.resolve(!1);else{this.events.next(new Vm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return vr}))}))}cancelNavigationTransition(e,i,o){const r=new mu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Lq(t){return t!==ef}let jq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Hq),providedIn:"root"})}}return t})();class Bq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Hq=(()=>{class t extends Bq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),PP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Ne(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends PP{constructor(){super(...arguments),this.location=Ne(bl),this.urlSerializer=Ne(pu),this.options=Ne(Cu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ne(kC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof zm)this.stateMemento=this.createStateMemento();else if(e instanceof bu)this.rawUrlTree=i.initialUrl;else if(e instanceof uP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof fC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof mu&&(e.code===ar.GuardRejected||e.code===ar.NoDataFromResolver)?this.restoreHistory(i):e instanceof Vm?this.restoreHistory(i,!0):e instanceof Wa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=pi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cf=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(cf||{});function NP(t,n){t.events.pipe(Ii(e=>e instanceof Wa||e instanceof mu||e instanceof Vm||e instanceof bu),Nt(e=>e instanceof Wa||e instanceof bu?cf.COMPLETE:e instanceof mu&&(e.code===ar.Redirect||e.code===ar.SupersededByNewNavigation)?cf.REDIRECTING:cf.FAILED),Ii(e=>e!==cf.REDIRECTING),io(1)).subscribe(()=>{n()})}function zq(t){throw t}const $q={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Ne(PA),this.stateManager=Ne(PP),this.options=Ne(Cu,{optional:!0})||{},this.pendingTasks=Ne(bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ne(Xm),this.urlSerializer=Ne(pu),this.location=Ne(bl),this.urlHandlingStrategy=Ne(kC),this._events=new _t,this.errorHandler=this.options.errorHandler||zq,this.navigated=!1,this.routeReuseStrategy=Ne(jq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ne(xu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ne(Zm,{optional:!0}),this.eventsSubscription=new me,this.isNgZoneEnabled=Ne(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof mu&&i.code!==ar.Redirect&&i.code!==ar.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wa)this.navigated=!0;else if(i instanceof pC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lq(o.source)};this.scheduleNavigation(a,ef,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Gq(t){return!(t instanceof fC||t instanceof pC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ef,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=iP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return oP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=gu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ef,null,i)}navigate(e,i={skipLocationChange:!1}){return function Zq(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return NP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new _t,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Wa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function TD(t,n,e){return function e8(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?ED:Cd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(ie(Ao),ie(Fl),sa("tabindex"),ie(La),ie(Zt),ie(ml))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&xt("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&ln("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ye.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Yt],skipLocationChange:[Ye.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[Ye.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[So,Zi]})}}return t})();class FP{}let Xq=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ii(e=>e instanceof Wa),nu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Wp(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return hi(o).pipe(su())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Tt(null);const r=o.pipe(no(a=>null===a?Tt(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?hi([r,this.loader.loadComponent(i)]).pipe(su()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(Ao),Me(VA),Me(No),Me(FP),Me(AC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const IC=new Be("");let LP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof bu&&e.code===$m.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dP&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dP(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){k_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function Ca(t,n){return{\u0275kind:t,\u0275providers:n}}function BP(){const t=Ne(di);return n=>{const e=t.get(Hr);if(n!==e.components[0])return;const i=t.get(Ao),o=t.get(HP);1===t.get(OC)&&i.initialNavigation(),t.get(YP,null,fn.Optional)?.setUpPreloading(),t.get(IC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const HP=new Be("",{factory:()=>new _t}),OC=new Be("",{providedIn:"root",factory:()=>1}),YP=new Be("");function qq(t){return Ca(0,[{provide:YP,useExisting:Xq},{provide:FP,useExisting:t}])}function tee(t){return Ca(9,[{provide:OP,useValue:Nq},{provide:RP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const zP=new Be("ROUTER_FORROOT_GUARD"),nee=[bl,{provide:pu,useClass:lC},Ao,tf,{provide:Fl,useFactory:function jP(t){return t.routerState.root},deps:[Ao]},AC,[]];let $P=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[nee,[],{provide:xu,multi:!0,useValue:e},{provide:zP,useFactory:aee,deps:[[Ao,new ls,new oc]]},{provide:Cu,useValue:i||{}},i?.useHash?{provide:ml,useClass:oV}:{provide:ml,useClass:Rk},{provide:IC,useFactory:()=>{const t=Ne(C9),n=Ne(Ct),e=Ne(Cu),i=Ne(Xm),o=Ne(pu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new LP(o,i,t,n,e)}},i?.preloadingStrategy?qq(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?see(i):[],i?.bindToComponentInputs?Ca(8,[yP,{provide:Zm,useExisting:yP}]).\u0275providers:[],i?.enableViewTransitions?tee().\u0275providers:[],[{provide:VP,useFactory:BP},{provide:ew,multi:!0,useExisting:VP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:xu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(zP,8))}}static{this.\u0275mod=on({type:t})}static{this.\u0275inj=qt({})}}return t})();function aee(t){return"guarded"}function see(t){return["disabled"===t.initialNavigation?Ca(3,[{provide:Kv,multi:!0,useFactory:()=>{const n=Ne(Ao);return()=>{n.setUpLocationChangeListener()}}},{provide:OC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ca(2,[{provide:OC,useValue:0},{provide:Kv,multi:!0,deps:[di],useFactory:n=>{const e=n.get(nV,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Ao),r=n.get(HP);NP(o,()=>{i(!0)}),n.get(Xm).afterPreactivation=()=>(i(!0),r.closed?Tt(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const VP=new Be("");var cee=function(n){return function uee(t){return!!t&&"object"==typeof t}(n)&&!function dee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function pee(t){return t.$$typeof===fee}(t)}(n)},fee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function df(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Su(function gee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function mee(t,n,e){return t.concat(n).map(function(i){return df(i,e)})}function ZP(t){return Object.keys(t).concat(function yee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function GP(t,n){try{return n in t}catch{return!1}}function Su(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||mee,e.isMergeableObject=e.isMergeableObject||cee,e.cloneUnlessOtherwiseSpecified=df;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function vee(t,n,e){var i={};return e.isMergeableObject(t)&&ZP(t).forEach(function(o){i[o]=df(t[o],e)}),ZP(n).forEach(function(o){(function _ee(t,n){return GP(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=GP(t,o)&&e.isMergeableObject(n[o])?function bee(t,n){if(!n.customMerge)return Su;var e=n.customMerge(t);return"function"==typeof e?e:Su}(o,e)(t[o],n[o],e):df(n[o],e))}),i}(t,n,e):df(n,e)}Su.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Su(i,o,e)},{})};var RC=Su;function PC(t){return t instanceof HTMLElement}function Ll(t){return"function"==typeof t}function hf(t){return"string"==typeof t}function go(t){return void 0===t}class NC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function UP(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const Du=Math.min,jl=Math.max,Jm=Math.round,Qm=Math.floor,Hs=t=>({x:t,y:t}),Eee={left:"right",right:"left",bottom:"top",top:"bottom"},Tee={start:"end",end:"start"};function LC(t,n,e){return jl(t,Du(n,e))}function Eu(t,n){return"function"==typeof t?t(n):t}function Bl(t){return t.split("-")[0]}function Km(t){return t.split("-")[1]}function jC(t){return"x"===t?"y":"x"}function BC(t){return"y"===t?"height":"width"}function qm(t){return["top","bottom"].includes(Bl(t))?"y":"x"}function HC(t){return jC(qm(t))}function YC(t){return t.replace(/start|end/g,n=>Tee[n])}function eb(t){return t.replace(/left|right|bottom|top/g,n=>Eee[n])}function QP(t){return"number"!=typeof t?function Oee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function tb(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const Ree=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Pee=["mainAxis","crossAxis","limiter"];function KP(t,n,e){let{reference:i,floating:o}=t;const r=qm(n),a=HC(n),s=BC(a),l=Bl(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(Km(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Nee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=KP(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,re;const ce="y"===p?"width":"height",G=["top","left"].includes(Bl(r)),pe=a.reference[h]-a.floating[ce]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:S.crossAxis),ye=a.reference[h]+a.reference[ce]+(G?0:(null==(re=s.offset)?void 0:re[h])||0)-(G?S.crossAxis:0);bye&&(b=ye)}return{[p]:g,[h]:b}}}};function Ys(t){return eN(t)?(t.nodeName||"").toLowerCase():"#document"}function sr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function Xa(t){var n;return null==(n=(eN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function eN(t){return t instanceof Node||t instanceof sr(t).Node}function Ja(t){return t instanceof Element||t instanceof sr(t).Element}function xa(t){return t instanceof HTMLElement||t instanceof sr(t).HTMLElement}function tN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof sr(t).ShadowRoot)}function ff(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Cr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Hee(t){return["table","td","th"].includes(Ys(t))}function $C(t){const n=VC(),e=Cr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function VC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nb(t){return["html","body","#document"].includes(Ys(t))}function Cr(t){return sr(t).getComputedStyle(t)}function ib(t){return Ja(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tu(t){if("html"===Ys(t))return t;const n=t.assignedSlot||t.parentNode||tN(t)&&t.host||Xa(t);return tN(n)?n.host:n}function nN(t){const n=Tu(t);return nb(n)?t.ownerDocument?t.ownerDocument.body:t.body:xa(n)&&ff(n)?n:nN(n)}function ob(t,n){var e;void 0===n&&(n=[]);const i=nN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=sr(i);return o?n.concat(r,r.visualViewport||[],ff(i)?i:[]):n.concat(i,ob(i))}function iN(t){const n=Cr(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=xa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=Jm(e)!==r||Jm(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function ZC(t){return Ja(t)?t:t.contextElement}function Mu(t){const n=ZC(t);if(!xa(n))return Hs(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=iN(n);let a=(r?Jm(e.width):e.width)/i,s=(r?Jm(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const zee=Hs(0);function oN(t){const n=sr(t);return VC()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:zee}function Hl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=ZC(t);let a=Hs(1);n&&(i?Ja(i)&&(a=Mu(i)):a=Mu(t));const s=function $ee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==sr(t))&&n}(r,e,i)?oN(r):Hs(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=sr(r),p=i&&Ja(i)?sr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Mu(g),T=g.getBoundingClientRect(),S=Cr(g),H=T.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,re=T.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=re,g=sr(g).frameElement}}return tb({width:u,height:d,x:l,y:c})}function rN(t){return Hl(Xa(t)).left+ib(t).scrollLeft}function aN(t,n,e){let i;if("viewport"===n)i=function Uee(t,n){const e=sr(t),i=Xa(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=VC();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function Gee(t){const n=Xa(t),e=ib(t),i=t.ownerDocument.body,o=jl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=jl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+rN(t);const s=-e.scrollTop;return"rtl"===Cr(i).direction&&(a+=jl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(Xa(t));else if(Ja(n))i=function Wee(t,n){const e=Hl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=xa(t)?Mu(t):Hs(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=oN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return tb(i)}function sN(t,n){const e=Tu(t);return!(e===n||!Ja(e)||nb(e))&&("fixed"===Cr(e).position||sN(e,n))}function Xee(t,n){const e=n.get(t);if(e)return e;let i=ob(t).filter(s=>Ja(s)&&"body"!==Ys(s)),o=null;const r="fixed"===Cr(t).position;let a=r?Tu(t):t;for(;Ja(a)&&!nb(a);){const s=Cr(a),l=$C(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||ff(a)&&!l&&sN(t,a))?i=i.filter(u=>u!==a):o=s,a=Tu(a)}return n.set(t,i),i}function Kee(t,n,e){const i=xa(n),o=Xa(n),r="fixed"===e,a=Hl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=Hs(0);if(i||!i&&!r)if(("body"!==Ys(n)||ff(o))&&(s=ib(n)),i){const c=Hl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=rN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lN(t,n){return xa(t)&&"fixed"!==Cr(t).position?n?n(t):t.offsetParent:null}function cN(t,n){const e=sr(t);if(!xa(t))return e;let i=lN(t,n);for(;i&&Hee(i)&&"static"===Cr(i).position;)i=lN(i,n);return i&&("html"===Ys(i)||"body"===Ys(i)&&"static"===Cr(i).position&&!$C(i))?e:i||function Yee(t){let n=Tu(t);for(;xa(n)&&!nb(n);){if($C(n))return n;n=Tu(n)}return null}(t)||e}const qee=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||cN,s=this.getDimensions;return{reference:Kee(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),tte={convertOffsetParentRelativeRectToViewportRelativeRect:function Vee(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=xa(e),r=Xa(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=Hs(1);const l=Hs(0);if((o||!o&&"fixed"!==i)&&(("body"!==Ys(e)||ff(r))&&(a=ib(e)),xa(e))){const c=Hl(e);s=Mu(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xa,getClippingRect:function Jee(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?Xee(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=aN(n,u,o);return c.top=jl(d.top,c.top),c.right=Du(d.right,c.right),c.bottom=Du(d.bottom,c.bottom),c.left=jl(d.left,c.left),c},aN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:cN,getElementRects:qee,getClientRects:function Zee(t){return Array.from(t.getClientRects())},getDimensions:function Qee(t){return iN(t)},getScale:Mu,isElement:Ja,isRTL:function ete(t){return"rtl"===Cr(t).direction}};function rte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function dte(t,n){const e={strategy:"absolute",middleware:[]},i=function hte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return XP(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Eu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,S=JP(u,Ree),H=Bl(o),re=Bl(s)===s,ce=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(re||!T?[eb(s)]:function Aee(t){const n=eb(t);return[YC(t),n,YC(n)]}(s));!p&&"none"!==b&&G.push(...function Iee(t,n,e,i){const o=Km(t);let r=function kee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}(Bl(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(YC)))),r}(s,T,b,ce));const pe=[s,...G],ye=yield qP(e,S),be=[];let Pe=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(ye[H]),h){const Je=function Mee(t,n,e){void 0===e&&(e=!1);const i=Km(t),o=HC(t),r=BC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=eb(a)),[a,eb(a)]}(o,a,ce);be.push(ye[Je[0]],ye[Je[1]])}if(Pe=[...Pe,{placement:o,overflows:be}],!be.every(Je=>Je<=0)){var je,Xe;const Je=((null==(je=r.flip)?void 0:je.index)||0)+1,st=pe[Je];if(st)return{data:{index:Je,overflows:Pe},reset:{placement:st}};let ht=null==(Xe=Pe.filter(Se=>Se.overflows[0]<=0).sort((Se,He)=>Se.overflows[1]-He.overflows[1])[0])?void 0:Xe.placement;if(!ht)switch(g){case"bestFit":{var Re;const Se=null==(Re=Pe.map(He=>[He.placement,He.overflows.filter(We=>We>0).reduce((We,nt)=>We+nt,0)]).sort((He,We)=>He[1]-We[1])[0])?void 0:Re[0];Se&&(ht=Se);break}case"initialPlacement":ht=s}if(o!==ht)return{reset:{placement:ht}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Eu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:re,y:ce}=H;return{x:re,y:ce}}}}=a,u=JP(a,Pee),d={x:i,y:o},h=yield qP(e,u),p=qm(Bl(r)),g=jC(p);let b=d[g],T=d[p];s&&(b=LC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=LC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const S=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},S,{data:{x:S.x-i,y:S.y-o}})})()}}({limiter:Bee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Eu(t,n)||{};if(null==l)return{};const u=QP(c),d={x:e,y:i},h=HC(o),p=BC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",S=b?"bottom":"right",H=b?"clientHeight":"clientWidth",re=r.reference[p]+r.reference[h]-d[h]-r.floating[p],ce=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const ye=re/2-ce/2,be=pe/2-g[p]/2-1,Pe=Du(u[T],be),je=Du(u[S],be),Xe=Pe,Re=pe-g[p]-je,Je=pe/2-g[p]/2+ye,st=LC(Xe,Je,Re),Se=null!=Km(o)&&Je!=st&&r.reference[p]/2-(Je{o&&S.addEventListener("scroll",e,{passive:!0}),r&&S.addEventListener("resize",e)});const d=c&&s?function nte(t,n){let i,e=null;const o=Xa(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-Qm(u)+"px "+-Qm(o.clientWidth-(c+d))+"px "+-Qm(o.clientHeight-(u+h))+"px "+-Qm(c)+"px",threshold:jl(0,Du(1,l))||1};let re=!0;function ce(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!re)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}re=!1}try{e=new IntersectionObserver(ce,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(ce,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(S=>{let[H]=S;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Hl(t):null;return l&&function T(){const S=Hl(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&e(),b=S,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(S=>{o&&S.removeEventListener("scroll",e),r&&S.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function lte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:tte},e),r=mo({},o.platform,{_c:i});return Nee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function cte(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function ute(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function lr(){}function fte(t,n){for(const e in n)t[e]=n[e];return t}function uN(t){return t()}function dN(){return Object.create(null)}function pf(t){t.forEach(uN)}function GC(t){return"function"==typeof t}function Qa(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Au(t,n){t.appendChild(n)}function Gr(t,n,e){t.insertBefore(n,e||null)}function xr(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t){return document.createElement(t)}function hN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fN(t){return document.createTextNode(t)}function rb(){return fN(" ")}function ab(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function qn(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const bte=["width","height"];function pN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===bte.indexOf(i)?t[i]=n[i]:qn(t,i,n[i])}function ku(t,n,e){t.classList[e?"add":"remove"](n)}let gf;function mf(t){gf=t}function gN(){if(!gf)throw new Error("Function called outside component initialization");return gf}function UC(t){gN().$$.after_update.push(t)}const Iu=[],Ou=[];let Ru=[];const mN=[],vte=Promise.resolve();let WC=!1;function XC(t){Ru.push(t)}const JC=new Set;let Pu=0;function bN(){if(0!==Pu)return;const t=gf;do{try{for(;Pu{sb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Vl(t){t&&t.c()}function zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||XC(()=>{const a=t.$$.on_mount.map(uN).filter(GC);t.$$.on_destroy?t.$$.on_destroy.push(...a):pf(a),t.$$.on_mount=[]}),r.forEach(XC)}function $s(t,n){const e=t.$$;null!==e.fragment&&(function xte(t){const n=[],e=[];Ru.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),Ru=n}(e.after_update),pf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ka(t,n,e,i,o,r,a,s=[-1]){const l=gf;mf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:lr,not_equal:o,bound:dN(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:dN(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Dte(t,n){-1===t.$$.dirty[0]&&(Iu.push(t),function wte(){WC||(WC=!0,vte.then(bN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function pte(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Ete(t){let n,e,i,o,r;return{c(){n=Sa("button"),qn(n,"aria-label",e=t[3]?t[3]:null),qn(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],qn(n,"tabindex","0")},m(a,s){Gr(a,n,s),n.innerHTML=t[5],o||(r=ab(n,"click",function(){GC(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&qn(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&qn(n,"class",i),4&s&&(n.disabled=t[2])},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Tte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Ll(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class Mte extends qa{constructor(n){super(),Ka(this,n,Tte,Ete,Qa,{config:6,step:7})}}function yN(t,n,e){const i=t.slice();return i[2]=n[e],i}function _N(t){let n,e,i=t[1],o=[];for(let a=0;aDi(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),$l())},i(o){e||(Fn(i),e=!0)},o(o){Di(i),e=!1},d(o){o&&xr(n),i&&i.d()}}}function kte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Ite extends qa{constructor(n){super(),Ka(this,n,kte,Ate,Qa,{step:0})}}function Ote(t){let n,e,i,o,r;return{c(){n=Sa("button"),e=Sa("span"),e.textContent="\xd7",qn(e,"aria-hidden","true"),qn(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),qn(n,"class","shepherd-cancel-icon"),qn(n,"type","button")},m(a,s){Gr(a,n,s),Au(n,e),o||(r=ab(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&qn(n,"aria-label",i)},i:lr,o:lr,d(a){a&&xr(n),o=!1,r()}}}function Rte(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Pte extends qa{constructor(n){super(),Ka(this,n,Rte,Ote,Qa,{cancelIcon:0,step:2})}}function Nte(t){let n;return{c(){n=Sa("h3"),qn(n,"id",t[1]),qn(n,"class","shepherd-title")},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function Fte(t,n,e){let{labelId:i,element:o,title:r}=n;return UC(()=>{Ll(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Lte extends qa{constructor(n){super(),Ka(this,n,Fte,Nte,Qa,{labelId:1,element:0,title:2})}}function wN(t){let n,e;return n=new Lte({props:{labelId:t[0],title:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function CN(t){let n,e;return n=new Pte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function jte(t){let n,e,i,o=t[2]&&wN(t),r=t[3]&&t[3].enabled&&CN(t);return{c(){n=Sa("header"),o&&o.c(),e=rb(),r&&r.c(),qn(n,"class","shepherd-header")},m(a,s){Gr(a,n,s),o&&o.m(n,null),Au(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&Fn(o,1)):(o=wN(a),o.c(),Fn(o,1),o.m(n,e)):o&&(zl(),Di(o,1,1,()=>{o=null}),$l()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&Fn(r,1)):(r=CN(a),r.c(),Fn(r,1),r.m(n,null)):r&&(zl(),Di(r,1,1,()=>{r=null}),$l())},i(a){i||(Fn(o),Fn(r),i=!0)},o(a){Di(o),Di(r),i=!1},d(a){a&&xr(n),o&&o.d(),r&&r.d()}}}function Bte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Hte extends qa{constructor(n){super(),Ka(this,n,Bte,jte,Qa,{labelId:0,step:1})}}function Yte(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-text"),qn(n,"id",t[1])},m(e,i){Gr(e,n,i),t[3](n)},p(e,[i]){2&i&&qn(n,"id",e[1])},i:lr,o:lr,d(e){e&&xr(n),t[3](null)}}}function zte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return UC(()=>{let{text:s}=r.options;Ll(s)&&(s=s.call(r)),PC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Ou[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class $te extends qa{constructor(n){super(),Ka(this,n,zte,Yte,Qa,{descriptionId:1,element:0,step:2})}}function xN(t){let n,e;return n=new Hte({props:{labelId:t[1],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function SN(t){let n,e;return n=new $te({props:{descriptionId:t[0],step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function DN(t){let n,e;return n=new Ite({props:{step:t[2]}}),{c(){Vl(n.$$.fragment)},m(i,o){zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(Fn(n.$$.fragment,i),e=!0)},o(i){Di(n.$$.fragment,i),e=!1},d(i){$s(n,i)}}}function Vte(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&xN(t),c=o&&SN(t),u=a&&DN(t);return{c(){n=Sa("div"),l&&l.c(),i=rb(),c&&c.c(),r=rb(),u&&u.c(),qn(n,"class","shepherd-content")},m(d,h){Gr(d,n,h),l&&l.m(n,null),Au(n,i),c&&c.m(n,null),Au(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&Fn(l,1)):(l=xN(d),l.c(),Fn(l,1),l.m(n,i)):l&&(zl(),Di(l,1,1,()=>{l=null}),$l()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&Fn(c,1)):(c=SN(d),c.c(),Fn(c,1),c.m(n,r)):c&&(zl(),Di(c,1,1,()=>{c=null}),$l()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&Fn(u,1)):(u=DN(d),u.c(),Fn(u,1),u.m(n,null)):u&&(zl(),Di(u,1,1,()=>{u=null}),$l())},i(d){s||(Fn(l),Fn(c),Fn(u),s=!0)},o(d){Di(l),Di(c),Di(u),s=!1},d(d){d&&xr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function Zte(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class Gte extends qa{constructor(n){super(),Ka(this,n,Zte,Vte,Qa,{descriptionId:0,labelId:1,step:2})}}function EN(t){let n;return{c(){n=Sa("div"),qn(n,"class","shepherd-arrow"),qn(n,"data-popper-arrow","")},m(e,i){Gr(e,n,i)},d(e){e&&xr(n)}}}function Ute(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&EN();i=new Gte({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function Kte(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function _te(t){gN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),UC(()=>{g!==u.options.classes&&function T(){(function S(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(hf(G)){const pe=TN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function ce(G){Ou[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class qte extends qa{constructor(n){super(),Ka(this,n,Kte,Ute,Qa,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class QC extends NC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?WP(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,UP(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function ste(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),PC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Dee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Ll(e.element)&&(e.element=e.element.call(t)),hf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Ll(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new qte({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Ll(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Cee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=RC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function ate(t,n){return{floatingUIOptions:RC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${FC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function See(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function xee(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),rte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function nne(t){let n,e,i,o,r;return{c(){n=hN("svg"),e=hN("path"),qn(e,"d",t[2]),qn(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Gr(a,n,s),Au(n,e),t[11](n),o||(r=ab(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&qn(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&qn(n,"class",i)},i:lr,o:lr,d(a){a&&xr(n),t[11](null),o=!1,r()}}}function MN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:MN(t.parentElement)}function one(t,n,e){let{element:i,openingProperties:o}=n;FC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),S()}function d(ce=0,G=0,pe,ye){if(ye){const{y:be,height:Pe}=function ine(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(ye,pe),{x:je,width:Xe,left:Re}=ye.getBoundingClientRect();e(4,o={width:Xe+2*ce,height:Pe+2*ce,x:(je||Re)-ce,y:be-ce,r:G})}else c()}function p(){e(1,r=!0)}c();const g=ce=>{ce.preventDefault()};function S(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=ce=>{"element"in ce&&e(0,i=ce.element),"openingProperties"in ce&&e(4,o=ce.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function tne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,ce=>{ce.stopPropagation()},o,()=>i,c,u,d,function h(ce){S(),ce.tour.options.useModalOverlay?(function H(ce){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=ce.options,ye=MN(ce.target),be=()=>{a=void 0,d(G,pe,ye,ce.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(ce),p()):u()},p,function re(ce){Ou[ce?"unshift":"push"](()=>{i=ce,e(0,i)})}]}class rne extends qa{constructor(n){super(),Ka(this,n,one,nne,Qa,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Zl=new NC,sne=typeof window>"u";class AN{constructor(){}}function cne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Zl,sne?{Tour:AN,Step:AN}:{Tour:class ane extends NC{constructor(n={}){return super(n),UP(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=WP(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Zl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof QC?i.tour=this:i=new QC(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Zl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=hf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Ll(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function ene(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Zl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}PC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Zl.activeTour=this}_setupModal(){this.modal=new rne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${FC()}`}},Step:QC});let kN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(cne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function lne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Zl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;I(7850);const dne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var re,S=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(re=e.wasmBinary);var ce=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Zn("no native wasm support detected");var G,Je,st,Mt,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(xe,fe,we){for(var Oe=fe+we,rt=fe;xe[rt]&&!(rt>=Oe);)++rt;if(rt-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,rt));for(var mt="";fe>10,56320|1023&zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function je(xe,fe){return xe?Pe(st,xe,fe):""}function en(){var xe=G.buffer;e.HEAP_DATA_VIEW=Mt=new DataView(xe),e.HEAP8=Je=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=st=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var an=[],sn=[],$o=[],ft=0,Pt=null,ri=null;function Zn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var dr;function Jr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Zu(xe){try{if(xe==dr&&re)return new Uint8Array(re);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Zn(fe)}}function Vb(xe,fe,we){return function cx(xe){return re||"function"!=typeof fetch?Promise.resolve().then(function(){return Zu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Zu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Zn(Oe)})}function uhe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function ux(xe){return Mt.getInt32(xe,!0)}function dx(xe){return Mt.getUint32(xe,!0)}function Zb(xe,fe){Mt.setUint32(xe,fe,!0)}function Tr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Oj(fe);return we&&function Xe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var rt=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Je,we,fe),we}function hx(xe){for(;xe.length>0;)xe.shift()(e)}function Of(xe,fe){Je.set(xe,fe)}function Gb(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Je[xe>>0];case"i16":return function fhe(xe){return Mt.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return ux(4*(xe>>2));case"float":return function dhe(xe){return Mt.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function hhe(xe){return Mt.getFloat64(xe,!0)}(8*(xe>>3));case"*":return dx(4*(xe>>2));default:Zn("invalid type for getValue: "+fe)}}e.locateFile?Jr(dr="soundswallower.web.wasm")||(dr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(dr)):dr=new URL(I(3970),I.b).href;var Rf={varargs:void 0,get:function(){return Rf.varargs+=4,ux(4*(Rf.varargs-4>>2))},getStr:function(xe){return je(xe)}};function She(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),en(),1}catch{}}var fx={};function Pf(){if(!Pf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in fx)void 0===fx[we]?delete fe[we]:fe[we]=fx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Pf.strings=Oe}return Pf.strings}var Fhe=[null,[],[]];function Lhe(xe,fe){var we=Fhe[xe];0===fe||10===fe?((1===xe?S:H)(Pe(we,0)),we.length=0):we.push(fe)}var Ub,Bhe={d:function phe(xe,fe,we){return Rf.varargs=we,0},g:function ghe(xe,fe){},i:function mhe(xe,fe,we){return Rf.varargs=we,0},r:function bhe(xe,fe,we,Oe){},e:function yhe(xe,fe,we,Oe){Rf.varargs=Oe},f:function _he(xe,fe){},n:function vhe(xe,fe,we,Oe,rt,mt,Dt){return-52},o:function whe(xe,fe,we,Oe,rt,mt){},j:function Che(){return Date.now()},m:function xhe(){return 2147483648},l:function Dhe(xe){var Hn,fe=st.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var rt=1;rt<=4;rt*=2){var mt=fe*(1+.2/rt);if(mt=Math.min(mt,xe+100663296),She(Math.min(we,(Hn=Math.max(xe,mt))+(65536-Hn%65536)%65536)))return!0}return!1},p:function Mhe(xe,fe){var we=0;return Pf().forEach(function(Oe,rt){var mt=fe+we;Zb(4*(xe+4*rt>>2),mt),function The(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Je[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function Ahe(xe,fe){var we=Pf();Zb(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(rt){Oe+=rt.length+1}),Zb(4*(fe>>2),Oe),0},a:function Ihe(xe,fe){!function khe(xe){(function ct(){return ce})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new uhe(xe))}(xe)},b:function Rhe(xe){return 52},h:function Phe(xe,fe,we,Oe){return 52},k:function Nhe(xe,fe,we,Oe,rt){return 70},c:function jhe(xe,fe,we,Oe){for(var rt=0,mt=0;mt>2)),Rt=dx(4*(fe+4>>2));fe+=8;for(var Hn=0;Hn>2),rt),0}},Oj=(function che(){var xe={a:Bhe};function fe(Oe,rt){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,en(),function sx(xe){sn.unshift(xe)}(e.asm.t),function xn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==Pt&&(clearInterval(Pt),Pt=null),ri)){var fe=ri;ri=null,fe()}}(),mt}if(function ai(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function lhe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Jr(fe)||"function"!=typeof fetch?Vb(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(rt){return WebAssembly.instantiateStreaming(rt,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),Vb(fe,we,Oe)})})})(re,dr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Oj=e._malloc=e.asm.K).apply(null,arguments)});function Rj(){function xe(){Ub||(Ub=!0,e.calledRun=!0,!pe&&(function ro(){hx(sn)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Er(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),$o.unshift(xe);var xe;hx($o)}()))}ft>0||(function yn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),an.unshift(xe);var xe;hx(an)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ri=function xe(){Ub||Rj(),Ub||(ri=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Pj(xe){return px.apply(this,arguments)}function px(){return(px=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Qr(xe){return gx.apply(this,arguments)}function gx(){return(gx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,rt=e._malloc(Oe);if(0==rt)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return Of(fe,rt),Je[rt+Oe]=0,e._s3file_init(rt,Oe-1)})).apply(this,arguments)}return Rj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function rpe(xe){return e.modelBase+xe},e.load_json=Pj,e.Decoder=class spe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=Tr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return je(e._config_serialize_json(fe))}set_config(fe,we){const Oe=Tr(fe),rt=e._decoder_config(this.cdecoder),mt=e._config_typeof(rt,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=Tr(we);e._config_set_str(rt,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(rt,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(rt,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,rt),e._free(we)}get_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=e._config_typeof(Oe,we);if(0==rt)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&rt){const Dt=e._config_str(Oe,we);mt=0==Dt?null:je(Dt)}else 4&rt?mt=e._config_float(Oe,we):2&rt?mt=e._config_int(Oe,we):16&rt&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${rt} for parameter ${fe}`);return mt}has_config(fe){const we=Tr(fe),Oe=e._decoder_config(this.cdecoder),rt=0!=e._config_typeof(Oe,we);return e._free(we),rt}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Pj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Qr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),rt=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,rt,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Qr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Qr(fe),rt=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,rt,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,rt){var mt=this;return(0,y.Z)(function*(){const Dt=yield Qr(fe),Rt=yield Qr(we);var Hn,zi;try{Hn=yield Qr(Oe),zi=0}catch{Hn=0,zi=yield Qr(rt)}if(e._load_gmm(mt.cdecoder,Dt,Rt,zi,Hn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Qr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Qr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const rt=fe.get_config("jsgf");null!=rt&&(Oe=yield Qr(rt));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Qr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const rt=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(rt);Of(new Uint8Array(fe.buffer,fe.byteOffset,rt),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,rt/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),je(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const rt=je(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(rt)}lookup_word(fe){this.assert_initialized();const we=Tr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:je(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._endpointer_process(this.cep,rt);if(e._free(rt),0!=mt){const Dt=new Int16Array(Je.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),rt=e._malloc(Oe.length);Of(Oe,rt);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,rt,we.length,mt);if(e._free(mt),e._free(rt),0!=Dt){const Rt=Gb(mt,"i32"),Hn=new Int16Array(Je.buffer,Dt,2*Rt);return Float32Array.from(Hn,zi=>zi>0?zi/32767:zi/32768)}return null}},e.ready});var lb,Vs=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Vs||{});let IN=(()=>{class t{constructor(){this.modelLoaded=!1,this.mode=Vs.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new lb.Decoder;return i.initialize().finally(()=>{e.modelLoaded=!0,i.delete()})})()}loadModule$(){return hi(void 0===lb?dne().then(e=>(lb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new _n(s=>{const l=new lb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zs=I(9884);const Nu=new WeakSet,ON=new WeakMap,qC=new WeakMap,RN=new WeakMap,e1=new WeakMap,cb=new WeakMap,PN=new WeakMap,t1=new WeakMap,n1=new WeakMap,o1=new WeakMap,NN={construct:()=>NN},FN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,LN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(FN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(FN)}return[e.join(";"),i]},jN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},BN=t=>{if(!(t=>{try{new new Proxy(t,NN)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Ur=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},ub=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},HN=(t,n,e,i)=>{const o=Ur(t,n),r=ub(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},bf=t=>Ur(PN,t),Fu=t=>{if(Nu.has(t))throw new Error("The AudioNode is already stored.");Nu.add(t),bf(t).forEach(n=>n(!0))},YN=t=>"port"in t,yf=t=>{if(!Nu.has(t))throw new Error("The AudioNode is not stored.");Nu.delete(t),bf(t).forEach(n=>n(!1))},r1=(t,n)=>{!YN(t)&&n.every(e=>0===e.size)&&yf(t)},xne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,db=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Da=()=>new DOMException("","IndexSizeError"),a1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Da():i}})},Ene={numberOfChannels:1},Yo=-34028234663852886e22,ko=-Yo,es=t=>Nu.has(t),Mne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Io=t=>Ur(ON,t),_f=t=>Ur(RN,t),s1=(t,n)=>{const{activeInputs:e}=Io(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||s1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:YN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=_f(o);void 0!==r&&r.activeInputs.forEach(([a])=>s1(a,n))}es(t)&&yf(t)},fb=t=>"context"in t,vf=t=>fb(t[0]),Gl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},$N=(t,n,[e,i],o)=>{Gl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},VN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Gl(r,[e,i],a=>a[0]===e,o)},Lu=t=>"inputs"in t,pb=(t,n,e,i)=>{if(Lu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},ZN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},GN=(t,n)=>{if(!bf(t).delete(n))throw new Error("Missing the expected event listener.")},UN=(t,n,e)=>{const i=Ur(t,n),o=ub(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},gb=(t,n,e,i)=>{Lu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},oi=t=>Ur(qC,t),wf=t=>Ur(e1,t),Ul=t=>t1.has(t),mb=t=>!Nu.has(t),WN=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),l1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},bb=t=>"context"in t,c1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Io(n),a=ZN(o[i],t,e);return null===a?[HN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(GN(t,r),a&&!n&&!Ul(t)&&gb(oi(t),oi(e),i,o)),es(e)){const{activeInputs:s}=Io(e);r1(e,s)}},u1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=_f(n),r=ZN(i,t,e);return null===r?[UN(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(GN(t,o),r&&!n&&!Ul(t)&&oi(t).disconnect(wf(e),i))};class XN{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function yb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const JN=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},_b=(t,n)=>{const e=[];for(let i=0;iS+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Io(n),p=yield((t,n)=>{const e=Ur(o1,t),i=oi(n);return Ur(e,i)})(i,n),g=_b(o.numberOfInputs,o.channelCount),b=_b(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((S,H)=>({...S,[H]:new Float32Array(128)}),{});for(let S=0;S0&&null!==e)for(let H=0;H{yb(e,T,H,c+re,S)});for(let H=0;H0===h.activeInputs[G].size?[]:ce),re=s(S/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let ce=0,G=0;ce{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},Mie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},vb=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Fie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Vie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Ri=()=>new DOMException("","InvalidStateError"),wb=()=>new DOMException("","InvalidAccessError"),noe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},KN=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},li=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Yi=(t,n)=>{li(t,n,"channelCount"),li(t,n,"channelCountMode"),li(t,n,"channelInterpretation")},qN=t=>"function"==typeof t.getFloatTimeDomainData,mi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},d1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},h1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},eF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),joe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),tF=(t,n)=>{const e=t.createBiquadFilter();return Yi(e,n),mi(e,n,"Q"),mi(e,n,"detune"),mi(e,n,"frequency"),mi(e,n,"gain"),li(e,n,"type"),e},Cf=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Yi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Ri()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Ri()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Ri()}})})(e),e},ju=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),nF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Yi(e,n),mi(e,n,"delayTime"),e},zo=(t,n)=>{const e=t.createGain();return Yi(e,n),mi(e,n,"gain"),e};function Woe(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function Xoe(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function iF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=Xoe(e,n),e[0]+=t[i];return e}const xf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),hre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},gre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},yre={disableNormalization:!1},Tre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},oF=()=>new DOMException("","UnknownError"),Rre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},rF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),aF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Sf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},sF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;sF(t,n,e+1e-7)}},f1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},lF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},p1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},cF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),ju(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Bu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},Xre=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Gl),Jre=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Gl),Qre=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(ub),uF=new WeakMap,Kre=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(uF),cr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Wr=typeof window>"u"?null:window,dF=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Yi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return li(o,i,"fftSize"),li(o,i,"maxDecibels"),li(o,i,"minDecibels"),li(o,i,"smoothingTimeConstant"),t(qN,()=>qN(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Io),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Io,g1,Ul),qre=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(dF,oi,oo),ei=(t=>n=>{const e=t.get(n);if(void 0===e)throw Ri();return e})(cb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Wr),Bn=(t=>n=>null!==t&&n instanceof t)(Ji),hF=new WeakMap,fF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Bu),ts=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Wr),m1=(t=>n=>null!==t&&n instanceof t)(ts),b1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Wr),pF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Wr),Hu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Wr),Ei=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(S,H,re,ce){super(re),this._context=S,this._nativeAudioNode=re;const G=u(S);d(G)&&!0!==e(WN,()=>WN(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=bb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{bb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(re),qC.set(this,re),PN.set(this,new Set),"closed"!==S.state&&H&&Fu(this),t(this,ce,re)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(S){this._nativeAudioNode.channelCount=S}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(S){this._nativeAudioNode.channelCountMode=S}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(S){this._nativeAudioNode.channelInterpretation=S}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(S,H=0,re=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const ce=u(this._context),G=g(ce);if(h(S)||p(S))throw r();if(fb(S)){const be=oi(S);try{const je=pb(this._nativeAudioNode,be,H,re),Xe=mb(this);(G||Xe)&&this._nativeAudioNode.disconnect(...je),"closed"!==this.context.state&&!Xe&&mb(S)&&Fu(S)}catch(je){throw 12===je.code?r():je}if(n(this,S,H,re,G)){const je=l([this],S);l1(je,i(G))}return S}const pe=wf(S);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||mb(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=_f(n),{outputs:a}=Io(t),s=bf(t),l=c=>{const u=oi(t),d=wf(n);if(c){const h=UN(r,t,e);$N(o,t,h,!1),!i&&!Ul(t)&&u.connect(d,e)}else{const h=((t,n,e)=>ub(t,i=>i[0]===n&&i[1]===e))(o,t,e);VN(r,h,!1),!i&&!Ul(t)&&u.disconnect(d,e)}};return!!Gl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),es(t)?$N(o,t,[e,l],!0):VN(r,[t,e,l],!0),!0)})(this,S,H,G)){const be=l([this],S);l1(be,i(G))}}disconnect(S,H,re){let ce;const G=u(this._context),pe=g(G);if(void 0===S)ce=((t,n)=>{const e=Io(t),i=[];for(const o of e.outputs)vf(o)?c1(t,n,...o):u1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof S){if(S<0||S>=this.numberOfOutputs)throw o();ce=((t,n,e)=>{const i=Io(t),o=[];for(const r of i.outputs)r[1]===e&&(vf(r)?c1(t,n,...r):u1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,S)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||fb(S)&&void 0!==re&&(re<0||re>=S.numberOfInputs))throw o();if(ce=((t,n,e,i,o)=>{const r=Io(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(vf(a)?c1(t,n,...a):u1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,S,H,re),0===ce.length)throw r()}for(const ye of ce){const be=l([this],ye);l1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,S,H)=>{const{activeInputs:re,passiveInputs:ce}=r(b),{outputs:G}=r(g),pe=s(g),ye=be=>{const Pe=l(b),je=l(g);if(be){const Xe=HN(ce,g,T,S);t(re,g,Xe,!1),!H&&!d(g)&&e(je,Pe,T,S),h(b)&&Fu(b)}else{const Xe=i(re,g,T,S);n(ce,S,Xe,!1),!H&&!d(g)&&o(je,Pe,T,S);const Re=a(b);if(0===Re)u(b)&&r1(b,re);else{const Je=p.get(b);void 0!==Je&&clearTimeout(Je),p.set(b,setTimeout(()=>{u(b)&&r1(b,re)},1e3*Re))}}};return!!c(G,[b,T,S],be=>be[0]===b&&be[1]===T&&be[2]===S,!0)&&(pe.add(ye),u(g)?t(re,g,[T,S,ye],!0):n(ce,S,[g,T,ye],!0),!0)}})(Xre,Jre,pb,Qre,gb,Io,Kre,bf,oi,Gl,es,Ul,mb),cr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(vf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(t1,gb,Io,oi,wf,es),Da,wb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(vf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(pb,t1,Io,oi,wf,ei,es,Bn),((t,n,e)=>function i(o,r){const a=fb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(hF,Io,Ur),fF,ei,m1,b1,pF,Bn,Hu),eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...xne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ei,qre,Da,dF,ei,Bn),y1=new WeakSet,gF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Wr),mF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),_1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Bj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Ene,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),a1(g)):n(db,()=>db(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Bj.prototype||t.has(u)}}})(y1,cr,yo,gF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(gF),_1,v1),Cb=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})(zo),bF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(g1,_f,Ul),Ea=(t=>(n,e,i)=>t(e,n,i))(bF),Yu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Yi(p,h),mi(p,h,"playbackRate"),li(p,h,"buffer"),li(p,h,"loop"),li(p,h,"loopEnd"),li(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Ri();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||d1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||h1(p),t(d,p),p})(Cb,cr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},f1,lF,p1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Sf),cF),Ta=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(_f),bF),nae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,Yu,oi,Ta,oo),Xr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,S=null)=>{const H=b.value,re=new Zs.AutomationEventList(H),ce=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(re):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===S?b.minValue:S},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===ce&&re.flush(p.context.currentTime),re.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const ye=Array.from(re).pop();null===ce&&re.flush(p.context.currentTime),re.add(o(pe));const be=Array.from(re).pop();b.cancelScheduledValues(pe),ye!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===ce&&re.flush(p.context.currentTime),re.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,ye){if(0===pe)throw new RangeError;if(!Number.isFinite(ye)||ye<0)throw new RangeError;const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(a(pe,ye)),b.exponentialRampToValueAtTime(pe,ye),G},linearRampToValueAtTime(pe,ye){const be=p.context.currentTime;return null===ce&&re.flush(be),0===Array.from(re).length&&(re.add(c(H,be)),b.setValueAtTime(H,be)),re.add(s(pe,ye)),b.linearRampToValueAtTime(pe,ye),G},setTargetAtTime:(pe,ye,be)=>(null===ce&&re.flush(p.context.currentTime),re.add(l(pe,ye,be)),b.setTargetAtTime(pe,ye,be),G),setValueAtTime:(pe,ye)=>(null===ce&&re.flush(p.context.currentTime),re.add(c(pe,ye)),b.setValueAtTime(pe,ye),G),setValueCurveAtTime(pe,ye,be){const Pe=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const je=ye+be,Xe=p.context.sampleRate,Re=Math.ceil(ye*Xe),Je=Math.floor(je*Xe),st=Je-Re,ht=new Float32Array(st);for(let He=0;He(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(RN),hF,e1,0,Zs.createCancelAndHoldAutomationEvent,Zs.createCancelScheduledValuesAutomationEvent,Zs.createExponentialRampToValueAutomationEvent,Zs.createLinearRampToValueAutomationEvent,Zs.createSetTargetAutomationEvent,Zs.createSetValueAutomationEvent,Zs.createSetValueCurveAutomationEvent,ts,sF),iae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Mne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,ko,Yo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Fu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),es(this)&&yf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ei,nae,Xr,Ri,Yu,ei,Bn,Bu),oae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ei,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Da,Ri,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})(zo,Sf),ei,Bn,oo),rae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,tF,oi,Ta,oo),Xl=(t=>(n,e)=>t.set(n,e))(uF),aae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...oie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,ko,Yo),this._detune=n(this,g,p.detune,1200*Math.log2(ko),-1200*Math.log2(ko)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(ko),Yo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ei,Xr,rae,wb,tF,ei,Bn,Xl),Gs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Gl,b1),sae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Ri,Gs),Us=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Yi(o,i),o})(ts,sae),lae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Us,oi,oo),cae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...lie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ei,lae,Us,ei,Bn),uae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Cf,oi,oo),dae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...die,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ei,uae,Cf,ei,Bn),hae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i(ju(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Cb,Yu,zo,Gs),zu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Yi(s,a),mi(s,a,"offset"),n(i,()=>i(r))||d1(s),n(o,()=>o(r))||h1(s),t(r,s),s})(Cb,cr,hae,f1,p1),fae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ea,zu,oi,Ta,oo),pae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...bie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,ko,Yo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ei,Xr,fae,zu,ei,Bn,Bu),yF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Yi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),li(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Sf),gae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(yF,oi,oo),mae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...wie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ei,gae,yF,ei,Bn,Xl),bae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ea,nF,oi,Ta,oo),yae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Mie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ei,Xr,bae,nF,ei,Bn,Xl),_F=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Yi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return mi(i,e,"attack"),mi(i,e,"knee"),mi(i,e,"ratio"),mi(i,e,"release"),mi(i,e,"threshold"),i})(yo),_ae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,_F,oi,Ta,oo),vae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Fie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ei,Xr,_ae,_F,yo,ei,Bn,Xl),wae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,zo,oi,Ta,oo),Cae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Vie,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,ko,Yo)}get gain(){return this._gain}})(Ei,Xr,wae,zo,ei,Bn),xae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=eF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Pe=be.inputBuffer,je=be.outputBuffer,Xe=Pe.numberOfChannels;for(let Re=0;ReS.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>S.dispatchEvent(be[0]),getFrequencyResponse(be,Pe,je){if(be.length!==Pe.length||Pe.length!==je.length)throw t();const Xe=be.length;for(let Re=0;ReS.removeEventListener(be[0],be[1],be[2])},S)})(wb,Ri,xf,yo),xb=((t,n,e,i)=>o=>t(Wl,()=>Wl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(cr,zo,xf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})(zo,Ji)),Sae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const S=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,S,S.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Yi(o,i),o})(xae),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...noe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw wb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ei,Dae,Sae,ei,Bn,Xl),Tae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:S,upX:H,upY:re,upZ:ce}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),ye=a(c);let be=!1,Pe=[0,0,-1,0,1,0],je=[0,0,0];const Xe=()=>{if(be)return;be=!0;const ht=i(c,256,9,0);ht.onaudioprocess=({inputBuffer:Se})=>{const He=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];He.some((nt,St)=>nt!==Pe[St])&&(u.setOrientation(...He),Pe=He);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((nt,St)=>nt!==je[St])&&(u.setPosition(...We),je=We)},pe.connect(ht)},Re=ht=>Se=>{Se!==Pe[ht]&&(Pe[ht]=Se,u.setOrientation(...Pe))},Je=ht=>Se=>{Se!==je[ht]&&(je[ht]=Se,u.setPosition(...je))},st=(ht,Se,He)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ht),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const nt=t({context:l},ye,We.offset,ko,Yo);return s(nt,"value",St=>()=>St.call(nt),St=>Mt=>{try{St.call(nt,Mt)}catch(en){if(9!==en.code)throw en}Xe(),ye&&He(Mt)}),nt.cancelAndHoldAtTime=(St=nt.cancelAndHoldAtTime,ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en}),nt.cancelScheduledValues=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.cancelScheduledValues),nt.exponentialRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.exponentialRampToValueAtTime),nt.linearRampToValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.linearRampToValueAtTime),nt.setTargetAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setTargetAtTime),nt.setValueAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueAtTime),nt.setValueCurveAtTime=(St=>ye?()=>{throw o()}:(...Mt)=>{const en=St.apply(nt,Mt);return Xe(),en})(nt.setValueCurveAtTime),nt;var St};return{forwardX:st(0,0,Re(0)),forwardY:st(1,0,Re(1)),forwardZ:st(2,-1,Re(2)),positionX:st(6,0,Je(0)),positionY:st(7,0,Je(1)),positionZ:st(8,0,Je(2)),upX:st(3,0,Re(3)),upY:st(4,1,Re(4)),upZ:st(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return S},get upX(){return H},get upY(){return re},get upZ(){return ce}}})(Xr,Us,zu,xf,yo,rF,Bn,Sf),vF=new WeakMap,w1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,cb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(oae,Tae,fF,Bn,vF,Bu),wF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Yi(l,s),mi(l,s,"detune"),mi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):li(l,s,"type"),n(e,()=>e(a))||d1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||h1(l),t(a,l),l})(Cb,cr,f1,lF,p1,cF),Mae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ea,wF,oi,Ta,oo),Aae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...hre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Fu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),es(this)&&yf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ei,Xr,wF,Mae,ei,Bn,Bu),CF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Yu),kae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Yi(c,l),Yi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,S=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return S},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,ye=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);ye[0]=G[0],be[0]=-G[pe-1];const Pe=Math.ceil((pe+1)/2),je=(pe+1)/2-1;for(let Xe=1;Xed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o(ju(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(S)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(CF,Ri,zo,aF,Gs),Sb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Yi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();li(c,{curve:u},"curve"),li(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(CF,Ri,kae,aF,Gs,ts,Sf),Iae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:S,orientationZ:H,panningModel:re,positionX:ce,positionY:G,positionZ:pe,refDistance:ye,rolloffFactor:be,...Pe})=>{const je=u.createPanner();if(Pe.channelCount>2||"max"===Pe.channelCountMode)throw a();Yi(je,Pe);const Xe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Xe,channelInterpretation:"speakers",numberOfInputs:6}),Je=i(u,{...Pe,gain:1}),st=i(u,{...Xe,gain:1}),ht=i(u,{...Xe,gain:0}),Se=i(u,{...Xe,gain:0}),He=i(u,{...Xe,gain:0}),We=i(u,{...Xe,gain:0}),nt=i(u,{...Xe,gain:0}),St=o(u,256,6,1),Mt=r(u,{...Xe,curve:new Float32Array([1,1]),oversample:"none"});let en=[T,S,H],Rn=[ce,G,pe];const an=new Float32Array(1);St.onaudioprocess=({inputBuffer:ct})=>{const yn=[l(ct,an,0),l(ct,an,1),l(ct,an,2)];yn.some((Er,Xs)=>Er!==en[Xs])&&(je.setOrientation(...yn),en=yn);const ro=[l(ct,an,3),l(ct,an,4),l(ct,an,5)];ro.some((Er,Xs)=>Er!==Rn[Xs])&&(je.setPosition(...ro),Rn=ro)},Object.defineProperty(ht.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(He.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(nt.gain,"defaultValue",{get:()=>0});const sn={get bufferSize(){},get channelCount(){return je.channelCount},set channelCount(ct){if(ct>2)throw a();Je.channelCount=ct,je.channelCount=ct},get channelCountMode(){return je.channelCountMode},set channelCountMode(ct){if("max"===ct)throw a();Je.channelCountMode=ct,je.channelCountMode=ct},get channelInterpretation(){return je.channelInterpretation},set channelInterpretation(ct){Je.channelInterpretation=ct,je.channelInterpretation=ct},get coneInnerAngle(){return je.coneInnerAngle},set coneInnerAngle(ct){je.coneInnerAngle=ct},get coneOuterAngle(){return je.coneOuterAngle},set coneOuterAngle(ct){je.coneOuterAngle=ct},get coneOuterGain(){return je.coneOuterGain},set coneOuterGain(ct){if(ct<0||ct>1)throw n();je.coneOuterGain=ct},get context(){return je.context},get distanceModel(){return je.distanceModel},set distanceModel(ct){je.distanceModel=ct},get inputs(){return[Je]},get maxDistance(){return je.maxDistance},set maxDistance(ct){if(ct<0)throw new RangeError;je.maxDistance=ct},get numberOfInputs(){return je.numberOfInputs},get numberOfOutputs(){return je.numberOfOutputs},get orientationX(){return st.gain},get orientationY(){return ht.gain},get orientationZ(){return Se.gain},get panningModel(){return je.panningModel},set panningModel(ct){je.panningModel=ct},get positionX(){return He.gain},get positionY(){return We.gain},get positionZ(){return nt.gain},get refDistance(){return je.refDistance},set refDistance(ct){if(ct<0)throw new RangeError;je.refDistance=ct},get rolloffFactor(){return je.rolloffFactor},set rolloffFactor(ct){if(ct<0)throw new RangeError;je.rolloffFactor=ct},addEventListener:(...ct)=>Je.addEventListener(ct[0],ct[1],ct[2]),dispatchEvent:(...ct)=>Je.dispatchEvent(ct[0]),removeEventListener:(...ct)=>Je.removeEventListener(ct[0],ct[1],ct[2])};return d!==sn.coneInnerAngle&&(sn.coneInnerAngle=d),h!==sn.coneOuterAngle&&(sn.coneOuterAngle=h),p!==sn.coneOuterGain&&(sn.coneOuterGain=p),g!==sn.distanceModel&&(sn.distanceModel=g),b!==sn.maxDistance&&(sn.maxDistance=b),T!==sn.orientationX.value&&(sn.orientationX.value=T),S!==sn.orientationY.value&&(sn.orientationY.value=S),H!==sn.orientationZ.value&&(sn.orientationZ.value=H),re!==sn.panningModel&&(sn.panningModel=re),ce!==sn.positionX.value&&(sn.positionX.value=ce),G!==sn.positionY.value&&(sn.positionY.value=G),pe!==sn.positionZ.value&&(sn.positionZ.value=pe),ye!==sn.refDistance&&(sn.refDistance=ye),be!==sn.rolloffFactor&&(sn.rolloffFactor=be),(1!==en[0]||0!==en[1]||0!==en[2])&&je.setOrientation(...en),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&je.setPosition(...Rn),c(ju(sn,je),()=>{Je.connect(je),t(Je,Mt,0,0),Mt.connect(st).connect(Re,0,0),Mt.connect(ht).connect(Re,0,1),Mt.connect(Se).connect(Re,0,2),Mt.connect(He).connect(Re,0,3),Mt.connect(We).connect(Re,0,4),Mt.connect(nt).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Je.disconnect(je),s(Je,Mt,0,0),Mt.disconnect(st),st.disconnect(Re),Mt.disconnect(ht),ht.disconnect(Re),Mt.disconnect(Se),Se.disconnect(Re),Mt.disconnect(He),He.disconnect(Re),Mt.disconnect(We),We.disconnect(Re),Mt.disconnect(nt),nt.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(pb,Ri,Us,zo,xf,Sb,yo,gb,rF,Gs),xF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Yi(i,e),mi(i,e,"orientationX"),mi(i,e,"orientationY"),mi(i,e,"orientationZ"),mi(i,e,"positionX"),mi(i,e,"positionY"),mi(i,e,"positionZ"),li(i,e,"coneInnerAngle"),li(i,e,"coneOuterAngle"),li(i,e,"coneOuterGain"),li(i,e,"distanceModel"),li(i,e,"maxDistance"),li(i,e,"panningModel"),li(i,e,"refDistance"),li(i,e,"rolloffFactor"),i)})(Iae),Oae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,S=r(g);const H={channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation},re={...H,coneInnerAngle:S.coneInnerAngle,coneOuterAngle:S.coneOuterAngle,coneOuterGain:S.coneOuterGain,distanceModel:S.distanceModel,maxDistance:S.maxDistance,panningModel:S.panningModel,refDistance:S.refDistance,rolloffFactor:S.rolloffFactor},ce=bo(S,b);if("bufferSize"in S)T=i(b,{...H,gain:1});else if(!ce){const G={...re,orientationX:S.orientationX.value,orientationY:S.orientationY.value,orientationZ:S.orientationZ.value,positionX:S.positionX.value,positionY:S.positionY.value,positionZ:S.positionZ.value};S=o(b,G)}if(u.set(b,null===T?S:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Je=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Je.connect(Re.destination),d=(0,y.Z)(function*(){const st=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ht=(0,y.Z)(function*(Se,He){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===He?1:0});return yield s(Re,Se,We.offset),We});return function(Se,He){return ht.apply(this,arguments)}}()));for(let ht=0;ht<6;ht+=1)st[ht].connect(Je,0,ht),st[ht].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const ye=[];for(let Re=0;Reht!==be[Se])||st.some((ht,Se)=>ht!==Pe[Se])){be=Je,Pe=st;const ht=Re/b.sampleRate;je.gain.setValueAtTime(0,ht),je=i(b,{...H,gain:0}),Xe=o(b,{...re,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Pe[0],positionY:Pe[1],positionZ:Pe[2]}),je.gain.setValueAtTime(1,ht),pe.connect(je).connect(Xe.inputs[0]),Xe.connect(T)}}return T}return ce?(yield t(b,g.orientationX,S.orientationX),yield t(b,g.orientationY,S.orientationY),yield t(b,g.orientationZ,S.orientationZ),yield t(b,g.positionX,S.positionX),yield t(b,g.positionY,S.positionY),yield t(b,g.positionZ,S.positionZ)):(yield s(b,g.orientationX,S.orientationX),yield s(b,g.orientationY,S.orientationY),yield s(b,g.orientationZ,S.orientationZ),yield s(b,g.positionX,S.positionX),yield s(b,g.positionY,S.positionY),yield s(b,g.positionZ,S.positionZ)),Lu(S)?yield l(g,b,S.inputs[0]):yield l(g,b,S),S});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ea,Us,zu,zo,xF,oi,Ji,Ta,oo,xb),Rae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...gre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,ko,Yo),this._orientationY=n(this,p,h.orientationY,ko,Yo),this._orientationZ=n(this,p,h.orientationZ,ko,Yo),this._positionX=n(this,p,h.positionX,ko,Yo),this._positionY=n(this,p,h.positionY,ko,Yo),this._positionZ=n(this,p,h.positionZ,ko,Yo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ei,Xr,xF,Oae,ei,Bn,Xl),Pae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Da),Nae=((t,n,e,i)=>class Hj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...yre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Hj.prototype||e.has(r)}})(Pae,ei,new WeakSet),Fae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,S,H)=>{if(1===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385);for(let Pe=0;Pe<16385;Pe+=1){const je=Pe/16384*l;H[Pe]=Math.cos(je),re[Pe]=Math.sin(je)}const ce=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),ye=e(g,{...c,gain:0}),be=i(g,{...u,curve:re});return{connectGraph(){b.connect(ce),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(ye),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(ce.gain),be.connect(ye.gain),ce.connect(S,0,0),ye.connect(S,0,1)},disconnectGraph(){b.disconnect(ce),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(ye),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(ce.gain),be.disconnect(ye.gain),ce.disconnect(S,0,0),ye.disconnect(S,0,1)}}})(g,T,S,H);if(2===b)return((g,b,T,S)=>{const H=new Float32Array(16385),re=new Float32Array(16385),ce=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let He=0;He<16385;He+=1)if(He>pe){const We=(He-pe)/(16384-pe)*l;H[He]=Math.cos(We),re[He]=Math.sin(We),ce[He]=0,G[He]=1}else{const We=He/(16384-pe)*l;H[He]=1,re[He]=0,ce[He]=Math.cos(We),G[He]=Math.sin(We)}const ye=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Pe=i(g,{...u,curve:H}),je=e(g,{...c,gain:0}),Xe=i(g,{...u,curve:re}),Re=i(g,{...u,curve:s}),Je=e(g,{...c,gain:0}),st=i(g,{...u,curve:ce}),ht=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(ye),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),ye.connect(be,0),ye.connect(je,0),ye.connect(Je,1),ye.connect(ht,1),Re.connect(T),T.connect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.connect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.connect(void 0===st.inputs?st:st.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.connect(be.gain),Xe.connect(je.gain),st.connect(Je.gain),Se.connect(ht.gain),be.connect(S,0,0),Je.connect(S,0,0),je.connect(S,0,1),ht.connect(S,0,1)},disconnectGraph(){b.disconnect(ye),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),ye.disconnect(be,0),ye.disconnect(je,0),ye.disconnect(Je,1),ye.disconnect(ht,1),Re.disconnect(T),T.disconnect(void 0===Pe.inputs?Pe:Pe.inputs[0]),T.disconnect(void 0===Xe.inputs?Xe:Xe.inputs[0]),T.disconnect(void 0===st.inputs?st:st.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Pe.disconnect(be.gain),Xe.disconnect(je.gain),st.disconnect(Je.gain),Se.disconnect(ht.gain),be.disconnect(S,0,0),Je.disconnect(S,0,0),je.disconnect(S,0,1),ht.disconnect(S,0,1)}}})(g,T,S,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:S,...H})=>{if("max"===T)throw o();const re=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),ce=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:S});let{connectGraph:pe,disconnectGraph:ye}=p(g,b,ce,G,re);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return ce.channelCount},set channelCount(Re){ce.channelCount!==Re&&(Pe&&ye(),({connectGraph:pe,disconnectGraph:ye}=p(g,Re,ce,G,re)),Pe&&pe()),ce.channelCount=Re},get channelCountMode(){return ce.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();ce.channelCountMode=Re},get channelInterpretation(){return ce.channelInterpretation},set channelInterpretation(Re){ce.channelInterpretation=Re},get context(){return ce.context},get inputs(){return[ce]},get numberOfInputs(){return ce.numberOfInputs},get numberOfOutputs(){return ce.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>ce.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>ce.dispatchEvent(Re[0]),removeEventListener:(...Re)=>ce.removeEventListener(Re[0],Re[1],Re[2])};let Pe=!1;return r(ju(be,re),()=>{pe(),Pe=!0},()=>{ye(),Pe=!1})}})(Us,Cf,zo,Sb,yo,Gs),SF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Yi(r,i),mi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Fae,yo),Lae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),Lu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ea,SF,oi,Ta,oo),jae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Tre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ei,Xr,SF,Lae,ei,Bn),Bae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),Lu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Sb,oi,oo),Hae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Rre,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ei,Ri,Sb,Bae,ei,Bn,Xl),DF=(t=>null!==t&&t.isSecureContext)(Wr),C1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Wr),EF=new WeakMap,Yae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(EF,Ji),zae=DF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const S=u.get(g);if(void 0!==S&&S.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const re=r(g),ce=void 0===re.audioWorklet?o(b).then(([G,pe])=>{const[ye,be]=LN(G,pe);return e(`${ye};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(re.currentTime,re.sampleRate,()=>G(class{},void 0,(pe,ye)=>{if(""===pe.trim())throw n();const be=n1.get(re);if(void 0!==be){if(be.has(pe))throw n();BN(ye),jN(ye.parameterDescriptors),be.set(pe,ye)}else BN(ye),jN(ye.parameterDescriptors),n1.set(re,new Map([[pe,ye]]))},re.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],ye])=>{const be=p+1;p=be;const[Pe,je]=LN(G,pe),ht=new Blob([`${Pe};((AudioWorkletProcessor,registerProcessor)=>{${je}\n})(${ye?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${ye?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${ye?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ht);return re.audioWorklet.addModule(Se,T).then(()=>{if(s(re))return re;const He=a(re);return He.audioWorklet.addModule(Se,T).then(()=>He)}).then(He=>{if(null===l)throw new SyntaxError;try{new l(He,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,ce]])):H.set(b,ce),ce.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),ce}})(cr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Wr),C1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ei,Yae,Bn,Hu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Hu,Ji),Wr):void 0,$ae=((t,n)=>e=>t(e)||n(e))(m1,Bn),Vae=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(QN(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield QN(h)}catch{}});return function(){return H.apply(this,arguments)}}(),S=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),a1(H)),t.add(H),T().then(()=>g(H))},H=>{S(null===H?new DOMException("","EncodingError"):H)})}catch(H){S(H)}})})(y1,cr,0,0,new WeakSet,ei,$ae,db,Wl,_1,v1),TF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,S,H,re)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(ye,be)=>t(this,ye,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,ye){return new e({length:pe,numberOfChannels:G,sampleRate:ye})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,ye={disableNormalization:!1}){return new S(this,{...ye,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new re(this)}decodeAudioData(G,pe,ye){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof ye&&ye(be),be})}})(zae,eae,tae,iae,aae,cae,dae,pae,mae,Vae,yae,vae,Cae,Eae,w1,Aae,Rae,Nae,jae,Hae),Zae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ei,0,ei,Bn),Gae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Yi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...yoe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ei,0,ei,Bn),Uae=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ei,0,ei,Bn),Wae=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Ri,Bn),Xae=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ei,Wae,ei),Jae=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{s1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(TF,Ri,yo,oF,Zae,Gae,Uae,Xae,ts),x1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(vF),MF=((t=>{})(x1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return bb(e)?r.connect(e,0,o):r.connect(e,0)})(Da)),Kae=(t=>(n,e)=>{t(n).delete(e)})(x1),AF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?vb(t,n,e).disconnect():bb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?vb(t,n,i).disconnect(e,0):vb(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):vb(t,n,i).disconnect(e,0))(Da),kF=new WeakMap,qae=((t,n)=>e=>n(t,e))(kF,Ur),ese=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const S=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(S.some(ft=>ft<1))throw l();if(S.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,re=S.reduce((ft,Pt)=>ft+Pt,0),ce=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+ce>6||re>6)throw l();const G=new MessageChannel,pe=[],ye=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===Pt?ko:Pt},minValue:{get:()=>void 0===ri?Yo:ri}}),be.push(xn)}const Pe=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+ce)}),je=eF(g,p.sampleRate),Xe=s(p,je,H+ce,Math.max(1,re)),Re=o(p,{channelCount:Math.max(1,re),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,re)}),Je=[];for(let ft=0;ft{const ri=be[Pt];return ri.connect(Pe,0,H+Pt),ri.start(0),[ft,ri.offset]}));Pe.connect(Xe);let ht=T.channelInterpretation,Se=null;const He=0===T.numberOfOutputs?[Xe]:Je,We={get bufferSize(){return je},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ht},set channelInterpretation(ft){for(const Pt of pe)Pt.channelInterpretation=ft;ht=ft},get context(){return Xe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return st},get port(){return G.port2},addEventListener:(...ft)=>Xe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,He),disconnect:c.bind(null,He),dispatchEvent:(...ft)=>Xe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Xe.removeEventListener(ft[0],ft[1],ft[2])},nt=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...Pt)=>{if("message"===Pt[0]){const ri="function"==typeof Pt[1]?Pt[1]:"object"==typeof Pt[1]&&null!==Pt[1]&&"function"==typeof Pt[1].handleEvent?Pt[1].handleEvent:null;if(null!==ri){const ai=nt.get(Pt[1]);void 0!==ai?Pt[1]=ai:(Pt[1]=xn=>{u(p.currentTime,p.sampleRate,()=>ri(xn))},nt.set(ri,Pt[1]))}}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])}),G.port1.removeEventListener=(ft=>(...Pt)=>{if("message"===Pt[0]){const ri=nt.get(Pt[1]);void 0!==ri&&(nt.delete(Pt[1]),Pt[1]=ri)}return ft.call(G.port1,Pt[0],Pt[1],Pt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let Mt=null;((t,n,e,i)=>{let o=o1.get(t);void 0===o&&(o=new WeakMap,o1.set(t,o));const r=joe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>Mt=ft);const Rn=_b(T.numberOfInputs,T.channelCount),an=_b(T.numberOfOutputs,S),sn=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:Pt})=>({...ft,[Pt]:new Float32Array(128)}),{});let $o=!0;const Vn=()=>{T.numberOfOutputs>0&&Xe.disconnect(Re);for(let ft=0,Pt=0;ft{if(null!==Mt){const ri=d(We);for(let ai=0;ai{yb(ft,sn,xn,H+Zn,ai)});for(let xn=0;xn{if(ri[Jr].size>0)return ct.set(Jr,je/128),Vo;const Zu=ct.get(Jr);return void 0===Zu?[]:(Vo.every(cx=>cx.every(Vb=>0===Vb))&&(1===Zu?ct.delete(Jr):ct.set(Jr,Zu-1)),Vo)});$o=u(p.currentTime+ai/p.sampleRate,p.sampleRate,()=>Mt.process(xn,an,sn));for(let Vo=0,Jr=0;VoXe.connect(ro).connect(p.destination),Xs=()=>{Xe.disconnect(ro),ro.disconnect()};return Er(),h(We,()=>{if($o){Xs(),T.numberOfOutputs>0&&Xe.connect(Re);for(let ft=0,Pt=0;ft{$o&&(Er(),Vn()),yn=!1})})(MF,Da,Ri,Us,Cf,zu,zo,xf,yo,AF,C1,qae,Gs);let Db=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(Ua(s=>(this.toastr.error(s.message,$localize`Hmm, the file is unreachable. Please try again later.`,{timeOut:1e4}),Tt(s))),Nt(s=>s),io(1))}loadAudioBufferFromFile$(e,i){var o=new Jae({sampleRate:i});return hi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return _n.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(iu),Me(vl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ur={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI"},"private":true,"singleFileBundleVersion":"1.5.1","singleFileBundleTimestamp":"2024-10-18+19-29-08"}')},rse={title:$localize`Welcome to ReadAlong Studio`,text:$localize`Creating a ReadAlong is easy!\ This guide will show you all the bells and whistles of the Studio.`,attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"intro"},ase={title:$localize`Adding your data`,text:$localize`To make your ReadAlong, you'll need to add your text and audio.`,attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"data"},sse={title:$localize`Write your text`,text:$localize`You can write your text directly into ReadAlong Studio, by selecting the "write" option.`,attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"text-write"},RF={title:$localize`Use a text file`,text:$localize`You can also use text from a plain text file (.txt) or a file in the RAS format (.readalong).`,attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"text-file"},lse={title:$localize`Record your own audio`,text:$localize`You can record your own audio for preprocessing using your browser's microphone.`,attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"audio-record"},PF={title:$localize`Use an audio file`,text:$localize`You can also select either a .wav or .mp3 file for your ReadAlong.`,attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"audio-file"},cse={title:$localize`Select your language`,text:$localize`Then, optionally, you can select the language of your ReadAlong.`,attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"language"},use={title:$localize`Select your language`,text:$localize`For most users, the default settings here are appropriate, and you don't need to do anything else - just keep this option selected!`,attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"generic-language"},dse={title:$localize`Select your language`,text:$localize`However, if your results aren't good enough with the default settings you can choose your language from this list. If it's not supported already, have a look at this blog post series